From patchwork Thu Jul 27 06:33:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Varadarajan Narayanan X-Patchwork-Id: 126759 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp924947vqo; Thu, 27 Jul 2023 00:45:55 -0700 (PDT) X-Google-Smtp-Source: APBJJlGAkhdAvR8l34gMyIiey+Vh93rle9eglf6oFRvFKGkePuhSNGBFm0pk+QOcLnz09gmAcGw+ X-Received: by 2002:a05:6512:6c4:b0:4fb:8b78:4a93 with SMTP id u4-20020a05651206c400b004fb8b784a93mr1058932lff.7.1690443955531; Thu, 27 Jul 2023 00:45:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690443955; cv=none; d=google.com; s=arc-20160816; b=D9ZI+u6mJL4zH2XscIWxYltQpFydtOyl/jed3I3SRAK8Q3AvDDXMjnZyMjGs5krRFz 95q+buyqIgVrF3iEY61yxwl5MUJi9fOcoHt4+SdzqfZtrwDeqE4hZkG3PCzk6Sifqx2r KDITH3M8uD7Bq4TQ60EeSPqTZzxGlEI3F/AspyPCNCclgLsL1nRF3K6GJUwJMH5mpW7n aaG7C9F+oe4jJcJTsGnFxPwoKV4jH6x7F/ZzzM75jvTsyoMu1uISlgG9fMiCfHmTLNRR NhnRB1jpdIKEj3I9EUwkX7LH8hRFzxBj/V3GltrTA1z2y7d59h2p/+u9NmH4spdvCyR2 PF5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:to:from:dkim-signature; bh=bsUnDI7pA8LGTHAUDCxQCqBAV0GAhXmMp34k3un9vjk=; fh=6h1Wj1mbqxcS7PNl0ctUGwtLQi5JQvLvrrK1KLcalrs=; b=s/Eg8wJzBrkTngLBvPLKxKumVa3qaj6ilJs+OFsJKjZ0dX8fqY1FthBdNDbQ2uoH58 JYFz5Vvsbtj0TPdGVQ3YhIMSyvqJNKwAzxcxuPocIfWbtg9AJq25eaeyivtQ1Yav+tpA RAZx6P4u2XS8g8lAb/wJjUIDODGH/RePpFg/SHcWOUcq/dL/WRWgMyNLqy7pMneiuNwe lfDLNiJHV3SM936M9KNhsoSBP3JCZYIudsd0puzDmUT0JGUk/rBSyaSWIhnJ4ORAXrjL 2nt1E4Vkhrc9+9ICmDJr3uwEn8oBWPMaBsFD9CJfrw9ddmAqCYZrP46m2rtLjg95TXQW yOew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=mtioPtJY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m15-20020a17090607cf00b0099b56bacec3si606842ejc.955.2023.07.27.00.45.31; Thu, 27 Jul 2023 00:45:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=mtioPtJY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232217AbjG0Gev (ORCPT + 99 others); Thu, 27 Jul 2023 02:34:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231190AbjG0Get (ORCPT ); Thu, 27 Jul 2023 02:34:49 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6070C189; Wed, 26 Jul 2023 23:34:48 -0700 (PDT) Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36R6NhUd024373; Thu, 27 Jul 2023 06:34:05 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=bsUnDI7pA8LGTHAUDCxQCqBAV0GAhXmMp34k3un9vjk=; b=mtioPtJYYfYqu9WL88slGkYh9AHOHcM3uOCLSZ6X3+xXqkigi7PAKEjeG8BHIlldqMDU zz8syHjW/8nx3/OTlp3yZDPYEKs+VQMJt6wKYVUM41R57hZzTMmrNMGzQnc2ljJmEpQA HHrCrQ3dgfV4g4XZmz4nkN1s86hCuc1Jv6aq9zheW2Ik2z0FpwevbvP43FsfWZcE6sRz FPTbRo80x2Ey7G6yOefbaOexnSgdzQZln0aPr8uFO9JnWfaYUtNsvbP98gkczYfQwwnG Gbnun67IQ823ddKQ5f3ppMe91ZCMxkY5xYIGaxQYGqATcOPGSsHGd0NSidrbjCTWTz0F 8g== Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3s3105a5cn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 27 Jul 2023 06:34:05 +0000 Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 36R6Y3kr009520 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 27 Jul 2023 06:34:03 GMT Received: from varda-linux.qualcomm.com (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Wed, 26 Jul 2023 23:33:56 -0700 From: Varadarajan Narayanan To: , , , , , , , , , , , , , , , , , , , , , , , , Subject: [PATCH v6 1/5] dt-bindings: phy: qcom,m31: Document qcom,m31 USB phy Date: Thu, 27 Jul 2023 12:03:14 +0530 Message-ID: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01a.na.qualcomm.com (10.52.223.231) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: AY7fw6iA4EAIEvXv4iWlv10Krzi56ass X-Proofpoint-GUID: AY7fw6iA4EAIEvXv4iWlv10Krzi56ass X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-26_08,2023-07-26_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 clxscore=1011 impostorscore=0 mlxscore=0 priorityscore=1501 adultscore=0 lowpriorityscore=0 bulkscore=0 malwarescore=0 mlxlogscore=999 suspectscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307270058 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772558309593934663 X-GMAIL-MSGID: 1772558960792452326 Document the M31 USB2 phy present in IPQ5332. Co-developed-by: Sricharan Ramabadhran Signed-off-by: Sricharan Ramabadhran Signed-off-by: Varadarajan Narayanan --- v6: Add 'Co-developed-by: Sricharan' Add 'const' to compatible, vdd-supply Remove label and use usb2-phy for nodename in the example v5: Add '#phy-cells', to be able to use generic phy Remove 'Reviewed-by: Krzysztof Kozlowski' due to above change v4: Move M31 URL to description Remove maxItems and relevant content from clock-names Change node name to generic name 'make dt_binding_check DT_SCHEMA_FILES=qcom' passed v3: Incorporate review comments. Will bring in ipq5018 compatible string while posting ipq5018 usb patchset. v1: Rename qcom,m31.yaml -> qcom,ipq5332-usb-hsphy.yaml Drop default binding "m31,usb-hsphy" Add clock Remove 'oneOf' from compatible Remove 'qscratch' region from register space as it is not needed Remove reset-names Fix the example definition --- .../bindings/phy/qcom,ipq5332-usb-hsphy.yaml | 59 ++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/qcom,ipq5332-usb-hsphy.yaml diff --git a/Documentation/devicetree/bindings/phy/qcom,ipq5332-usb-hsphy.yaml b/Documentation/devicetree/bindings/phy/qcom,ipq5332-usb-hsphy.yaml new file mode 100644 index 0000000..97ad905 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/qcom,ipq5332-usb-hsphy.yaml @@ -0,0 +1,59 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/qcom,ipq5332-usb-hsphy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: M31 USB PHY + +maintainers: + - Sricharan Ramabadhran + - Varadarajan Narayanan + +description: + USB M31 PHY (https://www.m31tech.com) found in Qualcomm + IPQ5018, IPQ5332 SoCs. + +properties: + "#phy-cells": + const: 0 + + compatible: + items: + - const: qcom,ipq5332-usb-hsphy + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: cfg_ahb + + resets: + maxItems: 1 + + vdd-supply: + description: + Phandle to 5V regulator supply to PHY digital circuit. + +additionalProperties: false + +examples: + - | + #include + usb2-phy@7b000 { + compatible = "qcom,ipq5332-usb-hsphy"; + reg = <0x0007b000 0x12c>; + + clocks = <&gcc GCC_USB0_PHY_CFG_AHB_CLK>; + clock-names = "cfg_ahb"; + + #phy-cells = <0>; + + resets = <&gcc GCC_QUSB2_0_PHY_BCR>; + + vdd-supply = <®ulator_fixed_5p0>; + };