Revert "ARM: tegra: Move pinmux driver to DT for TN8"
[linux-3.10.git] / arch / arm / boot / dts / tegra124-tn8-battery.dts
1 /dts-v1/;
2
3 #include "tegra124.dtsi"
4 #include "tegra124-platforms/tegra124-tn8-io.dtsi"
5 #include "tegra124-platforms/tegra124-tn8-emc.dtsi"
6 #include "tegra124-platforms/tegra124-tn8-e1736-pmic.dtsi"
7 #include "tegra124-platforms/tegra124-tn8-e1736-fixed.dtsi"
8 #include "tegra124-platforms/tegra124-e1780-gpio-default.dtsi"
9 #include "tegra124-platforms/tegra124-e1780-keys.dtsi"
10
11 / {
12         model = "NVIDIA Tegra124 TN8";
13         compatible = "nvidia,tn8", "nvidia,tegra124";
14         #address-cells = <1>;
15         #size-cells = <1>;
16
17         chosen {
18                 bootargs = "tegraid=40.0.0.00.00 vmalloc=256M video=tegrafb console=ttyS0,115200n8 earlyprintk";
19                 linux,initrd-start = <0x85000000>;
20                 linux,initrd-end = <0x851bc400>;
21         };
22
23         i2c@7000c000 {
24                 status = "okay";
25                 clock-frequency = <100000>;
26
27                 max17048@36 {
28                         compatible = "maxim,max17048";
29                         reg = <0x36>;
30                         interrupt-parent = <&gpio>;
31                         interrupts = <133 0x0>;        /* gpio PQ5 */
32                         tz-name = "battery-temp";
33                         alert-threshold = <0>;          /* 1% SOC */
34                         one-percent-alerts = <1>;
35                         valert-max = <5100>;            /* not use */
36                         valert-min = <0>;            /* not use */
37                         vreset-threshold = <2400>;
38                         vreset-disable = <1>;           /* not use */
39                         hib-threshold = <48>;           /* 9.984%/hr */
40                         hib-active-threshold = <128>;   /* 160mV */
41                         bits = <18>;
42                         rcomp = <57>;
43                         rcomp-seg = <0x0200>;
44                         soccheck-a = <119>;
45                         soccheck-b = <121>;
46                         ocvtest = <55952>;
47                         data-tbl = <0x98 0x80 0xB3 0x50 0xB7 0x90 0xB9 0x00
48                                 0xBA 0x70 0xBC 0x10 0xBC 0x50 0xBC 0xA0
49                                 0xBD 0x20 0xBE 0x30 0xBF 0x40 0xC2 0xF0
50                                 0xC4 0x20 0xC7 0xE0 0xCB 0xF0 0xD0 0x90
51                                 0x00 0x40 0x06 0x70 0x0E 0x50 0x12 0x00
52                                 0x18 0xD0 0x33 0x10 0x31 0x40 0x35 0xD0
53                                 0x18 0xD0 0x19 0x00 0x0B 0xF0 0x0C 0x10
54                                 0x0D 0x10 0x07 0x90 0x08 0x00 0x08 0x00>;
55                 };
56
57                 bq2419x: bq2419x@6b {
58                         compatible = "ti,bq2419x";
59                         reg = <0x6b>;
60                         interrupt-parent = <&gpio>;
61                         interrupts = <72 0x0>;
62
63                         charger {
64                                 regulator-name = "batt_regulator";
65                                 regulator-max-microamp = <3000>;
66                                 watchdog-timeout = <40>;
67                                 rtc-alarm-time = <3600>;
68                                 auto-recharge-time = <1800>;
69                                 consumers {
70                                         c1 {
71                                                 regulator-consumer-supply = "usb_bat_chg";
72                                                 regulator-consumer-device = "tegra-udc.0";
73                                         };
74                                 };
75                         };
76
77                         vbus {
78                                 regulator-name = "vbus_regulator";
79                                 otg-iusb-gpio = <&gpio TEGRA_GPIO(I, 4) 0>;
80                                 consumers {
81                                         c1 {
82                                                 regulator-consumer-supply = "usb_vbus";
83                                                 regulator-consumer-device = "tegra-ehci.0";
84                                         };
85
86                                         c2 {
87                                                 regulator-consumer-supply = "usb_vbus";
88                                                 regulator-consumer-device = "tegra-otg";
89                                         };
90                                 };
91                         };
92                 };
93
94                 mpu6050@69 {
95                         compatible = "invensense,mpu6050";
96                         reg = <0x69>;
97                         interrupt-parent = <&gpio>;
98                         interrupts = <144 0x01>;
99                         invensense,int_config = <0x10>;
100                         invensense,level_shifter = <0>;
101                         invensense,orientation = [01 00 00 00 01 00 00 00 01];
102                         invensense,sec_slave_type = <0>;
103                         invensense,key = [4e cc 7e eb f6 1e 35 22
104                                           00 34 0d 65 32 e9 94 89];
105                         vlogic-supply = <&palmas_smps8>;
106                         vdd-supply = <&palmas_smps9>;
107                 };
108
109                 ak8963c@0d {
110                         compatible = "ak,ak8963";
111                         reg = <0x0d>;
112                         orientation = [00 01 00 01 00 00 00 00 ff];
113                         config = "mpu";
114                         vid-supply = <&palmas_smps8>;
115                         vdd-supply = <&palmas_smps9>;
116                 };
117         };
118 };
119