1 # SPDX-License-Identifier: (GPL-2.0-only OR BS 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/net/wireles 4 $id: http://devicetree.org/schemas/net/wireless/microchip,wilc1000.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: Microchip WILC wireless 7 title: Microchip WILC wireless 8 8 9 maintainers: 9 maintainers: 10 - Adham Abozaeid <adham.abozaeid@microchip.co 10 - Adham Abozaeid <adham.abozaeid@microchip.com> 11 - Ajay Singh <ajay.kathat@microchip.com> 11 - Ajay Singh <ajay.kathat@microchip.com> 12 12 13 description: 13 description: 14 The wilc1000 chips can be connected via SPI 14 The wilc1000 chips can be connected via SPI or SDIO. This document 15 describes the binding to connect wilc device 15 describes the binding to connect wilc devices. 16 16 17 properties: 17 properties: 18 compatible: 18 compatible: 19 const: microchip,wilc1000 19 const: microchip,wilc1000 20 20 21 reg: true 21 reg: true 22 22 23 interrupts: 23 interrupts: 24 maxItems: 1 24 maxItems: 1 25 25 26 clocks: 26 clocks: 27 description: phandle to the clock connecte 27 description: phandle to the clock connected on rtc clock line. 28 maxItems: 1 28 maxItems: 1 29 29 30 clock-names: 30 clock-names: 31 const: rtc 31 const: rtc 32 32 33 enable-gpios: 33 enable-gpios: 34 maxItems: 1 34 maxItems: 1 35 description: Used by wilc1000-spi to deter 35 description: Used by wilc1000-spi to determine the GPIO line 36 connected to the ENABLE line. If specif 36 connected to the ENABLE line. If specified, reset-gpios 37 must be specified as well as otherwise t 37 must be specified as well as otherwise the driver cannot 38 ensure the timing required between asser 38 ensure the timing required between asserting ENABLE 39 and deasserting RESET. This should be d 39 and deasserting RESET. This should be declared as an 40 active-high signal. 40 active-high signal. 41 41 42 reset-gpios: 42 reset-gpios: 43 maxItems: 1 43 maxItems: 1 44 description: Used by wilc1000-spi to deter 44 description: Used by wilc1000-spi to determine the GPIO line 45 connected to the RESET line. This shoul 45 connected to the RESET line. This should be declared as an 46 active-low signal. 46 active-low signal. 47 47 48 required: 48 required: 49 - compatible 49 - compatible 50 - interrupts 50 - interrupts 51 51 52 allOf: 52 allOf: 53 - $ref: /schemas/spi/spi-peripheral-props.ya 53 - $ref: /schemas/spi/spi-peripheral-props.yaml# 54 54 55 unevaluatedProperties: false 55 unevaluatedProperties: false 56 56 57 examples: 57 examples: 58 - | 58 - | 59 #include <dt-bindings/gpio/gpio.h> 59 #include <dt-bindings/gpio/gpio.h> 60 60 61 spi { 61 spi { 62 #address-cells = <1>; 62 #address-cells = <1>; 63 #size-cells = <0>; 63 #size-cells = <0>; 64 wifi@0 { 64 wifi@0 { 65 compatible = "microchip,wilc1000"; 65 compatible = "microchip,wilc1000"; 66 spi-max-frequency = <48000000>; 66 spi-max-frequency = <48000000>; 67 reg = <0>; 67 reg = <0>; 68 interrupt-parent = <&pioC>; 68 interrupt-parent = <&pioC>; 69 interrupts = <27 0>; 69 interrupts = <27 0>; 70 clocks = <&pck1>; 70 clocks = <&pck1>; 71 clock-names = "rtc"; 71 clock-names = "rtc"; 72 enable-gpios = <&pioA 5 GPIO_ACTIVE_HI 72 enable-gpios = <&pioA 5 GPIO_ACTIVE_HIGH>; 73 reset-gpios = <&pioA 6 GPIO_ACTIVE_LOW 73 reset-gpios = <&pioA 6 GPIO_ACTIVE_LOW>; 74 }; 74 }; 75 }; 75 }; 76 76 77 - | 77 - | 78 mmc { 78 mmc { 79 #address-cells = <1>; 79 #address-cells = <1>; 80 #size-cells = <0>; 80 #size-cells = <0>; 81 pinctrl-names = "default"; 81 pinctrl-names = "default"; 82 pinctrl-0 = <&pinctrl_mmc1_clk_cmd_dat0 82 pinctrl-0 = <&pinctrl_mmc1_clk_cmd_dat0 &pinctrl_mmc1_dat1_3>; 83 non-removable; 83 non-removable; 84 vmmc-supply = <&vcc_mmc1_reg>; 84 vmmc-supply = <&vcc_mmc1_reg>; 85 vqmmc-supply = <&vcc_3v3_reg>; 85 vqmmc-supply = <&vcc_3v3_reg>; 86 bus-width = <4>; 86 bus-width = <4>; 87 wifi@0 { 87 wifi@0 { 88 compatible = "microchip,wilc1000"; 88 compatible = "microchip,wilc1000"; 89 reg = <0>; 89 reg = <0>; 90 interrupt-parent = <&pioC>; 90 interrupt-parent = <&pioC>; 91 interrupts = <27 0>; 91 interrupts = <27 0>; 92 clocks = <&pck1>; 92 clocks = <&pck1>; 93 clock-names = "rtc"; 93 clock-names = "rtc"; 94 }; 94 }; 95 }; 95 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.