diff options
Diffstat (limited to 'zephyr/dts')
-rw-r--r-- | zephyr/dts/bindings/gpio/cros,ioex-chip.yaml | 50 | ||||
-rw-r--r-- | zephyr/dts/bindings/gpio/cros,ioex-port.yaml | 26 |
2 files changed, 76 insertions, 0 deletions
diff --git a/zephyr/dts/bindings/gpio/cros,ioex-chip.yaml b/zephyr/dts/bindings/gpio/cros,ioex-chip.yaml new file mode 100644 index 0000000000..8ab297b035 --- /dev/null +++ b/zephyr/dts/bindings/gpio/cros,ioex-chip.yaml @@ -0,0 +1,50 @@ +description: IEOX chip definition + +compatible: "cros,ioex-chip" + +include: [base.yaml] + +properties: + i2c-port: + type: phandle + description: + Handle to the i2c named-port containing the IO expander chip + + i2c-addr: + type: int + required: true + description: + I2C address of chip + + flags: + type: int + required: true + description: + Value which represents IOEX_FLAGS_* or other internal flags + for IO expander chip. + + drv: + type: string + required: true + description: + CrOS EC driver used to communicate with chip + enum: + - "ccgxxf_ioexpander_drv" + - "it8801_ioexpander_drv" + - "nct38xx_ioexpander_drv" + - "pca9675_ioexpander_drv" + - "pcal6408_ioexpander_drv" + - "tca64xxa_ioexpander_drv" + + int-gpios: + type: phandle-array + required: false + description: + GPIO connected to the interrupt output signal of IO expander chip + + "#address-cells": + required: true + const: 1 + "#size-cells": + required: true + const: 0
\ No newline at end of file diff --git a/zephyr/dts/bindings/gpio/cros,ioex-port.yaml b/zephyr/dts/bindings/gpio/cros,ioex-port.yaml new file mode 100644 index 0000000000..bde3fde1ac --- /dev/null +++ b/zephyr/dts/bindings/gpio/cros,ioex-port.yaml @@ -0,0 +1,26 @@ +description: IEOX port definition + +compatible: "cros,ioex-port" + +include: [gpio-controller.yaml, base.yaml] + +properties: + reg: + required: true + description: + Number of port within IO expander + + "#gpio-cells": + required: true + const: 2 + description: + Number of parameters describing the pin + + ngpios: + required: true + description: + Number of pins per port + +gpio-cells: + - pin + - flags
\ No newline at end of file |