diff options
author | Ting Shen <phoenixshen@google.com> | 2022-12-21 17:55:38 +0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-12-22 02:50:07 +0000 |
commit | b085fe45c7e4641488d0554cced51180ba255cdf (patch) | |
tree | 995307d4e7dff4c8a4e2670cc2cfb36d0695a859 | |
parent | bb935cc6d6f37abd75223c40a45981598514db71 (diff) | |
download | chrome-ec-b085fe45c7e4641488d0554cced51180ba255cdf.tar.gz |
rt1739: rename `irq` dt prop to `frs_en_gpio`
Follow syv682x's convention, and reserve the name `irq` for the real
irq pin.
Existing devices (Krabby, Geralt) does not define this pin in their
device tree, so no code change is required.
BUG=none
TEST=twister -T zephyr/test
BRANCH=none
Change-Id: If94be159c5ffd36c4f872e5740c550cf318d9e3f
Signed-off-by: Ting Shen <phoenixshen@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4117148
Auto-Submit: Ting Shen <phoenixshen@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Tested-by: Ting Shen <phoenixshen@chromium.org>
Commit-Queue: Eric Yilun Lin <yllin@google.com>
Reviewed-by: Eric Yilun Lin <yllin@google.com>
-rw-r--r-- | zephyr/dts/bindings/usbc/ppc/richtek,rt1739-ppc.yaml | 6 | ||||
-rw-r--r-- | zephyr/shim/include/usbc/ppc_rt1739.h | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/zephyr/dts/bindings/usbc/ppc/richtek,rt1739-ppc.yaml b/zephyr/dts/bindings/usbc/ppc/richtek,rt1739-ppc.yaml index e15322883c..7df90ca5b3 100644 --- a/zephyr/dts/bindings/usbc/ppc/richtek,rt1739-ppc.yaml +++ b/zephyr/dts/bindings/usbc/ppc/richtek,rt1739-ppc.yaml @@ -7,3 +7,9 @@ description: USBC PPC compatible: "richtek,rt1739-ppc" include: ppc-chip.yaml + +properties: + frs_en_gpio: + type: phandle + description: The GPIO that controls FRS enable on this device + required: false diff --git a/zephyr/shim/include/usbc/ppc_rt1739.h b/zephyr/shim/include/usbc/ppc_rt1739.h index b9c4e3eb4a..a736ce69e3 100644 --- a/zephyr/shim/include/usbc/ppc_rt1739.h +++ b/zephyr/shim/include/usbc/ppc_rt1739.h @@ -12,7 +12,7 @@ .i2c_port = I2C_PORT_BY_DEV(id), \ .i2c_addr_flags = DT_REG_ADDR(id), \ .drv = &rt1739_ppc_drv, \ - .frs_en = COND_CODE_1(DT_NODE_HAS_PROP(id, irq), \ - (GPIO_SIGNAL(DT_PHANDLE(id, irq))), \ - (0)), \ + .frs_en = COND_CODE_1( \ + DT_NODE_HAS_PROP(id, frs_en_gpio), \ + (GPIO_SIGNAL(DT_PHANDLE(id, frs_en_gpio))), (0)), \ }, |