Skip to content

Commit 2b45725

Browse files
committed
ARM: dts: at91: sama5d27_wlsom1: add wilc
Add wilc and its dependencies: sdmmc1, pwrseq, flx1 and enable them. Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
1 parent 8a8c13a commit 2b45725

1 file changed

Lines changed: 72 additions & 0 deletions

File tree

arch/arm/boot/dts/at91-sama5d27_wlsom1.dtsi

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,20 @@
2626
clock-frequency = <24000000>;
2727
};
2828
};
29+
30+
wifi_pwrseq: wifi_pwrseq {
31+
compatible = "mmc-pwrseq-wilc";
32+
reset-gpios = <&pioA PIN_PA27 GPIO_ACTIVE_HIGH>;
33+
powerdown-gpios = <&pioA PIN_PA29 GPIO_ACTIVE_HIGH>;
34+
pinctrl-0 = <&pinctrl_wilc_pwrseq>;
35+
pinctrl-names = "default";
36+
status = "okay";
37+
};
2938
};
3039

3140
&flx1 {
3241
atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>;
42+
status = "okay";
3343

3444
uart6: serial@200 {
3545
compatible = "atmel,at91sam9260-usart";
@@ -46,6 +56,7 @@
4656
clock-names = "usart";
4757
pinctrl-0 = <&pinctrl_flx1_default>;
4858
pinctrl-names = "default";
59+
status = "okay";
4960
};
5061
};
5162

@@ -291,6 +302,22 @@
291302
bias-disable;
292303
};
293304

305+
pinctrl_sdmmc1_default: sdmmc1_default {
306+
cmd-data {
307+
pinmux = <PIN_PA28__SDMMC1_CMD>,
308+
<PIN_PA18__SDMMC1_DAT0>,
309+
<PIN_PA19__SDMMC1_DAT1>,
310+
<PIN_PA20__SDMMC1_DAT2>,
311+
<PIN_PA21__SDMMC1_DAT3>;
312+
bias-disable;
313+
};
314+
315+
conf-ck {
316+
pinmux = <PIN_PA22__SDMMC1_CK>;
317+
bias-disable;
318+
};
319+
};
320+
294321
pinctrl_qspi1_default: qspi1_default {
295322
pinmux = <PIN_PB5__QSPI1_SCK>,
296323
<PIN_PB6__QSPI1_CS>,
@@ -300,5 +327,50 @@
300327
<PIN_PB10__QSPI1_IO3>;
301328
bias-pull-up;
302329
};
330+
331+
pinctrl_wilc_default: wilc_default {
332+
conf-irq {
333+
pinmux = <PIN_PB25__GPIO>;
334+
bias-disable;
335+
};
336+
};
337+
338+
pinctrl_wilc_pwrseq: wilc_pwrseq {
339+
conf-ce-nrst {
340+
pinmux = <PIN_PA27__GPIO>,
341+
<PIN_PA29__GPIO>;
342+
bias-disable;
343+
};
344+
conf-rtcclk {
345+
pinmux = <PIN_PB13__PCK1>;
346+
bias-disable;
347+
};
348+
};
349+
};
350+
351+
&sdmmc1 {
352+
#address-cells = <1>;
353+
#size-cells = <0>;
354+
bus-width = <4>;
355+
pinctrl-names = "default";
356+
pinctrl-0 = <&pinctrl_sdmmc1_default>;
357+
mmc-pwrseq = <&wifi_pwrseq>;
358+
no-1-8-v;
359+
non-removable;
360+
status = "okay";
361+
362+
wilc: wilc@0 {
363+
reg = <0>;
364+
bus-width = <4>;
365+
compatible = "microchip,wilc3000", "microchip,wilc1000";
366+
pinctrl-names = "default";
367+
pinctrl-0 = <&pinctrl_wilc_default>;
368+
irq-gpios = <&pioA PIN_PB25 GPIO_ACTIVE_LOW>;
369+
clocks = <&pmc PMC_TYPE_SYSTEM 9>;
370+
clock-names = "rtc_clk";
371+
assigned-clocks = <&pmc PMC_TYPE_SYSTEM 9>;
372+
assigned-clock-rates = <32768>;
373+
status = "okay";
374+
};
303375
};
304376

0 commit comments

Comments
 (0)