Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp268602imi; Wed, 20 Jul 2022 23:35:35 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u2GTQY13kr6pIYT+AWvlv6Kzesz03GWsvfCgQfzeIrhsr71kMcsg2Di6+94gkgVssfmddK X-Received: by 2002:a05:6402:249d:b0:437:8622:6de8 with SMTP id q29-20020a056402249d00b0043786226de8mr55974062eda.113.1658385335534; Wed, 20 Jul 2022 23:35:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658385335; cv=none; d=google.com; s=arc-20160816; b=ehkF+h5mjgSygXqzCOuVl4e7kDU9Iwwd3KaS0pRvyThuIOfdCiIO1xu3+dUpN6UUpY 9JwLD0TJBWtfBrpQ5b5QRqEX/Gle1As3Y//GDyfSsMGSiC6+RbIYfB3etSWWD8G+JfKH h3EwOxtxnhXQNuRUu7F0LUCsZmCMokgz9lijVGa2ksfjP1B1qTI0qy9uFEB+zJ0qH2kW EtMnSGoOr1xxuvMw2Rtr7XNJHalVCIqzWGLybtX901nMN97VHfV9PXN8foLiJQqTQ0AV C9oerPMGNYk6j8cUHxFq4YFVt0QzCI1h82/j/Grhrk95Gg1pA/KtHUqOaprbrAv9lGI8 GsqQ== 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=Cgt+i001sgSYugycMH+u9OpBmNLb274UTVp+KDwEJGQ=; b=Qoa8WDUyr5ifaMsIiCurbjFCZx2aOuCxkJU9o2+aBXrCs8htp+ICGq9XcOww1ABJrz BF6rJL+bLdCA72TxauOOcIiJAFcYdqQbseTdtt5ZnD5KPyNI6L+pwefZt4JORyEbA3h1 jqkbaHe5ThnDaP4dc1iZK+QbSec9p3QPdTk6sbPSjfZGwWtxKwjeZX7O7xMIGnDVpXpE UzFfo8PmZsAut+pES+J6NO+Q7PyGjZbO1YvEUFi1HD8ucHFCxAyAEa7gOYdykAx8mora gCRCI6jJMEzMQDFiOhBtnWUwwOwAIku4iHjTWSi3Ql+8ueRnBIG3U1YH7k4fcJpXd3ME 9LIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="eNW/Oxme"; 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 hp5-20020a1709073e0500b0072aef02b98fsi1624007ejc.994.2022.07.20.23.35.10; Wed, 20 Jul 2022 23:35:35 -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="eNW/Oxme"; 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 S232231AbiGUG3m (ORCPT + 99 others); Thu, 21 Jul 2022 02:29:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230205AbiGUG3i (ORCPT ); Thu, 21 Jul 2022 02:29:38 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11098785A9; Wed, 20 Jul 2022 23:29:37 -0700 (PDT) Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 26L6T7Zo002747; Thu, 21 Jul 2022 06:29:25 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=Cgt+i001sgSYugycMH+u9OpBmNLb274UTVp+KDwEJGQ=; b=eNW/OxmeP7BMAkUV+u+N4D6UuoZ71k5iLq8yMW/DZ9LT/TolgxmjfVvv6IrRq0rJAsow 5fjISA7sbDypxYKwjpner+C0gWFeGXuTgHxwcOcCwY7YvFysN7SAnhm9yzCTsJMejWAK OaH7IlqlOpaMXaYpBC3j3QnJeQhB+ZAs6BhBEYPFkf8CJzjCgbxx+4uzjZunUcHezzZc BSJl/W5zntR+PIqkOaJdYU1ZwvrclErVa/HQjtuZ1ZaTSUO8T5iCFDyFtGbQcb3UVEg1 vkxcDr5yQtxsJCq93vhoRRarbPPZKbL9UM2m0Fb2Gfy1DE++QNXSjIRbBD55dYdoW7LH qw== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3hf1j88024-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 21 Jul 2022 06:29:25 +0000 Received: from nasanex01c.na.qualcomm.com (nasanex01c.na.qualcomm.com [10.47.97.222]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 26L6TNcw021017 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 21 Jul 2022 06:29:23 GMT Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Wed, 20 Jul 2022 23:29:23 -0700 Received: from hu-kriskura-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Wed, 20 Jul 2022 23:29:17 -0700 From: Krishna Kurapati To: Krzysztof Kozlowski , Rob Herring , Andy Gross , Bjorn Andersson , Greg Kroah-Hartman , Stephen Boyd , "Doug Anderson" , Matthias Kaehlcke , Vinod Koul , Wesley Cheng CC: , , , , , , , , Krishna Kurapati Subject: [PATCH v11 0/3] Add QCOM SNPS PHY overriding params support Date: Thu, 21 Jul 2022 11:59:11 +0530 Message-ID: <1658384954-9506-1-git-send-email-quic_kriskura@quicinc.com> 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: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: hLUj-7tJg4mB2zOSfL6D92lklJB71Lgb X-Proofpoint-GUID: hLUj-7tJg4mB2zOSfL6D92lklJB71Lgb X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-07-20_12,2022-07-20_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 phishscore=0 clxscore=1011 impostorscore=0 suspectscore=0 spamscore=0 mlxscore=0 priorityscore=1501 bulkscore=0 malwarescore=0 lowpriorityscore=0 mlxlogscore=640 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2206140000 definitions=main-2207210024 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_NONE, 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 From: Krishna Kurapati Added support for overriding tuning parameters in QCOM SNPS PHY from device tree. This parameter tuning is required to tune the hs signal on dp/dm lines for electrical compliance to be successful. Changes in v11: Made changes to logs added in phy driver. Fixed nitpicks in code. Changes in v10: Fixed patch headers. changes in v9: Fixed nitpick in driver code. changes in v8: Fixed nitpick in driver code. changes in v7: Fixed nitpick in driver code and dtsi file. changes in v6: Fixed errors in dt-bindings. Fixed nitpick in driver code. changes in v5: Fixed nitpicks in code. Added minimum and maximum for each parameter added in dt-bindings. Added proper suffixes to each parameter as per dtschema. changes in v4: Fixed nitpicks in code. Initial compliance test results showed overshoot in the middle of eye diagram. The current dt values were put in place to correct it and fix overshoot issue. changes in v3: Added support for phy tuning parameters to be represented in bps and corresponding register values to be written are obtained by traversing through data map declared in the driver. changes in v2: Reading the individual fields in each overriding register from device tree. Krishna Kurapati (2): phy: qcom-snps: Add support for overriding phy tuning parameters arm64: dts: qcom: sc7280: Update SNPS Phy params for SC7280 IDP device Sandeep Maheswaram (1): dt-bindings: phy: qcom,usb-snps-femto-v2: Add phy override params bindings .../bindings/phy/qcom,usb-snps-femto-v2.yaml | 88 +++++++ arch/arm64/boot/dts/qcom/sc7280-idp.dtsi | 6 + drivers/phy/qualcomm/phy-qcom-snps-femto-v2.c | 262 ++++++++++++++++++++- 3 files changed, 354 insertions(+), 2 deletions(-) -- 2.7.4