From nobody Fri Dec 19 14:33:50 2025 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9694BC4167B for ; Mon, 11 Dec 2023 07:42:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233683AbjLKHl7 (ORCPT ); Mon, 11 Dec 2023 02:41:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233747AbjLKHlw (ORCPT ); Mon, 11 Dec 2023 02:41:52 -0500 Received: from SHSQR01.spreadtrum.com (unknown [222.66.158.135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67FB7E4 for ; Sun, 10 Dec 2023 23:41:57 -0800 (PST) Received: from dlp.unisoc.com ([10.29.3.86]) by SHSQR01.spreadtrum.com with ESMTP id 3BB7fYgV057623; Mon, 11 Dec 2023 15:41:34 +0800 (+08) (envelope-from xinhu.wu@unisoc.com) Received: from SHDLP.spreadtrum.com (shmbx07.spreadtrum.com [10.0.1.12]) by dlp.unisoc.com (SkyGuard) with ESMTPS id 4SpYSS3dgmz2PH8jY; Mon, 11 Dec 2023 15:35:36 +0800 (CST) Received: from zebjkernups01.spreadtrum.com (10.0.93.153) by shmbx07.spreadtrum.com (10.0.1.12) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Mon, 11 Dec 2023 15:41:32 +0800 From: Xinhu Wu To: , , , , , , , , , , CC: , , , , , , , Subject: [PATCH V2 2/2] dt-bindings: usb: Add an Spreadtrum pmic typec yaml Date: Mon, 11 Dec 2023 15:41:20 +0800 Message-ID: <20231211074120.27958-3-xinhu.wu@unisoc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231211074120.27958-1-xinhu.wu@unisoc.com> References: <20231211074120.27958-1-xinhu.wu@unisoc.com> MIME-Version: 1.0 X-Originating-IP: [10.0.93.153] X-ClientProxiedBy: SHCAS03.spreadtrum.com (10.0.1.207) To shmbx07.spreadtrum.com (10.0.1.12) X-MAIL: SHSQR01.spreadtrum.com 3BB7fYgV057623 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add device tree binding Documentation details for Spreadtrum pmic typec driver Signed-off-by: Xinhu Wu --- .../bindings/usb/sprd,pmic_typec.yaml | 65 +++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/sprd,pmic_typec.y= aml diff --git a/Documentation/devicetree/bindings/usb/sprd,pmic_typec.yaml b/D= ocumentation/devicetree/bindings/usb/sprd,pmic_typec.yaml new file mode 100644 index 000000000000..e522ac02026b --- /dev/null +++ b/Documentation/devicetree/bindings/usb/sprd,pmic_typec.yaml @@ -0,0 +1,65 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/sprd,pmic-typec.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Unisoc SC27xx Type-C port controller + +maintainers: + - Xinhu Wu + +description: + Supports the typec found on these PMICs. + +properties: + compatible: + enum: + - sprd,sc2730-typec + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + sprd,mode: + maxItems: 1 + description: the number indicates src, snk or drp. + enum: [0, 1, 2] + + nvmem-cells: + maxItems: 2 + description: + A phandle to the 'cc resistance' trim data provided by + a nvmem device. + + nvmem-cell-names: + items: + - const: typec_cc1_cal + - const: typec_cc2_cal + +required: + - compatible + - reg + - interrupts + - sprd,mode + - nvmem-cells + - nvmem-cell-names + +examples: + - | + #include + pmic { + #address-cells =3D <1>; + #size-cells =3D <0>; + pmic_typec: typec@380 { + compatible =3D "sprd,sc2730-typec"; + reg =3D <0x380>; + interrupt-parent =3D <&sc2730_pmic>; + interrupts =3D <8>; + sprd,mode =3D <2>; + nvmem-cells =3D <&typec_cc1_cal>, <&typec_ccc2_cal>; + nvmem-cell-names =3D "typec_cc1_cal","typec_cc2_cal"; + }; + }; --=20 2.17.1