ARM: tegra: tn8: Add a new battery dts for sensor
Daniel Fu [Tue, 26 Nov 2013 14:01:16 +0000 (22:01 +0800)]
As first version of TN8 using E1794 sensor moudle, but the later TN8
using E1845 sensor moudle. When TN8 in battery-supply case, need a
new dts file to handle the sensors in E1845.
In fact, This file should be a battery-supply version
of tegra124-tn8-a03-00.dts.

Bug 1411145

Change-Id: I8d0f6df0e0e3ba851b330034f16c7eff146cc42e
Signed-off-by: Daniel Fu <danifu@nvidia.com>
Reviewed-on: http://git-master/r/335667
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

arch/arm/boot/dts/Makefile
arch/arm/boot/dts/tegra124-tn8-a03-00-battery.dts [new file with mode: 0644]

index 888c7f7..0831c6a 100644 (file)
@@ -208,6 +208,7 @@ dtb-$(CONFIG_ARCH_TEGRA) += tegra20-harmony.dtb \
        tegra124-tn8.dtb \
        tegra124-tn8-battery.dtb \
        tegra124-tn8-a03-00.dtb \
+       tegra124-tn8-a03-00-battery.dts \
        tegra124-tn8-a03-01.dtb \
        tegra124-e1782_sku1100.dtb \
        tegra124-e1791.dtb \
diff --git a/arch/arm/boot/dts/tegra124-tn8-a03-00-battery.dts b/arch/arm/boot/dts/tegra124-tn8-a03-00-battery.dts
new file mode 100644 (file)
index 0000000..9a59aa9
--- /dev/null
@@ -0,0 +1,124 @@
+/dts-v1/;
+
+#include "tegra124.dtsi"
+#include "tegra124-platforms/tegra124-tn8-io.dtsi"
+#include "tegra124-platforms/tegra124-tn8-emc.dtsi"
+#include "tegra124-platforms/tegra124-tn8-e1736-pmic.dtsi"
+#include "tegra124-platforms/tegra124-tn8-e1736-fixed.dtsi"
+#include "tegra124-platforms/tegra124-e1780-gpio-default.dtsi"
+#include "tegra124-platforms/tegra124-e1780-keys.dtsi"
+
+/ {
+       model = "NVIDIA Tegra124 TN8";
+       compatible = "nvidia,tn8", "nvidia,tegra124";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       chosen {
+               bootargs = "tegraid=40.0.0.00.00 vmalloc=256M video=tegrafb console=ttyS0,115200n8 earlyprintk";
+               linux,initrd-start = <0x85000000>;
+               linux,initrd-end = <0x851bc400>;
+       };
+
+       i2c@7000c000 {
+               status = "okay";
+               clock-frequency = <100000>;
+
+               max17048@36 {
+                       compatible = "maxim,max17048";
+                       reg = <0x36>;
+                       interrupt-parent = <&gpio>;
+                       interrupts = <133 0x0>;        /* gpio PQ5 */
+                       tz-name = "battery-temp";
+                       alert-threshold = <0>;          /* 1% SOC */
+                       one-percent-alerts = <1>;
+                       valert-max = <5100>;            /* not use */
+                       valert-min = <0>;            /* not use */
+                       vreset-threshold = <2400>;
+                       vreset-disable = <1>;           /* not use */
+                       hib-threshold = <48>;           /* 9.984%/hr */
+                       hib-active-threshold = <128>;   /* 160mV */
+                       bits = <18>;
+                       rcomp = <57>;
+                       rcomp-seg = <0x0200>;
+                       soccheck-a = <119>;
+                       soccheck-b = <121>;
+                       ocvtest = <55952>;
+                       data-tbl = <0x98 0x80 0xB3 0x50 0xB7 0x90 0xB9 0x00
+                               0xBA 0x70 0xBC 0x10 0xBC 0x50 0xBC 0xA0
+                               0xBD 0x20 0xBE 0x30 0xBF 0x40 0xC2 0xF0
+                               0xC4 0x20 0xC7 0xE0 0xCB 0xF0 0xD0 0x90
+                               0x00 0x40 0x06 0x70 0x0E 0x50 0x12 0x00
+                               0x18 0xD0 0x33 0x10 0x31 0x40 0x35 0xD0
+                               0x18 0xD0 0x19 0x00 0x0B 0xF0 0x0C 0x10
+                               0x0D 0x10 0x07 0x90 0x08 0x00 0x08 0x00>;
+               };
+
+               bq2419x: bq2419x@6b {
+                       compatible = "ti,bq2419x";
+                       reg = <0x6b>;
+                       interrupt-parent = <&gpio>;
+                       interrupts = <72 0x0>;
+
+                       charger {
+                               regulator-name = "batt_regulator";
+                               regulator-max-microamp = <3000>;
+                               watchdog-timeout = <40>;
+                               rtc-alarm-time = <3600>;
+                               auto-recharge-time = <1800>;
+                               consumers {
+                                       c1 {
+                                               regulator-consumer-supply = "usb_bat_chg";
+                                               regulator-consumer-device = "tegra-udc.0";
+                                       };
+                               };
+                       };
+
+                       vbus {
+                               regulator-name = "vbus_regulator";
+                               otg-iusb-gpio = <&gpio TEGRA_GPIO(I, 4) 0>;
+                               consumers {
+                                       c1 {
+                                               regulator-consumer-supply = "usb_vbus";
+                                               regulator-consumer-device = "tegra-ehci.0";
+                                       };
+
+                                       c2 {
+                                               regulator-consumer-supply = "usb_vbus";
+                                               regulator-consumer-device = "tegra-otg";
+                                       };
+                               };
+                       };
+               };
+
+               mpu6515@69 {
+                       compatible = "invensense,mpu6515";
+                       reg = <0x69>;
+                       interrupt-parent = <&gpio>;
+                       interrupts = <144 0x01>;
+                       invensense,int_config = <0x10>;
+                       invensense,level_shifter = <0>;
+                       invensense,orientation = [00 ff 00 01 00 00 00 00 01];
+                       invensense,sec_slave_type = <0>;
+                       invensense,key = [4e cc 7e eb f6 1e 35 22
+                                         00 34 0d 65 32 e9 94 89];
+                       vlogic-supply = <&palmas_smps8>;
+                       vdd-supply = <&palmas_smps9>;
+               };
+
+               ak8963c@0d {
+                       compatible = "ak,ak8963";
+                       reg = <0x0d>;
+                       orientation = [00 ff 00 01 00 00 00 00 01];
+                       config = "mpu";
+                       vid-supply = <&palmas_smps8>;
+                       vdd-supply = <&palmas_smps9>;
+               };
+
+               cm3217@10 {
+                       compatible = "capella,cm3217";
+                       reg = <0x10>;
+               };
+       };
+};
+