diff options
author | Sourav Poddar <sourav.poddar@ti.com> | 2014-04-28 09:42:30 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2014-05-06 13:19:49 -0400 |
commit | 2a1a5043fd3711b8aad6f485a0a6ae17c76e1693 (patch) | |
tree | 1e7ca00f0b2d257cd2dab956fb4bd87071be1fb0 /arch/arm/boot | |
parent | 4a996d187ed970a0d2116501edb6e744bce78f29 (diff) |
ARM: dts: am43x-epos: Add qspi device
This patch adds qspi nodes for am43xx SOC devices.
Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/boot')
-rw-r--r-- | arch/arm/boot/dts/am4372.dtsi | 11 | ||||
-rw-r--r-- | arch/arm/boot/dts/am43x-epos-evm.dts | 63 |
2 files changed, 74 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/am4372.dtsi b/arch/arm/boot/dts/am4372.dtsi index 957ecfd84ef7..ac37ac9cab31 100644 --- a/arch/arm/boot/dts/am4372.dtsi +++ b/arch/arm/boot/dts/am4372.dtsi | |||
@@ -829,6 +829,17 @@ | |||
829 | status = "disabled"; | 829 | status = "disabled"; |
830 | }; | 830 | }; |
831 | }; | 831 | }; |
832 | |||
833 | qspi: qspi@47900000 { | ||
834 | compatible = "ti,am4372-qspi"; | ||
835 | reg = <0x47900000 0x100>; | ||
836 | #address-cells = <1>; | ||
837 | #size-cells = <0>; | ||
838 | ti,hwmods = "qspi"; | ||
839 | interrupts = <0 138 0x4>; | ||
840 | num-cs = <4>; | ||
841 | status = "disabled"; | ||
842 | }; | ||
832 | }; | 843 | }; |
833 | }; | 844 | }; |
834 | 845 | ||
diff --git a/arch/arm/boot/dts/am43x-epos-evm.dts b/arch/arm/boot/dts/am43x-epos-evm.dts index 1a4946a76ea2..ce5fc3909771 100644 --- a/arch/arm/boot/dts/am43x-epos-evm.dts +++ b/arch/arm/boot/dts/am43x-epos-evm.dts | |||
@@ -138,6 +138,17 @@ | |||
138 | 0x160 (PIN_INPUT | MUX_MODE7) /* spi0_cs1.gpio0_6 */ | 138 | 0x160 (PIN_INPUT | MUX_MODE7) /* spi0_cs1.gpio0_6 */ |
139 | >; | 139 | >; |
140 | }; | 140 | }; |
141 | |||
142 | qspi1_default: qspi1_default { | ||
143 | pinctrl-single,pins = < | ||
144 | 0x7c (PIN_INPUT_PULLUP | MUX_MODE3) | ||
145 | 0x88 (PIN_INPUT_PULLUP | MUX_MODE2) | ||
146 | 0x90 (PIN_INPUT_PULLUP | MUX_MODE3) | ||
147 | 0x94 (PIN_INPUT_PULLUP | MUX_MODE3) | ||
148 | 0x98 (PIN_INPUT_PULLUP | MUX_MODE3) | ||
149 | 0x9c (PIN_INPUT_PULLUP | MUX_MODE3) | ||
150 | >; | ||
151 | }; | ||
141 | }; | 152 | }; |
142 | 153 | ||
143 | matrix_keypad: matrix_keypad@0 { | 154 | matrix_keypad: matrix_keypad@0 { |
@@ -385,3 +396,55 @@ | |||
385 | dr_mode = "host"; | 396 | dr_mode = "host"; |
386 | status = "okay"; | 397 | status = "okay"; |
387 | }; | 398 | }; |
399 | |||
400 | &qspi { | ||
401 | status = "okay"; | ||
402 | pinctrl-names = "default"; | ||
403 | pinctrl-0 = <&qspi1_default>; | ||
404 | |||
405 | spi-max-frequency = <48000000>; | ||
406 | m25p80@0 { | ||
407 | compatible = "mx66l51235l"; | ||
408 | spi-max-frequency = <48000000>; | ||
409 | reg = <0>; | ||
410 | spi-cpol; | ||
411 | spi-cpha; | ||
412 | spi-tx-bus-width = <1>; | ||
413 | spi-rx-bus-width = <4>; | ||
414 | #address-cells = <1>; | ||
415 | #size-cells = <1>; | ||
416 | |||
417 | /* MTD partition table. | ||
418 | * The ROM checks the first 512KiB | ||
419 | * for a valid file to boot(XIP). | ||
420 | */ | ||
421 | partition@0 { | ||
422 | label = "QSPI.U_BOOT"; | ||
423 | reg = <0x00000000 0x000080000>; | ||
424 | }; | ||
425 | partition@1 { | ||
426 | label = "QSPI.U_BOOT.backup"; | ||
427 | reg = <0x00080000 0x00080000>; | ||
428 | }; | ||
429 | partition@2 { | ||
430 | label = "QSPI.U-BOOT-SPL_OS"; | ||
431 | reg = <0x00100000 0x00010000>; | ||
432 | }; | ||
433 | partition@3 { | ||
434 | label = "QSPI.U_BOOT_ENV"; | ||
435 | reg = <0x00110000 0x00010000>; | ||
436 | }; | ||
437 | partition@4 { | ||
438 | label = "QSPI.U-BOOT-ENV.backup"; | ||
439 | reg = <0x00120000 0x00010000>; | ||
440 | }; | ||
441 | partition@5 { | ||
442 | label = "QSPI.KERNEL"; | ||
443 | reg = <0x00130000 0x0800000>; | ||
444 | }; | ||
445 | partition@6 { | ||
446 | label = "QSPI.FILESYSTEM"; | ||
447 | reg = <0x00930000 0x36D0000>; | ||
448 | }; | ||
449 | }; | ||
450 | }; | ||