Skip to content

Commit 9763006

Browse files
shurst71Commit Bot
authored andcommitted
zephyr: Add FRS enable pin to SYV682x dts binginds node
Add the FRS enable pin property to the SYV682X PPC dts bindings node BUG=b:218692410 TEST=zmake configure -b herobrine BRANCH=main Signed-off-by: Sam Hurst <shurst@google.com> Change-Id: I5d3385ba78dbebee229876756ef94e50ec7de75c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3537265 Reviewed-by: Wai-Hong Tam <waihong@google.com>
1 parent 0897b8b commit 9763006

2 files changed

Lines changed: 13 additions & 8 deletions

File tree

zephyr/dts/bindings/usbc/silergy,syv682x.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ compatible: "silergy,syv682x"
55
include: ppc-chip.yaml
66

77
properties:
8+
frs_en_gpio:
9+
type: phandle
10+
description: The GPIO that controls FRS enable on this device
11+
required: false
12+
813
i2c-addr-flags:
914
default: "SYV682X_ADDR0_FLAGS"
1015
enum:

zephyr/shim/include/usbc/ppc_syv682x.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77

88
#define SYV682X_COMPAT silergy_syv682x
99

10-
#define PPC_CHIP_SYV682X(id) \
11-
{ \
12-
.i2c_port = I2C_PORT(DT_PHANDLE(id, port)), \
13-
.i2c_addr_flags = DT_STRING_UPPER_TOKEN(id, i2c_addr_flags), \
14-
.drv = &syv682x_drv, \
15-
.frs_en = COND_CODE_1(DT_NODE_HAS_PROP(id, irq), \
16-
(GPIO_SIGNAL(DT_PHANDLE(id, irq))), \
17-
(0)), \
10+
#define PPC_CHIP_SYV682X(id) \
11+
{ \
12+
.i2c_port = I2C_PORT(DT_PHANDLE(id, port)), \
13+
.i2c_addr_flags = DT_STRING_UPPER_TOKEN(id, i2c_addr_flags),\
14+
.drv = &syv682x_drv, \
15+
.frs_en = COND_CODE_1(DT_NODE_HAS_PROP(id, frs_en_gpio), \
16+
(GPIO_SIGNAL(DT_PHANDLE(id, frs_en_gpio))), \
17+
(0)), \
1818
},

0 commit comments

Comments
 (0)