1*833e5d42SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*833e5d42SEmmanuel Vadot%YAML 1.2 3*833e5d42SEmmanuel Vadot--- 4*833e5d42SEmmanuel Vadot$id: http://devicetree.org/schemas/gpio/maxim,max31910.yaml# 5*833e5d42SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*833e5d42SEmmanuel Vadot 7*833e5d42SEmmanuel Vadottitle: Maxim MAX3191x GPIO serializer 8*833e5d42SEmmanuel Vadot 9*833e5d42SEmmanuel Vadotmaintainers: 10*833e5d42SEmmanuel Vadot - Lukas Wunner <lukas@wunner.de> 11*833e5d42SEmmanuel Vadot 12*833e5d42SEmmanuel Vadotproperties: 13*833e5d42SEmmanuel Vadot compatible: 14*833e5d42SEmmanuel Vadot enum: 15*833e5d42SEmmanuel Vadot - maxim,max31910 16*833e5d42SEmmanuel Vadot - maxim,max31911 17*833e5d42SEmmanuel Vadot - maxim,max31912 18*833e5d42SEmmanuel Vadot - maxim,max31913 19*833e5d42SEmmanuel Vadot - maxim,max31953 20*833e5d42SEmmanuel Vadot - maxim,max31963 21*833e5d42SEmmanuel Vadot 22*833e5d42SEmmanuel Vadot reg: 23*833e5d42SEmmanuel Vadot maxItems: 1 24*833e5d42SEmmanuel Vadot 25*833e5d42SEmmanuel Vadot gpio-controller: true 26*833e5d42SEmmanuel Vadot 27*833e5d42SEmmanuel Vadot '#gpio-cells': 28*833e5d42SEmmanuel Vadot const: 2 29*833e5d42SEmmanuel Vadot 30*833e5d42SEmmanuel Vadot '#daisy-chained-devices': 31*833e5d42SEmmanuel Vadot description: Number of chips in the daisy-chain. 32*833e5d42SEmmanuel Vadot default: 1 33*833e5d42SEmmanuel Vadot 34*833e5d42SEmmanuel Vadot maxim,modesel-gpios: 35*833e5d42SEmmanuel Vadot description: 36*833e5d42SEmmanuel Vadot GPIO pins to configure modesel of each chip. The number of GPIOs must 37*833e5d42SEmmanuel Vadot equal "#daisy-chained-devices" (if each chip is driven by a separate pin) 38*833e5d42SEmmanuel Vadot or 1 (if all chips are wired to the same pin). 39*833e5d42SEmmanuel Vadot 40*833e5d42SEmmanuel Vadot maxim,fault-gpios: 41*833e5d42SEmmanuel Vadot description: 42*833e5d42SEmmanuel Vadot GPIO pins to read fault of each chip. The number of GPIOs must equal 43*833e5d42SEmmanuel Vadot "#daisy-chained-devices" or 1. 44*833e5d42SEmmanuel Vadot 45*833e5d42SEmmanuel Vadot maxim,db0-gpios: 46*833e5d42SEmmanuel Vadot description: 47*833e5d42SEmmanuel Vadot GPIO pins to configure debounce of each chip. The number of GPIOs must 48*833e5d42SEmmanuel Vadot equal "#daisy-chained-devices" or 1. 49*833e5d42SEmmanuel Vadot 50*833e5d42SEmmanuel Vadot maxim,db1-gpios: 51*833e5d42SEmmanuel Vadot description: 52*833e5d42SEmmanuel Vadot GPIO pins to configure debounce of each chip. The number of GPIOs must 53*833e5d42SEmmanuel Vadot equal "maxim,db0-gpios". 54*833e5d42SEmmanuel Vadot 55*833e5d42SEmmanuel Vadot maxim,modesel-8bit: 56*833e5d42SEmmanuel Vadot description: 57*833e5d42SEmmanuel Vadot Boolean whether the modesel pin of the chips is pulled high (8-bit mode). 58*833e5d42SEmmanuel Vadot Use this if the modesel pin is hardwired and consequently 59*833e5d42SEmmanuel Vadot "maxim,modesel-gpios" cannot be specified. By default if neither this nor 60*833e5d42SEmmanuel Vadot "maxim,modesel-gpios" is given, the driver assumes that modesel is pulled 61*833e5d42SEmmanuel Vadot low (16-bit mode). 62*833e5d42SEmmanuel Vadot type: boolean 63*833e5d42SEmmanuel Vadot 64*833e5d42SEmmanuel Vadot maxim,ignore-undervoltage: 65*833e5d42SEmmanuel Vadot description: 66*833e5d42SEmmanuel Vadot Boolean whether to ignore undervoltage alarms signaled by the 67*833e5d42SEmmanuel Vadot "maxim,fault-gpios" or by the status byte (in 16-bit mode). Use this if 68*833e5d42SEmmanuel Vadot the chips are powered through 5VOUT instead of VCC24V, in which case they 69*833e5d42SEmmanuel Vadot will constantly signal undervoltage. 70*833e5d42SEmmanuel Vadot type: boolean 71*833e5d42SEmmanuel Vadot 72*833e5d42SEmmanuel Vadotrequired: 73*833e5d42SEmmanuel Vadot - compatible 74*833e5d42SEmmanuel Vadot - reg 75*833e5d42SEmmanuel Vadot - gpio-controller 76*833e5d42SEmmanuel Vadot - '#gpio-cells' 77*833e5d42SEmmanuel Vadot 78*833e5d42SEmmanuel VadotallOf: 79*833e5d42SEmmanuel Vadot - $ref: /schemas/spi/spi-peripheral-props.yaml# 80*833e5d42SEmmanuel Vadot 81*833e5d42SEmmanuel VadotunevaluatedProperties: false 82*833e5d42SEmmanuel Vadot 83*833e5d42SEmmanuel Vadotexamples: 84*833e5d42SEmmanuel Vadot - | 85*833e5d42SEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 86*833e5d42SEmmanuel Vadot 87*833e5d42SEmmanuel Vadot spi { 88*833e5d42SEmmanuel Vadot #address-cells = <1>; 89*833e5d42SEmmanuel Vadot #size-cells = <0>; 90*833e5d42SEmmanuel Vadot 91*833e5d42SEmmanuel Vadot gpio@0 { 92*833e5d42SEmmanuel Vadot compatible = "maxim,max31913"; 93*833e5d42SEmmanuel Vadot reg = <0>; 94*833e5d42SEmmanuel Vadot gpio-controller; 95*833e5d42SEmmanuel Vadot #gpio-cells = <2>; 96*833e5d42SEmmanuel Vadot 97*833e5d42SEmmanuel Vadot maxim,modesel-gpios = <&gpio2 23>; 98*833e5d42SEmmanuel Vadot maxim,fault-gpios = <&gpio2 24 GPIO_ACTIVE_LOW>; 99*833e5d42SEmmanuel Vadot maxim,db0-gpios = <&gpio2 25>; 100*833e5d42SEmmanuel Vadot maxim,db1-gpios = <&gpio2 26>; 101*833e5d42SEmmanuel Vadot 102*833e5d42SEmmanuel Vadot spi-max-frequency = <25000000>; 103*833e5d42SEmmanuel Vadot }; 104*833e5d42SEmmanuel Vadot }; 105