blob: aefcb7f3825eb7c9bdf29fcac81dbedab701c260 [file] [log] [blame]
Arnd Bergmann2d334292012-03-07 15:04:07 +00001/*
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/;
Arnd Bergmann5d0769f2012-03-02 23:07:21 +000013/include/ "db8500.dtsi"
Arnd Bergmann2d334292012-03-07 15:04:07 +000014
15/ {
16 model = "Calao Systems Snowball platform with device tree";
17 compatible = "calaosystems,snowball-a9500";
18
Arnd Bergmann2d334292012-03-07 15:04:07 +000019 memory {
20 reg = <0x00000000 0x20000000>;
21 };
22
Lee Jonesbc367482012-05-03 11:23:47 +010023 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
Lee Jones7e0ce272012-03-15 16:46:17 +000033 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";
Lee Jones93b56982012-05-29 14:17:36 +080043 gpios = <&gpio1 0 0x4>;
Lee Jones7e0ce272012-03-15 16:46:17 +000044 };
45 button@2 {
46 debounce_interval = <50>;
47 wakeup = <1>;
48 linux,code = <3>;
Lee Jones3f3ed402012-04-13 15:05:07 +010049 label = "extkb1";
Lee Jones93b56982012-05-29 14:17:36 +080050 gpios = <&gpio4 23 0x4>;
Lee Jones7e0ce272012-03-15 16:46:17 +000051 };
52 button@3 {
53 debounce_interval = <50>;
54 wakeup = <1>;
55 linux,code = <4>;
Lee Jones3f3ed402012-04-13 15:05:07 +010056 label = "extkb2";
Lee Jones93b56982012-05-29 14:17:36 +080057 gpios = <&gpio4 24 0x4>;
Lee Jones7e0ce272012-03-15 16:46:17 +000058 };
59 button@4 {
60 debounce_interval = <50>;
61 wakeup = <1>;
62 linux,code = <5>;
Lee Jones3f3ed402012-04-13 15:05:07 +010063 label = "extkb3";
Lee Jones93b56982012-05-29 14:17:36 +080064 gpios = <&gpio5 1 0x4>;
Lee Jones7e0ce272012-03-15 16:46:17 +000065 };
66 button@5 {
67 debounce_interval = <50>;
68 wakeup = <1>;
69 linux,code = <6>;
Lee Jones3f3ed402012-04-13 15:05:07 +010070 label = "extkb4";
Lee Jones93b56982012-05-29 14:17:36 +080071 gpios = <&gpio5 2 0x4>;
Lee Jones7e0ce272012-03-15 16:46:17 +000072 };
73 };
74
75 leds {
76 compatible = "gpio-leds";
77 used-led {
78 label = "user_led";
Lee Jones93b56982012-05-29 14:17:36 +080079 gpios = <&gpio4 14 0x4>;
Lee Jones7fd975f2012-06-15 09:30:30 +010080 default-state = "on";
Lee Jones7e0ce272012-03-15 16:46:17 +000081 };
82 };
83
Arnd Bergmann2d334292012-03-07 15:04:07 +000084 soc-u9500 {
Lee Jones7e0ce272012-03-15 16:46:17 +000085 external-bus@50000000 {
Lee Jonesbf76e062012-04-24 10:53:18 +010086 status = "okay";
Lee Jones7e0ce272012-03-15 16:46:17 +000087
Lee Jonesbf76e062012-04-24 10:53:18 +010088 ethernet@0 {
89 compatible = "smsc,lan9115";
90 reg = <0 0x10000>;
91 interrupts = <12 0x1>;
Lee Jones7e0ce272012-03-15 16:46:17 +000092 interrupt-parent = <&gpio4>;
Lee Jonesbc367482012-05-03 11:23:47 +010093 vdd33a-supply = <&en_3v3_reg>;
94 vddvario-supply = <&db8500_vape_reg>;
95
Lee Jonesbf76e062012-04-24 10:53:18 +010096
97 reg-shift = <1>;
98 reg-io-width = <2>;
99 smsc,force-internal-phy;
100 smsc,irq-active-high;
101 smsc,irq-push-pull;
Lee Jones7e0ce272012-03-15 16:46:17 +0000102 };
103 };
104
Lee Jones5e1ac7d2012-05-29 14:40:04 +0800105 // External Micro SD slot
Lee Jones7e0ce272012-03-15 16:46:17 +0000106 sdi@80126000 {
Lee Jones5e1ac7d2012-05-29 14:40:04 +0800107 arm,primecell-periphid = <0x10480180>;
108 max-frequency = <50000000>;
109 bus-width = <8>;
110 mmc-cap-mmc-highspeed;
Lee Jones4a85c7f2012-05-29 14:29:53 +0800111 vmmc-supply = <&ab8500_ldo_aux3_reg>;
Lee Jones5e1ac7d2012-05-29 14:40:04 +0800112
113 #gpio-cells = <1>;
Lee Jones93b56982012-05-29 14:17:36 +0800114 cd-gpios = <&gpio6 26 0x4>; // 218
Lee Jones5e1ac7d2012-05-29 14:40:04 +0800115 cd-inverted;
116
117 status = "okay";
Lee Jones7e0ce272012-03-15 16:46:17 +0000118 };
119
Lee Jones5e1ac7d2012-05-29 14:40:04 +0800120 // On-board eMMC
Lee Jones7e0ce272012-03-15 16:46:17 +0000121 sdi@80114000 {
Lee Jones5e1ac7d2012-05-29 14:40:04 +0800122 arm,primecell-periphid = <0x10480180>;
123 max-frequency = <50000000>;
124 bus-width = <8>;
125 mmc-cap-mmc-highspeed;
Lee Jones4a85c7f2012-05-29 14:29:53 +0800126 vmmc-supply = <&ab8500_ldo_aux2_reg>;
Lee Jones5e1ac7d2012-05-29 14:40:04 +0800127
128 status = "okay";
Lee Jones7e0ce272012-03-15 16:46:17 +0000129 };
130
Lee Jones4905af02012-03-07 17:35:04 +0000131 uart@80120000 {
132 status = "okay";
133 };
134
135 uart@80121000 {
136 status = "okay";
137 };
138
139 uart@80007000 {
140 status = "okay";
141 };
142
Lee Jones7e0ce272012-03-15 16:46:17 +0000143 i2c@80004000 {
144 tc3589x@42 {
145 //compatible = "tc3589x";
146 reg = <0x42>;
Lee Jones93b56982012-05-29 14:17:36 +0800147 gpios = <&gpio6 25 0x4>;
Lee Jones7e0ce272012-03-15 16:46:17 +0000148 interrupt-parent = <&gpio6>;
149 };
150 tps61052@33 {
151 //compatible = "tps61052";
152 reg = <0x33>;
153 };
154 };
155
156 i2c@80128000 {
157 lp5521@0x33 {
158 // compatible = "lp5521";
159 reg = <0x33>;
160 };
161 lp5521@0x34 {
162 // compatible = "lp5521";
163 reg = <0x34>;
164 };
165 bh1780@0x29 {
166 // compatible = "rohm,bh1780gli";
167 reg = <0x33>;
168 };
169 };
Arnd Bergmann2d334292012-03-07 15:04:07 +0000170 };
171};