Lines Matching +full:spi +full:- +full:present +full:- +full:mask
1 # SPDX-License-Identifier: GPL-2.0-only
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Microchip I/O expander with serial interface (I2C/SPI)
10 - Himanshu Bhavani <himanshu.bhavani@siliconsignals.io>
14 chips.These chips provide 8 or 16 GPIO pins with either I2C or SPI interface.
17 - $ref: /schemas/spi/spi-peripheral-props.yaml#
22 - microchip,mcp23s08
23 - microchip,mcp23s17
24 - microchip,mcp23s18
25 - microchip,mcp23008
26 - microchip,mcp23017
27 - microchip,mcp23018
32 gpio-controller: true
34 '#gpio-cells':
37 interrupt-controller: true
39 '#interrupt-cells':
45 reset-gpios:
46 description: GPIO specifier for active-low reset pin.
49 microchip,spi-present-mask:
51 Multiple SPI chips can share the same SPI chipselect. Set a bit in
52 bit0-7 in this mask to 1 if there is a chip connected with the
53 corresponding spi address set. For example if you have a chip with
55 chip variant only supports bits 0-3. It is not possible to mix mcp23s08
56 and mcp23s17 on the same chipselect. Set at least one bit to 1 for SPI
60 microchip,irq-mirror:
65 have two IO banks IO 0-7 form bank 1 and IO 8-15 are bank 2. These chips
67 bank 2. If irq-mirror is set, both interrupts are generated regardless of
71 microchip,irq-active-high:
77 drive-open-drain:
91 pattern: '^gpio([0-9]|[1][0-5])$'
94 bias-pull-up:
97 Configures pull-up resistors for the GPIO pins. Absence of this
101 - pins
106 - compatible
107 - reg
108 - gpio-controller
109 - '#gpio-cells'
114 - |
115 #include <dt-bindings/interrupt-controller/irq.h>
116 #include <dt-bindings/gpio/gpio.h>
119 #address-cells = <1>;
120 #size-cells = <0>;
125 gpio-controller;
126 #gpio-cells = <2>;
128 interrupt-parent = <&gpio1>;
130 interrupt-controller;
131 #interrupt-cells = <2>;
133 microchip,irq-mirror;
134 pinctrl-names = "default";
135 pinctrl-0 = <&pinctrl_i2c_gpio0>, <&gpiopullups>;
136 reset-gpios = <&gpio6 15 GPIO_ACTIVE_LOW>;
143 bias-pull-up;
148 - |
149 spi {
150 #address-cells = <1>;
151 #size-cells = <0>;
156 gpio-controller;
157 #gpio-cells = <2>;
158 spi-max-frequency = <1000000>;
159 microchip,spi-present-mask = /bits/ 8 <0x01>;