summaryrefslogtreecommitdiff
path: root/recipes-kernel/linux/linux-3.12.27/mtcap/linux-3.12-mtcap-device-tree.patch
blob: 2b36413afac0209da21187fccd38193bcef52fef (plain)
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
248
249
250
diff -Naru linux-3.12.27.orig/arch/arm/boot/dts/mtcap.dts linux-3.12.27/arch/arm/boot/dts/mtcap.dts
--- linux-3.12.27.orig/arch/arm/boot/dts/mtcap.dts	1969-12-31 18:00:00.000000000 -0600
+++ linux-3.12.27/arch/arm/boot/dts/mtcap.dts	2017-08-17 13:52:00.360044710 -0500
@@ -0,0 +1,235 @@
+/*
+ * DTS file for Multi-Tech Systems MTCAP Hardware
+ */
+
+/dts-v1/;
+#include "at91sam9g25.dtsi"
+
+/ {
+	model = "Multi-Tech Systems MTCAP";
+	compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9";
+
+	chosen {
+		bootargs = "mem=256M console=ttyS0,115200 root=/dev/mtdblock8 ro rootfstype=jffs2";
+	};
+
+	aliases {
+	    spi0 = &spi0;
+	};
+
+	memory {
+		reg = <0x20000000 0x8000000>;
+	};
+
+	clocks {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		ranges;
+
+		main_clock: clock@0 {
+			compatible = "atmel,osc", "fixed-clock";
+			clock-frequency = <12000000>;
+		};
+	};
+
+	ahb {
+		apb {
+			macb0: ethernet@f802c000 {
+				phy-mode = "rmii";
+				status = "okay";
+			};
+
+			mmc0: mmc@f0008000 {
+				pinctrl-names = "default";
+				pinctrl-0 = <
+					/* &pinctrl_board_mmc0 */
+					&pinctrl_mmc0_slot0_clk_cmd_dat0
+					&pinctrl_mmc0_slot0_dat1_3>;
+				status = "okay";
+				slot@0 {
+					reg = <0>;
+					bus-width = <4>;
+				};
+			};
+
+			pinctrl@fffff400 {
+				mmc0 {
+					pinctrl_board_mmc0: mmc0-board {
+						atmel,pins =
+							<AT91_PIOA 4 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;  /* PA4 gpio pin pull up and deglitch - WIFI enable */
+					};
+				};
+
+				nand {
+					pinctrl_nand: nand-0 {
+						atmel,pins =
+							<AT91_PIOD 0 AT91_PERIPH_A AT91_PINCTRL_PULL_UP	/* PD0 periph A Read Enable */
+							AT91_PIOD 1 AT91_PERIPH_A AT91_PINCTRL_PULL_UP	/* PD1 periph A Write Enable */
+							AT91_PIOD 2 AT91_PERIPH_A AT91_PINCTRL_PULL_UP	/* PD2 periph A Address Latch Enable */
+							AT91_PIOD 3 AT91_PERIPH_A AT91_PINCTRL_PULL_UP	/* PD3 periph A Command Latch Enable */
+							AT91_PIOD 4 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP	/* PD4 gpio Chip Enable pin pull_up */
+							AT91_PIOC 31 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP	/* PC31 gpio RDY/BUSY pin pull_up */
+							AT91_PIOD 6 AT91_PERIPH_A AT91_PINCTRL_PULL_UP	/* PD6 periph A Data bit 0 */
+							AT91_PIOD 7 AT91_PERIPH_A AT91_PINCTRL_PULL_UP	/* PD7 periph A Data bit 1 */
+							AT91_PIOD 8 AT91_PERIPH_A AT91_PINCTRL_PULL_UP	/* PD8 periph A Data bit 2 */
+							AT91_PIOD 9 AT91_PERIPH_A AT91_PINCTRL_PULL_UP	/* PD9 periph A Data bit 3 */
+							AT91_PIOD 10 AT91_PERIPH_A AT91_PINCTRL_PULL_UP	/* PD10 periph A Data bit 4 */
+							AT91_PIOD 11 AT91_PERIPH_A AT91_PINCTRL_PULL_UP	/* PD11 periph A Data bit 5 */
+							AT91_PIOD 12 AT91_PERIPH_A AT91_PINCTRL_PULL_UP	/* PD12 periph A Data bit 6 */
+							AT91_PIOD 13 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;	/* PD13 periph A Data bit 7 */
+					};
+
+					pinctrl_nand_16bits: nand_16bits-0 {
+						atmel,pins =
+							<AT91_PIOD 14 AT91_PERIPH_A AT91_PINCTRL_PULL_UP	/* PD14 periph A Data bit 8 */
+							AT91_PIOD 15 AT91_PERIPH_A AT91_PINCTRL_PULL_UP	/* PD15 periph A Data bit 9 */
+							AT91_PIOD 16 AT91_PERIPH_A AT91_PINCTRL_PULL_UP	/* PD16 periph A Data bit 10 */
+							AT91_PIOD 17 AT91_PERIPH_A AT91_PINCTRL_PULL_UP	/* PD17 periph A Data bit 11 */
+							AT91_PIOD 18 AT91_PERIPH_A AT91_PINCTRL_PULL_UP	/* PD18 periph A Data bit 12 */
+							AT91_PIOD 19 AT91_PERIPH_A AT91_PINCTRL_PULL_UP	/* PD19 periph A Data bit 13 */
+							AT91_PIOD 20 AT91_PERIPH_A AT91_PINCTRL_PULL_UP	/* PD20 periph A Data bit 14 */
+							AT91_PIOD 21 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;	/* PD21 periph A Data bit 15 */
+					};
+				};
+			};
+
+			rtc@fffffeb0 {
+				status = "okay";
+			};
+
+			i2c0: i2c@f8010000 {
+				compatible = "i2c-gpio";
+				status = "okay";
+
+				id_eeprom@56 {
+					compatible = "atmel,24c04";
+					reg = <0x56>;
+					pagesize = <16>;
+				};
+			};
+
+			spi@f0000000 {
+				status = "okay";
+				cs-gpios = <&pioA 7 0>, <&pioA 1 0>, <0>, <0>;
+				lora-spi@0 {
+					compatible = "spidev";
+					spi-max-frequency = <2000000>;
+					reg = <0>;
+				};
+				lora-spi@1 {
+					compatible = "spidev";
+					spi-max-frequency = <2000000>;
+					reg = <1>;
+				};
+			};
+
+			dbgu: serial@fffff200 {
+				status = "okay";
+			};
+
+			uart0: serial@f8040000 {
+				status = "okay";
+			};
+
+			watchdog@fffffe40 {
+				status = "okay";
+			};
+		};
+
+		nand0: nand@40000000 {
+			nand-bus-width = <8>;
+			nand-ecc-mode = "hw";
+			atmel,has-pmecc;	/* Enable PMECC */
+			atmel,pmecc-sector-size = <512>;
+			status = "okay";
+			reg = < 0x40000000 0x10000000
+				0xffffe000 0x600    /* PMECC Registers */
+				0xffffe600 0x200    /* PMECC Error Location Registers */
+				0x00100000 0x100000 /* PMECC looup table in ROM code  */
+			      >;
+			atmel,pmecc-lookup-table-offset = <0x8000 0x10000>;
+			gpios = < &pioC 31 GPIO_ACTIVE_HIGH
+				  &pioD 4 GPIO_ACTIVE_HIGH
+				  0
+				>;
+			atmel,pmecc-cap = <4>;
+			atmel,nand-has-dma;
+
+			nand@0 {
+				label = "NANDFlash";
+				reg = <0x0 0x10000000>;
+			};
+			at91bootstrap@0 {
+				label = "at91bootstrap";
+				reg = <0x0 0x40000>;
+			};
+			uboot@40000 {
+				label = "u-Boot";
+				reg = <0x40000 0x80000>;
+			};
+			ubootconfig0@c0000 {
+				label = "u-Boot Config";
+				reg = <0xc0000 0xa0000>;
+			};
+			ubootconfig1@160000 {
+				label = "u-Boot Redundant Config";
+				reg = <0x160000 0xa0000>;
+			};
+			uImage@200000 {
+				label = "uImage";
+				reg = <0x200000 0x600000>;
+			};
+			config0@800000 {
+				label = "Config";
+				reg = <0x800000 0x800000>;
+			};
+			config1@1000000 {
+				label = "OEM Config";
+				reg = <0x1000000 0x800000>;
+			};
+			rootfs@1800000 {
+				label = "Rootfs";
+				reg = <0x1800000 0xe800000>;
+			};
+		};
+
+		usb0: ohci@00600000 {
+			status = "okay";
+			num-ports = <3>;
+		};
+
+		usb1: ehci@00700000 {
+			status = "okay";
+		};
+	};
+
+	leds {
+		compatible = "gpio-leds";
+		pc25 {
+			label = "led-status";
+			gpios = <&pioC 25 GPIO_ACTIVE_HIGH>;
+			linux,default-trigger = "default-on";
+		};
+		pc15 {
+			label = "led-lora";
+			gpios = <&pioC 15 GPIO_ACTIVE_LOW>;
+		};
+		pc16 {
+			label = "led-cd";
+			gpios = <&pioC 16 GPIO_ACTIVE_LOW>;
+		};
+		pc20 {
+			label = "led-wifi";
+			gpios = <&pioC 20 GPIO_ACTIVE_LOW>;
+		};
+	};
+
+	i2c@0 {
+		status = "okay";
+		id_eeprom@56 {
+			compatible = "atmel,24c04";
+			reg = <0x56>;
+			pagesize = <16>;
+		};
+	};
+};
diff -Naru linux-3.12.27.orig/arch/arm/boot/dts/Makefile linux-3.12.27/arch/arm/boot/dts/Makefile
--- linux-3.12.27.orig/arch/arm/boot/dts/Makefile	2017-02-24 14:25:30.983064241 -0600
+++ linux-3.12.27/arch/arm/boot/dts/Makefile	2017-02-24 14:26:50.424821432 -0600
@@ -35,6 +35,7 @@
 dtb-$(CONFIG_ARCH_AT91) += at91sam9g35ek.dtb
 dtb-$(CONFIG_ARCH_AT91) += at91sam9x25ek.dtb
 dtb-$(CONFIG_ARCH_AT91) += at91sam9x35ek.dtb
+dtb-$(CONFIG_ARCH_AT91) += mtcap.dtb
 # sama5d3
 dtb-$(CONFIG_ARCH_AT91)	+= sama5d31ek.dtb
 dtb-$(CONFIG_ARCH_AT91)	+= sama5d33ek.dtb