From patchwork Wed Jul 12 11:38:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Varadarajan Narayanan X-Patchwork-Id: 119141 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp1108947vqm; Wed, 12 Jul 2023 05:21:39 -0700 (PDT) X-Google-Smtp-Source: APBJJlFl8dP2kF37odIJoh9KKnZrVtOCTms+xNrqQECZWZN6MToMHkzymvoPaVsa/7K4OBTH3LUX X-Received: by 2002:a17:903:2447:b0:1b8:a70d:412a with SMTP id l7-20020a170903244700b001b8a70d412amr18783676pls.67.1689164498702; Wed, 12 Jul 2023 05:21:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689164498; cv=none; d=google.com; s=arc-20160816; b=Wr5CJxnSxcRysOBgQvwXUD+YmOZRIP71zURN0rzuqYWa10hK0pLxH2GrMpRSj65Ifj HB2xJdLPl0R6Gnp3JDyWf1RL63w/aSr9iDSGe1chS4+7flmegKsR/ZcB5wM0KPGYLx0w E0YqBf5kMPrJk3/TFMmBk+TbhLBR4pKzleE0LymvlaqoprAwoO/sVX4GG0qMRmfwXdsz mQsim4PNWBSkypoBz11qMSrbkj9Ij66FJzIT4OuK+np32hQGGMz20r/vGAjx1vIEdz87 f4OBHiMYqlaShF7kkiZ/wwqX5sh+aLVxh1Rk6HQQthcl64O4HrgK0owSxKCVTyr8EHL3 cI2w== 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:cc:to:from:dkim-signature; bh=S8kgrjTTL4lWCAvjC5av2SNwL0eEAEeHJCs6sq7OfSg=; fh=5k38RZtG+6HomFK06DPIqaSvDTnJ/15hPHIK1s7dPN4=; b=xL1LZKXg589PEpcLg7u7tRN9bxHy3zuX7A6D+EBjE5IJX5YZULhyU5N3NRE41v6d8i WQqIouHPI8SYDrVYYr+FQqJY4S5NYJAz2WP4ESkHFSHC95vKu2j2/6HIbPVaD4BCuRFZ NyccXpl/5rwI4liIdL2EH8jtR2BtF//bKWSoN3Szc+1tSnsK8DOJVIOVYVrGPbKAQGKS ojB/NN9ArtOAjraCGhAfVmMYa9nq/Qflm5qNoIYyJG76sr0dLK6mMH0TjLollPgAYjHo /u304xA9RmcP4JloqV8fi+wVwCGQJtKreNK3AUu+V6/ODlBDFyPRLu+8k6Dhls829FFc lgEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=YS5bP+xB; 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 lb16-20020a170902fa5000b001b896086ca1si3178485plb.136.2023.07.12.05.21.25; Wed, 12 Jul 2023 05:21:38 -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=YS5bP+xB; 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 S231882AbjGLLkd (ORCPT + 99 others); Wed, 12 Jul 2023 07:40:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230381AbjGLLkS (ORCPT ); Wed, 12 Jul 2023 07:40:18 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F371F19A6; Wed, 12 Jul 2023 04:40:09 -0700 (PDT) Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36CBZVtC032077; Wed, 12 Jul 2023 11:39:42 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=S8kgrjTTL4lWCAvjC5av2SNwL0eEAEeHJCs6sq7OfSg=; b=YS5bP+xBXCaF5Qvyxxipdy0bOMrKssnDihHtn0qPdnsCAKb0Rrmwpd7opmSJ0J/8sxY3 FhAxjPAbGf+1qDHZQLVwSQ9Ay/Rtpt8aFvYjO4sUHmWBwEZIvW5F8Z+c7eDFOnfH48uk BhGQNsgULV0rG/5uVutEgyWJEpMwxUhq7jtFkAcWQO7OLW1591E1b11sURlvBUxo68A5 f/xeNTDPXVMhYsbvmxnMEeys9olnM9ROnN554XAyTUer61UdS3rf2a/aMaUw+Gq9Vjwy Zv9ZjZMhb+w/P3fPDW4AiZv1MBxMCMj0/fIP27krvckgIVn1FsZEJi7rH2EdYTd7qZUP 8A== Received: from nasanppmta01.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3rsgd395s5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 12 Jul 2023 11:39:42 +0000 Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 36CBd7H1031810 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 12 Jul 2023 11:39:07 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, 12 Jul 2023 04:38:59 -0700 From: Varadarajan Narayanan To: , , , , , , , , , , , , , , , , , , , , , , , , , CC: Varadarajan Narayanan Subject: [PATCH v4 2/6] dt-bindings: phy: qcom,m31: Document qcom,m31 USB phy Date: Wed, 12 Jul 2023 17:08:19 +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: nasanex01b.na.qualcomm.com (10.46.141.250) 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: DZE6hadq6oNMuukelwv86zcRU40Fl7Sw X-Proofpoint-GUID: DZE6hadq6oNMuukelwv86zcRU40Fl7Sw 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-12_06,2023-07-11_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 clxscore=1015 adultscore=0 mlxlogscore=999 priorityscore=1501 impostorscore=0 bulkscore=0 phishscore=0 malwarescore=0 mlxscore=0 suspectscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2307120104 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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: 1771217353168382231 X-GMAIL-MSGID: 1771217353168382231 Document the M31 USB2 phy present in IPQ5332. Signed-off-by: Sricharan Ramabadhran Signed-off-by: Varadarajan Narayanan Reviewed-by: Krzysztof Kozlowski --- 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 | 48 ++++++++++++++++++++++ 1 file changed, 48 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..eea90ff --- /dev/null +++ b/Documentation/devicetree/bindings/phy/qcom,ipq5332-usb-hsphy.yaml @@ -0,0 +1,48 @@ +# 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: + compatible: + enum: + - qcom,ipq5332-usb-hsphy + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: cfg_ahb + + resets: + maxItems: 1 + +additionalProperties: false + +examples: + - | + #include + usbphy0: usb-phy@7b000 { + compatible = "qcom,ipq5332-usb-hsphy"; + reg = <0x0007b000 0x12c>; + + clocks = <&gcc GCC_USB0_PHY_CFG_AHB_CLK>; + clock-names = "cfg_ahb"; + + resets = <&gcc GCC_QUSB2_0_PHY_BCR>; + };