hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Common device tree for IGEP boards based on AM/DM37x
 *
 * Copyright (C) 2012 Javier Martinez Canillas <javier@osg.samsung.com>
 * Copyright (C) 2012 Enric Balletbo i Serra <eballetbo@gmail.com>
 */
/dts-v1/;
 
#include "omap36xx.dtsi"
 
/ {
   memory@80000000 {
       device_type = "memory";
       reg = <0x80000000 0x20000000>; /* 512 MB */
   };
 
   chosen {
       stdout-path = &uart3;
   };
 
   sound {
       compatible = "ti,omap-twl4030";
       ti,model = "igep2";
       ti,mcbsp = <&mcbsp2>;
   };
 
   vdd33: regulator-vdd33 {
       compatible = "regulator-fixed";
       regulator-name = "vdd33";
       regulator-always-on;
   };
 
};
 
&omap3_pmx_core {
   gpmc_pins: pinmux_gpmc_pins {
       pinctrl-single,pins = <
           /* OneNAND seems to require PIN_INPUT on clock. */
                        OMAP3_CORE1_IOPAD(0x20be, PIN_INPUT | MUX_MODE0)        /* gpmc_clk.gpmc_clk */
       >;
   };
 
   uart1_pins: pinmux_uart1_pins {
       pinctrl-single,pins = <
           OMAP3_CORE1_IOPAD(0x2182, PIN_INPUT | MUX_MODE0)    /* uart1_rx.uart1_rx */
           OMAP3_CORE1_IOPAD(0x217c, PIN_OUTPUT | MUX_MODE0)    /* uart1_tx.uart1_tx */
       >;
   };
 
   uart3_pins: pinmux_uart3_pins {
       pinctrl-single,pins = <
           OMAP3_CORE1_IOPAD(0x219e, PIN_INPUT | MUX_MODE0)    /* uart3_rx.uart3_rx */
           OMAP3_CORE1_IOPAD(0x21a0, PIN_OUTPUT | MUX_MODE0)    /* uart3_tx.uart3_tx */
       >;
   };
 
   mcbsp2_pins: pinmux_mcbsp2_pins {
       pinctrl-single,pins = <
           OMAP3_CORE1_IOPAD(0x213c, PIN_INPUT | MUX_MODE0)    /* mcbsp2_fsx.mcbsp2_fsx */
           OMAP3_CORE1_IOPAD(0x213e, PIN_INPUT | MUX_MODE0)    /* mcbsp2_clkx.mcbsp2_clkx */
           OMAP3_CORE1_IOPAD(0x2140, PIN_INPUT | MUX_MODE0)    /* mcbsp2_dr.mcbsp2.dr */
           OMAP3_CORE1_IOPAD(0x2142, PIN_OUTPUT | MUX_MODE0)    /* mcbsp2_dx.mcbsp2_dx */
       >;
   };
 
   mmc1_pins: pinmux_mmc1_pins {
       pinctrl-single,pins = <
           OMAP3_CORE1_IOPAD(0x2144, PIN_INPUT_PULLUP | MUX_MODE0)    /* sdmmc1_clk.sdmmc1_clk */
           OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT_PULLUP | MUX_MODE0)    /* sdmmc1_cmd.sdmmc1_cmd */
           OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat0.sdmmc1_dat0 */
           OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT_PULLUP | MUX_MODE0)    /* sdmmc1_dat1.sdmmc1_dat1 */
           OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT_PULLUP | MUX_MODE0)    /* sdmmc1_dat2.sdmmc1_dat2 */
           OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT_PULLUP | MUX_MODE0)    /* sdmmc1_dat3.sdmmc1_dat3 */
       >;
   };
 
   mmc2_pins: pinmux_mmc2_pins {
       pinctrl-single,pins = <
           OMAP3_CORE1_IOPAD(0x2158, PIN_INPUT_PULLUP | MUX_MODE0)    /* sdmmc2_clk.sdmmc2_clk */
           OMAP3_CORE1_IOPAD(0x215a, PIN_INPUT_PULLUP | MUX_MODE0)    /* sdmmc2_cmd.sdmmc2_cmd */
           OMAP3_CORE1_IOPAD(0x215c, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat0.sdmmc2_dat0 */
           OMAP3_CORE1_IOPAD(0x215e, PIN_INPUT_PULLUP | MUX_MODE0)    /* sdmmc2_dat1.sdmmc2_dat1 */
           OMAP3_CORE1_IOPAD(0x2160, PIN_INPUT_PULLUP | MUX_MODE0)    /* sdmmc2_dat2.sdmmc2_dat2 */
           OMAP3_CORE1_IOPAD(0x2162, PIN_INPUT_PULLUP | MUX_MODE0)    /* sdmmc2_dat3.sdmmc2_dat3 */
       >;
   };
 
   i2c1_pins: pinmux_i2c1_pins {
       pinctrl-single,pins = <
           OMAP3_CORE1_IOPAD(0x21ba, PIN_INPUT | MUX_MODE0)    /* i2c1_scl.i2c1_scl */
           OMAP3_CORE1_IOPAD(0x21bc, PIN_INPUT | MUX_MODE0)    /* i2c1_sda.i2c1_sda */
       >;
   };
 
   i2c3_pins: pinmux_i2c3_pins {
       pinctrl-single,pins = <
           OMAP3_CORE1_IOPAD(0x21c2, PIN_INPUT | MUX_MODE0)    /* i2c3_scl.i2c3_scl */
           OMAP3_CORE1_IOPAD(0x21c4, PIN_INPUT | MUX_MODE0)    /* i2c3_sda.i2c3_sda */
       >;
   };
};
 
&gpmc {
   pinctrl-names = "default";
   pinctrl-0 = <&gpmc_pins>;
 
   nand@0,0 {
       compatible = "ti,omap2-nand";
       reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
       interrupt-parent = <&gpmc>;
       interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
                <1 IRQ_TYPE_NONE>;    /* termcount */
       linux,mtd-name= "micron,mt29c4g96maz";
       nand-bus-width = <16>;
       gpmc,device-width = <2>;
       ti,nand-ecc-opt = "bch8";
 
       gpmc,sync-clk-ps = <0>;
       gpmc,cs-on-ns = <0>;
       gpmc,cs-rd-off-ns = <44>;
       gpmc,cs-wr-off-ns = <44>;
       gpmc,adv-on-ns = <6>;
       gpmc,adv-rd-off-ns = <34>;
       gpmc,adv-wr-off-ns = <44>;
       gpmc,we-off-ns = <40>;
       gpmc,oe-off-ns = <54>;
       gpmc,access-ns = <64>;
       gpmc,rd-cycle-ns = <82>;
       gpmc,wr-cycle-ns = <82>;
       gpmc,wr-access-ns = <40>;
       gpmc,wr-data-mux-bus-ns = <0>;
 
       #address-cells = <1>;
       #size-cells = <1>;
 
       status = "okay";
   };
 
   onenand@0,0 {
       compatible = "ti,omap2-onenand";
       reg = <0 0 0x20000>;    /* CS0, offset 0, IO size 128K */
 
       gpmc,sync-read;
       gpmc,sync-write;
       gpmc,burst-length = <16>;
       gpmc,burst-wrap;
       gpmc,burst-read;
       gpmc,burst-write;
       gpmc,device-width = <2>; /* GPMC_DEVWIDTH_16BIT */
       gpmc,mux-add-data = <2>; /* GPMC_MUX_AD */
       gpmc,cs-on-ns = <0>;
       gpmc,cs-rd-off-ns = <96>;
       gpmc,cs-wr-off-ns = <96>;
       gpmc,adv-on-ns = <0>;
       gpmc,adv-rd-off-ns = <12>;
       gpmc,adv-wr-off-ns = <12>;
       gpmc,oe-on-ns = <18>;
       gpmc,oe-off-ns = <96>;
       gpmc,we-on-ns = <0>;
       gpmc,we-off-ns = <96>;
       gpmc,rd-cycle-ns = <114>;
       gpmc,wr-cycle-ns = <114>;
       gpmc,access-ns = <90>;
       gpmc,page-burst-access-ns = <12>;
       gpmc,bus-turnaround-ns = <0>;
       gpmc,cycle2cycle-delay-ns = <0>;
       gpmc,wait-monitoring-ns = <0>;
       gpmc,clk-activation-ns = <6>;
       gpmc,wr-data-mux-bus-ns = <30>;
       gpmc,wr-access-ns = <90>;
       gpmc,sync-clk-ps = <12000>;
 
       #address-cells = <1>;
       #size-cells = <1>;
 
       status = "disabled";
   };
};
 
&i2c1 {
   pinctrl-names = "default";
   pinctrl-0 = <&i2c1_pins>;
   clock-frequency = <2600000>;
 
   twl: twl@48 {
       reg = <0x48>;
       interrupts = <7>; /* SYS_NIRQ cascaded to intc */
       interrupt-parent = <&intc>;
 
       twl_audio: audio {
           compatible = "ti,twl4030-audio";
           codec {
           };
       };
   };
};
 
#include "twl4030.dtsi"
#include "twl4030_omap3.dtsi"
 
&i2c3 {
   pinctrl-names = "default";
   pinctrl-0 = <&i2c3_pins>;
};
 
&mcbsp2 {
   pinctrl-names = "default";
   pinctrl-0 = <&mcbsp2_pins>;
   status = "okay";
};
 
&mmc1 {
   pinctrl-names = "default";
   pinctrl-0 = <&mmc1_pins>;
   vmmc-supply = <&vmmc1>;
   vmmc_aux-supply = <&vsim>;
   bus-width = <4>;
   cd-gpios = <&twl_gpio 0 GPIO_ACTIVE_LOW>;
};
 
&mmc3 {
   status = "disabled";
};
 
&uart1 {
   pinctrl-names = "default";
   pinctrl-0 = <&uart1_pins>;
};
 
&uart3 {
   pinctrl-names = "default";
   pinctrl-0 = <&uart3_pins>;
};
 
&twl_gpio {
   ti,use-leds;
};
 
&usb_otg_hs {
   interface-type = <0>;
   usb-phy = <&usb2_phy>;
   phys = <&usb2_phy>;
   phy-names = "usb2-phy";
   mode = <3>;
   power = <50>;
};