162306a36Sopenharmony_ciGPIO driver for Maxim MAX3191x industrial serializer 262306a36Sopenharmony_ci 362306a36Sopenharmony_ciRequired properties: 462306a36Sopenharmony_ci - compatible: Must be one of: 562306a36Sopenharmony_ci "maxim,max31910" 662306a36Sopenharmony_ci "maxim,max31911" 762306a36Sopenharmony_ci "maxim,max31912" 862306a36Sopenharmony_ci "maxim,max31913" 962306a36Sopenharmony_ci "maxim,max31953" 1062306a36Sopenharmony_ci "maxim,max31963" 1162306a36Sopenharmony_ci - reg: Chip select number. 1262306a36Sopenharmony_ci - gpio-controller: Marks the device node as a GPIO controller. 1362306a36Sopenharmony_ci - #gpio-cells: Should be two. For consumer use see gpio.txt. 1462306a36Sopenharmony_ci 1562306a36Sopenharmony_ciOptional properties: 1662306a36Sopenharmony_ci - #daisy-chained-devices: 1762306a36Sopenharmony_ci Number of chips in the daisy-chain (default is 1). 1862306a36Sopenharmony_ci - maxim,modesel-gpios: GPIO pins to configure modesel of each chip. 1962306a36Sopenharmony_ci The number of GPIOs must equal "#daisy-chained-devices" 2062306a36Sopenharmony_ci (if each chip is driven by a separate pin) or 1 2162306a36Sopenharmony_ci (if all chips are wired to the same pin). 2262306a36Sopenharmony_ci - maxim,fault-gpios: GPIO pins to read fault of each chip. 2362306a36Sopenharmony_ci The number of GPIOs must equal "#daisy-chained-devices" 2462306a36Sopenharmony_ci or 1. 2562306a36Sopenharmony_ci - maxim,db0-gpios: GPIO pins to configure debounce of each chip. 2662306a36Sopenharmony_ci The number of GPIOs must equal "#daisy-chained-devices" 2762306a36Sopenharmony_ci or 1. 2862306a36Sopenharmony_ci - maxim,db1-gpios: GPIO pins to configure debounce of each chip. 2962306a36Sopenharmony_ci The number of GPIOs must equal "maxim,db0-gpios". 3062306a36Sopenharmony_ci - maxim,modesel-8bit: Boolean whether the modesel pin of the chips is 3162306a36Sopenharmony_ci pulled high (8-bit mode). Use this if the modesel pin 3262306a36Sopenharmony_ci is hardwired and consequently "maxim,modesel-gpios" 3362306a36Sopenharmony_ci cannot be specified. By default if neither this nor 3462306a36Sopenharmony_ci "maxim,modesel-gpios" is given, the driver assumes 3562306a36Sopenharmony_ci that modesel is pulled low (16-bit mode). 3662306a36Sopenharmony_ci - maxim,ignore-undervoltage: 3762306a36Sopenharmony_ci Boolean whether to ignore undervoltage alarms signaled 3862306a36Sopenharmony_ci by the "maxim,fault-gpios" or by the status byte 3962306a36Sopenharmony_ci (in 16-bit mode). Use this if the chips are powered 4062306a36Sopenharmony_ci through 5VOUT instead of VCC24V, in which case they 4162306a36Sopenharmony_ci will constantly signal undervoltage. 4262306a36Sopenharmony_ci 4362306a36Sopenharmony_ciFor other required and optional properties of SPI slave nodes please refer to 4462306a36Sopenharmony_ci../spi/spi-bus.txt. 4562306a36Sopenharmony_ci 4662306a36Sopenharmony_ciExample: 4762306a36Sopenharmony_ci gpio@0 { 4862306a36Sopenharmony_ci compatible = "maxim,max31913"; 4962306a36Sopenharmony_ci reg = <0>; 5062306a36Sopenharmony_ci gpio-controller; 5162306a36Sopenharmony_ci #gpio-cells = <2>; 5262306a36Sopenharmony_ci 5362306a36Sopenharmony_ci maxim,modesel-gpios = <&gpio2 23>; 5462306a36Sopenharmony_ci maxim,fault-gpios = <&gpio2 24 GPIO_ACTIVE_LOW>; 5562306a36Sopenharmony_ci maxim,db0-gpios = <&gpio2 25>; 5662306a36Sopenharmony_ci maxim,db1-gpios = <&gpio2 26>; 5762306a36Sopenharmony_ci 5862306a36Sopenharmony_ci spi-max-frequency = <25000000>; 5962306a36Sopenharmony_ci }; 60