Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | Gateworks PLD GPIO controller bindings |
| 2 | |
Tom Rini | 6bb92fc | 2024-05-20 09:54:58 -0600 | [diff] [blame] | 3 | The GPIO controller should be a child node on an I2C bus. |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 4 | |
| 5 | Required properties: |
| 6 | - compatible: Should be "gateworks,pld-gpio" |
| 7 | - reg: I2C slave address |
| 8 | - gpio-controller: Marks the device node as a GPIO controller. |
| 9 | - #gpio-cells: Should be <2>. The first cell is the gpio number and |
| 10 | the second cell is used to specify optional parameters. |
| 11 | |
| 12 | Example: |
| 13 | |
| 14 | pld@56 { |
| 15 | compatible = "gateworks,pld-gpio"; |
| 16 | reg = <0x56>; |
| 17 | gpio-controller; |
| 18 | #gpio-cells = <2>; |
| 19 | }; |