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)
committerRaspbian kernel package updater <root@raspbian.org>
Sat, 31 Mar 2018 14:45:25 +0000 (15:45 +0100)
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/bcm2710.dtsi
arch/arm/boot/dts/overlays/vc4-kms-v3d-overlay.dts

index 360da5c928dc5599b0d2a9055728087604c6b189..51f575e5d201fdfc1632e9bc8ed3bbd3e55dddcb 100644 (file)
                sd_debug     = <&sdhost>,"brcm,debug";
        };
 };
+
+&i2c_dsi {
+       gpios = <&gpio 28 0
+                &gpio 29 0>;
+};
index 9c49659ab246bce0656f3514f3b924bc4826b421..028ef91a6c4f5d6573204635a03b912284505baa 100644 (file)
                sd_debug     = <&sdhost>,"brcm,debug";
        };
 };
+
+&i2c_dsi {
+       gpios = <&gpio 2 0
+                &gpio 3 0>;
+};
index 19c83823420fc3cc20a01d07091100cb8720ff4d..a4ffeff9fda62da830e674ff06c3a5394bd9d8cf 100644 (file)
                sd_debug     = <&sdhost>,"brcm,debug";
        };
 };
+
+&i2c_dsi {
+       gpios = <&gpio 28 0
+                &gpio 29 0>;
+};
index 36d853715f2379e1952ce3d3be58dd670e305159..caa66393518603529d284f360b2000b0ed4852ef 100644 (file)
                        /* Add alias */
                        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>;
+                       };
+               };
+
        };
 
        vdd_5v0_reg: fixedregulator_5v0 {
                regulator-always-on;
        };
 };
+
+&dsi1 {
+       power-domains = <&power RPI_POWER_DOMAIN_DSI1>;
+};
index 12764a3495b2372ffaf47e32ea0d21326ca83686..d29ba72de727fe26b5a586e0bd0a41181c68ae04 100644 (file)
                sd_debug     = <&sdhost>,"brcm,debug";
        };
 };
+
+&i2c_dsi {
+       gpios = <&gpio 44 0
+                &gpio 45 0>;
+};
index 3e134a1208610b90e2d0fc22f03c6e9f372bfcd7..3fabac6a93e846f678d846637c4f9a5f5b8e7922 100644 (file)
        interrupt-parent = <&local_intc>;
        interrupts = <8>;
 };
-
index 4f1cc20f90dc6780f74e08ebee00e5a1a6062c85..f25cd9a3936861920b0d518ff2d773ee467e2f49 100644 (file)
                };
        };
 
+       fragment@16 {
+               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@17 {
+               target = <&i2c_dsi>;
+               __overlay__  {
+                       status = "okay";
+               };
+       };
+
        __overrides__ {
                cma-256 = <0>,"+0-1-2-3-4";
                cma-192 = <0>,"-0+1-2-3-4";