]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: rk356x: Sync device tree from linux v6.7
authorJonas Karlman <jonas@kwiboo.se>
Fri, 26 Jan 2024 22:14:49 +0000 (22:14 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Sun, 4 Feb 2024 10:47:25 +0000 (18:47 +0800)
Sync rk356x device tree from linux v6.7.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
13 files changed:
arch/arm/dts/rk3566-anbernic-rgxx3.dtsi
arch/arm/dts/rk3566-quartz64-a.dts
arch/arm/dts/rk3566-quartz64-b.dts
arch/arm/dts/rk3566-radxa-cm3-io.dts
arch/arm/dts/rk3566-soquartz.dtsi
arch/arm/dts/rk3568-evb.dts
arch/arm/dts/rk3568-lubancat-2.dts
arch/arm/dts/rk3568-nanopi-r5s.dtsi
arch/arm/dts/rk3568-odroid-m1.dts
arch/arm/dts/rk3568-radxa-cm3i.dtsi
arch/arm/dts/rk3568-rock-3a.dts
arch/arm/dts/rk356x.dtsi
include/dt-bindings/clock/rk3568-cru.h

index ad43fa199ca553d3c5339dd31029dede3cc2e3fe..8cbf3d9a4f22ee975fe45616c31c71f351597b0b 100644 (file)
                };
        };
 
-       leds: gpio-leds {
-               compatible = "gpio-leds";
-               pinctrl-0 = <&led_pins>;
-               pinctrl-names = "default";
+       leds: pwm-leds {
+               compatible = "pwm-leds";
 
                green_led: led-0 {
                        color = <LED_COLOR_ID_GREEN>;
                        default-state = "on";
                        function = LED_FUNCTION_POWER;
-                       gpios = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>;
+                       max-brightness = <255>;
+                       pwms = <&pwm6 0 25000 0>;
                };
 
                amber_led: led-1 {
                        color = <LED_COLOR_ID_AMBER>;
                        function = LED_FUNCTION_CHARGING;
-                       gpios = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>;
-                       retain-state-suspended;
+                       max-brightness = <255>;
+                       pwms = <&pwm7 0 25000 0>;
                };
 
                red_led: led-2 {
                        color = <LED_COLOR_ID_RED>;
                        default-state = "off";
                        function = LED_FUNCTION_STATUS;
-                       gpios = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>;
+                       max-brightness = <255>;
+                       pwms = <&pwm0 0 25000 0>;
                };
        };
 
                                regulator-boot-on;
                                regulator-min-microvolt = <500000>;
                                regulator-max-microvolt = <1350000>;
-                               regulator-init-microvolt = <900000>;
                                regulator-ramp-delay = <6001>;
                                regulator-initial-mode = <0x2>;
                                regulator-name = "vdd_logic";
                                regulator-boot-on;
                                regulator-min-microvolt = <500000>;
                                regulator-max-microvolt = <1350000>;
-                               regulator-init-microvolt = <900000>;
                                regulator-ramp-delay = <6001>;
                                regulator-initial-mode = <0x2>;
                                regulator-name = "vdd_gpu";
                regulator-boot-on;
                regulator-min-microvolt = <712500>;
                regulator-max-microvolt = <1390000>;
-               regulator-init-microvolt = <900000>;
                regulator-name = "vdd_cpu";
                regulator-ramp-delay = <2300>;
                vin-supply = <&vcc_sys>;
                };
        };
 
-       gpio-led {
-               led_pins: led-pins {
-                       rockchip,pins =
-                               <0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>,
-                               <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>,
-                               <0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>;
-               };
-       };
-
        joy-mux {
                joy_mux_en: joy-mux-en {
                        rockchip,pins =
        vccio7-supply = <&vcc_3v3>;
 };
 
+&pwm0 {
+       pinctrl-0 = <&pwm0m1_pins>;
+       pinctrl-names = "default";
+       status = "okay";
+};
+
 &pwm5 {
        status = "okay";
 };
 
+&pwm6 {
+       status = "okay";
+};
+
+&pwm7 {
+       status = "okay";
+};
+
 &saradc {
        vref-supply = <&vcc_1v8>;
        status = "okay";
index 25a8c781f4e755fda3b7364ae514359a3cad422d..854d02b46e6fcd72144b57a30079513767a07180 100644 (file)
                                regulator-boot-on;
                                regulator-min-microvolt = <500000>;
                                regulator-max-microvolt = <1350000>;
-                               regulator-init-microvolt = <900000>;
                                regulator-ramp-delay = <6001>;
                                regulator-initial-mode = <0x2>;
                                regulator-name = "vdd_logic";
                                regulator-boot-on;
                                regulator-min-microvolt = <500000>;
                                regulator-max-microvolt = <1350000>;
-                               regulator-init-microvolt = <900000>;
                                regulator-ramp-delay = <6001>;
                                regulator-initial-mode = <0x2>;
                                regulator-name = "vdd_gpu";
index b276eb0810c70e692a6a3b6792480d77a8e618a4..2d92713be2a09f97ca603cbb64bdc49fd4fc00db 100644 (file)
                                regulator-boot-on;
                                regulator-min-microvolt = <500000>;
                                regulator-max-microvolt = <1350000>;
-                               regulator-init-microvolt = <900000>;
                                regulator-ramp-delay = <6001>;
 
                                regulator-state-mem {
                                regulator-boot-on;
                                regulator-min-microvolt = <900000>;
                                regulator-max-microvolt = <1350000>;
-                               regulator-init-microvolt = <900000>;
                                regulator-ramp-delay = <6001>;
 
                                regulator-state-mem {
index 5e4236af4fcb8ee34da816017ccd591f3b0826b1..1b1c67d5b1ef335ed546ec7bea07b8a611da83e9 100644 (file)
 
 &mdio1 {
        rgmii_phy1: ethernet-phy@0 {
-               compatible="ethernet-phy-ieee802.3-c22";
-               reg= <0x0>;
+               compatible = "ethernet-phy-ieee802.3-c22";
+               reg = <0x0>;
        };
 };
 
index 31aa2b8efe39314087190027c495cb2b4a26c163..63bae36b8f7e7d621b8961182e5a799bd5d05f5a 100644 (file)
                                regulator-boot-on;
                                regulator-min-microvolt = <500000>;
                                regulator-max-microvolt = <1350000>;
-                               regulator-init-microvolt = <900000>;
                                regulator-ramp-delay = <6001>;
                                regulator-initial-mode = <0x2>;
                                regulator-state-mem {
                                regulator-boot-on;
                                regulator-min-microvolt = <500000>;
                                regulator-max-microvolt = <1350000>;
-                               regulator-init-microvolt = <900000>;
                                regulator-ramp-delay = <6001>;
                                regulator-initial-mode = <0x2>;
                                        regulator-state-mem {
                                regulator-boot-on;
                                regulator-min-microvolt = <500000>;
                                regulator-max-microvolt = <1350000>;
-                               regulator-init-microvolt = <900000>;
                                regulator-initial-mode = <0x2>;
                                regulator-name = "vdd_npu";
                                regulator-state-mem {
index 674792567fa6e288c94169406cd69b0e2262d5b2..19f8fc369b1308cdfe8bfaa3b49e6f6b5134bb27 100644 (file)
                                regulator-name = "vdd_logic";
                                regulator-always-on;
                                regulator-boot-on;
-                               regulator-init-microvolt = <900000>;
                                regulator-initial-mode = <0x2>;
                                regulator-min-microvolt = <500000>;
                                regulator-max-microvolt = <1350000>;
                        vdd_gpu: DCDC_REG2 {
                                regulator-name = "vdd_gpu";
                                regulator-always-on;
-                               regulator-init-microvolt = <900000>;
                                regulator-initial-mode = <0x2>;
                                regulator-min-microvolt = <500000>;
                                regulator-max-microvolt = <1350000>;
 
                        vdd_npu: DCDC_REG4 {
                                regulator-name = "vdd_npu";
-                               regulator-init-microvolt = <900000>;
                                regulator-initial-mode = <0x2>;
                                regulator-min-microvolt = <500000>;
                                regulator-max-microvolt = <1350000>;
index e653b067aa5d983d73c9965bdf8c475a97cfd10e..a8a4cc190eb32e2cf18d9ab7f8549a96c12a6465 100644 (file)
                                regulator-boot-on;
                                regulator-min-microvolt = <500000>;
                                regulator-max-microvolt = <1350000>;
-                               regulator-init-microvolt = <900000>;
                                regulator-ramp-delay = <6001>;
                                regulator-initial-mode = <0x2>;
 
                                regulator-boot-on;
                                regulator-min-microvolt = <500000>;
                                regulator-max-microvolt = <1350000>;
-                               regulator-init-microvolt = <900000>;
                                regulator-ramp-delay = <6001>;
                                regulator-initial-mode = <0x2>;
 
                                regulator-boot-on;
                                regulator-min-microvolt = <500000>;
                                regulator-max-microvolt = <1350000>;
-                               regulator-init-microvolt = <900000>;
                                regulator-ramp-delay = <6001>;
                                regulator-initial-mode = <0x2>;
 
index 58ba328ea782476ce01b4377b197870017806068..93189f830640066a3f979fb6b84a36f67b9ffbd5 100644 (file)
                                regulator-name = "vdd_logic";
                                regulator-always-on;
                                regulator-boot-on;
-                               regulator-init-microvolt = <900000>;
                                regulator-initial-mode = <0x2>;
                                regulator-min-microvolt = <500000>;
                                regulator-max-microvolt = <1350000>;
                        vdd_gpu: DCDC_REG2 {
                                regulator-name = "vdd_gpu";
                                regulator-always-on;
-                               regulator-init-microvolt = <900000>;
                                regulator-initial-mode = <0x2>;
                                regulator-min-microvolt = <500000>;
                                regulator-max-microvolt = <1350000>;
 
                        vdd_npu: DCDC_REG4 {
                                regulator-name = "vdd_npu";
-                               regulator-init-microvolt = <900000>;
                                regulator-initial-mode = <0x2>;
                                regulator-min-microvolt = <500000>;
                                regulator-max-microvolt = <1350000>;
index 59ecf868dbd0e5f2e201a653aee6ae3054bd4a1b..a337f547caf538105a6e1644466ba62af44bc395 100644 (file)
                                regulator-name = "vdd_logic";
                                regulator-always-on;
                                regulator-boot-on;
-                               regulator-init-microvolt = <900000>;
                                regulator-initial-mode = <0x2>;
                                regulator-min-microvolt = <500000>;
                                regulator-max-microvolt = <1350000>;
                        vdd_gpu: DCDC_REG2 {
                                regulator-name = "vdd_gpu";
                                regulator-always-on;
-                               regulator-init-microvolt = <900000>;
                                regulator-initial-mode = <0x2>;
                                regulator-min-microvolt = <500000>;
                                regulator-max-microvolt = <1350000>;
 
                        vdd_npu: DCDC_REG4 {
                                regulator-name = "vdd_npu";
-                               regulator-init-microvolt = <900000>;
                                regulator-initial-mode = <0x2>;
                                regulator-min-microvolt = <500000>;
                                regulator-max-microvolt = <1350000>;
index c50fbdd48680ca7273fdcd53f7fef527d8e1c008..45b03dcbbad455d5c02d62bbbd09eb1d5f2e4e2f 100644 (file)
                                regulator-name = "vdd_logic";
                                regulator-always-on;
                                regulator-boot-on;
-                               regulator-init-microvolt = <900000>;
                                regulator-initial-mode = <0x2>;
                                regulator-min-microvolt = <500000>;
                                regulator-max-microvolt = <1350000>;
                        vdd_gpu: DCDC_REG2 {
                                regulator-name = "vdd_gpu";
                                regulator-always-on;
-                               regulator-init-microvolt = <900000>;
                                regulator-initial-mode = <0x2>;
                                regulator-min-microvolt = <500000>;
                                regulator-max-microvolt = <1350000>;
 
                        vdd_npu: DCDC_REG4 {
                                regulator-name = "vdd_npu";
-                               regulator-init-microvolt = <900000>;
                                regulator-initial-mode = <0x2>;
                                regulator-min-microvolt = <500000>;
                                regulator-max-microvolt = <1350000>;
index 917f5b2b8aab828662a871d03ad4fd8707db670f..a5e974ea659e2eb274d5ee65ebbecc61300db164 100644 (file)
@@ -15,6 +15,7 @@
                ethernet0 = &gmac1;
                mmc0 = &sdhci;
                mmc1 = &sdmmc0;
+               mmc2 = &sdmmc2;
        };
 
        chosen: chosen {
                                regulator-name = "vdd_logic";
                                regulator-always-on;
                                regulator-boot-on;
-                               regulator-init-microvolt = <900000>;
                                regulator-initial-mode = <0x2>;
                                regulator-min-microvolt = <500000>;
                                regulator-max-microvolt = <1350000>;
                        vdd_gpu: DCDC_REG2 {
                                regulator-name = "vdd_gpu";
                                regulator-always-on;
-                               regulator-init-microvolt = <900000>;
                                regulator-initial-mode = <0x2>;
                                regulator-min-microvolt = <500000>;
                                regulator-max-microvolt = <1350000>;
 
                        vdd_npu: DCDC_REG4 {
                                regulator-name = "vdd_npu";
-                               regulator-init-microvolt = <900000>;
                                regulator-initial-mode = <0x2>;
                                regulator-min-microvolt = <500000>;
                                regulator-max-microvolt = <1350000>;
        non-removable;
        pinctrl-names = "default";
        pinctrl-0 = <&sdmmc2m0_bus4 &sdmmc2m0_cmd &sdmmc2m0_clk>;
+       sd-uhs-sdr12;
+       sd-uhs-sdr25;
+       sd-uhs-sdr50;
        sd-uhs-sdr104;
        vmmc-supply = <&vcc3v3_sys>;
        vqmmc-supply = <&vcc_1v8>;
index 61680c7ac4899c3f77ede57c4d4f3b31747fc1e4..c19c0f1b3778fe79f68d3657cb2b6512f70913f2 100644 (file)
                #iommu-cells = <0>;
        };
 
+       rga: rga@fdeb0000 {
+               compatible = "rockchip,rk3568-rga", "rockchip,rk3288-rga";
+               reg = <0x0 0xfdeb0000 0x0 0x180>;
+               interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
+               clocks = <&cru ACLK_RGA>, <&cru HCLK_RGA>, <&cru CLK_RGA_CORE>;
+               clock-names = "aclk", "hclk", "sclk";
+               resets = <&cru SRST_RGA_CORE>, <&cru SRST_A_RGA>, <&cru SRST_H_RGA>;
+               reset-names = "core", "axi", "ahb";
+               power-domains = <&power RK3568_PD_RGA>;
+       };
+
        vepu: video-codec@fdee0000 {
                compatible = "rockchip,rk3568-vepu";
                reg = <0x0 0xfdee0000 0x0 0x800>;
                reg = <0x0 0xfe1a8100 0x0 0x20>;
        };
 
+       dfi: dfi@fe230000 {
+               compatible = "rockchip,rk3568-dfi";
+               reg = <0x00 0xfe230000 0x00 0x400>;
+               interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
+               rockchip,pmu = <&pmugrf>;
+       };
+
        pcie2x1: pcie@fe260000 {
                compatible = "rockchip,rk3568-pcie";
                reg = <0x3 0xc0000000 0x0 0x00400000>,
                             <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>,
                             <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
                             <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
-               interrupt-names = "sys", "pmc", "msi", "legacy", "err";
+               interrupt-names = "sys", "pmc", "msg", "legacy", "err";
                bus-range = <0x0 0xf>;
                clocks = <&cru ACLK_PCIE20_MST>, <&cru ACLK_PCIE20_SLV>,
                         <&cru ACLK_PCIE20_DBI>, <&cru PCLK_PCIE20>,
index c1942422a4389bf27869124dd582e1c77c0e1b30..d29890865150d3c6e371e3fd589116db91c7764e 100644 (file)
 #define CPLL_50M               415
 #define CPLL_25M               416
 #define CPLL_100M              417
+#define SCLK_DDRCLK            418
 
 #define PCLK_CORE_PVTM         450