Commit | Line | Data |
---|---|---|
95e82941 DA |
1 | /* |
2 | * Google Snow board device tree source | |
3 | * | |
4 | * Copyright (c) 2012 Google, Inc | |
5 | * | |
6 | * This program is free software; you can redistribute it and/or modify | |
7 | * it under the terms of the GNU General Public License version 2 as | |
8 | * published by the Free Software Foundation. | |
9 | */ | |
10 | ||
11 | /dts-v1/; | |
12 | /include/ "exynos5250.dtsi" | |
13 | /include/ "cros5250-common.dtsi" | |
14 | ||
15 | / { | |
16 | model = "Google Snow"; | |
17 | compatible = "google,snow", "samsung,exynos5250"; | |
18 | ||
97a4a1ba DA |
19 | aliases { |
20 | i2c104 = &i2c_104; | |
21 | }; | |
22 | ||
f8bfe2b0 TA |
23 | pinctrl@11400000 { |
24 | sd3_clk: sd3-clk { | |
25 | samsung,pin-drv = <0>; | |
26 | }; | |
27 | ||
28 | sd3_cmd: sd3-cmd { | |
29 | samsung,pin-pud = <3>; | |
30 | samsung,pin-drv = <0>; | |
31 | }; | |
32 | ||
33 | sd3_bus4: sd3-bus-width4 { | |
34 | samsung,pin-drv = <0>; | |
35 | }; | |
36 | }; | |
37 | ||
95e82941 DA |
38 | gpio-keys { |
39 | compatible = "gpio-keys"; | |
40 | ||
41 | lid-switch { | |
42 | label = "Lid"; | |
f8bfe2b0 | 43 | gpios = <&gpx3 5 1>; |
95e82941 DA |
44 | linux,input-type = <5>; /* EV_SW */ |
45 | linux,code = <0>; /* SW_LID */ | |
46 | debounce-interval = <1>; | |
47 | gpio-key,wakeup; | |
48 | }; | |
49 | }; | |
50 | ||
97a4a1ba DA |
51 | i2c-arbitrator { |
52 | compatible = "i2c-arb-gpio-challenge"; | |
53 | #address-cells = <1>; | |
54 | #size-cells = <0>; | |
55 | ||
56 | i2c-parent = <&{/i2c@12CA0000}>; | |
57 | ||
58 | our-claim-gpio = <&gpf0 3 1>; | |
59 | their-claim-gpios = <&gpe0 4 1>; | |
60 | slew-delay-us = <10>; | |
61 | wait-retry-us = <3000>; | |
62 | wait-free-us = <50000>; | |
63 | ||
64 | /* Use ID 104 as a hint that we're on physical bus 4 */ | |
65 | i2c_104: i2c@0 { | |
66 | reg = <0>; | |
67 | #address-cells = <1>; | |
68 | #size-cells = <0>; | |
61d4f052 DA |
69 | |
70 | battery: sbs-battery@b { | |
71 | compatible = "sbs,sbs-battery"; | |
72 | reg = <0xb>; | |
73 | sbs,poll-retry-count = <1>; | |
74 | }; | |
a4591dcf OJ |
75 | |
76 | ec: embedded-controller { | |
77 | compatible = "google,cros-ec-i2c"; | |
78 | reg = <0x1e>; | |
79 | interrupts = <6 0>; | |
80 | interrupt-parent = <&gpx1>; | |
81 | wakeup-source; | |
82 | ||
83 | keyboard-controller { | |
84 | compatible = "google,cros-ec-keyb"; | |
85 | keypad,num-rows = <8>; | |
86 | keypad,num-columns = <13>; | |
87 | google,needs-ghost-filter; | |
88 | linux,keymap = <0x0001003a /* CAPSLK */ | |
89 | 0x0002003b /* F1 */ | |
90 | 0x00030030 /* B */ | |
91 | 0x00040044 /* F10 */ | |
92 | 0x00060031 /* N */ | |
93 | 0x0008000d /* = */ | |
94 | 0x000a0064 /* R_ALT */ | |
95 | ||
96 | 0x01010001 /* ESC */ | |
97 | 0x0102003e /* F4 */ | |
98 | 0x01030022 /* G */ | |
99 | 0x01040041 /* F7 */ | |
100 | 0x01060023 /* H */ | |
101 | 0x01080028 /* ' */ | |
102 | 0x01090043 /* F9 */ | |
103 | 0x010b000e /* BKSPACE */ | |
104 | ||
105 | 0x0200001d /* L_CTRL */ | |
106 | 0x0201000f /* TAB */ | |
107 | 0x0202003d /* F3 */ | |
108 | 0x02030014 /* T */ | |
109 | 0x02040040 /* F6 */ | |
110 | 0x0205001b /* ] */ | |
111 | 0x02060015 /* Y */ | |
112 | 0x02070056 /* 102ND */ | |
113 | 0x0208001a /* [ */ | |
114 | 0x02090042 /* F8 */ | |
115 | ||
116 | 0x03010029 /* GRAVE */ | |
117 | 0x0302003c /* F2 */ | |
118 | 0x03030006 /* 5 */ | |
119 | 0x0304003f /* F5 */ | |
120 | 0x03060007 /* 6 */ | |
121 | 0x0308000c /* - */ | |
122 | 0x030b002b /* \ */ | |
123 | ||
124 | 0x04000061 /* R_CTRL */ | |
125 | 0x0401001e /* A */ | |
126 | 0x04020020 /* D */ | |
127 | 0x04030021 /* F */ | |
128 | 0x0404001f /* S */ | |
129 | 0x04050025 /* K */ | |
130 | 0x04060024 /* J */ | |
131 | 0x04080027 /* ; */ | |
132 | 0x04090026 /* L */ | |
133 | 0x040b001c /* ENTER */ | |
134 | ||
135 | 0x0501002c /* Z */ | |
136 | 0x0502002e /* C */ | |
137 | 0x0503002f /* V */ | |
138 | 0x0504002d /* X */ | |
139 | 0x05050033 /* , */ | |
140 | 0x05060032 /* M */ | |
141 | 0x0507002a /* L_SHIFT */ | |
142 | 0x05080035 /* / */ | |
143 | 0x05090034 /* . */ | |
144 | 0x050B0039 /* SPACE */ | |
145 | ||
146 | 0x06010002 /* 1 */ | |
147 | 0x06020004 /* 3 */ | |
148 | 0x06030005 /* 4 */ | |
149 | 0x06040003 /* 2 */ | |
150 | 0x06050009 /* 8 */ | |
151 | 0x06060008 /* 7 */ | |
152 | 0x0608000b /* 0 */ | |
153 | 0x0609000a /* 9 */ | |
154 | 0x060a0038 /* L_ALT */ | |
155 | 0x060b006c /* DOWN */ | |
156 | 0x060c006a /* RIGHT */ | |
157 | ||
158 | 0x07010010 /* Q */ | |
159 | 0x07020012 /* E */ | |
160 | 0x07030013 /* R */ | |
161 | 0x07040011 /* W */ | |
162 | 0x07050017 /* I */ | |
163 | 0x07060016 /* U */ | |
164 | 0x07070036 /* R_SHIFT */ | |
165 | 0x07080019 /* P */ | |
166 | 0x07090018 /* O */ | |
167 | 0x070b0067 /* UP */ | |
168 | 0x070c0069>; /* LEFT */ | |
169 | }; | |
170 | }; | |
97a4a1ba DA |
171 | }; |
172 | }; | |
173 | ||
95e82941 DA |
174 | /* |
175 | * On Snow we've got SIP WiFi and so can keep drive strengths low to | |
176 | * reduce EMI. | |
177 | */ | |
178 | dwmmc3@12230000 { | |
179 | slot@0 { | |
f8bfe2b0 TA |
180 | pinctrl-names = "default"; |
181 | pinctrl-0 = <&sd3_clk &sd3_cmd &sd3_bus4>; | |
95e82941 DA |
182 | }; |
183 | }; | |
13cbd1e3 VG |
184 | |
185 | usb@12110000 { | |
c58c1a4c | 186 | samsung,vbus-gpio = <&gpx1 1 0>; |
13cbd1e3 | 187 | }; |
8b6076d4 TA |
188 | |
189 | fixed-rate-clocks { | |
190 | xxti { | |
191 | compatible = "samsung,clock-xxti"; | |
192 | clock-frequency = <24000000>; | |
193 | }; | |
194 | }; | |
95e82941 | 195 | }; |