Back to home page

OSCL-LXR

 
 

    


0001 GPIO driver for Maxim MAX3191x industrial serializer
0002 
0003 Required properties:
0004  - compatible:          Must be one of:
0005                         "maxim,max31910"
0006                         "maxim,max31911"
0007                         "maxim,max31912"
0008                         "maxim,max31913"
0009                         "maxim,max31953"
0010                         "maxim,max31963"
0011  - reg:                 Chip select number.
0012  - gpio-controller:     Marks the device node as a GPIO controller.
0013  - #gpio-cells:         Should be two. For consumer use see gpio.txt.
0014 
0015 Optional properties:
0016  - #daisy-chained-devices:
0017                         Number of chips in the daisy-chain (default is 1).
0018  - maxim,modesel-gpios: GPIO pins to configure modesel of each chip.
0019                         The number of GPIOs must equal "#daisy-chained-devices"
0020                         (if each chip is driven by a separate pin) or 1
0021                         (if all chips are wired to the same pin).
0022  - maxim,fault-gpios:   GPIO pins to read fault of each chip.
0023                         The number of GPIOs must equal "#daisy-chained-devices"
0024                         or 1.
0025  - maxim,db0-gpios:     GPIO pins to configure debounce of each chip.
0026                         The number of GPIOs must equal "#daisy-chained-devices"
0027                         or 1.
0028  - maxim,db1-gpios:     GPIO pins to configure debounce of each chip.
0029                         The number of GPIOs must equal "maxim,db0-gpios".
0030  - maxim,modesel-8bit:  Boolean whether the modesel pin of the chips is
0031                         pulled high (8-bit mode).  Use this if the modesel pin
0032                         is hardwired and consequently "maxim,modesel-gpios"
0033                         cannot be specified.  By default if neither this nor
0034                         "maxim,modesel-gpios" is given, the driver assumes
0035                         that modesel is pulled low (16-bit mode).
0036  - maxim,ignore-undervoltage:
0037                         Boolean whether to ignore undervoltage alarms signaled
0038                         by the "maxim,fault-gpios" or by the status byte
0039                         (in 16-bit mode).  Use this if the chips are powered
0040                         through 5VOUT instead of VCC24V, in which case they
0041                         will constantly signal undervoltage.
0042 
0043 For other required and optional properties of SPI slave nodes please refer to
0044 ../spi/spi-bus.txt.
0045 
0046 Example:
0047         gpio@0 {
0048                 compatible = "maxim,max31913";
0049                 reg = <0>;
0050                 gpio-controller;
0051                 #gpio-cells = <2>;
0052 
0053                 maxim,modesel-gpios = <&gpio2 23>;
0054                 maxim,fault-gpios   = <&gpio2 24 GPIO_ACTIVE_LOW>;
0055                 maxim,db0-gpios     = <&gpio2 25>;
0056                 maxim,db1-gpios     = <&gpio2 26>;
0057 
0058                 spi-max-frequency = <25000000>;
0059         };