]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: dts: rockchip: rock-pi-4: sync with Linux 6.3
authorFUKAUMI Naoki <naoki@radxa.com>
Wed, 26 Apr 2023 02:23:52 +0000 (02:23 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Tue, 9 May 2023 12:30:12 +0000 (20:30 +0800)
sync dts{,i} files for Radxa ROCK Pi 4 series with Linux 6.3.

because rk3399-rock-pi-4a.dts is enough for ROCK Pi 4A/B/A+/B+ and ROCK
4SE, delete dts{,i} for ROCK Pi 4B.

Signed-off-by: FUKAUMI Naoki <naoki@radxa.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/dts/Makefile
arch/arm/dts/rk3399-rock-pi-4.dtsi
arch/arm/dts/rk3399-rock-pi-4a-u-boot.dtsi [moved from arch/arm/dts/rk3399-rock-pi-4b-u-boot.dtsi with 100% similarity]
arch/arm/dts/rk3399-rock-pi-4b.dts [deleted file]
arch/arm/dts/rk3399-rock-pi-4c.dts

index aa2cdfa874a28425249d4654238b09d043c18b79..99746bb636ccc2786c796e7ffcaad2b351942814 100644 (file)
@@ -159,7 +159,6 @@ dtb-$(CONFIG_ROCKCHIP_RK3399) += \
        rk3399-roc-pc.dtb \
        rk3399-roc-pc-mezzanine.dtb \
        rk3399-rock-pi-4a.dtb \
-       rk3399-rock-pi-4b.dtb \
        rk3399-rock-pi-4c.dtb \
        rk3399-rock960.dtb \
        rk3399-rockpro64.dtb \
index b28888ea9262ee3975fca01fbb07c9671b19da88..907071d4fe80445b23a8b6b6a5f36fa382dd65f3 100644 (file)
@@ -6,14 +6,15 @@
 
 /dts-v1/;
 #include <dt-bindings/input/linux-event-codes.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/pwm/pwm.h>
 #include "rk3399.dtsi"
 #include "rk3399-opp.dtsi"
 
 / {
        aliases {
-               mmc0 = &sdmmc;
-               mmc1 = &sdhci;
+               mmc0 = &sdhci;
+               mmc1 = &sdmmc;
        };
 
        chosen {
                #clock-cells = <0>;
        };
 
+       leds {
+               compatible = "gpio-leds";
+               pinctrl-names = "default";
+               pinctrl-0 = <&user_led2>;
+
+               /* USER_LED2 */
+               led-0 {
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_BLUE>;
+                       gpios = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>;
+                       linux,default-trigger = "heartbeat";
+               };
+       };
+
        sdio_pwrseq: sdio-pwrseq {
                compatible = "mmc-pwrseq-simple";
                clocks = <&rk808 1>;
                reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;
        };
 
-       vcc12v_dcin: dc-12v {
+       sound: sound {
+               compatible = "audio-graph-card";
+               label = "Analog";
+               dais = <&i2s0_p0>;
+       };
+
+       sound-dit {
+               compatible = "audio-graph-card";
+               label = "SPDIF";
+               dais = <&spdif_p0>;
+       };
+
+       spdif-dit {
+               compatible = "linux,spdif-dit";
+               #sound-dai-cells = <0>;
+
+               port {
+                       dit_p0_0: endpoint {
+                               remote-endpoint = <&spdif_p0_0>;
+                       };
+               };
+       };
+
+       vbus_typec: vbus-typec-regulator {
                compatible = "regulator-fixed";
-               regulator-name = "vcc12v_dcin";
+               enable-active-high;
+               gpio = <&gpio1 RK_PA3 GPIO_ACTIVE_HIGH>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&vcc5v0_typec_en>;
+               regulator-name = "vbus_typec";
                regulator-always-on;
-               regulator-boot-on;
-               regulator-min-microvolt = <12000000>;
-               regulator-max-microvolt = <12000000>;
+               vin-supply = <&vcc5v0_sys>;
        };
 
-       vcc5v0_sys: vcc-sys {
+       vcc12v_dcin: dc-12v {
                compatible = "regulator-fixed";
-               regulator-name = "vcc5v0_sys";
+               regulator-name = "vcc12v_dcin";
                regulator-always-on;
                regulator-boot-on;
-               regulator-min-microvolt = <5000000>;
-               regulator-max-microvolt = <5000000>;
-               vin-supply = <&vcc12v_dcin>;
+               regulator-min-microvolt = <12000000>;
+               regulator-max-microvolt = <12000000>;
        };
 
-       vcc_0v9: vcc-0v9 {
+       vcc3v3_lan: vcc3v3-lan-regulator {
                compatible = "regulator-fixed";
-               regulator-name = "vcc_0v9";
+               regulator-name = "vcc3v3_lan";
                regulator-always-on;
                regulator-boot-on;
-               regulator-min-microvolt = <900000>;
-               regulator-max-microvolt = <900000>;
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
                vin-supply = <&vcc3v3_sys>;
        };
 
                vin-supply = <&vcc5v0_sys>;
        };
 
-       vcc5v0_typec: vcc5v0-typec-regulator {
+       vcc5v0_sys: vcc-sys {
                compatible = "regulator-fixed";
-               enable-active-high;
-               gpio = <&gpio1 RK_PA3 GPIO_ACTIVE_HIGH>;
-               pinctrl-names = "default";
-               pinctrl-0 = <&vcc5v0_typec_en>;
-               regulator-name = "vcc5v0_typec";
+               regulator-name = "vcc5v0_sys";
                regulator-always-on;
-               vin-supply = <&vcc5v0_sys>;
+               regulator-boot-on;
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+               vin-supply = <&vcc12v_dcin>;
        };
 
-       vcc_lan: vcc3v3-phy-regulator {
+       vcc_0v9: vcc-0v9 {
                compatible = "regulator-fixed";
-               regulator-name = "vcc_lan";
+               regulator-name = "vcc_0v9";
                regulator-always-on;
                regulator-boot-on;
-               regulator-min-microvolt = <3300000>;
-               regulator-max-microvolt = <3300000>;
+               regulator-min-microvolt = <900000>;
+               regulator-max-microvolt = <900000>;
+               vin-supply = <&vcc3v3_sys>;
        };
 
        vdd_log: vdd-log {
                compatible = "pwm-regulator";
                pwms = <&pwm2 0 25000 1>;
+               pwm-supply = <&vcc5v0_sys>;
                regulator-name = "vdd_log";
                regulator-always-on;
                regulator-boot-on;
                regulator-min-microvolt = <800000>;
                regulator-max-microvolt = <1400000>;
-               vin-supply = <&vcc5v0_sys>;
        };
 };
 
        assigned-clocks = <&cru SCLK_RMII_SRC>;
        assigned-clock-parents = <&clkin_gmac>;
        clock_in_out = "input";
-       phy-supply = <&vcc_lan>;
+       phy-supply = <&vcc3v3_lan>;
        phy-mode = "rgmii";
        pinctrl-names = "default";
        pinctrl-0 = <&rgmii_pins>;
 };
 
 &hdmi {
+       avdd-0v9-supply = <&vcca0v9_hdmi>;
+       avdd-1v8-supply = <&vcca1v8_hdmi>;
        ddc-i2c-bus = <&i2c3>;
        pinctrl-names = "default";
        pinctrl-0 = <&hdmi_cec>;
                                };
                        };
 
-                       vcc1v8_codec: LDO_REG1 {
-                               regulator-name = "vcc1v8_codec";
+                       vcca1v8_codec: LDO_REG1 {
+                               regulator-name = "vcca1v8_codec";
                                regulator-always-on;
                                regulator-boot-on;
                                regulator-min-microvolt = <1800000>;
                                };
                        };
 
-                       vcc1v8_hdmi: LDO_REG2 {
-                               regulator-name = "vcc1v8_hdmi";
+                       vcca1v8_hdmi: LDO_REG2 {
+                               regulator-name = "vcca1v8_hdmi";
                                regulator-always-on;
                                regulator-boot-on;
                                regulator-min-microvolt = <1800000>;
                                };
                        };
 
-                       vcc0v9_hdmi: LDO_REG7 {
-                               regulator-name = "vcc0v9_hdmi";
+                       vcca0v9_hdmi: LDO_REG7 {
+                               regulator-name = "vcca0v9_hdmi";
                                regulator-always-on;
                                regulator-boot-on;
                                regulator-min-microvolt = <900000>;
        i2c-scl-rising-time-ns = <300>;
        i2c-scl-falling-time-ns = <15>;
        status = "okay";
+
+       es8316: codec@11 {
+               compatible = "everest,es8316";
+               reg = <0x11>;
+               clocks = <&cru SCLK_I2S_8CH_OUT>;
+               clock-names = "mclk";
+               #sound-dai-cells = <0>;
+
+               port {
+                       es8316_p0_0: endpoint {
+                               remote-endpoint = <&i2s0_p0_0>;
+                       };
+               };
+       };
 };
 
 &i2c3 {
        rockchip,capture-channels = <2>;
        rockchip,playback-channels = <2>;
        status = "okay";
+
+       i2s0_p0: port {
+               i2s0_p0_0: endpoint {
+                       dai-format = "i2s";
+                       mclk-fs = <256>;
+                       remote-endpoint = <&es8316_p0_0>;
+               };
+       };
 };
 
 &i2s1 {
        rockchip,playback-channels = <2>;
        rockchip,capture-channels = <2>;
-       status = "okay";
 };
 
 &i2s2 {
 };
 
 &io_domains {
-       status = "okay";
-
+       audio-supply = <&vcca1v8_codec>;
        bt656-supply = <&vcc_3v0>;
-       audio-supply = <&vcc_3v0>;
-       sdmmc-supply = <&vcc_sdio>;
        gpio1830-supply = <&vcc_3v0>;
-};
-
-&pmu_io_domains {
-       status = "okay";
-
-       pmu1830-supply = <&vcc_3v0>;
-};
-
-&pcie_phy {
+       sdmmc-supply = <&vcc_sdio>;
        status = "okay";
 };
 
        status = "okay";
 };
 
+&pcie_phy {
+       status = "okay";
+};
+
 &pinctrl {
        bt {
                bt_enable_h: bt-enable-h {
                };
        };
 
-       pcie {
-               pcie_pwr_en: pcie-pwr-en {
-                       rockchip,pins = <2 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
+       es8316 {
+               hp_detect: hp-detect {
+                       rockchip,pins = <1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
                };
-       };
 
-       sdio0 {
-               sdio0_bus4: sdio0-bus4 {
-                       rockchip,pins = <2 RK_PC4 1 &pcfg_pull_up_20ma>,
-                                       <2 RK_PC5 1 &pcfg_pull_up_20ma>,
-                                       <2 RK_PC6 1 &pcfg_pull_up_20ma>,
-                                       <2 RK_PC7 1 &pcfg_pull_up_20ma>;
+               hp_int: hp-int {
+                       rockchip,pins = <1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up>;
                };
+       };
 
-               sdio0_cmd: sdio0-cmd {
-                       rockchip,pins = <2 RK_PD0 1 &pcfg_pull_up_20ma>;
+       leds {
+               user_led2: user-led2 {
+                       rockchip,pins = <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
                };
+       };
 
-               sdio0_clk: sdio0-clk {
-                       rockchip,pins = <2 RK_PD1 1 &pcfg_pull_none_20ma>;
+       pcie {
+               pcie_pwr_en: pcie-pwr-en {
+                       rockchip,pins = <2 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
                };
        };
 
                };
        };
 
+       sdio0 {
+               sdio0_bus4: sdio0-bus4 {
+                       rockchip,pins = <2 RK_PC4 1 &pcfg_pull_up_20ma>,
+                                       <2 RK_PC5 1 &pcfg_pull_up_20ma>,
+                                       <2 RK_PC6 1 &pcfg_pull_up_20ma>,
+                                       <2 RK_PC7 1 &pcfg_pull_up_20ma>;
+               };
+
+               sdio0_cmd: sdio0-cmd {
+                       rockchip,pins = <2 RK_PD0 1 &pcfg_pull_up_20ma>;
+               };
+
+               sdio0_clk: sdio0-clk {
+                       rockchip,pins = <2 RK_PD1 1 &pcfg_pull_none_20ma>;
+               };
+       };
+
        usb-typec {
                vcc5v0_typec_en: vcc5v0-typec-en {
                        rockchip,pins = <1 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>;
        };
 };
 
+&pmu_io_domains {
+       pmu1830-supply = <&vcc_3v0>;
+       status = "okay";
+};
+
 &pwm2 {
        status = "okay";
 };
        vref-supply = <&vcc_1v8>;
 };
 
+&sdhci {
+       bus-width = <8>;
+       mmc-hs400-1_8v;
+       mmc-hs400-enhanced-strobe;
+       non-removable;
+       status = "okay";
+};
+
 &sdio0 {
        #address-cells = <1>;
        #size-cells = <0>;
        status = "okay";
 };
 
-&sdhci {
-       bus-width = <8>;
-       mmc-hs400-1_8v;
-       mmc-hs400-enhanced-strobe;
-       non-removable;
-       status = "okay";
+&spdif {
+
+       spdif_p0: port {
+               spdif_p0_0: endpoint {
+                       remote-endpoint = <&dit_p0_0>;
+               };
+       };
 };
 
 &tcphy0 {
        status = "okay";
 };
 
-&usbdrd_dwc3_0 {
+&usbdrd3_1 {
        status = "okay";
-       dr_mode = "host";
 };
 
-&usbdrd3_1 {
+&usbdrd_dwc3_0 {
        status = "okay";
+       dr_mode = "host";
 };
 
 &usbdrd_dwc3_1 {
diff --git a/arch/arm/dts/rk3399-rock-pi-4b.dts b/arch/arm/dts/rk3399-rock-pi-4b.dts
deleted file mode 100644 (file)
index 6c63e61..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
-/*
- * Copyright (c) 2019 Akash Gajjar <Akash_Gajjar@mentor.com>
- * Copyright (c) 2019 Pragnesh Patel <Pragnesh_Patel@mentor.com>
- */
-
-/dts-v1/;
-#include "rk3399-rock-pi-4.dtsi"
-
-/ {
-       model = "Radxa ROCK Pi 4B";
-       compatible = "radxa,rockpi4b", "radxa,rockpi4", "rockchip,rk3399";
-
-       aliases {
-               mmc2 = &sdio0;
-       };
-};
-
-&sdio0 {
-       status = "okay";
-
-       brcmf: wifi@1 {
-               compatible = "brcm,bcm4329-fmac";
-               reg = <1>;
-               interrupt-parent = <&gpio0>;
-               interrupts = <RK_PA3 GPIO_ACTIVE_HIGH>;
-               interrupt-names = "host-wake";
-               pinctrl-names = "default";
-               pinctrl-0 = <&wifi_host_wake_l>;
-       };
-};
-
-&uart0 {
-       status = "okay";
-
-       bluetooth {
-               compatible = "brcm,bcm43438-bt";
-               clocks = <&rk808 1>;
-               clock-names = "ext_clock";
-               device-wakeup-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>;
-               host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>;
-               shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>;
-               pinctrl-names = "default";
-               pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_enable_h>;
-       };
-};
index 99169bcd51c03dabd5576d1a64e226f510128b30..4053ba72618c2e3fa594e89d1da8ad9dab2c2318 100644 (file)
        };
 };
 
+&es8316 {
+       pinctrl-0 = <&hp_detect &hp_int>;
+       pinctrl-names = "default";
+       interrupt-parent = <&gpio1>;
+       interrupts = <RK_PA1 IRQ_TYPE_LEVEL_HIGH>;
+};
+
 &sdio0 {
        status = "okay";
 
                compatible = "brcm,bcm4329-fmac";
                reg = <1>;
                interrupt-parent = <&gpio0>;
-               interrupts = <RK_PA3 GPIO_ACTIVE_HIGH>;
+               interrupts = <RK_PA3 IRQ_TYPE_LEVEL_HIGH>;
                interrupt-names = "host-wake";
                pinctrl-names = "default";
                pinctrl-0 = <&wifi_host_wake_l>;
        };
 };
 
+&sound {
+       hp-det-gpio = <&gpio1 RK_PA0 GPIO_ACTIVE_HIGH>;
+};
+
 &uart0 {
        status = "okay";
 
        bluetooth {
-               compatible = "brcm,bcm43438-bt";
+               compatible = "brcm,bcm4345c5";
                clocks = <&rk808 1>;
-               clock-names = "ext_clock";
+               clock-names = "lpo";
                device-wakeup-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>;
                host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>;
                shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>;
+               max-speed = <1500000>;
                pinctrl-names = "default";
                pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_enable_h>;
+               vbat-supply = <&vcc3v3_sys>;
+               vddio-supply = <&vcc_1v8>;
        };
 };