diff options
author | Olof Johansson <olof@lixom.net> | 2013-04-18 02:50:06 -0400 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2013-04-18 02:51:31 -0400 |
commit | c8bf98a28ff792800c9c8473382f79eb099912a5 (patch) | |
tree | b9b9f3999b6b41fb7861675f51bbc8e80c450de2 /arch/arm/boot | |
parent | db39ad7d418b3b64f92295c3d9d7d8595ff68f08 (diff) | |
parent | 4f4d9d4dc55814bd98e6a580e55e0a0855feb5cf (diff) |
Merge tag 'davinci-for-v3.10/dt-2-v2' of git://git.kernel.org/pub/scm/linux/kernel/git/nsekhar/linux-davinci into next/dt2
From Sekhar Nori:
v3.10 DT updates for DaVinci
This set of patches adds support for PWMs and SPI
controller present on DA850 and for SPI flash present on
DA850 EVM.
* tag 'davinci-for-v3.10/dt-2-v2' of git://git.kernel.org/pub/scm/linux/kernel/git/nsekhar/linux-davinci:
ARM: davinci: da850-evm: add SPI flash support
ARM: davinci: da850: override SPI DT node device name
ARM: davinci: da850: add SPI1 DT node
spi/davinci: add DT binding documentation
spi/davinci: no wildcards in DT compatible property
ARM: davinci: da850: add EHRPWM & ECAP DT node
ARM: davinci: da850: override mmc DT node device name
ARM: davinci: da850: add mmc DT entries
mmc: davinci_mmc: add DT support
ARM: davinci: da850: add tps6507x regulator DT data
ARM: regulator: add tps6507x device tree data
ARM: davinci: remove test for undefined Kconfig macro
ARM: davinci: mmc: derive version information from device name
ARM: davinci: da850: add ECAP & EHRPWM clock nodes
ARM: davinci: clk framework support for enable/disable functionality
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm/boot')
-rw-r--r-- | arch/arm/boot/dts/da850-evm.dts | 110 | ||||
-rw-r--r-- | arch/arm/boot/dts/da850.dtsi | 109 | ||||
-rw-r--r-- | arch/arm/boot/dts/tps6507x.dtsi | 47 |
3 files changed, 266 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/da850-evm.dts b/arch/arm/boot/dts/da850-evm.dts index f712fb607a42..c914357c0d89 100644 --- a/arch/arm/boot/dts/da850-evm.dts +++ b/arch/arm/boot/dts/da850-evm.dts | |||
@@ -35,14 +35,124 @@ | |||
35 | clock-frequency = <100000>; | 35 | clock-frequency = <100000>; |
36 | pinctrl-names = "default"; | 36 | pinctrl-names = "default"; |
37 | pinctrl-0 = <&i2c0_pins>; | 37 | pinctrl-0 = <&i2c0_pins>; |
38 | |||
39 | tps: tps@48 { | ||
40 | reg = <0x48>; | ||
41 | }; | ||
38 | }; | 42 | }; |
39 | wdt: wdt@1c21000 { | 43 | wdt: wdt@1c21000 { |
40 | status = "okay"; | 44 | status = "okay"; |
41 | }; | 45 | }; |
46 | mmc0: mmc@1c40000 { | ||
47 | max-frequency = <50000000>; | ||
48 | bus-width = <4>; | ||
49 | status = "okay"; | ||
50 | pinctrl-names = "default"; | ||
51 | pinctrl-0 = <&mmc0_pins>; | ||
52 | }; | ||
53 | spi1: spi@1f0e000 { | ||
54 | status = "okay"; | ||
55 | pinctrl-names = "default"; | ||
56 | pinctrl-0 = <&spi1_pins &spi1_cs0_pin>; | ||
57 | flash: m25p80@0 { | ||
58 | #address-cells = <1>; | ||
59 | #size-cells = <1>; | ||
60 | compatible = "m25p64"; | ||
61 | spi-max-frequency = <30000000>; | ||
62 | reg = <0>; | ||
63 | partition@0 { | ||
64 | label = "U-Boot-SPL"; | ||
65 | reg = <0x00000000 0x00010000>; | ||
66 | read-only; | ||
67 | }; | ||
68 | partition@1 { | ||
69 | label = "U-Boot"; | ||
70 | reg = <0x00010000 0x00080000>; | ||
71 | read-only; | ||
72 | }; | ||
73 | partition@2 { | ||
74 | label = "U-Boot-Env"; | ||
75 | reg = <0x00090000 0x00010000>; | ||
76 | read-only; | ||
77 | }; | ||
78 | partition@3 { | ||
79 | label = "Kernel"; | ||
80 | reg = <0x000a0000 0x00280000>; | ||
81 | }; | ||
82 | partition@4 { | ||
83 | label = "Filesystem"; | ||
84 | reg = <0x00320000 0x00400000>; | ||
85 | }; | ||
86 | partition@5 { | ||
87 | label = "MAC-Address"; | ||
88 | reg = <0x007f0000 0x00010000>; | ||
89 | read-only; | ||
90 | }; | ||
91 | }; | ||
92 | }; | ||
42 | }; | 93 | }; |
43 | nand_cs3@62000000 { | 94 | nand_cs3@62000000 { |
44 | status = "okay"; | 95 | status = "okay"; |
45 | pinctrl-names = "default"; | 96 | pinctrl-names = "default"; |
46 | pinctrl-0 = <&nand_cs3_pins>; | 97 | pinctrl-0 = <&nand_cs3_pins>; |
47 | }; | 98 | }; |
99 | vbat: fixedregulator@0 { | ||
100 | compatible = "regulator-fixed"; | ||
101 | regulator-name = "vbat"; | ||
102 | regulator-min-microvolt = <5000000>; | ||
103 | regulator-max-microvolt = <5000000>; | ||
104 | regulator-boot-on; | ||
105 | }; | ||
106 | }; | ||
107 | |||
108 | /include/ "tps6507x.dtsi" | ||
109 | |||
110 | &tps { | ||
111 | vdcdc1_2-supply = <&vbat>; | ||
112 | vdcdc3-supply = <&vbat>; | ||
113 | vldo1_2-supply = <&vbat>; | ||
114 | |||
115 | regulators { | ||
116 | vdcdc1_reg: regulator@0 { | ||
117 | regulator-name = "VDCDC1_3.3V"; | ||
118 | regulator-min-microvolt = <3150000>; | ||
119 | regulator-max-microvolt = <3450000>; | ||
120 | regulator-always-on; | ||
121 | regulator-boot-on; | ||
122 | }; | ||
123 | |||
124 | vdcdc2_reg: regulator@1 { | ||
125 | regulator-name = "VDCDC2_3.3V"; | ||
126 | regulator-min-microvolt = <1710000>; | ||
127 | regulator-max-microvolt = <3450000>; | ||
128 | regulator-always-on; | ||
129 | regulator-boot-on; | ||
130 | ti,defdcdc_default = <1>; | ||
131 | }; | ||
132 | |||
133 | vdcdc3_reg: regulator@2 { | ||
134 | regulator-name = "VDCDC3_1.2V"; | ||
135 | regulator-min-microvolt = <950000>; | ||
136 | regulator-max-microvolt = <1350000>; | ||
137 | regulator-always-on; | ||
138 | regulator-boot-on; | ||
139 | ti,defdcdc_default = <1>; | ||
140 | }; | ||
141 | |||
142 | ldo1_reg: regulator@3 { | ||
143 | regulator-name = "LDO1_1.8V"; | ||
144 | regulator-min-microvolt = <1710000>; | ||
145 | regulator-max-microvolt = <1890000>; | ||
146 | regulator-always-on; | ||
147 | regulator-boot-on; | ||
148 | }; | ||
149 | |||
150 | ldo2_reg: regulator@4 { | ||
151 | regulator-name = "LDO2_1.2V"; | ||
152 | regulator-min-microvolt = <1140000>; | ||
153 | regulator-max-microvolt = <1320000>; | ||
154 | regulator-always-on; | ||
155 | regulator-boot-on; | ||
156 | }; | ||
157 | }; | ||
48 | }; | 158 | }; |
diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi index 3ec1bda64356..2c88313d2c7a 100644 --- a/arch/arm/boot/dts/da850.dtsi +++ b/arch/arm/boot/dts/da850.dtsi | |||
@@ -62,6 +62,69 @@ | |||
62 | 0x10 0x00002200 0x0000ff00 | 62 | 0x10 0x00002200 0x0000ff00 |
63 | >; | 63 | >; |
64 | }; | 64 | }; |
65 | mmc0_pins: pinmux_mmc_pins { | ||
66 | pinctrl-single,bits = < | ||
67 | /* MMCSD0_DAT[3] MMCSD0_DAT[2] | ||
68 | * MMCSD0_DAT[1] MMCSD0_DAT[0] | ||
69 | * MMCSD0_CMD MMCSD0_CLK | ||
70 | */ | ||
71 | 0x28 0x00222222 0x00ffffff | ||
72 | >; | ||
73 | }; | ||
74 | ehrpwm0a_pins: pinmux_ehrpwm0a_pins { | ||
75 | pinctrl-single,bits = < | ||
76 | /* EPWM0A */ | ||
77 | 0xc 0x00000002 0x0000000f | ||
78 | >; | ||
79 | }; | ||
80 | ehrpwm0b_pins: pinmux_ehrpwm0b_pins { | ||
81 | pinctrl-single,bits = < | ||
82 | /* EPWM0B */ | ||
83 | 0xc 0x00000020 0x000000f0 | ||
84 | >; | ||
85 | }; | ||
86 | ehrpwm1a_pins: pinmux_ehrpwm1a_pins { | ||
87 | pinctrl-single,bits = < | ||
88 | /* EPWM1A */ | ||
89 | 0x14 0x00000002 0x0000000f | ||
90 | >; | ||
91 | }; | ||
92 | ehrpwm1b_pins: pinmux_ehrpwm1b_pins { | ||
93 | pinctrl-single,bits = < | ||
94 | /* EPWM1B */ | ||
95 | 0x14 0x00000020 0x000000f0 | ||
96 | >; | ||
97 | }; | ||
98 | ecap0_pins: pinmux_ecap0_pins { | ||
99 | pinctrl-single,bits = < | ||
100 | /* ECAP0_APWM0 */ | ||
101 | 0x8 0x20000000 0xf0000000 | ||
102 | >; | ||
103 | }; | ||
104 | ecap1_pins: pinmux_ecap1_pins { | ||
105 | pinctrl-single,bits = < | ||
106 | /* ECAP1_APWM1 */ | ||
107 | 0x4 0x40000000 0xf0000000 | ||
108 | >; | ||
109 | }; | ||
110 | ecap2_pins: pinmux_ecap2_pins { | ||
111 | pinctrl-single,bits = < | ||
112 | /* ECAP2_APWM2 */ | ||
113 | 0x4 0x00000004 0x0000000f | ||
114 | >; | ||
115 | }; | ||
116 | spi1_pins: pinmux_spi_pins { | ||
117 | pinctrl-single,bits = < | ||
118 | /* SIMO, SOMI, CLK */ | ||
119 | 0x14 0x00110100 0x00ff0f00 | ||
120 | >; | ||
121 | }; | ||
122 | spi1_cs0_pin: pinmux_spi1_cs0 { | ||
123 | pinctrl-single,bits = < | ||
124 | /* CS0 */ | ||
125 | 0x14 0x00000010 0x000000f0 | ||
126 | >; | ||
127 | }; | ||
65 | }; | 128 | }; |
66 | serial0: serial@1c42000 { | 129 | serial0: serial@1c42000 { |
67 | compatible = "ns16550a"; | 130 | compatible = "ns16550a"; |
@@ -107,6 +170,52 @@ | |||
107 | reg = <0x21000 0x1000>; | 170 | reg = <0x21000 0x1000>; |
108 | status = "disabled"; | 171 | status = "disabled"; |
109 | }; | 172 | }; |
173 | mmc0: mmc@1c40000 { | ||
174 | compatible = "ti,da830-mmc"; | ||
175 | reg = <0x40000 0x1000>; | ||
176 | interrupts = <16>; | ||
177 | status = "disabled"; | ||
178 | }; | ||
179 | ehrpwm0: ehrpwm@01f00000 { | ||
180 | compatible = "ti,da850-ehrpwm", "ti,am33xx-ehrpwm"; | ||
181 | #pwm-cells = <3>; | ||
182 | reg = <0x300000 0x2000>; | ||
183 | status = "disabled"; | ||
184 | }; | ||
185 | ehrpwm1: ehrpwm@01f02000 { | ||
186 | compatible = "ti,da850-ehrpwm", "ti,am33xx-ehrpwm"; | ||
187 | #pwm-cells = <3>; | ||
188 | reg = <0x302000 0x2000>; | ||
189 | status = "disabled"; | ||
190 | }; | ||
191 | ecap0: ecap@01f06000 { | ||
192 | compatible = "ti,da850-ecap", "ti,am33xx-ecap"; | ||
193 | #pwm-cells = <3>; | ||
194 | reg = <0x306000 0x80>; | ||
195 | status = "disabled"; | ||
196 | }; | ||
197 | ecap1: ecap@01f07000 { | ||
198 | compatible = "ti,da850-ecap", "ti,am33xx-ecap"; | ||
199 | #pwm-cells = <3>; | ||
200 | reg = <0x307000 0x80>; | ||
201 | status = "disabled"; | ||
202 | }; | ||
203 | ecap2: ecap@01f08000 { | ||
204 | compatible = "ti,da850-ecap", "ti,am33xx-ecap"; | ||
205 | #pwm-cells = <3>; | ||
206 | reg = <0x308000 0x80>; | ||
207 | status = "disabled"; | ||
208 | }; | ||
209 | spi1: spi@1f0e000 { | ||
210 | #address-cells = <1>; | ||
211 | #size-cells = <0>; | ||
212 | compatible = "ti,da830-spi"; | ||
213 | reg = <0x30e000 0x1000>; | ||
214 | num-cs = <4>; | ||
215 | ti,davinci-spi-intr-line = <1>; | ||
216 | interrupts = <56>; | ||
217 | status = "disabled"; | ||
218 | }; | ||
110 | }; | 219 | }; |
111 | nand_cs3@62000000 { | 220 | nand_cs3@62000000 { |
112 | compatible = "ti,davinci-nand"; | 221 | compatible = "ti,davinci-nand"; |
diff --git a/arch/arm/boot/dts/tps6507x.dtsi b/arch/arm/boot/dts/tps6507x.dtsi new file mode 100644 index 000000000000..4c326e591e5a --- /dev/null +++ b/arch/arm/boot/dts/tps6507x.dtsi | |||
@@ -0,0 +1,47 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/ | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License version 2 as | ||
6 | * published by the Free Software Foundation. | ||
7 | */ | ||
8 | |||
9 | /* | ||
10 | * Integrated Power Management Chip | ||
11 | * http://www.ti.com/lit/ds/symlink/tps65070.pdf | ||
12 | */ | ||
13 | |||
14 | &tps { | ||
15 | compatible = "ti,tps6507x"; | ||
16 | |||
17 | regulators { | ||
18 | #address-cells = <1>; | ||
19 | #size-cells = <0>; | ||
20 | |||
21 | vdcdc1_reg: regulator@0 { | ||
22 | reg = <0>; | ||
23 | regulator-compatible = "VDCDC1"; | ||
24 | }; | ||
25 | |||
26 | vdcdc2_reg: regulator@1 { | ||
27 | reg = <1>; | ||
28 | regulator-compatible = "VDCDC2"; | ||
29 | }; | ||
30 | |||
31 | vdcdc3_reg: regulator@2 { | ||
32 | reg = <2>; | ||
33 | regulator-compatible = "VDCDC3"; | ||
34 | }; | ||
35 | |||
36 | ldo1_reg: regulator@3 { | ||
37 | reg = <3>; | ||
38 | regulator-compatible = "LDO1"; | ||
39 | }; | ||
40 | |||
41 | ldo2_reg: regulator@4 { | ||
42 | reg = <4>; | ||
43 | regulator-compatible = "LDO2"; | ||
44 | }; | ||
45 | |||
46 | }; | ||
47 | }; | ||