From patchwork Mon Jan 22 11:04:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 13525205 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 3195D3FB3E; Mon, 22 Jan 2024 11:04:52 +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=1705921494; cv=none; b=N+GLxmUXg2LXnP0NteU2lLddwacxIYJTaLU2QYF3AC1Dg8MLeXjD76popseDrfsmMp6jpTWtxGlBLksj7O5VN5devH91uKizO4lQCPWUuTQUqjafxRx5l1UDVDqw97Qewro1x7adWX1ty0P0LvuKjcGinArvEf2nPqaDFY0+lyI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705921494; c=relaxed/simple; bh=yMBnHD84devz8pBb0bWiL0F28mWeot+MVGjDOv5Z7as=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ptQ0lx9Etpk0+VM2WESyK1585rvS6fJb1B4zm8Xu3zCPFsK7sYa2VmI0uxX7iHxrjmQV7GZhMLV3B+Eiaco6arynU1YL+GZF/IdyDvVfH4TbgvmUnccu6OwyvEpYW63Jvx0L35tL+M7zBVje2hqvNOP70yt0bKatf4i2Q4Nv09g= 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=VvvdR3Tu; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="VvvdR3Tu" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1705921491; bh=yMBnHD84devz8pBb0bWiL0F28mWeot+MVGjDOv5Z7as=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VvvdR3TuVZS4vWvuYQdmdK8CP1wpPKQIF8euFq4l5i7BikhBLyFurr10cUH4+Df6l SVqzF2+1g7PqzCRlm4BEYuu0f3/A2RI2xg8vh5rdp5AwIqGVyUL/nL3wDj1Sj4PSeU V12KLViW5ut1e5d7CQpy89yBcvmITs5dgRWMwSBiV3LEr3dHTstAQ/kmVAU1/iaIIS hOLIvTap/Dt7+0yrr5srNXzgvPguhaleU6k4cdC15k5GquxjyW+lunSqNgJFLH8XbK fhVrIBk6A9uvs2o/r6sdoxoD6Lb5i6NfO4oav9C0xWMjPZ2fFBl02auYRiQQbHJYUX IILfIlUGrsK2A== 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 3BFA63781FE1; Mon, 22 Jan 2024 11:04:50 +0000 (UTC) From: AngeloGioacchino Del Regno 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 Subject: [PATCH v3 1/2] dt-bindings: usb: Introduce ITE IT5205 Alt. Mode Passive MUX Date: Mon, 22 Jan 2024 12:04:45 +0100 Message-ID: <20240122110446.140226-2-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240122110446.140226-1-angelogioacchino.delregno@collabora.com> References: <20240122110446.140226-1-angelogioacchino.delregno@collabora.com> Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 Reviewed-by: Conor Dooley --- .../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 + - Tianping Fang + +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 + 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>; + }; + }; + }; + }; +...