]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
arm64: dts: rockchip: add mipi dcphy nodes to rk3588
authorHeiko Stuebner <heiko.stuebner@cherry.de>
Wed, 26 Feb 2025 14:09:40 +0000 (15:09 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Sat, 26 Apr 2025 17:48:23 +0000 (19:48 +0200)
Add the two MIPI-DC-phy nodes to the RK3588, that will be used by the
DSI2 controllers and hopefully in some future also for camera input.

Signed-off-by: Heiko Stuebner <heiko.stuebner@cherry.de>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Tested-by: Sebastian Reichel <sebastian.reichel@collabora.com> # RK3588 EVB1
Link: https://lore.kernel.org/r/20250226140942.3825223-2-heiko@sntech.de
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3588-base.dtsi

index 064235253dab25c864a3a977faebafa9b9f81b6a..944721f314b1ad23156fc5a82370d2acd0a35bd1 100644 (file)
                reg = <0x0 0xfd58c000 0x0 0x1000>;
        };
 
+       mipidcphy0_grf: syscon@fd5e8000 {
+               compatible = "rockchip,rk3588-dcphy-grf", "syscon";
+               reg = <0x0 0xfd5e8000 0x0 0x4000>;
+       };
+
+       mipidcphy1_grf: syscon@fd5ec000 {
+               compatible = "rockchip,rk3588-dcphy-grf", "syscon";
+               reg = <0x0 0xfd5ec000 0x0 0x4000>;
+       };
+
        vop_grf: syscon@fd5a4000 {
                compatible = "rockchip,rk3588-vop-grf", "syscon";
                reg = <0x0 0xfd5a4000 0x0 0x2000>;
                status = "disabled";
        };
 
+       mipidcphy0: phy@feda0000 {
+               compatible = "rockchip,rk3588-mipi-dcphy";
+               reg = <0x0 0xfeda0000 0x0 0x10000>;
+               rockchip,grf = <&mipidcphy0_grf>;
+               clocks = <&cru PCLK_MIPI_DCPHY0>,
+                        <&cru CLK_USBDPPHY_MIPIDCPPHY_REF>;
+               clock-names = "pclk", "ref";
+               resets = <&cru SRST_M_MIPI_DCPHY0>,
+                        <&cru SRST_P_MIPI_DCPHY0>,
+                        <&cru SRST_P_MIPI_DCPHY0_GRF>,
+                        <&cru SRST_S_MIPI_DCPHY0>;
+               reset-names = "m_phy", "apb", "grf", "s_phy";
+               #phy-cells = <1>;
+               status = "disabled";
+       };
+
+       mipidcphy1: phy@fedb0000 {
+               compatible = "rockchip,rk3588-mipi-dcphy";
+               reg = <0x0 0xfedb0000 0x0 0x10000>;
+               rockchip,grf = <&mipidcphy1_grf>;
+               clocks = <&cru PCLK_MIPI_DCPHY1>,
+                        <&cru CLK_USBDPPHY_MIPIDCPPHY_REF>;
+               clock-names = "pclk", "ref";
+               resets = <&cru SRST_M_MIPI_DCPHY1>,
+                        <&cru SRST_P_MIPI_DCPHY1>,
+                        <&cru SRST_P_MIPI_DCPHY1_GRF>,
+                        <&cru SRST_S_MIPI_DCPHY1>;
+               reset-names = "m_phy", "apb", "grf", "s_phy";
+               #phy-cells = <1>;
+               status = "disabled";
+       };
+
        combphy0_ps: phy@fee00000 {
                compatible = "rockchip,rk3588-naneng-combphy";
                reg = <0x0 0xfee00000 0x0 0x100>;