Path: blob/main/sys/contrib/device-tree/Bindings/gpio/gpio-max3191x.txt
48375 views
GPIO driver for Maxim MAX3191x industrial serializer12Required properties:3- compatible: Must be one of:4"maxim,max31910"5"maxim,max31911"6"maxim,max31912"7"maxim,max31913"8"maxim,max31953"9"maxim,max31963"10- reg: Chip select number.11- gpio-controller: Marks the device node as a GPIO controller.12- #gpio-cells: Should be two. For consumer use see gpio.txt.1314Optional properties:15- #daisy-chained-devices:16Number of chips in the daisy-chain (default is 1).17- maxim,modesel-gpios: GPIO pins to configure modesel of each chip.18The number of GPIOs must equal "#daisy-chained-devices"19(if each chip is driven by a separate pin) or 120(if all chips are wired to the same pin).21- maxim,fault-gpios: GPIO pins to read fault of each chip.22The number of GPIOs must equal "#daisy-chained-devices"23or 1.24- maxim,db0-gpios: GPIO pins to configure debounce of each chip.25The number of GPIOs must equal "#daisy-chained-devices"26or 1.27- maxim,db1-gpios: GPIO pins to configure debounce of each chip.28The number of GPIOs must equal "maxim,db0-gpios".29- maxim,modesel-8bit: Boolean whether the modesel pin of the chips is30pulled high (8-bit mode). Use this if the modesel pin31is hardwired and consequently "maxim,modesel-gpios"32cannot be specified. By default if neither this nor33"maxim,modesel-gpios" is given, the driver assumes34that modesel is pulled low (16-bit mode).35- maxim,ignore-undervoltage:36Boolean whether to ignore undervoltage alarms signaled37by the "maxim,fault-gpios" or by the status byte38(in 16-bit mode). Use this if the chips are powered39through 5VOUT instead of VCC24V, in which case they40will constantly signal undervoltage.4142For other required and optional properties of SPI slave nodes please refer to43../spi/spi-bus.txt.4445Example:46gpio@0 {47compatible = "maxim,max31913";48reg = <0>;49gpio-controller;50#gpio-cells = <2>;5152maxim,modesel-gpios = <&gpio2 23>;53maxim,fault-gpios = <&gpio2 24 GPIO_ACTIVE_LOW>;54maxim,db0-gpios = <&gpio2 25>;55maxim,db1-gpios = <&gpio2 26>;5657spi-max-frequency = <25000000>;58};596061