| GPIO via CREG (control registers) driver |
| [ not used | gpio-1 | gpio-0 | <-shift-> ] < 32 bit register |
| write 0x2 == set output to "1" (activate) |
| write 0x3 == set output to "0" (deactivate) |
| - compatible : "snps,creg-gpio" |
| - reg : Exactly one register range with length 0x4. |
| - #gpio-cells : Should be one - the pin number. |
| - gpio-controller : Marks the device node as a GPIO controller. |
| - gpio-count: Number of GPIO pins. |
| - gpio-bit-per-line: Number of bits per gpio line (see picture). |
| - gpio-first-shift: Shift (in bits) of the first GPIO field in register |
| - gpio-activate-val: Value should be set in corresponding field to set |
| output to "1" (see picture). Applied to all GPIO ports. |
| - gpio-deactivate-val: Value should be set in corresponding field to set |
| output to "0" (see picture). Applied to all GPIO ports. |
| - gpio-bank-name: name of bank (as default driver name is used is used) |
| - gpio-default-val: array of default output values (must me 0 or 1) |
| compatible = "snps,creg-gpio"; |
| gpio-bank-name = "hsdk-spi-cs"; |
| gpio-deactivate-val = <3>; |
| gpio-default-val = <1 1>; |