arm64: dts: rockchip: add display to RG503
authorChris Morgan <macromorgan@hotmail.com>
Mon, 23 Jan 2023 15:46:03 +0000 (09:46 -0600)
committerHeiko Stuebner <heiko@sntech.de>
Sun, 29 Jan 2023 12:07:17 +0000 (13:07 +0100)
Add Samsung AMS495QA01 panel to RG503.

Co-developed-by: Maya Matuszczyk <maccraft123mc@gmail.com>
Signed-off-by: Maya Matuszczyk <maccraft123mc@gmail.com>
Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
Link: https://lore.kernel.org/r/20230123154603.1315112-5-macroalpha82@gmail.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3566-anbernic-rg503.dts

index 5dafcc8..b4b2df8 100644 (file)
                mosi-gpios = <&gpio4 RK_PB0 GPIO_ACTIVE_HIGH>;
                cs-gpios = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>;
                num-chipselects = <0>;
+
+               panel@0 {
+                       compatible = "samsung,ams495qa01";
+                       reg = <0>;
+                       pinctrl-names = "default";
+                       pinctrl-0 = <&lcd_reset>;
+                       reset-gpios = <&gpio4 RK_PA0 GPIO_ACTIVE_LOW>;
+                       vdd-supply = <&vcc_3v3>;
+
+                       port {
+                               mipi_in_panel: endpoint {
+                                       remote-endpoint = <&mipi_out_panel>;
+                               };
+                       };
+               };
        };
 
        /* Channels reversed for both headphones and speakers. */
        assigned-clock-rates = <1200000000>, <200000000>, <500000000>;
 };
 
+&dsi_dphy0 {
+       status = "okay";
+};
+
+&dsi0 {
+       status = "okay";
+
+       ports {
+               dsi0_in: port@0 {
+                       reg = <0>;
+
+                       dsi0_in_vp1: endpoint {
+                               remote-endpoint = <&vp1_out_dsi0>;
+                       };
+               };
+
+               dsi0_out: port@1 {
+                       reg = <1>;
+
+                       mipi_out_panel: endpoint {
+                               remote-endpoint = <&mipi_in_panel>;
+                       };
+               };
+       };
+};
+
 &gpio_keys_control {
        button-a {
                gpios = <&gpio3 RK_PC1 GPIO_ACTIVE_LOW>;
                };
        };
 
+       gpio-lcd {
+               lcd_reset: lcd-reset {
+                       rockchip,pins =
+                               <4 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
+               };
+       };
+
        gpio-spi {
                spi_pins: spi-pins {
                        rockchip,pins =
                rockchip,sleep-filter-current-microamp = <100000>;
        };
 };
+
+&vp1 {
+       vp1_out_dsi0: endpoint@ROCKCHIP_VOP2_EP_MIPI0 {
+               reg = <ROCKCHIP_VOP2_EP_MIPI0>;
+               remote-endpoint = <&dsi0_in_vp1>;
+       };
+};