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>; | |
30 | gpio = <&gpio5 29 0>; /* gpio line 157 */ | |
31 | startup-delay-us = <150>; | |
32 | enable-active-high; | |
33 | }; | |
34 | }; | |
35 | ||
36 | &omap3_pmx_core { | |
37 | mmc2_pins: pinmux_mmc2_pins { | |
38 | pinctrl-single,pins = < | |
39 | 0x128 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_clk */ | |
40 | 0x12a (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_cmd */ | |
41 | 0x12c (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat0 */ | |
42 | 0x12e (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat1 */ | |
43 | 0x130 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat2 */ | |
44 | 0x132 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat3 */ | |
45 | >; | |
46 | }; | |
47 | }; | |
48 | ||
49 | &i2c1 { | |
50 | clock-frequency = <2900000>; | |
51 | ||
52 | twl: twl@48 { | |
53 | reg = <0x48>; | |
54 | interrupts = <7>; /* SYS_NIRQ cascaded to intc */ | |
55 | interrupt-parent = <&intc>; | |
56 | }; | |
57 | }; | |
58 | ||
59 | /include/ "twl4030.dtsi" | |
60 | ||
61 | &twl { | |
62 | compatible = "ti,twl5031"; | |
f4b36909 AK |
63 | |
64 | twl_power: power { | |
65 | compatible = "ti,twl4030-power"; | |
66 | ti,use_poweroff; | |
67 | }; | |
df013188 AK |
68 | }; |
69 | ||
70 | &twl_gpio { | |
71 | ti,pullups = <0x000001>; /* BIT(0) */ | |
72 | ti,pulldowns = <0x008106>; /* BIT(1) | BIT(2) | BIT(8) | BIT(15) */ | |
73 | }; | |
74 | ||
79f7f37a SA |
75 | /* CSI-2 receiver */ |
76 | &vaux2 { | |
77 | regulator-name = "vaux2"; | |
78 | regulator-min-microvolt = <1800000>; | |
79 | regulator-max-microvolt = <1800000>; | |
80 | }; | |
81 | ||
82 | /* Cameras */ | |
83 | &vaux3 { | |
84 | regulator-name = "vaux3"; | |
85 | regulator-min-microvolt = <2800000>; | |
86 | regulator-max-microvolt = <2800000>; | |
87 | }; | |
88 | ||
df013188 AK |
89 | &i2c2 { |
90 | clock-frequency = <400000>; | |
91 | }; | |
92 | ||
93 | &i2c3 { | |
94 | clock-frequency = <400000>; | |
95 | }; | |
96 | ||
97 | &mmc1 { | |
98 | status = "disabled"; | |
99 | }; | |
100 | ||
101 | &mmc2 { | |
102 | pinctrl-names = "default"; | |
103 | pinctrl-0 = <&mmc2_pins>; | |
104 | vmmc-supply = <&vemmc>; | |
105 | bus-width = <4>; | |
106 | ti,non-removable; | |
107 | }; | |
108 | ||
109 | &mmc3 { | |
110 | status = "disabled"; | |
111 | }; | |
112 | ||
113 | &usb_otg_hs { | |
114 | interface-type = <0>; | |
115 | usb-phy = <&usb2_phy>; | |
116 | phys = <&usb2_phy>; | |
117 | phy-names = "usb2-phy"; | |
118 | mode = <3>; | |
119 | power = <50>; | |
120 | }; | |
121 | ||
122 | &gpmc { | |
e2c5eb78 | 123 | ranges = <0 0 0x04000000 0x1000000>; /* CS0: 16MB for OneNAND */ |
df013188 AK |
124 | |
125 | onenand@0,0 { | |
126 | #address-cells = <1>; | |
127 | #size-cells = <1>; | |
e2c5eb78 | 128 | reg = <0 0 0x20000>; /* CS0, offset 0, IO size 128K */ |
df013188 AK |
129 | |
130 | gpmc,sync-read; | |
131 | gpmc,sync-write; | |
132 | gpmc,burst-length = <16>; | |
133 | gpmc,burst-read; | |
134 | gpmc,burst-wrap; | |
135 | gpmc,burst-write; | |
136 | gpmc,device-width = <2>; | |
137 | gpmc,mux-add-data = <2>; | |
138 | gpmc,cs-on-ns = <0>; | |
139 | gpmc,cs-rd-off-ns = <87>; | |
140 | gpmc,cs-wr-off-ns = <87>; | |
141 | gpmc,adv-on-ns = <0>; | |
142 | gpmc,adv-rd-off-ns = <10>; | |
143 | gpmc,adv-wr-off-ns = <10>; | |
144 | gpmc,oe-on-ns = <15>; | |
145 | gpmc,oe-off-ns = <87>; | |
146 | gpmc,we-on-ns = <0>; | |
147 | gpmc,we-off-ns = <87>; | |
148 | gpmc,rd-cycle-ns = <112>; | |
149 | gpmc,wr-cycle-ns = <112>; | |
150 | gpmc,access-ns = <81>; | |
151 | gpmc,page-burst-access-ns = <15>; | |
152 | gpmc,bus-turnaround-ns = <0>; | |
153 | gpmc,cycle2cycle-delay-ns = <0>; | |
154 | gpmc,wait-monitoring-ns = <0>; | |
155 | gpmc,clk-activation-ns = <5>; | |
156 | gpmc,wr-data-mux-bus-ns = <30>; | |
157 | gpmc,wr-access-ns = <81>; | |
158 | gpmc,sync-clk-ps = <15000>; | |
159 | ||
160 | /* | |
161 | * MTD partition table corresponding to Nokia's MeeGo 1.2 | |
162 | * Harmattan release. | |
163 | */ | |
164 | partition@0 { | |
165 | label = "bootloader"; | |
166 | reg = <0x00000000 0x00100000>; | |
167 | }; | |
168 | partition@1 { | |
169 | label = "config"; | |
170 | reg = <0x00100000 0x002c0000>; | |
171 | }; | |
172 | partition@2 { | |
173 | label = "kernel"; | |
174 | reg = <0x003c0000 0x01000000>; | |
175 | }; | |
176 | partition@3 { | |
177 | label = "log"; | |
178 | reg = <0x013c0000 0x00200000>; | |
179 | }; | |
180 | partition@4 { | |
181 | label = "var"; | |
182 | reg = <0x015c0000 0x1ca40000>; | |
183 | }; | |
184 | partition@5 { | |
185 | label = "moslo"; | |
186 | reg = <0x1e000000 0x02000000>; | |
187 | }; | |
188 | partition@6 { | |
189 | label = "omap2-onenand"; | |
190 | reg = <0x00000000 0x20000000>; | |
191 | }; | |
192 | }; | |
193 | }; |