Change-Id: I437e61787062e3383fb0add99b7375dc10fad157 Signed-off-by: Huang zhibao <hzb@rock-chips.com>
241 lines
4.7 KiB
Plaintext
241 lines
4.7 KiB
Plaintext
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
/*
|
|
* Copyright (c) 2024 Rockchip Electronics Co., Ltd.
|
|
*/
|
|
|
|
#include <dt-bindings/input/input.h>
|
|
#include "rk3308.dtsi"
|
|
|
|
/ {
|
|
model = "Rockchip RK3308 PARTYBOX";
|
|
compatible = "rockchip,rk3308-partybox", "rockchip,rk3308";
|
|
|
|
bluetooth_sound: bluetooth-sound {
|
|
status = "disabled";
|
|
compatible = "rockchip,multicodecs-card";
|
|
rockchip,card-name = "rockchip,rk3308-pcm";
|
|
rockchip,mclk-fs = <256>;
|
|
rockchip,cpu = <&i2s_2ch_0>;
|
|
rockchip,codec = <&bt_codec>;
|
|
rockchip,format = "i2s";
|
|
rockchip,wait-card-locked = <0>;
|
|
|
|
rockchip,frame-master = <&bt_codec>;
|
|
rockchip,bitclock-master = <&bt_codec>;
|
|
};
|
|
|
|
dac_sound: dac-sound {
|
|
status = "disabled";
|
|
compatible = "simple-audio-card";
|
|
simple-audio-card,name = "rockchip,rk3308-dac";
|
|
simple-audio-card,format = "i2s";
|
|
simple-audio-card,mclk-fs = <256>;
|
|
simple-audio-card,bitclock-master = <&sound2_master>;
|
|
simple-audio-card,frame-master = <&sound2_master>;
|
|
simple-audio-card,cpu {
|
|
sound-dai = <&i2s_8ch_0>;
|
|
};
|
|
sound2_master:simple-audio-card,codec {
|
|
sound-dai = <&dummy_codec>;
|
|
};
|
|
};
|
|
|
|
spdif_tx_sound: spdif-tx-sound {
|
|
status = "disabled";
|
|
compatible = "simple-audio-card";
|
|
simple-audio-card,name = "rockchip,spdif-tx-sound";
|
|
simple-audio-card,cpu {
|
|
sound-dai = <&spdif_tx>;
|
|
};
|
|
simple-audio-card,codec {
|
|
sound-dai = <&dummy_codec>;
|
|
};
|
|
};
|
|
|
|
spdif_rx_sound: spdif-rx-sound {
|
|
status = "disabled";
|
|
compatible = "simple-audio-card";
|
|
simple-audio-card,name = "rockchip,spdif-rx-sound";
|
|
simple-audio-card,mclk-fs = <128>;
|
|
simple-audio-card,cpu {
|
|
sound-dai = <&spdif_rx>;
|
|
};
|
|
simple-audio-card,codec {
|
|
sound-dai = <&spdif_dummy_codec>;
|
|
};
|
|
};
|
|
|
|
bt_codec: bt-codec {
|
|
status = "okay";
|
|
compatible = "rockchip,dummy-codec";
|
|
#sound-dai-cells = <0>;
|
|
};
|
|
|
|
dummy_codec: dummy-codec {
|
|
status = "okay";
|
|
compatible = "rockchip,dummy-codec";
|
|
#sound-dai-cells = <0>;
|
|
};
|
|
|
|
spdif_dummy_codec: spdif-dummy-codec {
|
|
status = "okay";
|
|
compatible = "rockchip,dummy-codec";
|
|
#sound-dai-cells = <0>;
|
|
};
|
|
|
|
vcc_3v3: vcc_io: vcc-io {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc_io";
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
};
|
|
|
|
vcc_ddr: vcc-ddr {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc_ddr";
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <1500000>;
|
|
regulator-max-microvolt = <1500000>;
|
|
};
|
|
|
|
vccio_flash: vccio-flash {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vccio_flash";
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
};
|
|
|
|
vdd_core: vdd-core {
|
|
compatible = "pwm-regulator";
|
|
pwms = <&pwm0 0 5000 1>;
|
|
regulator-name = "vdd_core";
|
|
regulator-min-microvolt = <827000>;
|
|
regulator-max-microvolt = <1340000>;
|
|
regulator-init-microvolt = <1015000>;
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-settling-time-up-us = <250>;
|
|
status = "okay";
|
|
};
|
|
|
|
vdd_log: vdd-log {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vdd_log";
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <1050000>;
|
|
regulator-max-microvolt = <1050000>;
|
|
};
|
|
|
|
vdd_1v0: vdd-1v0 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vdd_1v0";
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <1000000>;
|
|
regulator-max-microvolt = <1000000>;
|
|
};
|
|
|
|
vcc_1v8: vcc-1v8 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc_1v8_codec";
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
vin-supply = <&vcc_io>;
|
|
};
|
|
};
|
|
|
|
&cpu0 {
|
|
cpu-supply = <&vdd_core>;
|
|
};
|
|
|
|
&cpu0_opp_table {
|
|
opp-408000000 {
|
|
status = "disabled";
|
|
};
|
|
opp-600000000 {
|
|
status = "disabled";
|
|
};
|
|
opp-1200000000 {
|
|
status = "okay";
|
|
};
|
|
opp-1296000000 {
|
|
status = "okay";
|
|
};
|
|
};
|
|
|
|
&dmc {
|
|
center-supply = <&vdd_log>;
|
|
status = "okay";
|
|
};
|
|
|
|
&fiq_debugger {
|
|
status = "okay";
|
|
};
|
|
|
|
&nandc {
|
|
status = "okay";
|
|
};
|
|
|
|
&pwm0 {
|
|
status = "okay";
|
|
pinctrl-names = "active";
|
|
pinctrl-0 = <&pwm0_pin_pull_down>;
|
|
};
|
|
|
|
&rk3308bs_cpu0_opp_table {
|
|
opp-1008000000 {
|
|
status = "okay";
|
|
};
|
|
opp-1104000000 {
|
|
status = "okay";
|
|
};
|
|
};
|
|
|
|
&rockchip_suspend {
|
|
rockchip,pwm-regulator-config = <
|
|
(0
|
|
| RKPM_PWM_REGULATOR
|
|
)
|
|
>;
|
|
|
|
status = "okay";
|
|
};
|
|
|
|
&rng {
|
|
status = "okay";
|
|
};
|
|
|
|
&saradc {
|
|
status = "okay";
|
|
vref-supply = <&vcc_1v8>;
|
|
};
|
|
|
|
&sfc {
|
|
status = "okay";
|
|
};
|
|
|
|
&spdif_tx {
|
|
#sound-dai-cells = <0>;
|
|
};
|
|
&spdif_rx {
|
|
#sound-dai-cells = <0>;
|
|
};
|
|
|
|
&tsadc {
|
|
rockchip,hw-tshut-mode = <0>; /* tshut mode 0:CRU 1:GPIO */
|
|
rockchip,hw-tshut-polarity = <1>; /* tshut polarity 0:LOW 1:HIGH */
|
|
status = "okay";
|
|
};
|
|
|
|
&usb20_otg {
|
|
status = "okay";
|
|
};
|