]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: dts: rockchip: rk3288: partial sync edp node
authorJohan Jonker <jbx6244@gmail.com>
Wed, 15 Mar 2023 18:33:50 +0000 (19:33 +0100)
committerKever Yang <kever.yang@rock-chips.com>
Fri, 21 Apr 2023 07:16:01 +0000 (15:16 +0800)
The rk3288 edp node has a phy node in Linux with a clock
property while current U-Boot driver expects this clock
on position index 1. Move U-Boot-specific DT clock properties
to rk3288-u-boot.dtsi and partially sync the edp node.

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org> # chromebook-jerry
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/dts/rk3288-u-boot.dtsi
arch/arm/dts/rk3288.dtsi

index 18941621530f0ce5daed3e2fcbc5439081399ab9..19206988845f2df9c5c6dec53b0c2fd9e0d775a1 100644 (file)
        bootph-all;
 };
 
+&edp {
+       clocks = <&cru SCLK_EDP>, <&cru SCLK_EDP_24M>, <&cru PCLK_EDP_CTRL>;
+       clock-names = "clk_edp", "clk_edp_24m", "pclk_edp";
+};
+
 &gpio7 {
        bootph-all;
 };
index f06d1f5bcc05c0e7b7b8dd75b974f8005bfcb83c..9f924466542bf7d925b81148285f2817541ed731 100644 (file)
        };
 
        edp: dp@ff970000 {
-               compatible = "rockchip,rk3288-edp";
+               compatible = "rockchip,rk3288-dp";
                reg = <0xff970000 0x4000>;
                interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
-               clocks = <&cru SCLK_EDP>, <&cru SCLK_EDP_24M>, <&cru PCLK_EDP_CTRL>;
-               clock-names = "clk_edp", "clk_edp_24m", "pclk_edp";
+               clocks = <&cru SCLK_EDP>, <&cru PCLK_EDP_CTRL>;
+               clock-names = "dp", "pclk";
+               phys = <&edp_phy>;
+               phy-names = "dp";
+               power-domains = <&power RK3288_PD_VIO>;
                resets = <&cru SRST_EDP>;
-               reset-names = "edp";
+               reset-names = "dp";
                rockchip,grf = <&grf>;
-               power-domains = <&power RK3288_PD_VIO>;
                status = "disabled";
 
                ports {
-                       edp_in: port {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       edp_in: port@0 {
+                               reg = <0>;
                                #address-cells = <1>;
                                #size-cells = <0>;
                                edp_in_vopb: endpoint@0 {