Commit | Line | Data |
---|---|---|
2d334297 AB |
1 | /* |
2 | * Copyright 2011 ST-Ericsson AB | |
3 | * | |
4 | * The code contained herein is licensed under the GNU General Public | |
5 | * License. You may obtain a copy of the GNU General Public License | |
6 | * Version 2 or later at the following locations: | |
7 | * | |
8 | * http://www.opensource.org/licenses/gpl-license.html | |
9 | * http://www.gnu.org/copyleft/gpl.html | |
10 | */ | |
11 | ||
12 | /dts-v1/; | |
d582cb0b | 13 | /include/ "dbx5x0.dtsi" |
2d334297 AB |
14 | |
15 | / { | |
16 | model = "Calao Systems Snowball platform with device tree"; | |
17 | compatible = "calaosystems,snowball-a9500"; | |
18 | ||
2d334297 AB |
19 | memory { |
20 | reg = <0x00000000 0x20000000>; | |
21 | }; | |
22 | ||
bc367481 LJ |
23 | en_3v3_reg: en_3v3 { |
24 | compatible = "regulator-fixed"; | |
25 | regulator-name = "en-3v3-fixed-supply"; | |
26 | regulator-min-microvolt = <3300000>; | |
27 | regulator-max-microvolt = <3300000>; | |
28 | gpios = <&gpio0 26 0x4>; // 26 | |
29 | startup-delay-us = <5000>; | |
30 | enable-active-high; | |
31 | }; | |
32 | ||
7e0ce270 LJ |
33 | gpio_keys { |
34 | compatible = "gpio-keys"; | |
35 | #address-cells = <1>; | |
36 | #size-cells = <0>; | |
37 | ||
38 | button@1 { | |
39 | debounce_interval = <50>; | |
40 | wakeup = <1>; | |
41 | linux,code = <2>; | |
42 | label = "userpb"; | |
93b5698a | 43 | gpios = <&gpio1 0 0x4>; |
7e0ce270 LJ |
44 | }; |
45 | button@2 { | |
46 | debounce_interval = <50>; | |
47 | wakeup = <1>; | |
48 | linux,code = <3>; | |
3f3ed400 | 49 | label = "extkb1"; |
93b5698a | 50 | gpios = <&gpio4 23 0x4>; |
7e0ce270 LJ |
51 | }; |
52 | button@3 { | |
53 | debounce_interval = <50>; | |
54 | wakeup = <1>; | |
55 | linux,code = <4>; | |
3f3ed400 | 56 | label = "extkb2"; |
93b5698a | 57 | gpios = <&gpio4 24 0x4>; |
7e0ce270 LJ |
58 | }; |
59 | button@4 { | |
60 | debounce_interval = <50>; | |
61 | wakeup = <1>; | |
62 | linux,code = <5>; | |
3f3ed400 | 63 | label = "extkb3"; |
93b5698a | 64 | gpios = <&gpio5 1 0x4>; |
7e0ce270 LJ |
65 | }; |
66 | button@5 { | |
67 | debounce_interval = <50>; | |
68 | wakeup = <1>; | |
69 | linux,code = <6>; | |
3f3ed400 | 70 | label = "extkb4"; |
93b5698a | 71 | gpios = <&gpio5 2 0x4>; |
7e0ce270 LJ |
72 | }; |
73 | }; | |
74 | ||
75 | leds { | |
76 | compatible = "gpio-leds"; | |
77 | used-led { | |
78 | label = "user_led"; | |
93b5698a | 79 | gpios = <&gpio4 14 0x4>; |
7fd975fa | 80 | default-state = "on"; |
fd53d042 | 81 | linux,default-trigger = "heartbeat"; |
7e0ce270 LJ |
82 | }; |
83 | }; | |
84 | ||
2d334297 | 85 | soc-u9500 { |
fe164529 LJ |
86 | msp1: msp@80124000 { |
87 | status = "okay"; | |
88 | }; | |
89 | ||
90 | msp3: msp@80125000 { | |
91 | status = "okay"; | |
92 | }; | |
93 | ||
7e0ce270 | 94 | external-bus@50000000 { |
bf76e062 LJ |
95 | status = "okay"; |
96 | ||
97 | ethernet@0 { | |
98 | compatible = "smsc,lan9115"; | |
99 | reg = <0 0x10000>; | |
100 | interrupts = <12 0x1>; | |
7e0ce270 | 101 | interrupt-parent = <&gpio4>; |
bc367481 LJ |
102 | vdd33a-supply = <&en_3v3_reg>; |
103 | vddvario-supply = <&db8500_vape_reg>; | |
104 | ||
bf76e062 LJ |
105 | |
106 | reg-shift = <1>; | |
107 | reg-io-width = <2>; | |
108 | smsc,force-internal-phy; | |
109 | smsc,irq-active-high; | |
110 | smsc,irq-push-pull; | |
7e0ce270 LJ |
111 | }; |
112 | }; | |
113 | ||
5e1ac7db | 114 | // External Micro SD slot |
7e0ce270 | 115 | sdi@80126000 { |
5e1ac7db LJ |
116 | arm,primecell-periphid = <0x10480180>; |
117 | max-frequency = <50000000>; | |
118 | bus-width = <8>; | |
119 | mmc-cap-mmc-highspeed; | |
4a85c7fa | 120 | vmmc-supply = <&ab8500_ldo_aux3_reg>; |
5e1ac7db LJ |
121 | |
122 | #gpio-cells = <1>; | |
93b5698a | 123 | cd-gpios = <&gpio6 26 0x4>; // 218 |
5e1ac7db LJ |
124 | cd-inverted; |
125 | ||
126 | status = "okay"; | |
7e0ce270 LJ |
127 | }; |
128 | ||
5e1ac7db | 129 | // On-board eMMC |
7e0ce270 | 130 | sdi@80114000 { |
5e1ac7db LJ |
131 | arm,primecell-periphid = <0x10480180>; |
132 | max-frequency = <50000000>; | |
133 | bus-width = <8>; | |
134 | mmc-cap-mmc-highspeed; | |
4a85c7fa | 135 | vmmc-supply = <&ab8500_ldo_aux2_reg>; |
5e1ac7db LJ |
136 | |
137 | status = "okay"; | |
7e0ce270 LJ |
138 | }; |
139 | ||
4905af0e LJ |
140 | uart@80120000 { |
141 | status = "okay"; | |
142 | }; | |
143 | ||
144 | uart@80121000 { | |
145 | status = "okay"; | |
146 | }; | |
147 | ||
148 | uart@80007000 { | |
149 | status = "okay"; | |
150 | }; | |
151 | ||
7e0ce270 LJ |
152 | i2c@80004000 { |
153 | tc3589x@42 { | |
154 | //compatible = "tc3589x"; | |
155 | reg = <0x42>; | |
93b5698a | 156 | gpios = <&gpio6 25 0x4>; |
7e0ce270 LJ |
157 | interrupt-parent = <&gpio6>; |
158 | }; | |
159 | tps61052@33 { | |
160 | //compatible = "tps61052"; | |
161 | reg = <0x33>; | |
162 | }; | |
163 | }; | |
164 | ||
165 | i2c@80128000 { | |
166 | lp5521@0x33 { | |
167 | // compatible = "lp5521"; | |
168 | reg = <0x33>; | |
169 | }; | |
170 | lp5521@0x34 { | |
171 | // compatible = "lp5521"; | |
172 | reg = <0x34>; | |
173 | }; | |
174 | bh1780@0x29 { | |
175 | // compatible = "rohm,bh1780gli"; | |
176 | reg = <0x33>; | |
177 | }; | |
178 | }; | |
2d334297 AB |
179 | }; |
180 | }; |