BCM270X: Enable the DSI panel node in the VC4 overlay.
authorEric Anholt <eric@anholt.net>
Thu, 2 Jun 2016 22:09:35 +0000 (15:09 -0700)
committerHoegeun Kwon <hoegeun.kwon@samsung.com>
Mon, 7 Feb 2022 07:09:31 +0000 (16:09 +0900)
Change-Id: I46fdcdb53b79bd4f0db5022a415f6d1b9faf28e9
Signed-off-by: Eric Anholt <eric@anholt.net>
arch/arm/boot/dts/bcm2708-rpi-b-plus.dts
arch/arm/boot/dts/bcm2708-rpi-b.dts
arch/arm/boot/dts/bcm2709-rpi-2-b.dts
arch/arm/boot/dts/bcm270x.dtsi
arch/arm/boot/dts/bcm2710-rpi-3-b.dts
arch/arm/boot/dts/overlays/vc4-kms-v3d-overlay.dts

index a7d6427..8023c4f 100644 (file)
@@ -129,3 +129,8 @@ cam0_reg: &cam_dummy_reg {
                pwr_led_trigger = <&pwr_led>,"linux,default-trigger";
        };
 };
+
+&i2c_dsi {
+       gpios = <&gpio 28 0
+                &gpio 29 0>;
+};
index a531625..bea62f8 100644 (file)
@@ -119,3 +119,8 @@ cam0_reg: &cam_dummy_reg {
                act_led_trigger = <&act_led>,"linux,default-trigger";
        };
 };
+
+&i2c_dsi {
+       gpios = <&gpio 2 0
+                &gpio 3 0>;
+};
index 4c80d15..a315d0e 100644 (file)
@@ -129,3 +129,8 @@ cam0_reg: &cam_dummy_reg {
                pwr_led_trigger = <&pwr_led>,"linux,default-trigger";
        };
 };
+
+&i2c_dsi {
+       gpios = <&gpio 28 0
+                &gpio 29 0>;
+};
index a5cabb5..505e325 100644 (file)
                        firmware = <&firmware>;
                        status = "disabled";
                };
+
+               i2c_dsi: i2cdsi {
+                       /* We have to use i2c-gpio because the
+                        * firmware is also polling another device
+                        * using the only hardware I2C bus that could
+                        * connect to these pins.
+                        */
+                       compatible = "i2c-gpio";
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       status = "disabled";
+
+                       pitouchscreen_bridge: bridge@45 {
+                               compatible = "raspberrypi,touchscreen-bridge-i2c";
+                               reg = <0x45>;
+                       };
+
+                       pitouchscreen_touch: bridge@38 {
+                               compatible = "raspberrypi,touchscreen-ts-i2c";
+                               reg = <0x38>;
+                       };
+               };
+
        };
 
        cam1_reg: cam1_regulator {
        dmas = <&dma 6>, <&dma 7>;
        dma-names = "tx", "rx";
 };
+
+&dsi1 {
+       power-domains = <&power RPI_POWER_DOMAIN_DSI1>;
+};
index b71824b..a1a3f6f 100644 (file)
@@ -246,3 +246,8 @@ cam0_reg: &cam_dummy_reg {
                pwr_led_trigger = <&pwr_led>,"linux,default-trigger";
        };
 };
+
+&i2c_dsi {
+       gpios = <&gpio 44 0
+                &gpio 45 0>;
+};
index 351fc16..9b9dd90 100644 (file)
                };
        };
 
+       fragment@18 {
+               target = <&dsi1>;
+               __overlay__  {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       status = "okay";
+
+                       pitouchscreen: panel@0 {
+                               compatible = "raspberrypi,touchscreen";
+                               reg = <0>;
+                               raspberrypi,touchscreen-bridge = <&pitouchscreen_bridge>;
+                       };
+               };
+       };
+
+       fragment@19 {
+               target = <&i2c_dsi>;
+               __overlay__  {
+                       status = "okay";
+               };
+       };
+
        __overrides__ {
                audio   = <0>,"!13";
                noaudio = <0>,"=13";