summaryrefslogtreecommitdiff
path: root/zephyr/dts/bindings/gpio
diff options
context:
space:
mode:
authorMulin Chao <mlchao@nuvoton.com>2021-04-07 20:38:00 -0700
committerCommit Bot <commit-bot@chromium.org>2021-04-23 17:09:31 +0000
commitf80d511d1059665c5b55e30c7623508dfb938cac (patch)
tree3f835daeaa1a7291af99afbd174c78bf5d3871b7 /zephyr/dts/bindings/gpio
parentdb3d48e0025c9b33eca7f3ad5b075d837a202819 (diff)
downloadchrome-ec-f80d511d1059665c5b55e30c7623508dfb938cac.tar.gz
zephyr: Add unused GPIOs implementation in shimmed gpio driver
This CL adds ununed GPIOs configuration support in shimmed gpio driver. By adding IO phandles in 'unused-gpios' prop of board device-tree file, the shimmed driver will configure them one by one (depends on board circuit or io-pad design in chip) to prevent leakage current and get better power consumption in the lowest power state. BUG=b:184783076 BRANCH=none TEST=zmake testall Signed-off-by: Mulin Chao <mlchao@nuvoton.com> Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com> Change-Id: Ia4fe29cc244e27855faa1b57c2d1f8319b1246c3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2817141 Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/dts/bindings/gpio')
-rw-r--r--zephyr/dts/bindings/gpio/unused-gpios.yaml11
1 files changed, 11 insertions, 0 deletions
diff --git a/zephyr/dts/bindings/gpio/unused-gpios.yaml b/zephyr/dts/bindings/gpio/unused-gpios.yaml
new file mode 100644
index 0000000000..99f649e25e
--- /dev/null
+++ b/zephyr/dts/bindings/gpio/unused-gpios.yaml
@@ -0,0 +1,11 @@
+description: Unused GPIOs node
+
+compatible: "unused-gpios"
+
+properties:
+ unused-gpios:
+ type: phandle-array
+ required: true
+ description: |
+ A list contains unused GPIOs. The chip vendor needs to configure them for
+ better power consumption in the lowest power state.