From patchwork Tue Sep 17 15:10:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TWljaGFsIFZva8OhxI0=?= X-Patchwork-Id: 13806256 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 91041CAC587 for ; Tue, 17 Sep 2024 15:15:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=1cfKJJ01YsLZ5FGYmBxdnbC4cxwRLHTFQd2CggJXTGg=; b=bFS3/98tHQ4h+QyWwx3yU6M+QB WKLtN7EjPmoHkLzPF4Vv5LD2gAKv8JgHm3annDv/Ru2H354p3ETYRSYpPUDhyE9c8sWWnpnkpwh5T bTM8D2TcAlYm0cT2ZbUhDQkYK8CjwZRWKzjmiTF0rOG2ORINiwvvHRXLBTCOKhyllgiIv7iwKSWxf J9zdnf5YNonUQOdfssxAddmen5OGn7WY4+kPrFDugV7Bxbhb3L++por/Jzz5OI2TLaFAMRKyz4KyP hK5w3650OGp4fzyPuQ7Qb895INSOPdcwQ/yi87sMso8e5QYWZo98AbG0l29Ak5GsS4Xik/TRgk8cw ioj6SMHA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sqZvT-00000006MwO-0ML6; Tue, 17 Sep 2024 15:15:35 +0000 Received: from uho.ysoft.cz ([81.19.3.130]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sqZrj-00000006McE-1ILc for linux-arm-kernel@lists.infradead.org; Tue, 17 Sep 2024 15:11:44 +0000 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?b?TWljaGFsIFZva8OhxI0=?= 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?b?TWljaGFsIFZva8OhxI0=?= 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> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240917_081143_523396_0BAAC3B4 X-CRM114-Status: GOOD ( 11.86 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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áč --- .../bindings/usb/diodes,pi5usb30213a.yaml | 95 +++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/diodes,pi5usb30213a.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 = <1>; + #size-cells = <0>; + + pi5usb30213a: tcpc@d { + compatible = "diodes,pi5usb30213a"; + reg = <0xd>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_typec>; + interrupts-extended = <&gpio1 5 IRQ_TYPE_LEVEL_LOW>; + status = "okay"; + + connector { + compatible = "usb-c-connector"; + label = "USB-C"; + vbus-supply = <®_typec>; + power-role = "source"; + data-role = "dual"; + typec-power-opmode = "default"; + pd-disable; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + usb_con_hs: endpoint { + remote-endpoint = <&typec_hs>; + }; + }; + + port@1 { + reg = <1>; + + usb_con_ss: endpoint { + remote-endpoint = <&typec_ss>; + }; + }; + }; + }; + }; + };