diff options
-rw-r--r-- | arch/arm/boot/dts/am4372.dtsi | 24 | ||||
-rw-r--r-- | arch/arm/boot/dts/am43x-epos-evm.dts | 107 |
2 files changed, 131 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/am4372.dtsi b/arch/arm/boot/dts/am4372.dtsi index eb74ab82aa94..a4555bedd713 100644 --- a/arch/arm/boot/dts/am4372.dtsi +++ b/arch/arm/boot/dts/am4372.dtsi | |||
@@ -701,6 +701,30 @@ | |||
701 | <&edma 11>; | 701 | <&edma 11>; |
702 | dma-names = "tx", "rx"; | 702 | dma-names = "tx", "rx"; |
703 | }; | 703 | }; |
704 | |||
705 | elm: elm@48080000 { | ||
706 | compatible = "ti,am3352-elm"; | ||
707 | reg = <0x48080000 0x2000>; | ||
708 | interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>; | ||
709 | ti,hwmods = "elm"; | ||
710 | clocks = <&l4ls_gclk>; | ||
711 | clock-names = "fck"; | ||
712 | status = "disabled"; | ||
713 | }; | ||
714 | |||
715 | gpmc: gpmc@50000000 { | ||
716 | compatible = "ti,am3352-gpmc"; | ||
717 | ti,hwmods = "gpmc"; | ||
718 | clocks = <&l3s_gclk>; | ||
719 | clock-names = "fck"; | ||
720 | reg = <0x50000000 0x2000>; | ||
721 | interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>; | ||
722 | gpmc,num-cs = <7>; | ||
723 | gpmc,num-waitpins = <2>; | ||
724 | #address-cells = <2>; | ||
725 | #size-cells = <1>; | ||
726 | status = "disabled"; | ||
727 | }; | ||
704 | }; | 728 | }; |
705 | }; | 729 | }; |
706 | 730 | ||
diff --git a/arch/arm/boot/dts/am43x-epos-evm.dts b/arch/arm/boot/dts/am43x-epos-evm.dts index fbf9c4c7a94f..15aa70822bdf 100644 --- a/arch/arm/boot/dts/am43x-epos-evm.dts +++ b/arch/arm/boot/dts/am43x-epos-evm.dts | |||
@@ -79,6 +79,27 @@ | |||
79 | 0x18c (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* i2c0_scl.i2c0_scl */ | 79 | 0x18c (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* i2c0_scl.i2c0_scl */ |
80 | >; | 80 | >; |
81 | }; | 81 | }; |
82 | |||
83 | nand_flash_x8: nand_flash_x8 { | ||
84 | pinctrl-single,pins = < | ||
85 | 0x40 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_a0.SELQSPIorNAND/GPIO */ | ||
86 | 0x0 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* gpmc_ad0.gpmc_ad0 */ | ||
87 | 0x4 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* gpmc_ad1.gpmc_ad1 */ | ||
88 | 0x8 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* gpmc_ad2.gpmc_ad2 */ | ||
89 | 0xc (PIN_INPUT_PULLDOWN | MUX_MODE0) /* gpmc_ad3.gpmc_ad3 */ | ||
90 | 0x10 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* gpmc_ad4.gpmc_ad4 */ | ||
91 | 0x14 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* gpmc_ad5.gpmc_ad5 */ | ||
92 | 0x18 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* gpmc_ad6.gpmc_ad6 */ | ||
93 | 0x1c (PIN_INPUT_PULLDOWN | MUX_MODE0) /* gpmc_ad7.gpmc_ad7 */ | ||
94 | 0x70 (PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_wait0.gpmc_wait0 */ | ||
95 | 0x74 (PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_wpn.gpmc_wpn */ | ||
96 | 0x7c (PIN_OUTPUT | MUX_MODE0) /* gpmc_csn0.gpmc_csn0 */ | ||
97 | 0x90 (PIN_OUTPUT | MUX_MODE0) /* gpmc_advn_ale.gpmc_advn_ale */ | ||
98 | 0x94 (PIN_OUTPUT | MUX_MODE0) /* gpmc_oen_ren.gpmc_oen_ren */ | ||
99 | 0x98 (PIN_OUTPUT | MUX_MODE0) /* gpmc_wen.gpmc_wen */ | ||
100 | 0x9c (PIN_OUTPUT | MUX_MODE0) /* gpmc_be0n_cle.gpmc_be0n_cle */ | ||
101 | >; | ||
102 | }; | ||
82 | }; | 103 | }; |
83 | 104 | ||
84 | matrix_keypad: matrix_keypad@0 { | 105 | matrix_keypad: matrix_keypad@0 { |
@@ -184,3 +205,89 @@ | |||
184 | &gpio3 { | 205 | &gpio3 { |
185 | status = "okay"; | 206 | status = "okay"; |
186 | }; | 207 | }; |
208 | |||
209 | &elm { | ||
210 | status = "okay"; | ||
211 | }; | ||
212 | |||
213 | &gpmc { | ||
214 | status = "okay"; | ||
215 | pinctrl-names = "default"; | ||
216 | pinctrl-0 = <&nand_flash_x8>; | ||
217 | ranges = <0 0 0x08000000 0x10000000>; /* CS0: NAND */ | ||
218 | nand@0,0 { | ||
219 | reg = <0 0 0>; /* CS0, offset 0 */ | ||
220 | ti,nand-ecc-opt = "bch8"; | ||
221 | ti,elm-id = <&elm>; | ||
222 | nand-bus-width = <8>; | ||
223 | gpmc,device-width = <1>; | ||
224 | gpmc,sync-clk-ps = <0>; | ||
225 | gpmc,cs-on-ns = <0>; | ||
226 | gpmc,cs-rd-off-ns = <40>; /* tCEA + tCHZ + 1 */ | ||
227 | gpmc,cs-wr-off-ns = <40>; | ||
228 | gpmc,adv-on-ns = <0>; /* cs-on-ns */ | ||
229 | gpmc,adv-rd-off-ns = <25>; /* min( tALH + tALS + 1) */ | ||
230 | gpmc,adv-wr-off-ns = <25>; /* min( tALH + tALS + 1) */ | ||
231 | gpmc,we-on-ns = <0>; /* cs-on-ns */ | ||
232 | gpmc,we-off-ns = <20>; /* we-on-time + tWP + 2 */ | ||
233 | gpmc,oe-on-ns = <3>; /* cs-on-ns + tRR + 2 */ | ||
234 | gpmc,oe-off-ns = <30>; /* oe-on-ns + tRP + 2 */ | ||
235 | gpmc,access-ns = <30>; /* tCEA + 4*/ | ||
236 | gpmc,rd-cycle-ns = <40>; | ||
237 | gpmc,wr-cycle-ns = <40>; | ||
238 | gpmc,wait-on-read = "true"; | ||
239 | gpmc,wait-on-write = "true"; | ||
240 | gpmc,bus-turnaround-ns = <0>; | ||
241 | gpmc,cycle2cycle-delay-ns = <0>; | ||
242 | gpmc,clk-activation-ns = <0>; | ||
243 | gpmc,wait-monitoring-ns = <0>; | ||
244 | gpmc,wr-access-ns = <40>; | ||
245 | gpmc,wr-data-mux-bus-ns = <0>; | ||
246 | /* MTD partition table */ | ||
247 | /* All SPL-* partitions are sized to minimal length | ||
248 | * which can be independently programmable. For | ||
249 | * NAND flash this is equal to size of erase-block */ | ||
250 | #address-cells = <1>; | ||
251 | #size-cells = <1>; | ||
252 | partition@0 { | ||
253 | label = "NAND.SPL"; | ||
254 | reg = <0x00000000 0x00040000>; | ||
255 | }; | ||
256 | partition@1 { | ||
257 | label = "NAND.SPL.backup1"; | ||
258 | reg = <0x00040000 0x00040000>; | ||
259 | }; | ||
260 | partition@2 { | ||
261 | label = "NAND.SPL.backup2"; | ||
262 | reg = <0x00080000 0x00040000>; | ||
263 | }; | ||
264 | partition@3 { | ||
265 | label = "NAND.SPL.backup3"; | ||
266 | reg = <0x000C0000 0x00040000>; | ||
267 | }; | ||
268 | partition@4 { | ||
269 | label = "NAND.u-boot-spl-os"; | ||
270 | reg = <0x00100000 0x00080000>; | ||
271 | }; | ||
272 | partition@5 { | ||
273 | label = "NAND.u-boot"; | ||
274 | reg = <0x00180000 0x00100000>; | ||
275 | }; | ||
276 | partition@6 { | ||
277 | label = "NAND.u-boot-env"; | ||
278 | reg = <0x00280000 0x00040000>; | ||
279 | }; | ||
280 | partition@7 { | ||
281 | label = "NAND.u-boot-env.backup1"; | ||
282 | reg = <0x002C0000 0x00040000>; | ||
283 | }; | ||
284 | partition@8 { | ||
285 | label = "NAND.kernel"; | ||
286 | reg = <0x00300000 0x00700000>; | ||
287 | }; | ||
288 | partition@9 { | ||
289 | label = "NAND.file-system"; | ||
290 | reg = <0x00800000 0x1F600000>; | ||
291 | }; | ||
292 | }; | ||
293 | }; | ||