arm64: tegra: Enable cros-ec and charger on Smaug
authorRhyland Klein <rklein@nvidia.com>
Thu, 14 Apr 2016 19:57:18 +0000 (15:57 -0400)
committerThierry Reding <treding@nvidia.com>
Fri, 15 Apr 2016 13:36:38 +0000 (15:36 +0200)
Add nodes for the ChromeOS Embedded Controller and for the gas gauge
connected to the I2C bus that it controls.

Signed-off-by: Rhyland Klein <rklein@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm64/boot/dts/nvidia/tegra210-smaug.dts

index 3d01af78cfb3255d54c234ec84132986236f43d7..4d89f4e02d984902238854cefa627a56e07ee54a 100644 (file)
                status = "okay";
        };
 
+       i2c@7000c400 {
+               status = "okay";
+               clock-frequency = <1000000>;
+
+               ec@1e {
+                       compatible = "google,cros-ec-i2c";
+                       reg = <0x1e>;
+                       interrupt-parent = <&gpio>;
+                       interrupts = <TEGRA_GPIO(Z, 1) IRQ_TYPE_LEVEL_LOW>;
+                       wakeup-source;
+
+                       ec_i2c_0: i2c-tunnel {
+                               compatible = "google,cros-ec-i2c-tunnel";
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+
+                               google,remote-bus = <0>;
+
+                               battery: bq27742@55 {
+                                       compatible = "ti,bq27742";
+                                       reg = <0x55>;
+                                       battery-name = "battery";
+                               };
+                       };
+               };
+       };
+
        pmc@7000e400 {
                nvidia,invert-interrupt;
                nvidia,suspend-mode = <0>;
This page took 0.025285 seconds and 5 git commands to generate.