15625f965SAjay Singh# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 25625f965SAjay Singh%YAML 1.2 35625f965SAjay Singh--- 45625f965SAjay Singh$id: http://devicetree.org/schemas/net/wireless/microchip,wilc1000.yaml# 55625f965SAjay Singh$schema: http://devicetree.org/meta-schemas/core.yaml# 65625f965SAjay Singh 7*a612130cSKrzysztof Kozlowskititle: Microchip WILC wireless 85625f965SAjay Singh 95625f965SAjay Singhmaintainers: 105625f965SAjay Singh - Adham Abozaeid <adham.abozaeid@microchip.com> 115625f965SAjay Singh - Ajay Singh <ajay.kathat@microchip.com> 125625f965SAjay Singh 135625f965SAjay Singhdescription: 145625f965SAjay Singh The wilc1000 chips can be connected via SPI or SDIO. This document 155625f965SAjay Singh describes the binding to connect wilc devices. 165625f965SAjay Singh 175625f965SAjay Singhproperties: 185625f965SAjay Singh compatible: 195625f965SAjay Singh const: microchip,wilc1000 205625f965SAjay Singh 215be478f9SRob Herring reg: true 225be478f9SRob Herring 235625f965SAjay Singh interrupts: 245625f965SAjay Singh maxItems: 1 255625f965SAjay Singh 265625f965SAjay Singh clocks: 275625f965SAjay Singh description: phandle to the clock connected on rtc clock line. 285625f965SAjay Singh maxItems: 1 295625f965SAjay Singh 305625f965SAjay Singh clock-names: 315625f965SAjay Singh const: rtc 325625f965SAjay Singh 33f31ee3c0SDavid Mosberger-Tang enable-gpios: 34f31ee3c0SDavid Mosberger-Tang maxItems: 1 35f31ee3c0SDavid Mosberger-Tang description: Used by wilc1000-spi to determine the GPIO line 36f31ee3c0SDavid Mosberger-Tang connected to the ENABLE line. If specified, reset-gpios 37f31ee3c0SDavid Mosberger-Tang must be specified as well as otherwise the driver cannot 38f31ee3c0SDavid Mosberger-Tang ensure the timing required between asserting ENABLE 39f31ee3c0SDavid Mosberger-Tang and deasserting RESET. This should be declared as an 40f31ee3c0SDavid Mosberger-Tang active-high signal. 41f31ee3c0SDavid Mosberger-Tang 42f31ee3c0SDavid Mosberger-Tang reset-gpios: 43f31ee3c0SDavid Mosberger-Tang maxItems: 1 44f31ee3c0SDavid Mosberger-Tang description: Used by wilc1000-spi to determine the GPIO line 45f31ee3c0SDavid Mosberger-Tang connected to the RESET line. This should be declared as an 46f31ee3c0SDavid Mosberger-Tang active-low signal. 47f31ee3c0SDavid Mosberger-Tang 485625f965SAjay Singhrequired: 495625f965SAjay Singh - compatible 505625f965SAjay Singh - interrupts 515625f965SAjay Singh 5215273b7bSKrzysztof KozlowskiallOf: 5315273b7bSKrzysztof Kozlowski - $ref: /schemas/spi/spi-peripheral-props.yaml# 5415273b7bSKrzysztof Kozlowski 5515273b7bSKrzysztof KozlowskiunevaluatedProperties: false 565be478f9SRob Herring 575625f965SAjay Singhexamples: 585625f965SAjay Singh - | 59f31ee3c0SDavid Mosberger-Tang #include <dt-bindings/gpio/gpio.h> 60f31ee3c0SDavid Mosberger-Tang 615625f965SAjay Singh spi { 625625f965SAjay Singh #address-cells = <1>; 635625f965SAjay Singh #size-cells = <0>; 645625f965SAjay Singh wifi@0 { 655625f965SAjay Singh compatible = "microchip,wilc1000"; 665625f965SAjay Singh spi-max-frequency = <48000000>; 675625f965SAjay Singh reg = <0>; 685625f965SAjay Singh interrupt-parent = <&pioC>; 695625f965SAjay Singh interrupts = <27 0>; 705625f965SAjay Singh clocks = <&pck1>; 715625f965SAjay Singh clock-names = "rtc"; 72f31ee3c0SDavid Mosberger-Tang enable-gpios = <&pioA 5 GPIO_ACTIVE_HIGH>; 73f31ee3c0SDavid Mosberger-Tang reset-gpios = <&pioA 6 GPIO_ACTIVE_LOW>; 745625f965SAjay Singh }; 755625f965SAjay Singh }; 765625f965SAjay Singh 775625f965SAjay Singh - | 785625f965SAjay Singh mmc { 795625f965SAjay Singh #address-cells = <1>; 805625f965SAjay Singh #size-cells = <0>; 815625f965SAjay Singh pinctrl-names = "default"; 825625f965SAjay Singh pinctrl-0 = <&pinctrl_mmc1_clk_cmd_dat0 &pinctrl_mmc1_dat1_3>; 835625f965SAjay Singh non-removable; 845625f965SAjay Singh vmmc-supply = <&vcc_mmc1_reg>; 855625f965SAjay Singh vqmmc-supply = <&vcc_3v3_reg>; 865625f965SAjay Singh bus-width = <4>; 875625f965SAjay Singh wifi@0 { 885625f965SAjay Singh compatible = "microchip,wilc1000"; 895625f965SAjay Singh reg = <0>; 905625f965SAjay Singh interrupt-parent = <&pioC>; 915625f965SAjay Singh interrupts = <27 0>; 925625f965SAjay Singh clocks = <&pck1>; 935625f965SAjay Singh clock-names = "rtc"; 945625f965SAjay Singh }; 955625f965SAjay Singh }; 96