]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: rk3328: Sync device tree from linux v6.8-rc1
authorJonas Karlman <jonas@kwiboo.se>
Sat, 17 Feb 2024 00:22:37 +0000 (00:22 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Thu, 14 Mar 2024 03:40:48 +0000 (11:40 +0800)
Sync rk3328 device tree from linux v6.8-rc1.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/dts/rk3328-evb.dts
arch/arm/dts/rk3328-nanopi-r2s.dts
arch/arm/dts/rk3328-orangepi-r1-plus-lts.dts
arch/arm/dts/rk3328-orangepi-r1-plus.dts
arch/arm/dts/rk3328-roc-cc.dts
arch/arm/dts/rk3328-rock-pi-e.dts
arch/arm/dts/rk3328-rock64.dts
arch/arm/dts/rk3328-u-boot.dtsi
arch/arm/dts/rk3328.dtsi

index ff6b466e0e07442b10ba97d9ba129f1cc36fbeb8..1eef5504445fa9eaffd135980e955309ef8c2126 100644 (file)
@@ -11,6 +11,7 @@
        compatible = "rockchip,rk3328-evb", "rockchip,rk3328";
 
        aliases {
+               ethernet0 = &gmac2phy;
                mmc0 = &sdmmc;
                mmc1 = &sdio;
                mmc2 = &emmc;
index 3857d487ab84cfcd7aadec403a259f8a266987eb..a4399da7d8b1ad4652060b53f00f05ae2c9c33e7 100644 (file)
@@ -14,6 +14,7 @@
        compatible = "friendlyarm,nanopi-r2s", "rockchip,rk3328";
 
        aliases {
+               ethernet0 = &gmac2io;
                ethernet1 = &rtl8153;
                mmc0 = &sdmmc;
        };
@@ -34,7 +35,7 @@
                pinctrl-0 = <&reset_button_pin>;
                pinctrl-names = "default";
 
-               reset {
+               key-reset {
                        label = "reset";
                        gpios = <&gpio0 RK_PA0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
index 5d7d567283e525b664592d772d48ff7a9669c9aa..4237f2ee8fee3370711d376313c7f966ab597995 100644 (file)
                        compatible = "ethernet-phy-ieee802.3-c22";
                        reg = <0>;
 
+                       motorcomm,auto-sleep-disabled;
                        motorcomm,clk-out-frequency-hz = <125000000>;
                        motorcomm,keep-pll-enabled;
-                       motorcomm,auto-sleep-disabled;
+                       motorcomm,rx-clk-drv-microamp = <5020>;
+                       motorcomm,rx-data-drv-microamp = <5020>;
 
                        pinctrl-0 = <&eth_phy_reset_pin>;
                        pinctrl-names = "default";
index dc83d74045a3c1660b8695e4fd90b6535bed9a8b..f20662929c7713c918c43a8633853571ce8b1274 100644 (file)
@@ -15,6 +15,7 @@
        compatible = "xunlong,orangepi-r1-plus", "rockchip,rk3328";
 
        aliases {
+               ethernet0 = &gmac2io;
                ethernet1 = &rtl8153;
                mmc0 = &sdmmc;
        };
index aa22a0c222655f0616a2142f9e1e8d25642ad1c2..414897a57e757045e5d5a036568f56d004dcba99 100644 (file)
@@ -11,6 +11,7 @@
        compatible = "firefly,roc-rk3328-cc", "rockchip,rk3328";
 
        aliases {
+               ethernet0 = &gmac2io;
                mmc0 = &sdmmc;
                mmc1 = &emmc;
        };
@@ -96,7 +97,6 @@
                        linux,default-trigger = "heartbeat";
                        gpios = <&rk805 1 GPIO_ACTIVE_LOW>;
                        default-state = "on";
-                       mode = <0x23>;
                };
 
                user_led: led-1 {
                        linux,default-trigger = "mmc1";
                        gpios = <&rk805 0 GPIO_ACTIVE_LOW>;
                        default-state = "off";
-                       mode = <0x05>;
                };
        };
 };
index 018a3a5075c72ed013ea33b7a7a8b16a24675a40..3cda6c627b681e7b470643372148651878e38165 100644 (file)
@@ -21,6 +21,8 @@
        compatible = "radxa,rockpi-e", "rockchip,rk3328";
 
        aliases {
+               ethernet0 = &gmac2io;
+               ethernet1 = &gmac2phy;
                mmc0 = &sdmmc;
                mmc1 = &emmc;
        };
        status = "okay";
 };
 
+&gpio0 {
+       gpio-line-names =
+               /* GPIO0_A0 - A7 */
+               "", "", "", "", "", "", "", "",
+               /* GPIO0_B0 - B7 */
+               "", "", "", "", "", "", "", "",
+               /* GPIO0_C0 - C7 */
+               "", "", "", "", "", "", "", "",
+               /* GPIO0_D0 - D7 */
+               "", "", "", "pin-15 [GPIO0_D3]", "", "", "", "";
+};
+
+&gpio1 {
+       gpio-line-names =
+               /* GPIO1_A0 - A7 */
+               "", "", "", "", "", "", "", "",
+               /* GPIO1_B0 - B7 */
+               "", "", "", "", "", "", "", "",
+               /* GPIO1_C0 - C7 */
+               "", "", "", "", "", "", "", "",
+               /* GPIO1_D0 - D7 */
+               "", "", "", "", "pin-07 [GPIO1_D4]", "", "", "";
+};
+
+&gpio2 {
+       gpio-line-names =
+               /* GPIO2_A0 - A7 */
+               "pin-08 [GPIO2_A0]", "pin-10 [GPIO2_A1]", "pin-11 [GPIO2_A2]",
+               "pin-13 [GPIO2-A3]", "pin-27 [GPIO2_A4]", "pin-28 [GPIO2_A5]",
+               "pin-33 [GPIO2_A6]", "",
+               /* GPIO2_B0 - B7 */
+               "", "", "", "", "pin-26 [GPIO2_B4]", "", "", "pin-36 [GPIO2_B7]",
+               /* GPIO2_C0 - C7 */
+               "pin-32 [GPIO2_C0]", "pin-35 [GPIO2_C1]", "pin-12 [GPIO2_C2]",
+               "pin-38 [GPIO2_C3]", "pin-29 [GPIO2_C4]", "pin-31 [GPIO2_C5]",
+               "pin-37 [GPIO2_C6]", "pin-40 [GPIO2_C7]",
+               /* GPIO2_D0 - D7 */
+               "", "", "", "", "", "", "", "";
+};
+
+&gpio3 {
+       gpio-line-names =
+               /* GPIO3_A0 - A7 */
+               "pin-23 [GPIO3_A0]", "pin-19 [GPIO3_A1]", "pin-21 [GPIO3_A2]",
+               "", "pin-03 [GPIO3_A4]", "", "pin-05 [GPIO3_A6]", "",
+               /* GPIO3_B0 - B7 */
+               "pin-24 [GPIO3_B0]", "", "", "", "", "", "", "",
+               /* GPIO3_C0 - C7 */
+               "", "", "", "", "", "", "", "",
+               /* GPIO3_D0 - D7 */
+               "", "", "", "", "", "", "", "";
+};
+
 &i2c1 {
        status = "okay";
 
index 0a27fa5271f57684a930d4a0cd9ded6dd74d1eb2..229fe9da9c2ddc1e31ac662a6996424efe78d64e 100644 (file)
@@ -11,6 +11,7 @@
        compatible = "pine64,rock64", "rockchip,rk3328";
 
        aliases {
+               ethernet0 = &gmac2io;
                mmc0 = &sdmmc;
                mmc1 = &emmc;
        };
index ea34bf6b78bbc6aab677c644d7aeb5e99e22c76c..a030f1a5e51dc7ff5ccd81d3d65daa384c677a48 100644 (file)
                       0x0 0xff720000 0x0 0x1000
                       0x0 0xff798000 0x0 0x1000>;
        };
-
-       rng: rng@ff060000 {
-               compatible = "rockchip,rk3328-crypto";
-               reg = <0x0 0xff060000 0x0 0x4000>;
-               status = "okay";
-       };
 };
 
 &cru {
index e8d8f00be8aadf547f408b3acbb62ed5980c0304..fe81b97bbe78e87bf6bc9968c9afb166a256901e 100644 (file)
        #size-cells = <2>;
 
        aliases {
+               gpio0 = &gpio0;
+               gpio1 = &gpio1;
+               gpio2 = &gpio2;
+               gpio3 = &gpio3;
                serial0 = &uart0;
                serial1 = &uart1;
                serial2 = &uart2;
@@ -27,8 +31,6 @@
                i2c1 = &i2c1;
                i2c2 = &i2c2;
                i2c3 = &i2c3;
-               ethernet0 = &gmac2io;
-               ethernet1 = &gmac2phy;
        };
 
        cpus {
 
                l2: l2-cache0 {
                        compatible = "cache";
+                       cache-level = <2>;
+                       cache-unified;
                };
        };
 
-       cpu0_opp_table: opp_table0 {
+       cpu0_opp_table: opp-table-0 {
                compatible = "operating-points-v2";
                opp-shared;
 
                        };
                        power-domain@RK3328_PD_VIDEO {
                                reg = <RK3328_PD_VIDEO>;
+                               clocks = <&cru ACLK_RKVDEC>,
+                                        <&cru HCLK_RKVDEC>,
+                                        <&cru SCLK_VDEC_CABAC>,
+                                        <&cru SCLK_VDEC_CORE>;
                                #power-domain-cells = <0>;
                        };
                        power-domain@RK3328_PD_VPU {
                status = "disabled";
        };
 
-       dmac: dmac@ff1f0000 {
+       dmac: dma-controller@ff1f0000 {
                compatible = "arm,pl330", "arm,primecell";
                reg = <0x0 0xff1f0000 0x0 0x4000>;
                interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
 
        gpu: gpu@ff300000 {
                compatible = "rockchip,rk3328-mali", "arm,mali-450";
-               reg = <0x0 0xff300000 0x0 0x40000>;
+               reg = <0x0 0xff300000 0x0 0x30000>;
                interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>,
                             <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>,
                             <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>,
                compatible = "rockchip,iommu";
                reg = <0x0 0xff330200 0 0x100>;
                interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
-               interrupt-names = "h265e_mmu";
                clocks = <&cru ACLK_H265>, <&cru PCLK_H265>;
                clock-names = "aclk", "iface";
                #iommu-cells = <0>;
                compatible = "rockchip,iommu";
                reg = <0x0 0xff340800 0x0 0x40>;
                interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
-               interrupt-names = "vepu_mmu";
                clocks = <&cru ACLK_VPU>, <&cru HCLK_VPU>;
                clock-names = "aclk", "iface";
                #iommu-cells = <0>;
                compatible = "rockchip,iommu";
                reg = <0x0 0xff350800 0x0 0x40>;
                interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
-               interrupt-names = "vpu_mmu";
                clocks = <&cru ACLK_VPU>, <&cru HCLK_VPU>;
                clock-names = "aclk", "iface";
                #iommu-cells = <0>;
                power-domains = <&power RK3328_PD_VPU>;
        };
 
-       rkvdec_mmu: iommu@ff360480 {
+       vdec: video-codec@ff360000 {
+               compatible = "rockchip,rk3328-vdec", "rockchip,rk3399-vdec";
+               reg = <0x0 0xff360000 0x0 0x480>;
+               interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
+               clocks = <&cru ACLK_RKVDEC>, <&cru HCLK_RKVDEC>,
+                        <&cru SCLK_VDEC_CABAC>, <&cru SCLK_VDEC_CORE>;
+               clock-names = "axi", "ahb", "cabac", "core";
+               assigned-clocks = <&cru ACLK_RKVDEC>, <&cru SCLK_VDEC_CABAC>,
+                                 <&cru SCLK_VDEC_CORE>;
+               assigned-clock-rates = <400000000>, <400000000>, <300000000>;
+               iommus = <&vdec_mmu>;
+               power-domains = <&power RK3328_PD_VIDEO>;
+       };
+
+       vdec_mmu: iommu@ff360480 {
                compatible = "rockchip,iommu";
                reg = <0x0 0xff360480 0x0 0x40>, <0x0 0xff3604c0 0x0 0x40>;
                interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
-               interrupt-names = "rkvdec_mmu";
                clocks = <&cru ACLK_RKVDEC>, <&cru HCLK_RKVDEC>;
                clock-names = "aclk", "iface";
                #iommu-cells = <0>;
-               status = "disabled";
+               power-domains = <&power RK3328_PD_VIDEO>;
        };
 
        vop: vop@ff370000 {
                compatible = "rockchip,iommu";
                reg = <0x0 0xff373f00 0x0 0x100>;
                interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
-               interrupt-names = "vop_mmu";
                clocks = <&cru ACLK_VOP>, <&cru HCLK_VOP>;
                clock-names = "aclk", "iface";
                #iommu-cells = <0>;
                resets = <&cru SRST_GMAC2IO_A>;
                reset-names = "stmmaceth";
                rockchip,grf = <&grf>;
+               tx-fifo-depth = <2048>;
+               rx-fifo-depth = <4096>;
                snps,txpbl = <0x4>;
                status = "disabled";
        };
                reset-names = "stmmaceth";
                phy-mode = "rmii";
                phy-handle = <&phy>;
+               tx-fifo-depth = <2048>;
+               rx-fifo-depth = <4096>;
                snps,txpbl = <0x4>;
                clock_in_out = "output";
                status = "disabled";
                      (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
        };
 
+       crypto: crypto@ff060000 {
+               compatible = "rockchip,rk3328-crypto";
+               reg = <0x0 0xff060000 0x0 0x4000>;
+               interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
+               clocks = <&cru HCLK_CRYPTO_MST>, <&cru HCLK_CRYPTO_SLV>,
+                        <&cru SCLK_CRYPTO>;
+               clock-names = "hclk_master", "hclk_slave", "sclk";
+               resets = <&cru SRST_CRYPTO>;
+               reset-names = "crypto-rst";
+       };
+
        pinctrl: pinctrl {
                compatible = "rockchip,rk3328-pinctrl";
                rockchip,grf = <&grf>;
                #size-cells = <2>;
                ranges;
 
-               gpio0: gpio0@ff210000 {
+               gpio0: gpio@ff210000 {
                        compatible = "rockchip,gpio-bank";
                        reg = <0x0 0xff210000 0x0 0x100>;
                        interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
                        #interrupt-cells = <2>;
                };
 
-               gpio1: gpio1@ff220000 {
+               gpio1: gpio@ff220000 {
                        compatible = "rockchip,gpio-bank";
                        reg = <0x0 0xff220000 0x0 0x100>;
                        interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
                        #interrupt-cells = <2>;
                };
 
-               gpio2: gpio2@ff230000 {
+               gpio2: gpio@ff230000 {
                        compatible = "rockchip,gpio-bank";
                        reg = <0x0 0xff230000 0x0 0x100>;
                        interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
                        #interrupt-cells = <2>;
                };
 
-               gpio3: gpio3@ff240000 {
+               gpio3: gpio@ff240000 {
                        compatible = "rockchip,gpio-bank";
                        reg = <0x0 0xff240000 0x0 0x100>;
                        interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;