summaryrefslogtreecommitdiff
path: root/zephyr/dts/bindings/switchcap/switchcap-ln9310.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/dts/bindings/switchcap/switchcap-ln9310.yaml')
-rw-r--r--zephyr/dts/bindings/switchcap/switchcap-ln9310.yaml28
1 files changed, 28 insertions, 0 deletions
diff --git a/zephyr/dts/bindings/switchcap/switchcap-ln9310.yaml b/zephyr/dts/bindings/switchcap/switchcap-ln9310.yaml
new file mode 100644
index 0000000000..2a73325cd3
--- /dev/null
+++ b/zephyr/dts/bindings/switchcap/switchcap-ln9310.yaml
@@ -0,0 +1,28 @@
+description: SwitchCap controlled by LN9310
+
+compatible: "switchcap-ln9310"
+
+properties:
+ enable-pin:
+ type: phandle
+ required: true
+ description: |
+ GPIO used to enable the switch cap. Relies on
+ GPIO flags to determine active low or high.
+
+ port:
+ type: phandle
+ required: true
+ description: |
+ I2C port used to communicate with controller
+
+ addr-flags:
+ type: string
+ default: "LN9310_I2C_ADDR_0_FLAGS"
+ enum:
+ - "LN9310_I2C_ADDR_0_FLAGS"
+ - "LN9310_I2C_ADDR_1_FLAGS"
+ - "LN9310_I2C_ADDR_2_FLAGS"
+ - "LN9310_I2C_ADDR_3_FLAGS"
+ description: |
+ I2C address of controller