Commit | Line | Data |
---|---|---|
df013188 AK |
1 | /* |
2 | * omap3-n950-n9.dtsi - Device Tree file for Nokia N950 & N9 (common stuff) | |
3 | * | |
4 | * Written by: Aaro Koskinen <aaro.koskinen@iki.fi> | |
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 | ||
a494e32d | 11 | #include "omap36xx.dtsi" |
df013188 AK |
12 | |
13 | / { | |
14 | cpus { | |
15 | cpu@0 { | |
16 | cpu0-supply = <&vcc>; | |
17 | }; | |
18 | }; | |
19 | ||
20 | memory { | |
21 | device_type = "memory"; | |
22 | reg = <0x80000000 0x40000000>; /* 1 GB */ | |
23 | }; | |
24 | ||
25 | vemmc: fixedregulator@0 { | |
26 | compatible = "regulator-fixed"; | |
27 | regulator-name = "VEMMC"; | |
28 | regulator-min-microvolt = <2900000>; | |
29 | regulator-max-microvolt = <2900000>; | |
3a637e00 | 30 | gpio = <&gpio5 29 GPIO_ACTIVE_HIGH>; /* gpio line 157 */ |
df013188 AK |
31 | startup-delay-us = <150>; |
32 | enable-active-high; | |
33 | }; | |
96d3bb1a SR |
34 | |
35 | vwlan_fixed: fixedregulator@2 { | |
36 | compatible = "regulator-fixed"; | |
37 | regulator-name = "VWLAN"; | |
38 | gpio = <&gpio2 3 GPIO_ACTIVE_HIGH>; /* gpio 35 */ | |
39 | enable-active-high; | |
40 | regulator-boot-off; | |
41 | }; | |
df013188 AK |
42 | }; |
43 | ||
44 | &omap3_pmx_core { | |
45 | mmc2_pins: pinmux_mmc2_pins { | |
46 | pinctrl-single,pins = < | |
53ccdd4b JMC |
47 | OMAP3_CORE1_IOPAD(0x2158, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_clk */ |
48 | OMAP3_CORE1_IOPAD(0x215a, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_cmd */ | |
49 | OMAP3_CORE1_IOPAD(0x215c, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat0 */ | |
50 | OMAP3_CORE1_IOPAD(0x215e, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat1 */ | |
51 | OMAP3_CORE1_IOPAD(0x2160, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat2 */ | |
52 | OMAP3_CORE1_IOPAD(0x2162, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat3 */ | |
df013188 AK |
53 | >; |
54 | }; | |
96d3bb1a SR |
55 | |
56 | wlan_pins: pinmux_wlan_pins { | |
57 | pinctrl-single,pins = < | |
58 | OMAP3_CORE1_IOPAD(0x207c, PIN_OUTPUT | MUX_MODE4) /* gpio 35 - wlan enable */ | |
59 | OMAP3_CORE1_IOPAD(0x208a, PIN_INPUT | MUX_MODE4) /* gpio 42 - wlan irq */ | |
60 | >; | |
61 | }; | |
df013188 AK |
62 | }; |
63 | ||
64 | &i2c1 { | |
65 | clock-frequency = <2900000>; | |
66 | ||
67 | twl: twl@48 { | |
68 | reg = <0x48>; | |
69 | interrupts = <7>; /* SYS_NIRQ cascaded to intc */ | |
70 | interrupt-parent = <&intc>; | |
71 | }; | |
72 | }; | |
73 | ||
74 | /include/ "twl4030.dtsi" | |
75 | ||
76 | &twl { | |
77 | compatible = "ti,twl5031"; | |
f4b36909 AK |
78 | |
79 | twl_power: power { | |
80 | compatible = "ti,twl4030-power"; | |
81 | ti,use_poweroff; | |
82 | }; | |
df013188 AK |
83 | }; |
84 | ||
85 | &twl_gpio { | |
86 | ti,pullups = <0x000001>; /* BIT(0) */ | |
87 | ti,pulldowns = <0x008106>; /* BIT(1) | BIT(2) | BIT(8) | BIT(15) */ | |
88 | }; | |
89 | ||
79f7f37a SA |
90 | /* CSI-2 receiver */ |
91 | &vaux2 { | |
92 | regulator-name = "vaux2"; | |
93 | regulator-min-microvolt = <1800000>; | |
94 | regulator-max-microvolt = <1800000>; | |
95 | }; | |
96 | ||
97 | /* Cameras */ | |
98 | &vaux3 { | |
99 | regulator-name = "vaux3"; | |
100 | regulator-min-microvolt = <2800000>; | |
101 | regulator-max-microvolt = <2800000>; | |
102 | }; | |
103 | ||
df013188 AK |
104 | &i2c2 { |
105 | clock-frequency = <400000>; | |
106 | }; | |
107 | ||
108 | &i2c3 { | |
109 | clock-frequency = <400000>; | |
110 | }; | |
111 | ||
112 | &mmc1 { | |
113 | status = "disabled"; | |
114 | }; | |
115 | ||
116 | &mmc2 { | |
117 | pinctrl-names = "default"; | |
118 | pinctrl-0 = <&mmc2_pins>; | |
119 | vmmc-supply = <&vemmc>; | |
120 | bus-width = <4>; | |
121 | ti,non-removable; | |
122 | }; | |
123 | ||
124 | &mmc3 { | |
125 | status = "disabled"; | |
126 | }; | |
127 | ||
128 | &usb_otg_hs { | |
129 | interface-type = <0>; | |
130 | usb-phy = <&usb2_phy>; | |
131 | phys = <&usb2_phy>; | |
132 | phy-names = "usb2-phy"; | |
133 | mode = <3>; | |
134 | power = <50>; | |
135 | }; | |
136 | ||
137 | &gpmc { | |
e2c5eb78 | 138 | ranges = <0 0 0x04000000 0x1000000>; /* CS0: 16MB for OneNAND */ |
df013188 AK |
139 | |
140 | onenand@0,0 { | |
141 | #address-cells = <1>; | |
142 | #size-cells = <1>; | |
e2c5eb78 | 143 | reg = <0 0 0x20000>; /* CS0, offset 0, IO size 128K */ |
df013188 AK |
144 | |
145 | gpmc,sync-read; | |
146 | gpmc,sync-write; | |
147 | gpmc,burst-length = <16>; | |
148 | gpmc,burst-read; | |
149 | gpmc,burst-wrap; | |
150 | gpmc,burst-write; | |
151 | gpmc,device-width = <2>; | |
152 | gpmc,mux-add-data = <2>; | |
153 | gpmc,cs-on-ns = <0>; | |
154 | gpmc,cs-rd-off-ns = <87>; | |
155 | gpmc,cs-wr-off-ns = <87>; | |
156 | gpmc,adv-on-ns = <0>; | |
157 | gpmc,adv-rd-off-ns = <10>; | |
158 | gpmc,adv-wr-off-ns = <10>; | |
159 | gpmc,oe-on-ns = <15>; | |
160 | gpmc,oe-off-ns = <87>; | |
161 | gpmc,we-on-ns = <0>; | |
162 | gpmc,we-off-ns = <87>; | |
163 | gpmc,rd-cycle-ns = <112>; | |
164 | gpmc,wr-cycle-ns = <112>; | |
165 | gpmc,access-ns = <81>; | |
166 | gpmc,page-burst-access-ns = <15>; | |
167 | gpmc,bus-turnaround-ns = <0>; | |
168 | gpmc,cycle2cycle-delay-ns = <0>; | |
169 | gpmc,wait-monitoring-ns = <0>; | |
170 | gpmc,clk-activation-ns = <5>; | |
171 | gpmc,wr-data-mux-bus-ns = <30>; | |
172 | gpmc,wr-access-ns = <81>; | |
173 | gpmc,sync-clk-ps = <15000>; | |
174 | ||
175 | /* | |
176 | * MTD partition table corresponding to Nokia's MeeGo 1.2 | |
177 | * Harmattan release. | |
178 | */ | |
179 | partition@0 { | |
180 | label = "bootloader"; | |
181 | reg = <0x00000000 0x00100000>; | |
182 | }; | |
183 | partition@1 { | |
184 | label = "config"; | |
185 | reg = <0x00100000 0x002c0000>; | |
186 | }; | |
187 | partition@2 { | |
188 | label = "kernel"; | |
189 | reg = <0x003c0000 0x01000000>; | |
190 | }; | |
191 | partition@3 { | |
192 | label = "log"; | |
193 | reg = <0x013c0000 0x00200000>; | |
194 | }; | |
195 | partition@4 { | |
196 | label = "var"; | |
197 | reg = <0x015c0000 0x1ca40000>; | |
198 | }; | |
199 | partition@5 { | |
200 | label = "moslo"; | |
201 | reg = <0x1e000000 0x02000000>; | |
202 | }; | |
203 | partition@6 { | |
204 | label = "omap2-onenand"; | |
205 | reg = <0x00000000 0x20000000>; | |
206 | }; | |
207 | }; | |
208 | }; |