Message ID | 20240119125812.239197-2-angelogioacchino.delregno@collabora.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-31152-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp985887dyb; Fri, 19 Jan 2024 04:59:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IFRveIFSw66FxNlYdlHCMbyuOLMvB7P9+EJugEC1jD0DBM34GRZZD7wpOXLDXt2R99qrKrn X-Received: by 2002:a50:9e6b:0:b0:558:b5d0:e77a with SMTP id z98-20020a509e6b000000b00558b5d0e77amr1057623ede.36.1705669170395; Fri, 19 Jan 2024 04:59:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705669170; cv=pass; d=google.com; s=arc-20160816; b=ZJX8dduok1o7/bb7rAKEbkHbGojaO+xL8NS9suiappje8xpuRrHW8L3NzVs2GRh2BG CumbBkJvSRJMw+HVzpWbOfZSjx/1EgwZU/0wwwrXZI+GrgWoC3GFEmkIo90vN6qY6r7B ySyFi0YrIVeRN6bZyv8xRMGEijhNh9EHh7hJHoEFza9WcgXINX0Fcey+v5DFBdzeet5R X9RMztVUynStZWi/nn5hDILQ74gfS1M08eNSsk+EQeTb9ou001s70SWaXFPiRFxAxYIp a6aPCnoy4W/RMs+8imPuQqIO6+KIsczx7z3x0JQTL70JAiudsNW+S+jLjACI2n3S8Ijh mpOw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=SKHbaajHnQvvPjqGOqfRSPnn9K+Y+EmUMUlxyszHpJA=; fh=O+hxQb1tPiWW366IuM3Ct7PQxz5i8S3IpT0spXRM4/E=; b=UwcugSnGCaMPqdBLHh1tA4boGSIOVuCEFoM2n5H5YrmTO3cKXQIpdjOAiXsM2/fg69 ykhresE6AUy5a5I7QLzdY/a3UZz8qdWATBQefP0xKnK04DYqAHf7i3nQo9qz91ayI3We GTJPoDTS+utel1T1MDj7A4HpDPcLgc//xQGrt8ku3kpZ8HVv8ic15GFyhGCF2pjN/Tsl pXsHSeYCxB9CHp4ZN9T8eJBkWJCURk8AJyqNBqaCJt3JAHBNF7sBOR15vGt3wIb621i+ 05l8iBHFnKfE+DUPWCCsZvhJyCHmHZCDi2o/7bQTlQpI7rNhXrfmhty8R9qrWJj+gwQC GARw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=HGOGU6Uz; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-31152-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31152-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id p13-20020a05640243cd00b0055946387477si5260067edc.605.2024.01.19.04.59.30 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 04:59:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31152-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=HGOGU6Uz; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-31152-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31152-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 0C2B31F22D62 for <ouuuleilei@gmail.com>; Fri, 19 Jan 2024 12:59:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D7F9A5381E; Fri, 19 Jan 2024 12:58:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="HGOGU6Uz" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B6FAE3C470; Fri, 19 Jan 2024 12:58:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705669101; cv=none; b=DGUyF/yuFyLJpR88IAYzUszQsBtmjLsMzDyl8BWh4BuKwNACFBge+IxuY4sP6Gsfe34IEZeCZBoPIoCyWPinFD/sTr7k7OHs8xL8Uqn4wNFcgvkQYXcaeZ57Hl9NyVOHE4hkSAR6U4PlJmoqUK87POoVb0cV2X05k7gymtx9SzY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705669101; c=relaxed/simple; bh=yMBnHD84devz8pBb0bWiL0F28mWeot+MVGjDOv5Z7as=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=VOs1824emG6xxXOQ7s19HF/VC/ww6KDHz2+lz5s72NOC4gOYQFk6JtvpL7kHbgkNhkqu7pytNFXt0hlaBbNRlpWx4d47AMkDpj/igdtXNztZxU5IeP9+ATU2+dEF4aeQvPzpKa4AVqLrMHKlN0CiJQAeLC2YzM+7ANIDyQrKTiY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=HGOGU6Uz; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1705669098; bh=yMBnHD84devz8pBb0bWiL0F28mWeot+MVGjDOv5Z7as=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HGOGU6UzfoCntF4nff5F3P7Kmb4VSOuGSAJcJt5rGkh7SLFwKkhZELITmVDexpyMy 5jvj5EgS8n3dlezI1Uvk7WRMFjvav5UPYoT78yGrDKncLZd+OmCifztXmolRKsyT5M DAxcRt8/OEBxc51p1n+r6aEcc17NRbdwMxjvYmtfwxxVagPJKeAXbccYQGLhs7+ocF IMdxgebaGpIoKktyclXXGyPmkV8f4hpkv40DSGeVhtYDQ+7yxBe4cZe2WuCfsTPTMV avtiBPrbc9+jP5Aygx1dfIqi60mi83XJbev1FAbF/fJQmbx3m38NPGRgjJ/GV3YfpA wZgML5/d9XoRA== Received: from IcarusMOD.eternityproject.eu (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id B54BB3781FF2; Fri, 19 Jan 2024 12:58:16 +0000 (UTC) From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> To: gregkh@linuxfoundation.org Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, heikki.krogerus@linux.intel.com, matthias.bgg@gmail.com, dmitry.baryshkov@linaro.org, neil.armstrong@linaro.org, andersson@kernel.org, nathan@kernel.org, luca.weiss@fairphone.com, tianping.fang@mediatek.com, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, kernel@collabora.com, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Subject: [PATCH v2 1/2] dt-bindings: usb: Introduce ITE IT5205 Alt. Mode Passive MUX Date: Fri, 19 Jan 2024 13:58:11 +0100 Message-ID: <20240119125812.239197-2-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240119125812.239197-1-angelogioacchino.delregno@collabora.com> References: <20240119125812.239197-1-angelogioacchino.delregno@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788523755798947830 X-GMAIL-MSGID: 1788523755798947830 |
Series |
Add ITE IT5205 Passive MUX
|
|
Commit Message
AngeloGioacchino Del Regno
Jan. 19, 2024, 12:58 p.m. UTC
Introduce a binding for the ITE IT5205 Alternate Mode Passive MUX,
used for connecting, disconnecting and switching orientation and
control the SBU signals for alternate modes on USB Type-C ports.
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
---
.../devicetree/bindings/usb/ite,it5205.yaml | 72 +++++++++++++++++++
1 file changed, 72 insertions(+)
create mode 100644 Documentation/devicetree/bindings/usb/ite,it5205.yaml
Comments
On Fri, Jan 19, 2024 at 01:58:11PM +0100, AngeloGioacchino Del Regno wrote: > Introduce a binding for the ITE IT5205 Alternate Mode Passive MUX, > used for connecting, disconnecting and switching orientation and > control the SBU signals for alternate modes on USB Type-C ports. > > Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> > --- > .../devicetree/bindings/usb/ite,it5205.yaml | 72 +++++++++++++++++++ > 1 file changed, 72 insertions(+) > create mode 100644 Documentation/devicetree/bindings/usb/ite,it5205.yaml > > diff --git a/Documentation/devicetree/bindings/usb/ite,it5205.yaml b/Documentation/devicetree/bindings/usb/ite,it5205.yaml > new file mode 100644 > index 000000000000..36ec4251b5f2 > --- /dev/null > +++ b/Documentation/devicetree/bindings/usb/ite,it5205.yaml > @@ -0,0 +1,72 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/usb/ite,it5205.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: ITE IT5202 Type-C USB Alternate Mode Passive MUX > + > +maintainers: > + - AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> > + - Tianping Fang <tianping.fang@mediatek.com> > + > +properties: > + compatible: > + const: ite,it5205 > + > + reg: > + maxItems: 1 > + > + vcc-supply: > + description: Power supply for VCC pin (3.3V) > + > + mode-switch: > + description: Flag the port as possible handle of altmode switching > + type: boolean > + > + orientation-switch: > + description: Flag the port as possible handler of orientation switching > + type: boolean > + > + ite,ovp-enable: > + description: Enable Over Voltage Protection functionality > + type: boolean Bitta devil's advocacy perhaps, but why is this DT property? Is it not known whether or not this is supported based on the compatible, and whether or not to enable it is a decision for the operating system to make?
On 19/01/2024 13:58, AngeloGioacchino Del Regno wrote: > Introduce a binding for the ITE IT5205 Alternate Mode Passive MUX, > used for connecting, disconnecting and switching orientation and > control the SBU signals for alternate modes on USB Type-C ports. > .. > + mode-switch: > + description: Flag the port as possible handle of altmode switching > + type: boolean > + > + orientation-switch: > + description: Flag the port as possible handler of orientation switching > + type: boolean Just FYI, I will be sending v2 of: https://lore.kernel.org/all/20240115092923.105275-1-krzysztof.kozlowski@linaro.org/ which could be used here. If your patch gets first, I will adjust mine. .. > + > +additionalProperties: false > + > +examples: > + - | > + #include <dt-bindings/interrupt-controller/irq.h> > + i2c2 { i2c { Best regards, Krzysztof
Il 19/01/24 17:18, Conor Dooley ha scritto: > On Fri, Jan 19, 2024 at 01:58:11PM +0100, AngeloGioacchino Del Regno wrote: >> Introduce a binding for the ITE IT5205 Alternate Mode Passive MUX, >> used for connecting, disconnecting and switching orientation and >> control the SBU signals for alternate modes on USB Type-C ports. >> >> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> >> --- >> .../devicetree/bindings/usb/ite,it5205.yaml | 72 +++++++++++++++++++ >> 1 file changed, 72 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/usb/ite,it5205.yaml >> >> diff --git a/Documentation/devicetree/bindings/usb/ite,it5205.yaml b/Documentation/devicetree/bindings/usb/ite,it5205.yaml >> new file mode 100644 >> index 000000000000..36ec4251b5f2 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/usb/ite,it5205.yaml >> @@ -0,0 +1,72 @@ >> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/usb/ite,it5205.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: ITE IT5202 Type-C USB Alternate Mode Passive MUX >> + >> +maintainers: >> + - AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> >> + - Tianping Fang <tianping.fang@mediatek.com> >> + >> +properties: >> + compatible: >> + const: ite,it5205 >> + >> + reg: >> + maxItems: 1 >> + >> + vcc-supply: >> + description: Power supply for VCC pin (3.3V) >> + >> + mode-switch: >> + description: Flag the port as possible handle of altmode switching >> + type: boolean >> + >> + orientation-switch: >> + description: Flag the port as possible handler of orientation switching >> + type: boolean >> + >> + ite,ovp-enable: >> + description: Enable Over Voltage Protection functionality >> + type: boolean > > Bitta devil's advocacy perhaps, but why is this DT property? Is it not > known whether or not this is supported based on the compatible, and > whether or not to enable it is a decision for the operating system to > make? > > AFAIK, not all board designs can use the OVP. On some, this may be unstable - the use case where this can be safely enabled is when there's nothing in between the mux and the controller, and between the mux and the port. Cheers, Angelo
On Mon, Jan 22, 2024 at 11:27:11AM +0100, AngeloGioacchino Del Regno wrote: > Il 19/01/24 17:18, Conor Dooley ha scritto: > > On Fri, Jan 19, 2024 at 01:58:11PM +0100, AngeloGioacchino Del Regno wrote: > > > Introduce a binding for the ITE IT5205 Alternate Mode Passive MUX, > > > used for connecting, disconnecting and switching orientation and > > > control the SBU signals for alternate modes on USB Type-C ports. > > > > > > Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> > > > --- > > > .../devicetree/bindings/usb/ite,it5205.yaml | 72 +++++++++++++++++++ > > > 1 file changed, 72 insertions(+) > > > create mode 100644 Documentation/devicetree/bindings/usb/ite,it5205.yaml > > > > > > diff --git a/Documentation/devicetree/bindings/usb/ite,it5205.yaml b/Documentation/devicetree/bindings/usb/ite,it5205.yaml > > > new file mode 100644 > > > index 000000000000..36ec4251b5f2 > > > --- /dev/null > > > +++ b/Documentation/devicetree/bindings/usb/ite,it5205.yaml > > > @@ -0,0 +1,72 @@ > > > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > > > +%YAML 1.2 > > > +--- > > > +$id: http://devicetree.org/schemas/usb/ite,it5205.yaml# > > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > > + > > > +title: ITE IT5202 Type-C USB Alternate Mode Passive MUX > > > + > > > +maintainers: > > > + - AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> > > > + - Tianping Fang <tianping.fang@mediatek.com> > > > + > > > +properties: > > > + compatible: > > > + const: ite,it5205 > > > + > > > + reg: > > > + maxItems: 1 > > > + > > > + vcc-supply: > > > + description: Power supply for VCC pin (3.3V) > > > + > > > + mode-switch: > > > + description: Flag the port as possible handle of altmode switching > > > + type: boolean > > > + > > > + orientation-switch: > > > + description: Flag the port as possible handler of orientation switching > > > + type: boolean > > > + > > > + ite,ovp-enable: > > > + description: Enable Over Voltage Protection functionality > > > + type: boolean > > > > Bitta devil's advocacy perhaps, but why is this DT property? Is it not > > known whether or not this is supported based on the compatible, and > > whether or not to enable it is a decision for the operating system to > > make? > > > > > > AFAIK, not all board designs can use the OVP. On some, this may be unstable - the > use case where this can be safely enabled is when there's nothing in between the > mux and the controller, and between the mux and the port. Okay, if it varies based on the configuration that makes sense. Perhaps in the future consider mentioning stuff like that in the commit message. Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Thanks, Conor.
Il 22/01/24 19:06, Conor Dooley ha scritto: > On Mon, Jan 22, 2024 at 11:27:11AM +0100, AngeloGioacchino Del Regno wrote: >> Il 19/01/24 17:18, Conor Dooley ha scritto: >>> On Fri, Jan 19, 2024 at 01:58:11PM +0100, AngeloGioacchino Del Regno wrote: >>>> Introduce a binding for the ITE IT5205 Alternate Mode Passive MUX, >>>> used for connecting, disconnecting and switching orientation and >>>> control the SBU signals for alternate modes on USB Type-C ports. >>>> >>>> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> >>>> --- >>>> .../devicetree/bindings/usb/ite,it5205.yaml | 72 +++++++++++++++++++ >>>> 1 file changed, 72 insertions(+) >>>> create mode 100644 Documentation/devicetree/bindings/usb/ite,it5205.yaml >>>> >>>> diff --git a/Documentation/devicetree/bindings/usb/ite,it5205.yaml b/Documentation/devicetree/bindings/usb/ite,it5205.yaml >>>> new file mode 100644 >>>> index 000000000000..36ec4251b5f2 >>>> --- /dev/null >>>> +++ b/Documentation/devicetree/bindings/usb/ite,it5205.yaml >>>> @@ -0,0 +1,72 @@ >>>> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause >>>> +%YAML 1.2 >>>> +--- >>>> +$id: http://devicetree.org/schemas/usb/ite,it5205.yaml# >>>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>>> + >>>> +title: ITE IT5202 Type-C USB Alternate Mode Passive MUX >>>> + >>>> +maintainers: >>>> + - AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> >>>> + - Tianping Fang <tianping.fang@mediatek.com> >>>> + >>>> +properties: >>>> + compatible: >>>> + const: ite,it5205 >>>> + >>>> + reg: >>>> + maxItems: 1 >>>> + >>>> + vcc-supply: >>>> + description: Power supply for VCC pin (3.3V) >>>> + >>>> + mode-switch: >>>> + description: Flag the port as possible handle of altmode switching >>>> + type: boolean >>>> + >>>> + orientation-switch: >>>> + description: Flag the port as possible handler of orientation switching >>>> + type: boolean >>>> + >>>> + ite,ovp-enable: >>>> + description: Enable Over Voltage Protection functionality >>>> + type: boolean >>> >>> Bitta devil's advocacy perhaps, but why is this DT property? Is it not >>> known whether or not this is supported based on the compatible, and >>> whether or not to enable it is a decision for the operating system to >>> make? >>> >>> >> >> AFAIK, not all board designs can use the OVP. On some, this may be unstable - the >> use case where this can be safely enabled is when there's nothing in between the >> mux and the controller, and between the mux and the port. > > Okay, if it varies based on the configuration that makes sense. Perhaps > in the future consider mentioning stuff like that in the commit message. > > Reviewed-by: Conor Dooley <conor.dooley@microchip.com> > You're right, it's totally sensible to write that in the commit message, will do next time. P.S.: I have been too much impatient and already sent a v3 because I had to fix an issue with the code, could you please give your R-b to the v3 as well? There's no change in the bindings commit. https://lore.kernel.org/r/20240122110446.140226-2-angelogioacchino.delregno@collabora.com Thanks again, Angelo
diff --git a/Documentation/devicetree/bindings/usb/ite,it5205.yaml b/Documentation/devicetree/bindings/usb/ite,it5205.yaml new file mode 100644 index 000000000000..36ec4251b5f2 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/ite,it5205.yaml @@ -0,0 +1,72 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/ite,it5205.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ITE IT5202 Type-C USB Alternate Mode Passive MUX + +maintainers: + - AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> + - Tianping Fang <tianping.fang@mediatek.com> + +properties: + compatible: + const: ite,it5205 + + reg: + maxItems: 1 + + vcc-supply: + description: Power supply for VCC pin (3.3V) + + mode-switch: + description: Flag the port as possible handle of altmode switching + type: boolean + + orientation-switch: + description: Flag the port as possible handler of orientation switching + type: boolean + + ite,ovp-enable: + description: Enable Over Voltage Protection functionality + type: boolean + + port: + $ref: /schemas/graph.yaml#/properties/port + description: + A port node to link the IT5205 to a TypeC controller for the purpose of + handling altmode muxing and orientation switching. + +required: + - compatible + - reg + - orientation-switch + - port + +additionalProperties: false + +examples: + - | + #include <dt-bindings/interrupt-controller/irq.h> + i2c2 { + #address-cells = <1>; + #size-cells = <0>; + + typec-mux@48 { + compatible = "ite,it5205"; + reg = <0x48>; + + mode-switch; + orientation-switch; + + vcc-supply = <&mt6359_vibr_ldo_reg>; + + port { + it5205_usbss_sbu: endpoint { + remote-endpoint = <&typec_controller>; + }; + }; + }; + }; +...