Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2417686rdg; Mon, 14 Aug 2023 01:35:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHRjHp+IWR/1h+47NRAJuuaLG87qw2lPJEblT8AqQujAnNhKNZp2EoTT9Bn1KlTXqt4HOiR X-Received: by 2002:a05:6402:124e:b0:522:3790:1303 with SMTP id l14-20020a056402124e00b0052237901303mr6708684edw.32.1692002140669; Mon, 14 Aug 2023 01:35:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692002140; cv=none; d=google.com; s=arc-20160816; b=T7rU609Oh8XxeJxVXObD4Shz+YUzA8kT9RUMdcJ3CEpDIrHGugewqoQx1p0u/7/i5U +IFr3e6fN25Xi2wys94Q8DRyS3/pB45NNWRHGkZdExpH10D1U9E9wC/jZAfIiSjpYpGg KuMXnzUMXRntkzpV6VQs8ZB34tujp5PcC48Rs0RqG6mjvjW/+o/3/g6nag/TluwS+a2z OocR0VoQP12paC8MHc560hguknvyI8mnKKqf3LYQ8xTnMZc1tHYStvYooXBBOQaFk0zA ejT7RjQs3YTiMK5M/QW+q0xTm8TSV8ey/BgLRmBggWiImygfUTN2L2Y5OsodV+CMo07T b0xw== 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:to:from :dkim-signature; bh=HDoY6/Us+r9g/LOMwCv6Ik5IuktODBtk250YSHNs2q8=; fh=0k2HJcQX94dKFWJ5tuN/W9uwe9Rj3tjxabABZ2i+WP0=; b=ZbDWozXJDS38VYRUGbL22GznfFEZ6J1BEZwMOwtpZaephjZCbilL+foAvOz+uWozeZ vJTY1ZjsHLbeRFGCV+517Pllrc5SuJ47OaXyfcafMOoGrVkKnzJzgE8BJohLmhsI5ZKP kEvAK3mYNA5NBFb+1YkGSReUtzaeJgnm+SONEuAsdp5eI47zIxJARVAFxbzyIODNU7+L wAvZoE46wJvJU0XmgpZ3S14RIlwCQngys0K17TIHRa9ajflTcK1I6spa5YLegHnn2bGN TunNaTMgbz5H8VBqvQOlLUNUFNXxoPc24H1Xo88jkfsEzxV6LiZJMv3PnmsX9L0EegTw Va1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=mRe9hrEQ; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q12-20020a056402032c00b005236db67178si7347326edw.417.2023.08.14.01.35.16; Mon, 14 Aug 2023 01:35:40 -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=mRe9hrEQ; 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 S234598AbjHNIKd (ORCPT + 99 others); Mon, 14 Aug 2023 04:10:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233258AbjHNIJp (ORCPT ); Mon, 14 Aug 2023 04:09:45 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 300E2173B; Mon, 14 Aug 2023 01:09:26 -0700 (PDT) Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 37E4idOD007217; Mon, 14 Aug 2023 08:08:13 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : subject : date : message-id : mime-version : content-type; s=qcppdkim1; bh=HDoY6/Us+r9g/LOMwCv6Ik5IuktODBtk250YSHNs2q8=; b=mRe9hrEQCeJJ3MfdG/9g63hrAxLQNZLvqCsDfkKF2UKEQoUBRGq3hnySHqla9q4F22ue FHuIgMBu5NAkq0/kf292iFs4zvjdDY4CZxGlj3/oAGmdpDS7k7OYpQ6vyuCQFzPGy6J3 ut1ADmY0m2d0tId4QtwqQtfwZiPNJhS8BswXlK4bzm0+WASsR6EllnRIKl+vxvrVVX22 uKTy2EDzJjEjUzsCpsm+RQ8dQiBG8nEllgO4hshnGFMU/byo7grl2bWlze7HApbMGocI UOv7hgenJCcuP7sPQmV0izrMFJlR/DUKMtA0GfFPi1sHrCM9hle4Iu32f+VbKi7dC+YX cQ== Received: from nasanppmta01.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3se3fmb80n-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 14 Aug 2023 08:08:13 +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 37E88C8o007204 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 14 Aug 2023 08:08:12 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; Mon, 14 Aug 2023 01:08:05 -0700 From: Varadarajan Narayanan To: , , , , , , , , , , , , , , , , , , , , , , Subject: [PATCH v8 0/5] Enable IPQ5332 USB2 Date: Mon, 14 Aug 2023 13:36:00 +0530 Message-ID: X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain 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: djEjiLNa0k9EMEu0mvNU5H_--xPytzHr X-Proofpoint-ORIG-GUID: djEjiLNa0k9EMEu0mvNU5H_--xPytzHr X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-08-14_03,2023-08-10_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 mlxscore=0 mlxlogscore=445 suspectscore=0 impostorscore=0 bulkscore=0 spamscore=0 malwarescore=0 priorityscore=1501 phishscore=0 clxscore=1015 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2308140074 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS 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 This patch series adds the relevant phy and controller configurations for enabling USB2 on IPQ5332 v8: Driver:- Change commit subject and message per review comments Don't include of_platform.h Change struct initialization coding style GENMASK -> BIT for one of the defines v7: Binding:- Move 'compatible' to be the first entry In the example have 'usb-phy' instead of 'usb2-phy' Add 'Reviewed-by: Krzysztof Kozlowski' v6: Binding and dts:- Dropped the qcom,dwc3.yaml patch as it has been picked up for linux-next Add const to compatible, vdd-supply Move nodes per register address Driver:- Add vdd-supply Cleanup error paths in probe with dev_err_probe v5: Binding and dts:- Fix email id Removed 'Reviewed-by: Krzysztof Kozlowski ' as had to change bindings file to be able to use generic phy instead of usb-phy Driver:- Remove unused definition Use generic phy instead of usb-phy 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 (5): dt-bindings: phy: qcom,m31: Document qcom,m31 USB phy phy: qcom: Introduce 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 | 59 +++++ arch/arm64/boot/dts/qcom/ipq5332-rdp468.dts | 23 ++ arch/arm64/boot/dts/qcom/ipq5332.dtsi | 55 ++++ arch/arm64/configs/defconfig | 1 + drivers/phy/qualcomm/Kconfig | 11 + drivers/phy/qualcomm/Makefile | 1 + drivers/phy/qualcomm/phy-qcom-m31.c | 294 +++++++++++++++++++++ 7 files changed, 444 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/qcom,ipq5332-usb-hsphy.yaml create mode 100644 drivers/phy/qualcomm/phy-qcom-m31.c -- 2.7.4