From patchwork Wed Nov 1 05:44:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pu Li X-Patchwork-Id: 1857855 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=permerror (SPF Permanent Error: More than 10 MX records returned) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:45d1:ec00::1; helo=ny.mirrors.kernel.org; envelope-from=devicetree+bounces-13351-incoming-dt=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org [IPv6:2604:1380:45d1:ec00::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SKwvZ1DWCz1yQ5 for ; Wed, 1 Nov 2023 16:45:14 +1100 (AEDT) Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 01FD51C20CEF for ; Wed, 1 Nov 2023 05:45:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 621AF4A32; Wed, 1 Nov 2023 05:45:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=none X-Original-To: devicetree@vger.kernel.org Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 0C4AE4C60 for ; Wed, 1 Nov 2023 05:45:03 +0000 (UTC) Received: from SHSQR01.spreadtrum.com (mx1.unisoc.com [222.66.158.135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76203E4 for ; Tue, 31 Oct 2023 22:44:56 -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> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 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 = "sprd,qogirl6-phy"; + reg = <0x64570000 0x3030>; + reg-names = "phy_glb_regs"; + sprd,syscon-enable = <&aon_apb_regs>; + sprd,syscon-ana = <&anlg_phy_g2_regs>; + sprd,vdd-voltage = <3300000>; + #phy-cells = <0>; + };