arm64: tegra: Enable I2C controllers on P3310
authorThierry Reding <treding@nvidia.com>
Thu, 23 Feb 2017 17:30:46 +0000 (18:30 +0100)
committerThierry Reding <treding@nvidia.com>
Wed, 8 Mar 2017 12:31:40 +0000 (13:31 +0100)
The P3310 processor modules use seven I2C controllers for various
peripherals.

Acked-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm64/boot/dts/nvidia/tegra186-p3310.dtsi

index 3653d0dd5f4f43f588c9b3ac851c01de44ff5b13..762f4756346c3ac6d4109bbc26411139d6b2f1f1 100644 (file)
@@ -6,6 +6,14 @@
 
        aliases {
                serial0 = &uarta;
+               i2c0 = "/bpmp/i2c";
+               i2c1 = "/i2c@3160000";
+               i2c2 = "/i2c@c240000";
+               i2c3 = "/i2c@3180000";
+               i2c4 = "/i2c@3190000";
+               i2c5 = "/i2c@31c0000";
+               i2c6 = "/i2c@c250000";
+               i2c7 = "/i2c@31e0000";
        };
 
        chosen {
                status = "okay";
        };
 
+       i2c@3160000 {
+               status = "okay";
+       };
+
+       i2c@3180000 {
+               status = "okay";
+       };
+
+       i2c@3190000 {
+               status = "okay";
+       };
+
+       i2c@31c0000 {
+               status = "okay";
+       };
+
+       i2c@31e0000 {
+               status = "okay";
+       };
+
        hsp@3c00000 {
                status = "okay";
        };
 
+       i2c@c240000 {
+               status = "okay";
+       };
+
+       i2c@c250000 {
+               status = "okay";
+       };
+
        pmc@c360000 {
                nvidia,invert-interrupt;
        };
@@ -57,7 +93,9 @@
        };
 
        bpmp {
-               status = "okay";
+               i2c {
+                       status = "okay";
+               };
        };
 
        psci {