ARM: DT: Add DT entry for PWMs and Backlight
[linux-3.10.git] / arch / arm / boot / dts / tegra124-tn8.dts
1 /dts-v1/;
2
3 /include/ "tegra124.dtsi"
4
5 #include <dt-bindings/gpio/tegra-gpio.h>
6 / {
7         model = "NVIDIA Tegra124 TN8";
8         compatible = "nvidia,tn8", "nvidia,tegra124";
9         nvidia-boardids = "1780:1100:2:B:7","1794:1000:0:A:6";
10         #address-cells = <1>;
11         #size-cells = <1>;
12
13         chosen {
14                 bootargs = "tegraid=40.0.0.00.00 vmalloc=256M video=tegrafb console=ttyS0,115200n8 earlyprintk";
15                 linux,initrd-start = <0x85000000>;
16                 linux,initrd-end = <0x851bc400>;
17         };
18
19         gpio: gpio@6000d000 {
20                 gpio-init-names = "default";
21                 gpio-init-0 = <&gpio_default>;
22
23                 gpio_default: default {
24                         gpio-input = <  TEGRA_GPIO(C, 7)
25                                         TEGRA_GPIO(G, 2)
26                                         TEGRA_GPIO(G, 3)
27                                         TEGRA_GPIO(H, 4)
28                                         TEGRA_GPIO(I, 5)
29                                         TEGRA_GPIO(I, 6)
30                                         TEGRA_GPIO(J, 0)
31                                         TEGRA_GPIO(K, 2)
32                                         TEGRA_GPIO(K, 3)
33                                         TEGRA_GPIO(N, 7)
34                                         TEGRA_GPIO(O, 0)
35                                         TEGRA_GPIO(O, 2)
36                                         TEGRA_GPIO(O, 3)
37                                         TEGRA_GPIO(O, 5)
38                                         TEGRA_GPIO(O, 7)
39                                         TEGRA_GPIO(Q, 0)
40                                         TEGRA_GPIO(Q, 1)
41                                         TEGRA_GPIO(Q, 2)
42                                         TEGRA_GPIO(Q, 5)
43                                         TEGRA_GPIO(Q, 6)
44                                         TEGRA_GPIO(Q, 7)
45                                         TEGRA_GPIO(R, 4)
46                                         TEGRA_GPIO(S, 0)
47                                         TEGRA_GPIO(S, 1)
48                                         TEGRA_GPIO(U, 1)
49                                         TEGRA_GPIO(U, 2)
50                                         TEGRA_GPIO(U, 5)
51                                         TEGRA_GPIO(U, 6)
52                                         TEGRA_GPIO(V, 0)
53                                         TEGRA_GPIO(V, 1)
54                                         TEGRA_GPIO(V, 3)
55                                         TEGRA_GPIO(W, 2)
56                                         TEGRA_GPIO(W, 3)
57                                         TEGRA_GPIO(X, 3)
58                                         TEGRA_GPIO(X, 5)
59                                         TEGRA_GPIO(X, 6)
60                                         TEGRA_GPIO(CC, 1)
61                                         TEGRA_GPIO(CC, 2)>;
62                         gpio-output-low = <TEGRA_GPIO(G, 0)
63                                            TEGRA_GPIO(G, 1)
64                                            TEGRA_GPIO(H, 3)
65                                            TEGRA_GPIO(H, 5)
66                                            TEGRA_GPIO(I, 0)
67                                            TEGRA_GPIO(I, 2)
68                                            TEGRA_GPIO(I, 4)
69                                            TEGRA_GPIO(K, 1)
70                                            TEGRA_GPIO(K, 5)
71                                            TEGRA_GPIO(K, 6)
72                                            TEGRA_GPIO(O, 6)
73                                            TEGRA_GPIO(R, 0)
74                                            TEGRA_GPIO(R, 1)
75                                            TEGRA_GPIO(R, 2)
76                                            TEGRA_GPIO(R, 5)
77                                            TEGRA_GPIO(S, 3)
78                                            TEGRA_GPIO(S, 4)
79                                            TEGRA_GPIO(S, 6)
80                                            TEGRA_GPIO(U, 0)
81                                            TEGRA_GPIO(U, 3)
82                                            TEGRA_GPIO(U, 4)
83                                            TEGRA_GPIO(X, 1)
84                                            TEGRA_GPIO(X, 4)
85                                            TEGRA_GPIO(X, 7)
86                                            TEGRA_GPIO(BB, 3)
87                                            TEGRA_GPIO(BB, 5)
88                                            TEGRA_GPIO(BB, 6)
89                                            TEGRA_GPIO(BB, 7)
90                                            TEGRA_GPIO(CC, 5)
91                                            TEGRA_GPIO(EE, 1)>;
92                         gpio-output-high = <TEGRA_GPIO(H, 2)
93                                             TEGRA_GPIO(K, 4)
94                                             TEGRA_GPIO(S, 5)
95                                             TEGRA_GPIO(X, 2)>;
96                 };
97         };
98
99         i2c@7000c000 {
100                 status = "okay";
101                 clock-frequency = <100000>;
102
103                 bq2419x: bq2419x@6b {
104                         compatible = "ti,bq2419x";
105                         reg = <0x6b>;
106
107                         vbus {
108                                 regulator-name = "vbus_regulator";
109                                 consumers {
110                                         c1 {
111                                                 regulator-consumer-supply = "usb_vbus";
112                                                 regulator-consumer-device = "tegra-ehci.0";
113                                         };
114
115                                         c2 {
116                                                 regulator-consumer-supply = "usb_vbus";
117                                                 regulator-consumer-device = "tegra-otg";
118                                         };
119                                 };
120                         };
121                 };
122
123                 mpu6050@69 {
124                         compatible = "invensense,mpu6050";
125                         reg = <0x69>;
126                         interrupt-parent = <&gpio>;
127                         interrupts = <144 0x01>;
128                         invensense,int_config = <0x10>;
129                         invensense,level_shifter = <0>;
130                         invensense,orientation = [01 00 00 00 01 00 00 00 01];
131                         invensense,sec_slave_type = <0>;
132                         invensense,key = [4e cc 7e eb f6 1e 35 22
133                                           00 34 0d 65 32 e9 94 89];
134                         vlogic-supply = <&palmas_smps8>;
135                         vdd-supply = <&palmas_smps9>;
136                 };
137
138                 ak8963c@0d {
139                         compatible = "ak,ak8963";
140                         reg = <0x0d>;
141                         orientation = [00 01 00 01 00 00 00 00 ff];
142                         config = "mpu";
143                         vid-supply = <&palmas_smps8>;
144                         vdd-supply = <&palmas_smps9>;
145                 };
146         };
147
148 /include/ "tegra124-tn8-generic.dtsi"
149
150         backlight {
151                 compatible = "pwm-backlight";
152                 pwms = <&pwm 1 1000000>;
153                 max-brightness = <255>;
154                 default-brightness = <224>;
155         };
156 };
157