arm64: dts: rockchip: rk3308-partybox: Add rk3308 partybox Demo coreboard devicetree

Change-Id: I437e61787062e3383fb0add99b7375dc10fad157
Signed-off-by: Huang zhibao <hzb@rock-chips.com>
This commit is contained in:
Huang zhibao
2024-01-31 09:52:00 +08:00
committed by Lin Jianhua
parent 5b517ce5e1
commit 655b6b53cb
4 changed files with 438 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3308-evb-audio-v10-display-rgb.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3308-evb-audio-v10-partybox.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3308-evb-dmic-pdm-v11.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3308-evb-dmic-pdm-v13.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3308-partybox-coreboard-demo-v10.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3308-roc-cc.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3308-rock-pi-s.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3308b-evb-amic-v10.dtb

View File

@@ -0,0 +1,13 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright (c) 2024 Rockchip Electronics Co., Ltd.
*/
/dts-v1/;
#include "rk3308-partybox-coreboard-demo.dtsi"
/ {
model = "Rockchip RK3308B PARTYBOX CORE BOARD DEMO V10";
compatible = "rockchip,rk3308-partybox-coreboard-demo-v10", "rockchip,rk3308";
};

View File

@@ -0,0 +1,184 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright (c) 2024 Rockchip Electronics Co., Ltd.
*/
#include <dt-bindings/input/input.h>
#include "rk3308-partybox.dtsi"
/ {
chosen {
bootargs = "earlycon=uart8250,mmio32,0xff0c0000 console=ttyFIQ0 root=PARTUUID=614e0000-0000 rootfstype=squashfs rootwait snd_aloop.index=7 snd_aloop.use_raw_jiffies=1 isolcpus=3 nohz_full=3";
};
pwm-leds {
compatible = "pwm-leds";
mic1-green-led {
label = "mic1_green";
pwms = <&pwm1 0 50000 0>;
default-state = "off";
};
mic1-red-led {
label = "mic1_red";
pwms = <&pwm2 0 50000 0>;
default-state = "off";
};
mic2-green-led {
label = "mic2_green";
pwms = <&pwm3 0 50000 0>;
default-state = "off";
};
mic2-red-led {
label = "mic2_red";
pwms = <&pwm4 0 50000 0>;
default-state = "off";
};
aux-green-led {
label = "aux_green";
pwms = <&pwm5 0 50000 0>;
default-state = "off";
};
aux-red-led {
label = "aux_red";
pwms = <&pwm6 0 50000 0>;
default-state = "off";
};
};
wireless-bluetooth {
compatible = "bluetooth-platdata";
uart_rts_gpios = <&gpio4 RK_PA7 GPIO_ACTIVE_LOW>;
pinctrl-names = "default", "rts_gpio";
pinctrl-0 = <&uart4_rts>;
pinctrl-1 = <&uart4_rts_pin>;
BT,power_gpio = <&gpio4 RK_PB3 GPIO_ACTIVE_HIGH>;
BT,wake_host_irq = <&gpio4 RK_PB4 GPIO_ACTIVE_HIGH>;
status = "disabled";
};
};
&acodec {
status = "disabled";
};
&bluetooth_sound {
status = "okay";
rockchip,frame-master = <&bt_codec>;
rockchip,bitclock-master = <&bt_codec>;
rockchip,format = "i2s";
};
&i2s_2ch_0 {
status = "okay";
#sound-dai-cells = <0>;
};
&dac_sound {
status = "okay";
};
&emmc {
bus-width = <8>;
cap-mmc-highspeed;
mmc-hs200-1_8v;
no-sdio;
no-sd;
disable-wp;
non-removable;
num-slots = <1>;
status = "disabled";
};
/*
* VCCIO[0:5] domains require that their hardware power supply voltages
* must be consistent with the software configuration correspondingly
* a/ When the hardware IO level is connected to 1.8V, the software voltage configuration
* should also be configured to 1.8V accordingly;
* b/ When the hardware IO level is connected to 3.3V, the software voltage configuration
* should also be configured to 3.3V accordingly;
*/
&io_domains {
status = "okay";
vccio0-supply = <&vcc_3v3>;
vccio1-supply = <&vcc_3v3>;
vccio2-supply = <&vcc_3v3>;
vccio3-supply = <&vcc_3v3>;
vccio4-supply = <&vcc_3v3>;
vccio5-supply = <&vcc_3v3>;
};
&i2s_8ch_0 {
#sound-dai-cells = <0>;
rockchip,clk-trcm = <1>;
status = "okay";
};
&pwm1 {
status = "okay";
};
&pwm2 {
status = "okay";
};
&pwm3 {
status = "okay";
};
&pwm4 {
status = "okay";
};
&pwm5 {
status = "okay";
};
&pwm6 {
status = "okay";
};
&uart0 {
pinctrl-names = "default";
pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
status = "okay";
};
&uart4 {
pinctrl-names = "default";
pinctrl-0 = <&uart4_xfer &uart4_cts>;
status = "okay";
};
&usb20_otg {
status = "okay";
};
&usb_host0_ehci {
status = "disabled";
};
&usb_host0_ohci{
status = "disabled";
};
&u2phy {
status = "okay";
u2phy_host: host-port {
status = "disabled";
};
u2phy_otg: otg-port {
status = "okay";
};
};
&pinctrl {
wireless-bluetooth {
uart4_gpios: uart4-gpios {
rockchip,pins = <4 RK_PA7 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
};

View File

@@ -0,0 +1,240 @@
// 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";
};