1c6ce2b6bSChristian Ruppert* Abilis TB10x GPIO controller 2c6ce2b6bSChristian Ruppert 3c6ce2b6bSChristian RuppertRequired Properties: 4c6ce2b6bSChristian Ruppert- compatible: Should be "abilis,tb10x-gpio" 5c6ce2b6bSChristian Ruppert- reg: Address and length of the register set for the device 6c6ce2b6bSChristian Ruppert- gpio-controller: Marks the device node as a gpio controller. 7c6ce2b6bSChristian Ruppert- #gpio-cells: Should be <2>. The first cell is the pin number and the 8c6ce2b6bSChristian Ruppert second cell is used to specify optional parameters: 9c6ce2b6bSChristian Ruppert - bit 0 specifies polarity (0 for normal, 1 for inverted). 10c6ce2b6bSChristian Ruppert- abilis,ngpio: the number of GPIO pins this driver controls. 11c6ce2b6bSChristian Ruppert 12c6ce2b6bSChristian RuppertOptional Properties: 13c6ce2b6bSChristian Ruppert- interrupt-controller: Marks the device node as an interrupt controller. 14c6ce2b6bSChristian Ruppert- #interrupt-cells: Should be <1>. Interrupts are triggered on both edges. 15c6ce2b6bSChristian Ruppert- interrupts: Defines the interrupt line connecting this GPIO controller to 16c6ce2b6bSChristian Ruppert its parent interrupt controller. 17c6ce2b6bSChristian Ruppert 18c6ce2b6bSChristian RuppertGPIO ranges are specified as described in 19c6ce2b6bSChristian RuppertDocumentation/devicetree/bindings/gpio/gpio.txt 20c6ce2b6bSChristian Ruppert 21c6ce2b6bSChristian RuppertExample: 22c6ce2b6bSChristian Ruppert 23*afc3bca4SRob Herring gpioa: gpio@ff140000 { 24c6ce2b6bSChristian Ruppert compatible = "abilis,tb10x-gpio"; 25c6ce2b6bSChristian Ruppert interrupt-controller; 26c6ce2b6bSChristian Ruppert #interrupt-cells = <1>; 27c6ce2b6bSChristian Ruppert interrupt-parent = <&tb10x_ictl>; 28c6ce2b6bSChristian Ruppert interrupts = <27 2>; 29c6ce2b6bSChristian Ruppert reg = <0xFF140000 0x1000>; 30c6ce2b6bSChristian Ruppert gpio-controller; 31c6ce2b6bSChristian Ruppert #gpio-cells = <2>; 32c6ce2b6bSChristian Ruppert abilis,ngpio = <3>; 33c6ce2b6bSChristian Ruppert gpio-ranges = <&iomux 0 0 0>; 34c6ce2b6bSChristian Ruppert gpio-ranges-group-names = "gpioa_pins"; 35c6ce2b6bSChristian Ruppert }; 36