From patchwork Wed Jul 12 11:38:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Varadarajan Narayanan X-Patchwork-Id: 11925 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp1085561vqm; Wed, 12 Jul 2023 04:41:41 -0700 (PDT) X-Google-Smtp-Source: APBJJlEDlsxgKceB/OcVTeExUc85vNZKg5urDQdLoytubAZ6cct/xkY2XMIKFMiVFxYk2fXEtDET X-Received: by 2002:a2e:878c:0:b0:2b6:fa60:85a1 with SMTP id n12-20020a2e878c000000b002b6fa6085a1mr15657145lji.21.1689162101135; Wed, 12 Jul 2023 04:41:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689162101; cv=none; d=google.com; s=arc-20160816; b=rvbXCyVNGEWGy+QQVSZXarc3obHafyaKvf3wJA/6Vx4xAJpU0lcMLF5JjmOpcVQ/Ex sXsJenabAPUiOiPVe6+BViIONXf7fnjMj6VFMXhrqJQIHl+/7m9xA5eRX4/v4DZE3COf //ifm5Fp3ktbbfAhT0A3DG3CGOO4j/PWe1oibO3gwYlQ52NHxMb4eedoLoU5obxoud+C Otovz7L+rCY5xun7eX7LEnrz6STi9hgTzSQ++fGUFvi/ZAy8mBEFy4hTYnvDLSLpVfAx idKYCr99obvgHJUx8YBdKvj+WwH2d93aWwm2itl7jx2m6fT/dFKfKJjIq0jUvukp2wn4 G8Zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=OnwlJdUYQVuoZRGlusai7hMzlLMdP2IuMcarNsL788E=; fh=5k38RZtG+6HomFK06DPIqaSvDTnJ/15hPHIK1s7dPN4=; b=t/bcHKbekoNheiGcVwAqdT/Bt2X01F+IOuAkoyHrG1o1r5Ks7oUg3e8A4vIeEXHwyZ 28iRRYpqEDXqMi7CCtLApC788foP/xRy2pnw6tJEzjT8Pf5bHEOldV2AKnf+qQsdpD8z HCKgb8w9Z6UA+M8HR1iZqQzXuX6EM7z9tql+NLbU17U1MTqvIfFF32W75GjaI3MZTw8W KIDlBpfJMeT8it6JGaJ1CniR/oxcuoN6YYqpzteG79kFoKUdakDTjIqGbRz2V/In5AUi cGfjGYl8YiYchckG9KiPbjbnyOXRP8kkRwk1ZaY8/LfV6F3YgcytkRrlsXsKemH/XgUu xXDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=VWeP6V+T; 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 lg5-20020a170906f88500b0098e48ad11e8si5837027ejb.902.2023.07.12.04.41.17; Wed, 12 Jul 2023 04:41:41 -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=VWeP6V+T; 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 S232504AbjGLLjj (ORCPT + 99 others); Wed, 12 Jul 2023 07:39:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232342AbjGLLjd (ORCPT ); Wed, 12 Jul 2023 07:39:33 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4658DF5; Wed, 12 Jul 2023 04:39:17 -0700 (PDT) Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36C8dgb8029585; Wed, 12 Jul 2023 11:38:53 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=qcppdkim1; bh=OnwlJdUYQVuoZRGlusai7hMzlLMdP2IuMcarNsL788E=; b=VWeP6V+TzTcV+eepvs3cMxP006cEtODRMpg4sRbH+ypnFrLC7EBveSE9fbH/K0RIbnDp h9ErjqAzFpVGMySQ8j8GJ3P9a5q+NfZrGID5N0XbMOBNsSoYcsJXZvkarEXIbz/2TSbJ 6yqQqRBIyuxovdGNUoj+zAT56NvwouGk69tm309c7HJZLPtQZ9OQwGxrqqxQmdLZPrmM 9X52b5d8fFBO/elCJIRWkxDS58etDre3gUn2cOiLFwzyRtVvMieO4IdQmhnT7UwuFnQN u2iPght778u4if7VHPAIEr2KMDespJxEkgEydShuKpGGArXKSILKQT5Mb+4zXXo3Z9mx XQ== Received: from nasanppmta05.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3rshyu92y7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 12 Jul 2023 11:38:52 +0000 Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 36CBcpf8013182 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 12 Jul 2023 11:38:51 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:43 -0700 From: Varadarajan Narayanan To: , , , , , , , , , , , , , , , , , , , , , , , , , CC: Varadarajan Narayanan Subject: [PATCH v4 0/6] Enable IPQ5332 USB2 Date: Wed, 12 Jul 2023 17:08:17 +0530 Message-ID: X-Mailer: git-send-email 2.7.4 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-GUID: cc5tv1kTx82OqU53rLfd2oyYOn2odixc X-Proofpoint-ORIG-GUID: cc5tv1kTx82OqU53rLfd2oyYOn2odixc 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 impostorscore=0 malwarescore=0 bulkscore=0 spamscore=0 mlxlogscore=315 phishscore=0 clxscore=1015 mlxscore=0 adultscore=0 suspectscore=0 lowpriorityscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2307120103 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,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: 1771214839425174243 X-GMAIL-MSGID: 1771214839425174243 This patch series adds the relevant phy and controller configurations for enabling USB2 on IPQ5332 v4: Binding and dts:- Change node name (bindings & dts) Driver:- Remove unused enum static const for '.data' Error handling for devm_clk_get v3: Fix bindings file based on review comments v1: Cleanup DTS Combine driver, kconfig and makefile patches Remove unused functions from M31 driver Drop the clock driver changes Varadarajan Narayanan (6): dt-bindings: usb: dwc3: Add IPQ5332 compatible dt-bindings: phy: qcom,m31: Document qcom,m31 USB phy phy: qcom-m31: Introduce qcom,m31 USB phy driver arm64: dts: qcom: ipq5332: Add USB related nodes arm64: dts: qcom: ipq5332: Enable USB arm64: defconfig: Enable M31 USB phy driver .../bindings/phy/qcom,ipq5332-usb-hsphy.yaml | 48 ++++ .../devicetree/bindings/usb/qcom,dwc3.yaml | 3 + arch/arm64/boot/dts/qcom/ipq5332-rdp468.dts | 12 + arch/arm64/boot/dts/qcom/ipq5332.dtsi | 53 +++++ arch/arm64/configs/defconfig | 1 + drivers/phy/qualcomm/Kconfig | 11 + drivers/phy/qualcomm/Makefile | 1 + drivers/phy/qualcomm/phy-qcom-m31.c | 256 +++++++++++++++++++++ 8 files changed, 385 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/qcom,ipq5332-usb-hsphy.yaml create mode 100644 drivers/phy/qualcomm/phy-qcom-m31.c