diff options
author | Eric Yilun Lin <yllin@chromium.org> | 2022-06-27 16:05:08 +0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-07-18 06:53:22 +0000 |
commit | 7b24d758acfa2bfe0292b30b4db42927898936ef (patch) | |
tree | 6c18645e9009611647151a8e9773d9b13abf21e2 /zephyr | |
parent | df1e8c840d1c8707c2f26e041040c77d5c1007dd (diff) | |
download | chrome-ec-7b24d758acfa2bfe0292b30b4db42927898936ef.tar.gz |
kingler: migrate ppc config to dts
BUG=b:227359727
TEST=enable on kingler
BRANCH=none
Change-Id: I5bd68c298c5c3820ae5ba62c602729e8993017d2
Signed-off-by: Eric Yilun Lin <yllin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3725855
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Tested-by: Eric Yilun Lin <yllin@google.com>
Commit-Queue: Eric Yilun Lin <yllin@google.com>
Diffstat (limited to 'zephyr')
-rw-r--r-- | zephyr/projects/corsola/src/kingler/usbc_config.c | 10 | ||||
-rw-r--r-- | zephyr/projects/corsola/usbc_kingler.dts | 12 |
2 files changed, 12 insertions, 10 deletions
diff --git a/zephyr/projects/corsola/src/kingler/usbc_config.c b/zephyr/projects/corsola/src/kingler/usbc_config.c index 0f4fa32e49..7d93838dcb 100644 --- a/zephyr/projects/corsola/src/kingler/usbc_config.c +++ b/zephyr/projects/corsola/src/kingler/usbc_config.c @@ -34,16 +34,6 @@ #define CPRINTS(format, args...) cprints(CC_USBPD, format, ##args) #define CPRINTF(format, args...) cprintf(CC_USBPD, format, ##args) -struct ppc_config_t ppc_chips[CONFIG_USB_PD_PORT_MAX_COUNT] = { - [USBC_PORT_C0] = { .i2c_port = I2C_PORT_USB_C0, - .i2c_addr_flags = NX20P3483_ADDR2_FLAGS, - .drv = &nx20p348x_drv }, - [USBC_PORT_C1] = { .i2c_port = I2C_PORT_USB_C1, - .i2c_addr_flags = NX20P3483_ADDR2_FLAGS, - .drv = &nx20p348x_drv } -}; -unsigned int ppc_cnt = ARRAY_SIZE(ppc_chips); - /* USB Mux */ /* USB Mux C1 : board_init of PS8743 */ diff --git a/zephyr/projects/corsola/usbc_kingler.dts b/zephyr/projects/corsola/usbc_kingler.dts index ac8dd5057a..74859a69fb 100644 --- a/zephyr/projects/corsola/usbc_kingler.dts +++ b/zephyr/projects/corsola/usbc_kingler.dts @@ -33,6 +33,12 @@ TCPC_FLAGS_CONTROL_VCONN | TCPC_FLAGS_CONTROL_FRS)>; }; + ppc { + compatible = "nxp,nx20p348x"; + status = "okay"; + port = <&i2c_usb_c0>; + i2c-addr-flags = "NX20P3483_ADDR2_FLAGS"; + }; chg { compatible = "intersil,isl923x"; status = "okay"; @@ -57,6 +63,12 @@ TCPC_FLAGS_CONTROL_VCONN | TCPC_FLAGS_CONTROL_FRS)>; }; + ppc { + compatible = "nxp,nx20p348x"; + status = "okay"; + port = <&i2c_usb_c1>; + i2c-addr-flags = "NX20P3483_ADDR2_FLAGS"; + }; }; }; }; |