From patchwork Sat Sep 3 10:30:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krishna Kurapati X-Patchwork-Id: 12964962 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ED58DECAAD5 for ; Sat, 3 Sep 2022 10:31:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=2tBDEL3XYpfvstCRonURnAcNgxQNUvXKUwCf3ca7h9s=; b=ylsQs80hUdxtIf xZbf4HK9qVbhqaDr4mITBYiDQVFqdrM3Qa/W58UAiwrjDzw9iwrP8nbUYMp0js9y9MJHwl6r+EC8A lS06eWueSTot6aoEo7snDa1f7wBDefvMw060wbeBlIWXstg2ixX6X6qao/muM31w+vPDnRmT7McIk 7Np0czpU2y1YfJeMYwrXJQ2EbOp/muHyLIb5X9cNZ8tJyW69fCvqyhWjRaK1SPKYIl3OwGG9ENZpj oEEfcFEFz7NAp1+WDSju3mX7qN2zdK553DJlbdjZGg/3bDEbMAEjZ/jbO+0LQANeV/cIkWc8fBU17 /k3znOYj+EqEUpKkA+cw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oUQQj-008rgP-9Q; Sat, 03 Sep 2022 10:31:13 +0000 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oUQQg-008rde-Li for linux-phy@lists.infradead.org; Sat, 03 Sep 2022 10:31:12 +0000 Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 283ALLLZ001758; Sat, 3 Sep 2022 10:31:00 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=aEc794XOU78IjaB4Anobb658Fmb1e6ScIqNaoytW334=; b=RUQ9NRkbPVkSkrGXne8na09hAMj1Lej+YB2aUeGIjmKI98zlaKGVjog7UtnPSR1Ma4pL NTgqLDb8hvTfRJf9WiGwR6Kx3m8cwcy5FnnhtM8zWQD9YefP3UfsGeaJssJgd0CB1U5c uer4+x97YRl4t2ZDVysmFs7Oa7mvf9+es/IRsxhzlsvYYccmz9aGzCScrMQnkBdUOlWY x33TLiKGyMD9RESDgZrwl1/Mf8vhBkV/o/XY6o/CNthd5QzsZKsB2XAIbUqrk5mVhhOg N8IBW/UXLsXAwGbF4qchGDQSfhZ3uPkFF9he6ffpzifzT2k/fbX/YmpXZMZs/qzqGQwq KQ== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3jbypmgjah-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 03 Sep 2022 10:31:00 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 283AUxvX019182 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 3 Sep 2022 10:30:59 GMT 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.29; Sat, 3 Sep 2022 03:30:53 -0700 From: Krishna Kurapati To: Krzysztof Kozlowski , Rob Herring , Andy Gross , Bjorn Andersson , Vinod Koul , Wesley Cheng , Konrad Dybcio , Kishon Vijay Abraham I , Philipp Zabel , Greg Kroah-Hartman , Stephen Boyd , Doug Anderson CC: , , , , , , , , Krishna Kurapati Subject: [PATCH v12 0/3] Add QCOM SNPS PHY overriding params support Date: Sat, 3 Sep 2022 16:00:45 +0530 Message-ID: <1662201048-26049-1-git-send-email-quic_kriskura@quicinc.com> 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 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: EVsXVSRJYCKl0L82I8Jqab4e5rrsva7J X-Proofpoint-GUID: EVsXVSRJYCKl0L82I8Jqab4e5rrsva7J X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-09-03_03,2022-08-31_03,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 clxscore=1011 phishscore=0 spamscore=0 mlxscore=0 bulkscore=0 adultscore=0 suspectscore=0 lowpriorityscore=0 malwarescore=0 mlxlogscore=659 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2207270000 definitions=main-2209030053 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220903_033110_734629_62F9E2A6 X-CRM114-Status: GOOD ( 15.35 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org 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 v12: Fixed nitpicks in driver code. 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 | 252 ++++++++++++++++++++- 3 files changed, 344 insertions(+), 2 deletions(-)