From nobody Fri Nov 29 18:35:58 2024 Received: from uho.ysoft.cz (uho.ysoft.cz [81.19.3.130]) (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 6298A17C988; Tue, 17 Sep 2024 15:11:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=81.19.3.130 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726585904; cv=none; b=dLBlgHasyg0VIx9icRWGAiQi4Vc8sf+F/3zDT+tt4XCW+B/pOz3S6MJnbmThn88k/K7wmk/iepkdCRERPLfbadTq95qIaMcEh+8RZEoYY+wSDnTlVDBM5IWcQ3CIPxYseSqGiZ5jHyD4XFdtYo87/M8/JpIeNQlAnXiha8u2pK8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726585904; c=relaxed/simple; bh=bWP4qv+E2x90O4bWRb9DMakRIusLAM9KSMjl8VzEq04=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=HQHFUsgMjr53j4P+0RlmLVBQ3pL00Taq6mTbvTS4mkERk1x2SalXEPKgOhk5cxtx45bgA1aILrJSlGnpg/g1HBZCLWyVwDtrCCrB4E60rnNHh3fItUD+ro9JpB35a9qTOhQWFf5cQqe4n6Qo1zjYnsEMfEWUdxkLbOFvzFinA8E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ysoft.com; spf=pass smtp.mailfrom=ysoft.com; dkim=pass (1024-bit key) header.d=ysoft.com header.i=@ysoft.com header.b=qcVcFZK1; arc=none smtp.client-ip=81.19.3.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ysoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ysoft.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ysoft.com header.i=@ysoft.com header.b="qcVcFZK1" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ysoft.com; s=20160406-ysoft-com; t=1726585901; bh=1cfKJJ01YsLZ5FGYmBxdnbC4cxwRLHTFQd2CggJXTGg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qcVcFZK1yRz1eJN4E3E5d/pk2RQ+cqqN98WsNkb43R/y+4Bm+nTz1GIoUdvV6ixfC YDAdWXHUXkYt8ZSN9YGlKHpvpF3jwBj4g0/MACwpPmCcQDvYLZ6+Cw/kHlbEn1LKuf 0Giklv6bJo4OOxGUhN7vwlofK2LlQOpVaUjGhcjk= Received: from vokac-nb.ysoft.local (unknown [10.1.8.111]) by uho.ysoft.cz (Postfix) with ESMTP id AA0B9A24A6; Tue, 17 Sep 2024 17:11:41 +0200 (CEST) From: =?UTF-8?q?Michal=20Vok=C3=A1=C4=8D?= To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Greg Kroah-Hartman , Shawn Guo , Petr Benes Cc: Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Herburger , Hiago De Franco , Hugo Villeneuve , Joao Paulo Goncalves , Michael Walle , Alexander Stein , Mathieu Othacehe , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, =?UTF-8?q?Michal=20Vok=C3=A1=C4=8D?= Subject: [PATCH 3/4] dt-bindings: usb: Add Diodes Incorporated PI5USB30213A Type-C Controller Date: Tue, 17 Sep 2024 17:10:00 +0200 Message-ID: <20240917151001.1289399-4-michal.vokac@ysoft.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240917151001.1289399-1-michal.vokac@ysoft.com> References: <20240917151001.1289399-1-michal.vokac@ysoft.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Petr Benes Diodes Incorporated PI5USB30213A Type-C Controller supports host, device, and dual-role mode based on voltage levels detected on CC pin. Supports dual differential channel, 2:1 USB 3.0 Mux/Demux, USB Type-C specification 1.1. Signed-off-by: Petr Benes Signed-off-by: Michal Vok=C3=A1=C4=8D --- .../bindings/usb/diodes,pi5usb30213a.yaml | 95 +++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/diodes,pi5usb3021= 3a.yaml diff --git a/Documentation/devicetree/bindings/usb/diodes,pi5usb30213a.yaml= b/Documentation/devicetree/bindings/usb/diodes,pi5usb30213a.yaml new file mode 100644 index 000000000000..1cae10724152 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/diodes,pi5usb30213a.yaml @@ -0,0 +1,95 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/diodes,pi5usb30213a.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: PI5USB30213A Type-C port controller + +description: + Diodes Incorporated PI5USB30213A Type-C Controller supports host, + device, and dual-role mode based on voltage levels detected on CC + pin. Dual differential channel, 2:1 USB 3.0 Mux/Demux, USB Type-C + specification 1.1 compliant. + +maintainers: + - Petr Benes + +properties: + compatible: + enum: + - diodes,pi5usb30213a + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + connector: + type: object + $ref: ../connector/usb-connector.yaml# + unevaluatedProperties: false + description: + The managed USB Type-C connector. + + properties: + compatible: + const: usb-c-connector + +required: + - compatible + - reg + - interrupts + - connector + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + pi5usb30213a: tcpc@d { + compatible =3D "diodes,pi5usb30213a"; + reg =3D <0xd>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl_typec>; + interrupts-extended =3D <&gpio1 5 IRQ_TYPE_LEVEL_LOW>; + status =3D "okay"; + + connector { + compatible =3D "usb-c-connector"; + label =3D "USB-C"; + vbus-supply =3D <®_typec>; + power-role =3D "source"; + data-role =3D "dual"; + typec-power-opmode =3D "default"; + pd-disable; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + + usb_con_hs: endpoint { + remote-endpoint =3D <&typec_hs>; + }; + }; + + port@1 { + reg =3D <1>; + + usb_con_ss: endpoint { + remote-endpoint =3D <&typec_ss>; + }; + }; + }; + }; + }; + }; --=20 2.43.0