[PATCH 11/14] ARM: dts: rockchip: rv1126: Add MIPI DSI pipeline
Jagan Teki
jagan at edgeble.ai
Mon Jul 31 04:00:09 PDT 2023
MIPI DSI controller in RV1126 has integrated MIPI D-PHY V1.2
that supports up to 4 lanes with a 4Gbps transfer rate.
Add MIPI DSI pipeline for Rockchip RV1126.
Signed-off-by: Jagan Teki <jagan at edgeble.ai>
---
Cc: devicetree at vger.kernel.org
Cc: Rob Herring <robh+dt at kernel.org>
Cc: Krzysztof Kozlowski <krzysztof.kozlowski+dt at linaro.org>
Cc: Conor Dooley <conor+dt at kernel.org>
arch/arm/boot/dts/rockchip/rv1126.dtsi | 49 ++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
diff --git a/arch/arm/boot/dts/rockchip/rv1126.dtsi b/arch/arm/boot/dts/rockchip/rv1126.dtsi
index 9ccd1bad6229..512cc18762b6 100644
--- a/arch/arm/boot/dts/rockchip/rv1126.dtsi
+++ b/arch/arm/boot/dts/rockchip/rv1126.dtsi
@@ -276,6 +276,20 @@ cru: clock-controller at ff490000 {
#reset-cells = <1>;
};
+ dsi_dphy: mipi-dphy at ff4d0000 {
+ compatible = "rockchip,rv1126-dsi-dphy";
+ reg = <0xff4d0000 0x500>;
+ assigned-clocks = <&pmucru CLK_MIPIDSIPHY_REF>;
+ assigned-clock-rates = <24000000>;
+ clock-names = "ref", "pclk";
+ clocks = <&pmucru CLK_MIPIDSIPHY_REF>, <&cru PCLK_DSIPHY>;
+ #phy-cells = <0>;
+ power-domains = <&power RV1126_PD_VO>;
+ reset-names = "apb";
+ resets = <&cru SRST_DSIPHY_P>;
+ status = "disabled";
+ };
+
dmac: dma-controller at ff4e0000 {
compatible = "arm,pl330", "arm,primecell";
reg = <0xff4e0000 0x4000>;
@@ -420,6 +434,7 @@ vop_out_rgb: endpoint at 0 {
vop_out_dsi: endpoint at 1 {
reg = <1>;
+ remote-endpoint = <&dsi_in_vop>;
};
};
};
@@ -435,6 +450,40 @@ vop_mmu: iommu at ffb00f00 {
status = "disabled";
};
+ dsi: dsi at ffb30000 {
+ compatible = "rockchip,rv1126-mipi-dsi", "snps,dw-mipi-dsi";
+ reg = <0xffb30000 0x500>;
+ interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
+ clock-names = "pclk";
+ clocks = <&cru PCLK_DSIHOST>;
+ phy-names = "dphy";
+ phys = <&dsi_dphy>;
+ power-domains = <&power RV1126_PD_VO>;
+ reset-names = "apb";
+ resets = <&cru SRST_DSIHOST_P>;
+ rockchip,grf = <&grf>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "disabled";
+
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port at 0 {
+ reg = <0>;
+
+ dsi_in_vop: endpoint {
+ remote-endpoint = <&vop_out_dsi>;
+ };
+ };
+
+ port at 1 {
+ reg = <1>;
+ };
+ };
+ };
+
gmac: ethernet at ffc40000 {
compatible = "rockchip,rv1126-gmac", "snps,dwmac-4.20a";
reg = <0xffc40000 0x4000>;
--
2.25.1
More information about the linux-arm-kernel
mailing list