* [PATCH v2 1/2] dt-bindings: extcon: ptn5150: Document CON_DET enable
@ 2026-11-29 17:41 Marek Vasut
2026-11-29 17:42 ` [PATCH v2 2/2] extcon: ptn5150: Make CON_DET configurable Marek Vasut
2026-11-29 17:50 ` [PATCH v2 1/2] dt-bindings: extcon: ptn5150: Document CON_DET enable sashiko-bot
0 siblings, 2 replies; 3+ messages in thread
From: Marek Vasut @ 2026-11-29 17:41 UTC (permalink / raw)
To: linux-usb
Cc: Marek Vasut, Chanwoo Choi, Conor Dooley, Krzysztof Kozlowski,
MyungJoo Ham, Rob Herring, devicetree, linux-kernel
Document boolean property "nxp,con-det-enable", which selects whether the
CON_DET signal is output on Pin 5 of the chip. Chip default is disabled,
which is also the behavior when the property is not present.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
---
Cc: Chanwoo Choi <cw00.choi@samsung.com>
Cc: Conor Dooley <conor+dt@kernel.org>
Cc: Krzysztof Kozlowski <krzk@kernel.org>
Cc: MyungJoo Ham <myungjoo.ham@samsung.com>
Cc: Rob Herring <robh@kernel.org>
Cc: devicetree@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
V2: No change
---
Documentation/devicetree/bindings/extcon/extcon-ptn5150.yaml | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/Documentation/devicetree/bindings/extcon/extcon-ptn5150.yaml b/Documentation/devicetree/bindings/extcon/extcon-ptn5150.yaml
index 79f88b5f4e5cc..dc7af415e4dee 100644
--- a/Documentation/devicetree/bindings/extcon/extcon-ptn5150.yaml
+++ b/Documentation/devicetree/bindings/extcon/extcon-ptn5150.yaml
@@ -45,6 +45,11 @@ properties:
connector:
$ref: /schemas/connector/usb-connector.yaml#
+ nxp,con-det-enable:
+ type: boolean
+ description:
+ Enable CON_DET output on pin 5.
+
required:
- compatible
- interrupts
--
2.53.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH v2 2/2] extcon: ptn5150: Make CON_DET configurable
2026-11-29 17:41 [PATCH v2 1/2] dt-bindings: extcon: ptn5150: Document CON_DET enable Marek Vasut
@ 2026-11-29 17:42 ` Marek Vasut
2026-11-29 17:50 ` [PATCH v2 1/2] dt-bindings: extcon: ptn5150: Document CON_DET enable sashiko-bot
1 sibling, 0 replies; 3+ messages in thread
From: Marek Vasut @ 2026-11-29 17:42 UTC (permalink / raw)
To: linux-usb
Cc: Marek Vasut, Chanwoo Choi, Conor Dooley, Krzysztof Kozlowski,
MyungJoo Ham, Rob Herring, devicetree, linux-kernel
Handle boolean property "nxp,con-det-enable", which selects whether the
CON_DET signal is output on Pin 5 of the chip. Chip default is disabled,
which is also the behavior when the property is not present.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
---
Cc: Chanwoo Choi <cw00.choi@samsung.com>
Cc: Conor Dooley <conor+dt@kernel.org>
Cc: Krzysztof Kozlowski <krzk@kernel.org>
Cc: MyungJoo Ham <myungjoo.ham@samsung.com>
Cc: Rob Herring <robh@kernel.org>
Cc: devicetree@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
V2: Check regmap_clear_bits() return value
---
drivers/extcon/extcon-ptn5150.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/extcon/extcon-ptn5150.c b/drivers/extcon/extcon-ptn5150.c
index 0b96b58b42124..8eada4de56e61 100644
--- a/drivers/extcon/extcon-ptn5150.c
+++ b/drivers/extcon/extcon-ptn5150.c
@@ -45,6 +45,7 @@
#define PTN5150_REG_CC_PORT_ATTACHMENT GENMASK(4, 2)
#define PTN5150_REG_CC_POLARITY GENMASK(1, 0)
#define PTN5150_REG_CC_VBUS_DETECTION BIT(7)
+#define PTN5150_REG_CON_DET_DIS BIT(0)
#define PTN5150_REG_INT_CABLE_ATTACH_MASK BIT(0)
#define PTN5150_REG_INT_CABLE_DETACH_MASK BIT(1)
@@ -362,6 +363,13 @@ static int ptn5150_i2c_probe(struct i2c_client *i2c)
if (ret)
return ret;
+ if (device_property_present(&i2c->dev, "nxp,con-det-enable")) {
+ ret = regmap_clear_bits(info->regmap, PTN5150_REG_CON_DET,
+ PTN5150_REG_CON_DET_DIS);
+ if (ret)
+ return dev_err_probe(info->dev, ret, "failed to enable CON_DET\n");
+ }
+
/*
* Update current extcon state if for example OTG connection was there
* before the probe
--
2.53.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2 1/2] dt-bindings: extcon: ptn5150: Document CON_DET enable
2026-11-29 17:41 [PATCH v2 1/2] dt-bindings: extcon: ptn5150: Document CON_DET enable Marek Vasut
2026-11-29 17:42 ` [PATCH v2 2/2] extcon: ptn5150: Make CON_DET configurable Marek Vasut
@ 2026-11-29 17:50 ` sashiko-bot
1 sibling, 0 replies; 3+ messages in thread
From: sashiko-bot @ 2026-11-29 17:50 UTC (permalink / raw)
To: Marek Vasut, linux-usb
Sashiko has reviewed this 2-patch series and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261129174205.292359-1-marek.vasut+renesas@mailbox.org
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-11-29 17:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-29 17:41 [PATCH v2 1/2] dt-bindings: extcon: ptn5150: Document CON_DET enable Marek Vasut
2026-11-29 17:42 ` [PATCH v2 2/2] extcon: ptn5150: Make CON_DET configurable Marek Vasut
2026-11-29 17:50 ` [PATCH v2 1/2] dt-bindings: extcon: ptn5150: Document CON_DET enable sashiko-bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox