Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: at91: sama5d27_wlsom1: add wifi device

SAMA5D27 WLSOM1 boards has a WILC3000 device soldered. Add proper
device tree nodes for this.

[eugen.hristev: original author of this code]
[claudiu.beznea: adapt such that make dtbs_check is happy, remove status
for wifi_pwrseq and wifi nodes]

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
[nicolas.ferre: original author of this code]
Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/20210825094055.642941-1-claudiu.beznea@microchip.com

authored by

Eugen Hristev and committed by
Nicolas Ferre
2c9987f2 6880fa6c

+70
+70
arch/arm/boot/dts/at91-sama5d27_wlsom1.dtsi
··· 30 30 clock-frequency = <24000000>; 31 31 }; 32 32 }; 33 + 34 + wifi_pwrseq: wifi_pwrseq { 35 + compatible = "mmc-pwrseq-wilc1000"; 36 + reset-gpios = <&pioA PIN_PA27 GPIO_ACTIVE_HIGH>; 37 + powerdown-gpios = <&pioA PIN_PA29 GPIO_ACTIVE_HIGH>; 38 + pinctrl-0 = <&pinctrl_wilc_pwrseq>; 39 + pinctrl-names = "default"; 40 + }; 33 41 }; 34 42 35 43 &flx1 { ··· 317 309 <PIN_PB9__QSPI1_IO2>, 318 310 <PIN_PB10__QSPI1_IO3>; 319 311 bias-pull-up; 312 + }; 313 + 314 + pinctrl_sdmmc1_default: sdmmc1_default { 315 + cmd-data { 316 + pinmux = <PIN_PA28__SDMMC1_CMD>, 317 + <PIN_PA18__SDMMC1_DAT0>, 318 + <PIN_PA19__SDMMC1_DAT1>, 319 + <PIN_PA20__SDMMC1_DAT2>, 320 + <PIN_PA21__SDMMC1_DAT3>; 321 + bias-disable; 322 + }; 323 + 324 + conf-ck { 325 + pinmux = <PIN_PA22__SDMMC1_CK>; 326 + bias-disable; 327 + }; 328 + }; 329 + 330 + pinctrl_wilc_default: wilc_default { 331 + conf-irq { 332 + pinmux = <PIN_PB25__GPIO>; 333 + bias-disable; 334 + }; 335 + }; 336 + 337 + pinctrl_wilc_pwrseq: wilc_pwrseq { 338 + conf-ce-nrst { 339 + pinmux = <PIN_PA27__GPIO>, 340 + <PIN_PA29__GPIO>; 341 + bias-disable; 342 + }; 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 + bus-width = <4>; 361 + status = "okay"; 362 + 363 + wilc: wifi@0 { 364 + reg = <0>; 365 + compatible = "microchip,wilc1000"; 366 + pinctrl-names = "default"; 367 + pinctrl-0 = <&pinctrl_wilc_default>; 368 + clocks = <&pmc PMC_TYPE_SYSTEM 9>; 369 + clock-names = "rtc"; 370 + interrupts = <PIN_PB25 IRQ_TYPE_NONE>; 371 + interrupt-parent = <&pioA>; 372 + assigned-clocks = <&pmc PMC_TYPE_SYSTEM 9>; 373 + assigned-clock-rates = <32768>; 320 374 }; 321 375 }; 322 376