summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAmit Sunil Dhamne <amitsd@google.com>2026-02-23 20:05:37 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-03-11 15:48:52 +0100
commitef22555fbee7c284a6ab55238fcbe4eea9dbb2a4 (patch)
tree9643ed66d1f9f735ecd0e287cde032fe18fdf9d8 /include
parentd6a093c3bf0e4e073b87022ac34b261979325228 (diff)
downloadlinux-ef22555fbee7c284a6ab55238fcbe4eea9dbb2a4.tar.gz
linux-ef22555fbee7c284a6ab55238fcbe4eea9dbb2a4.zip
dt-bindings: connector: Add sink properties to comply with PD 3.1 spec
Add additional properties for ports supporting sink mode. The properties define certain hardware and electrical properties such as sink load step, sink load characteristics, sink compliance and charging adapter Power Delivery Profile (PDP) for the connector. These properties need to be defined for a Type-C port in compliance with the PD 3.1 spec. Signed-off-by: Amit Sunil Dhamne <amitsd@google.com> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Link: https://patch.msgid.link/20260223-skedb-v2-1-60675765bc7e@google.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/dt-bindings/usb/pd.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/dt-bindings/usb/pd.h b/include/dt-bindings/usb/pd.h
index e6526b138174..6cff2339bda3 100644
--- a/include/dt-bindings/usb/pd.h
+++ b/include/dt-bindings/usb/pd.h
@@ -465,4 +465,22 @@
| ((vbm) & 0x3) << 15 | (curr) << 14 | ((vbi) & 0x3f) << 7 \
| ((gi) & 0x3f) << 1 | (ct))
+/*
+ * Sink Load Characteristics
+ * -------------------------
+ * <15> :: Can tolerate vbus voltage droop
+ * <11:14> :: Duty cycle in 5% increments when bits 4:0 are non-zero
+ * <10:5> :: Overload period in 20ms when bits 4:0 are non-zero
+ * <4:0> :: Percent overload in 10% increments. Values higher than 25 are
+ * clipped to 250%
+ */
+#define SINK_LOAD_CHAR(vdroop, duty_cycle, period, percent_ol) \
+ (((vdroop) & 0x1) << 15 | ((duty_cycle) & 0xf) << 11 | \
+ ((period) & 0x3f) << 5 | ((percent_ol) & 0x1f))
+
+/* Compliance */
+#define COMPLIANCE_LPS (1 << 0)
+#define COMPLIANCE_PS1 (1 << 1)
+#define COMPLIANCE_PS2 (1 << 2)
+
#endif /* __DT_POWER_DELIVERY_H */