From nobody Wed Dec 17 11:37:46 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 CCCFDC4332F for ; Wed, 1 Nov 2023 05:45:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376756AbjKAFpz (ORCPT ); Wed, 1 Nov 2023 01:45:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376579AbjKAFpv (ORCPT ); Wed, 1 Nov 2023 01:45:51 -0400 Received: from SHSQR01.spreadtrum.com (unknown [222.66.158.135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0878CF1 for ; Tue, 31 Oct 2023 22:45:44 -0700 (PDT) Received: from dlp.unisoc.com ([10.29.3.86]) by SHSQR01.spreadtrum.com with ESMTP id 3A15iikE023619; Wed, 1 Nov 2023 13:44:44 +0800 (+08) (envelope-from pu.li@unisoc.com) Received: from SHDLP.spreadtrum.com (shmbx06.spreadtrum.com [10.0.1.11]) by dlp.unisoc.com (SkyGuard) with ESMTPS id 4SKwnb6S6cz2LjbCw; Wed, 1 Nov 2023 13:40:03 +0800 (CST) Received: from zebjkernups01.spreadtrum.com (10.0.93.153) by shmbx06.spreadtrum.com (10.0.1.11) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Wed, 1 Nov 2023 13:44:42 +0800 From: Pu Li To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: Pu Li , Zhiyong Liu , Chunyan Zhang , Orson Zhai , , , Subject: [PATCH 1/2] dt-bindings: phy: Add Spreadtrum usb20 hsphy yaml Date: Wed, 1 Nov 2023 13:44:31 +0800 Message-ID: <20231101054432.27509-2-pu.li@unisoc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231101054432.27509-1-pu.li@unisoc.com> References: <20231101054432.27509-1-pu.li@unisoc.com> MIME-Version: 1.0 X-Originating-IP: [10.0.93.153] X-ClientProxiedBy: SHCAS01.spreadtrum.com (10.0.1.201) To shmbx06.spreadtrum.com (10.0.1.11) X-MAIL: SHSQR01.spreadtrum.com 3A15iikE023619 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 usb20 hsphy driver. Signed-off-by: Pu Li --- .../bindings/phy/phy-sprd-usb20-hs.yaml | 70 +++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/phy-sprd-usb20-hs= .yaml diff --git a/Documentation/devicetree/bindings/phy/phy-sprd-usb20-hs.yaml b= /Documentation/devicetree/bindings/phy/phy-sprd-usb20-hs.yaml new file mode 100644 index 000000000000..102b49d3482e --- /dev/null +++ b/Documentation/devicetree/bindings/phy/phy-sprd-usb20-hs.yaml @@ -0,0 +1,70 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright 2020-2023 Unisoc Inc. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/phy-sprd-usb20-hs.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Spreadtrum USB20 High Speed PHY + +maintainers: + - Pu Li + +properties: + compatible: + oneOf: + - items: + - enum: + - sprd,pike2-phy + - sprd,sharkle-phy + - sprd,sharkl3-phy + - sprd,sharkl5-phy + - sprd,sharkl5pro-phy + - sprd,qogirl6-phy + - sprd,qogirn6lite-phy + - sprd,uis8520-phy + + reg: + maxItems: 1 + + reg-names: + const: phy_glb_regs + + sprd,syscon-enable: + description: + Phandle to aon apb syscon register region. + $ref: /schemas/types.yaml#/definitions/phandle + + sprd,syscon-ana: + description: + Phandle to analog syscon register region. + $ref: /schemas/types.yaml#/definitions/phandle + + sprd,vdd-voltage: + description: + It represents the value of one analog power supply of phy, + the unit is uV. + $ref: /schemas/types.yaml#/definitions/uint32 + + "#phy-cells": + const: 0 + +required: + - compatible + - reg + - reg-names + - "#phy-cells" + +additionalProperties: false + +examples: + - | + hsphy@64570000 { + compatible =3D "sprd,qogirl6-phy"; + reg =3D <0x64570000 0x3030>; + reg-names =3D "phy_glb_regs"; + sprd,syscon-enable =3D <&aon_apb_regs>; + sprd,syscon-ana =3D <&anlg_phy_g2_regs>; + sprd,vdd-voltage =3D <3300000>; + #phy-cells =3D <0>; + }; --=20 2.17.1