From patchwork Mon Sep 23 15:14:14 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: 830325 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 D8B4419E7F3; Mon, 23 Sep 2024 15:14:22 +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=1727104464; cv=none; b=icCH29P6wLTaawzhOMeZXaitlecVxK62T+pOUTjQFhhZkLUiRkljPFbNB6DAIkrClO2+xW/zMT2e/jpnIxy1f0+UilVzGg9kvFcKcbj6ewHFIIZsUTtLz/9Gj61y4zwWia2DZPVqWmogzhmFYDktNFrTEzK8QxzK57Y6F+OsRxU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727104464; c=relaxed/simple; bh=O2/TqDEnTUI9rTxpFkittKHIE81l57f1vWwQhBXZPvU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ZeGSJnVI8SD2QxZ0IC2QzPEZcBeQBacaGsGYz37Fo0ZyF8zLDorgjYkLPVrFcV8rGkKLv/iJUSR1Y/6Om7hCMmMuxNgo36EdSEnwy7qUpEYwJFNpppz28z3x7wSaGZCj1ky44SpFkYE45jAA92zQvWaPG83aveZ2G9cp9iXyC2Y= 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=emAEmASU; 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="emAEmASU" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ysoft.com; s=20160406-ysoft-com; t=1727104460; bh=0ttsDmPJZPKdV+N8o7DYlI78E2LlEnfSzqB91NY+cbQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=emAEmASUNeV2+olwPCNzY3IcTA5DPOOR8gV+rPG/Z3KaaT1sWXeldr4SbcvslpEe+ xIx9GyKoT2Rcjh9txCRc+rFbrPLxcD9pfgGxm0mLqnRXYFv1bvwTgnyk3pmrxJHuhO uL0mdDphk+PGIDf3AixZd+NSMviH8Bn0oah7dCJM= Received: from vokac-nb.ysoft.local (unknown [10.1.8.111]) by uho.ysoft.cz (Postfix) with ESMTP id 60A71A0522; Mon, 23 Sep 2024 17:14:20 +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=?= , Krzysztof Kozlowski Subject: [PATCH v3 1/4] dt-bindings: arm: Add i.MX8MP IOTA2 Lumpy board Date: Mon, 23 Sep 2024 17:14:14 +0200 Message-ID: <20240923151417.1665431-2-michal.vokac@ysoft.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240923151417.1665431-1-michal.vokac@ysoft.com> References: <20240923151417.1665431-1-michal.vokac@ysoft.com> Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add new board from the Y Soft IOTA family. This one is based on the i.MX8MP SoC. It is basically a stripped-down clone of the EVK board with some minor additions. Acked-by: Krzysztof Kozlowski Signed-off-by: Michal Vokáč --- v3: - none v2: - Added tag from Krzysztof. Documentation/devicetree/bindings/arm/fsl.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml b/Documentation/devicetree/bindings/arm/fsl.yaml index b39a7e031177..a3389f2d06e6 100644 --- a/Documentation/devicetree/bindings/arm/fsl.yaml +++ b/Documentation/devicetree/bindings/arm/fsl.yaml @@ -1088,6 +1088,7 @@ properties: - toradex,verdin-imx8mp # Verdin iMX8M Plus Modules - toradex,verdin-imx8mp-nonwifi # Verdin iMX8M Plus Modules without Wi-Fi / BT - toradex,verdin-imx8mp-wifi # Verdin iMX8M Plus Wi-Fi / BT Modules + - ysoft,imx8mp-iota2-lumpy # Y Soft i.MX8MP IOTA2 Lumpy Board - const: fsl,imx8mp - description: Avnet (MSC Branded) Boards with SM2S i.MX8M Plus Modules From patchwork Mon Sep 23 15:14:16 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: 830324 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 9960C19CC2C; Mon, 23 Sep 2024 15:14:23 +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=1727104465; cv=none; b=rkP/MUKo6jaj3di1MIK2OAptzG8tdrSOQ8yXtBwg/mdnNqvbkaA/OSejTO6EKe1CvjhDpeg7Skx8GsRodtmKhjZhkzmESRnYeKhLFM1g3gjjpDYsfGeyQWO/oF5t4W2heQlu7u41+YcsulYsuSscz7Y/nmyI2OCuy1NcaEOU0Gc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727104465; c=relaxed/simple; bh=XOt7aBhxv7ynsa4yyg4wHcPQHXzmiOSb11s6zA2gvVQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=TToeCONPT4ypv8dUEuRy+E59kUVH0xpX8lDU9E47hBUS8h+ydoMvRGAYVJ6iLGp7fxuG0WCF7rwYxK/Kg+Hj1Vi7hjbFnZ0VqJYy3MIhv8WyoCfYEVRjV8q0rGISDh0SlTtyHnXdoDktquR9OPivO6I2iCDKfu6vV/ZhNpVrq3A= 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=Lp19ZPwt; 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="Lp19ZPwt" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ysoft.com; s=20160406-ysoft-com; t=1727104461; bh=TKCy9Jq22eRkR6RmpHojozqZz4jZeE1HMz6d8/7gisk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Lp19ZPwtv03gSL2F7CbIedTZD2s4iY3Djyxk/ygOi55M0kjmeYh+Oa9tCot/8U7bA S5YYulEvK31BnG45kgW/TFqk0lswWmvJZq0V+LfuJ/BqBAXkswJJw+LLBX6oDzvexJ tIrO/o3QZ0K6zBynuHT0kHK9h0edC0aveQkG1E8g= Received: from vokac-nb.ysoft.local (unknown [10.1.8.111]) by uho.ysoft.cz (Postfix) with ESMTP id 2B88BA05E5; Mon, 23 Sep 2024 17:14:21 +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, Krzysztof Kozlowski , =?utf-8?b?TWljaGFsIFZva8OhxI0=?= Subject: [PATCH v3 3/4] dt-bindings: usb: Add Diodes Incorporated PI5USB30213A Type-C Controller Date: Mon, 23 Sep 2024 17:14:16 +0200 Message-ID: <20240923151417.1665431-4-michal.vokac@ysoft.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240923151417.1665431-1-michal.vokac@ysoft.com> References: <20240923151417.1665431-1-michal.vokac@ysoft.com> Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Petr Benes Signed-off-by: Michal Vokáč --- v3: - Collected R-b tag from Krzysztof. v2: - Moved maintainers before description: block. - Used full paths for references. - Removed unneeded items form connector property. - Fixed example. .../bindings/usb/diodes,pi5usb30213a.yaml | 88 +++++++++++++++++++ 1 file changed, 88 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..054a5409bd15 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/diodes,pi5usb30213a.yaml @@ -0,0 +1,88 @@ +# 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 + +maintainers: + - Petr Benes + +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. + +properties: + compatible: + enum: + - diodes,pi5usb30213a + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + connector: + type: object + $ref: /schemas/connector/usb-connector.yaml# + unevaluatedProperties: false + +required: + - compatible + - reg + - interrupts + - connector + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + typec@d { + compatible = "diodes,pi5usb30213a"; + reg = <0xd>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_typec>; + interrupts-extended = <&gpio1 5 IRQ_TYPE_LEVEL_LOW>; + + 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>; + }; + }; + }; + }; + }; + };