riscv:linux:vout:mipi
authorkeith.zhao <keith.zhao@starfivetech.com>
Mon, 31 Oct 2022 09:50:48 +0000 (17:50 +0800)
committerJianlong Huang <jianlong.huang@starfivetech.com>
Thu, 3 Nov 2022 09:24:54 +0000 (17:24 +0800)
mipi dsi driver add 800*1280 panel: update dts and config

Signed-off-by: keith <keith.zhao@starfivetech.com>
arch/riscv/boot/dts/starfive/jh7110-common.dtsi [changed mode: 0644->0755]
arch/riscv/boot/dts/starfive/jh7110-visionfive-v2.dtsi [changed mode: 0644->0755]
arch/riscv/boot/dts/starfive/jh7110.dtsi
arch/riscv/configs/starfive_visionfive2_defconfig [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 933f000..a399acf
 
 &mipi_dsi {
        status = "okay";
+
+       port {
+               dsi_out_port: endpoint@0 {
+                       remote-endpoint = <&panel_dsi_port>;
+               };
+               dsi_in_port: endpoint@1 {
+                       remote-endpoint = <&mipi_out>;
+               };
+       };
+
+       mipi_panel: panel@0 {
+               /*compatible = "";*/
+               status = "okay";
+       };
 };
 
 &mipi_dphy {
old mode 100644 (file)
new mode 100755 (executable)
index 53706a5..a666fd0
                reg = <0x45>;
 
                port {
-                       panel_dsi_port: endpoint {
-                               remote-endpoint = <&dsi_out_port>;
+                       panel_out0: endpoint {
+                               remote-endpoint = <&dsi0_output>;
                        };
                };
        };
 
+       panel_radxa@22 {
+               compatible ="starfive_jadard";
+               reg = <0x22>;
+               reset-gpio = <&gpio 23 0>;
+               enable-gpio = <&gpio 22 0>;
+
+               port {
+                       panel_out1: endpoint {
+                               remote-endpoint = <&dsi1_output>;
+                               };
+               };
+       };
+
 };
 
 &i2c5 {
 };
 
 &rgb_output {
-       status = "okay";
+       status = "disabled";
 
        ports {
                #address-cells = <1>;
 
                port@1 {
                        reg = <1>;
-                       mipi_out: endpoint {
+                       sf_dpi_output: endpoint {
                                remote-endpoint = <&dsi_in_port>;
                        };
                };
 
 &mipi_dsi {
        status = "okay";
+
+       ports {
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               port@0 {
+                       reg = <0>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       dsi0_output: endpoint@0 {
+                               reg = <0>;
+                               remote-endpoint = <&panel_out0>;
+                       };
+
+                       dsi1_output: endpoint@1 {
+                               reg = <1>;
+                               remote-endpoint = <&panel_out1>;
+                       };
+               };
+
+               port@1{
+                       reg = <1>;
+                       dsi_in_port: endpoint {
+                               remote-endpoint = <&sf_dpi_output>;
+                       };
+               };
+
+       };
 };
 
 &mipi_dphy {
index 756006d..ce323e0 100644 (file)
                        phy-names = "dphy";
                        status = "disabled";
 
-                       port {
-                               dsi_out_port: endpoint@0 {
-                                       remote-endpoint = <&panel_dsi_port>;
-                               };
-                               dsi_in_port: endpoint@1 {
-                                       remote-endpoint = <&mipi_out>;
-                               };
-                       };
-
-                       mipi_panel: panel@0 {
-                               /*compatible = "";*/
-                               status = "okay";
-                       };
                };
 
                hdmi: hdmi@29590000 {
old mode 100644 (file)
new mode 100755 (executable)
index 3d6b739..c256890
@@ -188,6 +188,7 @@ CONFIG_USB_VIDEO_CLASS=y
 CONFIG_V4L_PLATFORM_DRIVERS=y
 CONFIG_VIDEO_STF_VIN=y
 CONFIG_VIN_SENSOR_IMX219=y
+CONFIG_DRM_PANEL_JADARD_JD9365DA_H3=y
 CONFIG_DRM_VERISILICON=y
 CONFIG_STARFIVE_INNO_HDMI=y
 CONFIG_STARFIVE_DSI=y