]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Tue, 19 Sep 2017 10:07:54 +0000 (12:07 +0200)
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
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 0b66ac9f25a5f7ae51f3d0666cfcb908f85e1d24..08bf838fab551638e898930fba7ba49b3aeefbb3 100644 (file)
                sd_debug     = <&sdhost>,"brcm,debug";
        };
 };
+
+&i2c_dsi {
+       gpios = <&gpio 28 0
+                &gpio 29 0>;
+};
index e99e9d999e4142060c41eb47b93c8ac70a30f384..4e6b4dd6a8d9c4f13bc865bb8ced68264162cb6c 100644 (file)
                sd_debug     = <&sdhost>,"brcm,debug";
        };
 };
+
+&i2c_dsi {
+       gpios = <&gpio 2 0
+                &gpio 3 0>;
+};
index 20674f250af922e9f9a43e3e8b13aee42e3930be..2dc0e1204e6374bbc6924e26dc4a04b68718559a 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 616cfd5c7094596b497101e8feca25e25e77c3e8..173103aaca503833b5e29530ed94e14c7cab0444 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 fb45c6456b181b047d6cff8784f7696eb75da3c7..05faf1bfa1b7c73fd60b1efb813b969e10bbfefa 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";
+               };
+       };
+
+       fragment@18 {
                target = <&clocks>;
                __overlay__  {
                        claim-clocks = <