From patchwork Tue Dec 24 08:46:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krishna Kurapati X-Patchwork-Id: 853302 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0D8A5186287 for ; Tue, 24 Dec 2024 08:46:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735030002; cv=none; b=IbaNGr7xm0TEB8uQpV8+yUZOQyvLbuuZEZ/aGNA30BQjGNlqj4L7Jh+NQoaXP8819FWHj54ErZq2X5h2S/hzCCqADp3UaFWDMIMqjWjNkAyWBVBX5ofcpgLRylGo9MpBjdxojxXiLpow8ne7cMCPt9G8mWb/0z7ZeOj8/Ny60tc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735030002; c=relaxed/simple; bh=W0N4/coitWW0xWo9nsJOENYp9jOBCJOQx3Uafy8U+OU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=fT0oGRNTr0UcYy7BwMtOlMoFDdipadUY3mLauRpaVS4cZxgU7loW6ARKLghdg5E0fDdNgRipOoEYqLc26I+0KUwZ0Ireu88ll+jIg+rs2cTU0BylJSIGODv/QqvMaXHdLGakcvK3UPaI9vpiTaelhv/kH4caBDNEQNgqyiVTNhU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=Y5BRSDQC; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="Y5BRSDQC" Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4BNNTYn9013037 for ; Tue, 24 Dec 2024 08:46:40 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=n7Z58j+xEKX XWkqjkJYYjOVgfCNeO+sM2+/LbnVc+Ag=; b=Y5BRSDQC3wDVCZxJSt3Z1u67wyw jKadBy8SGRiS82CnnUOAXL8D1iKv8pjNB2HY/fryxebSJuiYH+VNFavBFH8nkHZG drE10mxhA/OtWNJYj/ypNiLsslDh1icE+7sQHCbutnbGAnwx6k/pQTnYk2ee1kpX AV0w1ir638jTRG0W30cEY2jnJTQ2/6/nIaQP8M96d3kvXsAtjFet51mSQopjxXCJ KlT7lZTy1Z0/KDdB8tnkFLUM1HGnWr9nu5vAZlepbi+/wZxMNozL2bzEhJSkZ/ju 1jgnm4PK7T8nGNgPtDILNJ+ue4yzfk1Qz5TFFKSRcytVcmovNbetLaQV7eg== Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 43qhk61ved-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Tue, 24 Dec 2024 08:46:39 +0000 (GMT) Received: by mail-pl1-f198.google.com with SMTP id d9443c01a7336-2163a2a1ec2so82778045ad.1 for ; Tue, 24 Dec 2024 00:46:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735029999; x=1735634799; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=n7Z58j+xEKXXWkqjkJYYjOVgfCNeO+sM2+/LbnVc+Ag=; b=ZiohCzGuTJNXHaToRh7V76G9y8CgbHEyFMeK7DcmFRjcnoqPKG6FGnhWpE5U/qe4ro xV/vYcbh3Eu3YqnbcRUaGJenubb2igYxj8WIGrBwVUQc3Q+wA6ED8GwGer5T210U1LMS U/YjnQmBQChpblRGhYkJYSDYgD6/BP/8M3/D2HjPc0F5XQ6XzshAHzB7PYxQUEyWmsPL 2kuuZWbMGATwZ74crQcL8w8Q8dIieEpW9SS3sYTlrMnHGYXyQeV9c7lfg5bJPm6/TtBe KG75Dyecqy4zYgXOcFgiJSvKVvJS9acOYAvoCecLxi4I+Bud1sOzZRgzVG4a9p2wzyx4 D5JA== X-Forwarded-Encrypted: i=1; AJvYcCWa84et93OjGSbYUe/hKp0SD9G5ePAf7vslo+gpGJF0QOkPhibMBtni1/hZaviUD0BzIbdXkzCzgJQcssQy@vger.kernel.org X-Gm-Message-State: AOJu0YyeE3SzVA2IRU4jnuf1fhR/7o+7fQXdFLQEy2LkL0Iapr5SYUIs m5mgMZjMPQt1rWngV+hKTeDKO76AOjhGM2MviquZDG8sv9j30Vy3QHC4tkYHz0g66JooQFxDAdl NuWtlc55tatPRQAJ8AD/uqt7pP948XkLxEQc9KbnRgvy5B40rQcnA9Bkq71sR1BBf X-Gm-Gg: ASbGncueDR1nNuygRpA1nIl/G2SL/R9gegZWw0Q3rVi9vJkU/MwYWSPkhQ6q+LpyFOx cqlWVFjV1L06lSrUrgIx3ldfiZlXTMIrApjZy1mQccRbTyvs+JEbhKVjjYUsS382/xUbhhw2X23 IBApXfsHOp5b5QpNcZA5s8/pMAIV3sS237/r9C0eqIjQDK6sNNZZ5py84/a2rfk/FHRGlEARA0u 4eaF9GIixXXlN6joXTSDdVrcQ9fO3q5i9aHVVi4zZ8P357piRbZeWBzBtf3i8YzmqtsUdAzb8yd UDV5/M5t1JsdB5tgHEs= X-Received: by 2002:a17:902:c406:b0:219:cdf1:a0b8 with SMTP id d9443c01a7336-219e6ebb28dmr230534135ad.30.1735029998721; Tue, 24 Dec 2024 00:46:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IF+AYe3lv+lxwHtcSMXIlO0zzvIFAqhtir5DVDaVD4dsPaQwqh+CNLDmptIavydio+z/Bn/XA== X-Received: by 2002:a17:902:c406:b0:219:cdf1:a0b8 with SMTP id d9443c01a7336-219e6ebb28dmr230533865ad.30.1735029998348; Tue, 24 Dec 2024 00:46:38 -0800 (PST) Received: from hu-kriskura-hyd.qualcomm.com ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-219dc9f692fsm85471195ad.216.2024.12.24.00.46.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Dec 2024 00:46:37 -0800 (PST) From: Krishna Kurapati To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul , Kishon Vijay Abraham I , Konrad Dybcio , Dmitry Baryshkov , Johan Hovold , Manivannan Sadhasivam , Varadarajan Narayanan , Wesley Cheng Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, quic_ppratap@quicinc.com, quic_jackp@quicinc.com, Krishna Kurapati , Krzysztof Kozlowski Subject: [PATCH v3 1/3] dt-bindings: usb: qcom,dwc3: Add QCS615 to USB DWC3 bindings Date: Tue, 24 Dec 2024 14:16:19 +0530 Message-Id: <20241224084621.4139021-2-krishna.kurapati@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241224084621.4139021-1-krishna.kurapati@oss.qualcomm.com> References: <20241224084621.4139021-1-krishna.kurapati@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: aqFTL6Hh-hD0ixZIZBbVYXW7tOpe2CXc X-Proofpoint-GUID: aqFTL6Hh-hD0ixZIZBbVYXW7tOpe2CXc X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 mlxscore=0 impostorscore=0 suspectscore=0 lowpriorityscore=0 spamscore=0 clxscore=1015 adultscore=0 mlxlogscore=642 priorityscore=1501 malwarescore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2412240072 Update dt-bindings to add primary controller of QCS615 to USB DWC3 controller list. Although this controller has a QUSB2 Phy, it belongs to a generation of SoCs like SDM670/SDM845/SM6350 where DP/DM is used for wakeup instead of qusb2_phy interrupt. Signed-off-by: Krishna Kurapati Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/usb/qcom,dwc3.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml b/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml index 98bb82c795d4..8fd02e8aaaa5 100644 --- a/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml +++ b/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml @@ -26,6 +26,7 @@ properties: - qcom,msm8998-dwc3 - qcom,qcm2290-dwc3 - qcom,qcs404-dwc3 + - qcom,qcs615-dwc3 - qcom,qcs8300-dwc3 - qcom,qdu1000-dwc3 - qcom,sa8775p-dwc3 @@ -341,6 +342,7 @@ allOf: contains: enum: - qcom,qcm2290-dwc3 + - qcom,qcs615-dwc3 - qcom,sar2130p-dwc3 - qcom,sc8180x-dwc3 - qcom,sc8180x-dwc3-mp @@ -471,6 +473,7 @@ allOf: - qcom,ipq4019-dwc3 - qcom,ipq8064-dwc3 - qcom,msm8994-dwc3 + - qcom,qcs615-dwc3 - qcom,qcs8300-dwc3 - qcom,qdu1000-dwc3 - qcom,sa8775p-dwc3 From patchwork Tue Dec 24 08:46:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krishna Kurapati X-Patchwork-Id: 853511 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B1F4F14A099 for ; Tue, 24 Dec 2024 08:46:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735030008; cv=none; b=GhWEzfY4HVTR4egl1pjp2I2xp7RME+DxaNl7UE2qK91BUhBsh9qnc19uZPvo1cLIcgJ2TWxlNrRcqoI3VZwAeqrXP81gu2UNiot6BH4S038EfGuk4ZP6YSzuqUyMD5vf3u2KPCHNkxFWpFTbBnrXrLjVQSxr0H4ghwKJnyG4Qjw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735030008; c=relaxed/simple; bh=otQKmF+8Q58viIrpGdwJ2kvOK0eX8EohEDU86jA83Ig=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=XbVSB62EW9ES4JaIrAu3mgXWPrr5/ydRQqgZ5EYlso6UxhkczIh5Q95qkDCy8gknJtEvZP9eT0AXWgNE+x2nxydtvkPSPGUS/y+Mc36+Waxh1OArpYbO1+Ui+1zsG+QJJRV0EZbO2enPAmBbqUDsJBt36E3hPiE2z59Wk3EIuWg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=CFdm0hFM; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="CFdm0hFM" Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4BO5laA0006823 for ; Tue, 24 Dec 2024 08:46:46 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=KZEGDZug6jf 1eDfhN0Tvq0lUjRMXfDeRIcHZgSVoNCo=; b=CFdm0hFMZ2600WB/nV+91jkONKi SitUYe6jFPzy+KtxXytSNXY+OjKJOeAOZXByrfFz3WdzKPqYBSzSg6faFQ/+mcsV gfnPgAgChKtJTZ7xKwWTLUUEBjG+snhlgcLv8bwgloQc9xFDiIjpsbjp06TqjFrB 400amycEshHr2uw05cmOpaTBAU9alhDkML8FKJ6hrwgxLSwk92JMTZU7dvD4d6WY YDK8wldxGfdIqiASRADAmzxjp5ii5pkicvVTt/4pwDMidTHACAi8s04yUqED7HBp Wc1fblxWd5qT2SGFcIO3nEo3F9g97m0oUw8/NdeL4Ino3JNiLrqj+SQbGvw== Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 43qq4b0q56-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Tue, 24 Dec 2024 08:46:45 +0000 (GMT) Received: by mail-pj1-f69.google.com with SMTP id 98e67ed59e1d1-2efa74481fdso5066185a91.1 for ; Tue, 24 Dec 2024 00:46:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735030005; x=1735634805; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KZEGDZug6jf1eDfhN0Tvq0lUjRMXfDeRIcHZgSVoNCo=; b=htNMXYa8I6ifmMH3UZ143gXAIvDtQ94gcWVfrJtK2Z+RL7PI9WRtPFBhO8CTjNFqc7 sqQa8Euoxjsn7O+wBARJAr2fL/Bl5JlpoA0pkn35VxCx9hdjSLzkiEsU2ErebSQtBxli K9YmFpUSK571TQYmCkALKlZLrkbArDu/jXaBM7qBI3mJZjHH2+eBhTF/UBX1PIAiFi1S N2B8GMISd5SjY5XergyBr1x6KpLL91hox6O5GZZq9fgl+X1DnWr63l+axE9wi2kZIylK NOnPDYG/6rOQtbKO1vichvJTAfgLUC1yp8TVYtlnCEVH043Y/+4nLuDKMz8D6HIKzyxj npOg== X-Forwarded-Encrypted: i=1; AJvYcCXuCWwJREk1zJOwhpwDmk5kT5kQmEJHdaMy40/EsTEd8xG8BZPIAscWbxwl9W3m68qpN6yYZmN7YN4KbV8l@vger.kernel.org X-Gm-Message-State: AOJu0Yxb8jxqycnU6fO6yKz6JvYqPkO4wG06j/s+59pdEMuEPrYKScfp 1ze7H1eHe1tfaOHZmj95OOVoonj/EhLmwo8wqXhX8Z0ueNZXq12JqK+YYd8A6Xt/Oe8pvrGGIAw ZFK4PyZfWVoNOM+xA8ooNZ033P7st5JJMCCfYVY6IqyRy2ma02Cob4NICBXP19xpU X-Gm-Gg: ASbGncvgxaYOKHZmU8ugHqY6thJgaoLM1eY9gGl0S3g+ZTXQy8QXgEsL+FR9Ltx6jYo zwjFKPoIGQ16jSy3MOx4hm/f4zVqc0V9QnlO6hYjk9ix35hPMhHKDUwPCu9jncVmOxjgXFsz/l8 SxRG/Cftju9w+FlsQIHZpVA55K1y/MjYw8UYRKgnCNri+OVh4C3j5HpFN0B2nb0GufvQy6YZS9o KxmXTvkrMADuWxd81x7am+1XVTzt09CWD78vYV4ueMmc4e+ElvkUwS6z5q7M4COo7DlWJcbyX6x KLrek3V/AZHovCLXXX4= X-Received: by 2002:a17:90a:c2ce:b0:2ee:4513:f1d1 with SMTP id 98e67ed59e1d1-2f452eb24b8mr22112271a91.23.1735030005059; Tue, 24 Dec 2024 00:46:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IGVdm+o53eYW6sEmFq74ezYq9cdDs/4u6m2VQuxuyCpibgYj3geJP+IE0VFuZZP1NkinRtL6A== X-Received: by 2002:a17:90a:c2ce:b0:2ee:4513:f1d1 with SMTP id 98e67ed59e1d1-2f452eb24b8mr22112240a91.23.1735030004717; Tue, 24 Dec 2024 00:46:44 -0800 (PST) Received: from hu-kriskura-hyd.qualcomm.com ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-219dc9f692fsm85471195ad.216.2024.12.24.00.46.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Dec 2024 00:46:44 -0800 (PST) From: Krishna Kurapati To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul , Kishon Vijay Abraham I , Konrad Dybcio , Dmitry Baryshkov , Johan Hovold , Manivannan Sadhasivam , Varadarajan Narayanan , Wesley Cheng Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, quic_ppratap@quicinc.com, quic_jackp@quicinc.com, Krishna Kurapati Subject: [PATCH v3 2/3] phy: qcom-qusb2: Add support for QCS615 Date: Tue, 24 Dec 2024 14:16:20 +0530 Message-Id: <20241224084621.4139021-3-krishna.kurapati@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241224084621.4139021-1-krishna.kurapati@oss.qualcomm.com> References: <20241224084621.4139021-1-krishna.kurapati@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: X8R26GG3veB2ZJbaRUDQS3u4f48X9c-t X-Proofpoint-GUID: X8R26GG3veB2ZJbaRUDQS3u4f48X9c-t X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 adultscore=0 malwarescore=0 lowpriorityscore=0 bulkscore=0 phishscore=0 mlxscore=0 suspectscore=0 priorityscore=1501 impostorscore=0 mlxlogscore=999 clxscore=1011 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2412240072 Add init sequence and phy configuration for QCS615. Signed-off-by: Krishna Kurapati Reviewed-by: Dmitry Baryshkov --- drivers/phy/qualcomm/phy-qcom-qusb2.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/drivers/phy/qualcomm/phy-qcom-qusb2.c b/drivers/phy/qualcomm/phy-qcom-qusb2.c index 2d8fe9bc40f9..1f5f7df14d5a 100644 --- a/drivers/phy/qualcomm/phy-qcom-qusb2.c +++ b/drivers/phy/qualcomm/phy-qcom-qusb2.c @@ -166,6 +166,19 @@ static const struct qusb2_phy_init_tbl ipq5424_init_tbl[] = { QUSB2_PHY_INIT_CFG(QUSB2PHY_PLL_AUTOPGM_CTL1, 0x9f), }; +static const struct qusb2_phy_init_tbl qcs615_init_tbl[] = { + QUSB2_PHY_INIT_CFG_L(QUSB2PHY_PORT_TUNE1, 0xc8), + QUSB2_PHY_INIT_CFG_L(QUSB2PHY_PORT_TUNE2, 0xb3), + QUSB2_PHY_INIT_CFG_L(QUSB2PHY_PORT_TUNE3, 0x83), + QUSB2_PHY_INIT_CFG_L(QUSB2PHY_PORT_TUNE4, 0xc0), + QUSB2_PHY_INIT_CFG(QUSB2PHY_PLL_TUNE, 0x30), + QUSB2_PHY_INIT_CFG(QUSB2PHY_PLL_USER_CTL1, 0x79), + QUSB2_PHY_INIT_CFG(QUSB2PHY_PLL_USER_CTL2, 0x21), + QUSB2_PHY_INIT_CFG_L(QUSB2PHY_PORT_TEST2, 0x14), + QUSB2_PHY_INIT_CFG(QUSB2PHY_PLL_AUTOPGM_CTL1, 0x9f), + QUSB2_PHY_INIT_CFG(QUSB2PHY_PLL_PWR_CTRL, 0x00), +}; + static const unsigned int ipq6018_regs_layout[] = { [QUSB2PHY_PLL_STATUS] = 0x38, [QUSB2PHY_PORT_TUNE1] = 0x80, @@ -356,6 +369,17 @@ static const struct qusb2_phy_cfg ipq5424_phy_cfg = { .autoresume_en = BIT(0), }; +static const struct qusb2_phy_cfg qcs615_phy_cfg = { + .tbl = qcs615_init_tbl, + .tbl_num = ARRAY_SIZE(qcs615_init_tbl), + .regs = ipq6018_regs_layout, + + .disable_ctrl = (CLAMP_N_EN | FREEZIO_N | POWER_DOWN), + .mask_core_ready = PLL_LOCKED, + /* autoresume not used */ + .autoresume_en = BIT(0), +}; + static const struct qusb2_phy_cfg qusb2_v2_phy_cfg = { .tbl = qusb2_v2_init_tbl, .tbl_num = ARRAY_SIZE(qusb2_v2_init_tbl), @@ -950,6 +974,9 @@ static const struct of_device_id qusb2_phy_of_match_table[] = { }, { .compatible = "qcom,msm8998-qusb2-phy", .data = &msm8998_phy_cfg, + }, { + .compatible = "qcom,qcs615-qusb2-phy", + .data = &qcs615_phy_cfg, }, { .compatible = "qcom,qcm2290-qusb2-phy", .data = &sm6115_phy_cfg, From patchwork Tue Dec 24 08:46:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krishna Kurapati X-Patchwork-Id: 853301 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C08AA1B0F01 for ; Tue, 24 Dec 2024 08:46:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735030014; cv=none; b=onAHYKymvclS73LCMoTGJVS9yuo2jtxZGpftNOFTnkQqv2ctm7MlCd2TlF0xux0ss4nCKQG+NXSt66h47DJc5l/LGZlZFv3Gw5n4Lx+8RjlK7/gKx9CtZhwWtu5Ioue1RyxERbF7vKyYFO3eppbDhXspDdHmHJASJ/QtWW1TJx0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735030014; c=relaxed/simple; bh=qGpWgIXL47YBUsbnUQeWjPLqABrak3lVm1Q6K257iLo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=OUsE1Hgo6lLLxYbEAnwQaRfYRwfK7jAkgodD/1vkhceEmMV3pJlCNwHp3YL7NUZO8MoXvpEbeuUbr0P1m/D2apsF65sOjpOicN4rp6dV72XsvX+vBl2Pm5JScVWy35lW2+dFZP8NO+maWHEfcyRAUsLOActn6O9vvfJSyATrEwg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=gs7VcH9c; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="gs7VcH9c" Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4BO5wbGw025581 for ; Tue, 24 Dec 2024 08:46:52 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=suI55uQNzGC SiQih4YuTNalcRhTRpBC18Rzl3f7fUjE=; b=gs7VcH9cb0WKlxVuEkk6YPCR+th 7pgopASOK2rGRLaX3o+HJqmIiptGf/hxMHYvNK8ZMfLw1IjDBtGVO29BAc/MO2Gq w3TAJlQ569k0F2WsNrk96ZpGFgu0VnJfQvEbxKnoR2hFoz01m86HR3AP3ZBTWJ75 0R3EWaaJQ5TU9qVwFNLQwo4m9OWnSv6UbE7GdxMiTBfNtYtSiyPTUo5s/X1cPYOv VekT2DG0y9cv+NNGHvPxteJoS7O+Z6iGHxAsG6JHvVclYycP0Vvp9QuVB84fD32q 2MPL0GLymdNNcISV37olrTqVUZLY/CXnOfbWUHo/bSh4q+YwnvEbgZKsLYw== Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 43qq9hgqdg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Tue, 24 Dec 2024 08:46:52 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-2ee8ced572eso5263846a91.0 for ; Tue, 24 Dec 2024 00:46:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735030011; x=1735634811; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=suI55uQNzGCSiQih4YuTNalcRhTRpBC18Rzl3f7fUjE=; b=ThZ2MU6G7jNaSbewEjDUpghLX2xom0J30Jn66LN1UKuPQ2dqismJ/HZaVWpgNVPqp2 V8vubpHczK4h6i8+Y2P24feZrcwX1A46EQsQrHZaSlGj0TyDgN7PR8b2puvxcF3rk7Nu eIHs4zjxIzC9nrGPRIZPIVRQrDW/inJZGPvFXbDipFw2UGxSNxCbCWyxDGWW8T14Gmws jJr6mfnICcEZYIAJQP3sCwD28ET6ZltwEVnhObO0KsYkgkMeesBqjSr5mjN3ZJnrGWBQ PyrsCtWiH91rFE32iyB53TP3zD68AU+WSffo1JFO71Se6/PzdS5bPztS8ZycQFu6Mz+a 2wTw== X-Forwarded-Encrypted: i=1; AJvYcCVIcMWg6wK4k95PTLM5EVshU70/rB1R4ACeKpWjStuMc07p/ugMbiUi4JbTc921287pab8ICsTcAdiogBiZ@vger.kernel.org X-Gm-Message-State: AOJu0YzjsqJs9NQoJpIjJUgJKoPFdWQpxnt5VFMA1fH1Fjp14f0xh0RW xEI4HhQ2RCaXGo/8HXrkVqM7s/ppx1fNm/iR2KDSgYxuCRrQA8dgLfUt60mtR9wpHBfOLnakYkP /gZ3V6vX1Wkocir0JGtj9R/H7eVtETq8dBRJqHIz0aXgsK0cTl3n8wgr7W7SsESb9 X-Gm-Gg: ASbGnctbbUA3R+89dBTPN2He9DzjF+q4k1N+A6EbHs9KU7nvAysaC5oiJaH9lBKgx6f BdT+f/SxRT4WdcmbA0nMJwD+7BYfwX47sndy6ou01Rvh8QhqWOz6pMwEXkXCYlTWr3vfR7qiS2p JYINw2OBzdxon6h1d6Qi/I2kms5GfVU1SBDyB0rNeiVIPi3NkXh9ZLdr2iUsNCR9CdUYIASaWdo ZNgtSp5PGskObpSugupmYskzFCENCUYbABS9NMzuTYdvJW7RmrS3NK2ydRZA3y49ubYNu8/sOFN EW5F3hjt1bJ5p695y00= X-Received: by 2002:a17:90b:5202:b0:2ee:d186:fe48 with SMTP id 98e67ed59e1d1-2f452ec6a53mr22070963a91.28.1735030011252; Tue, 24 Dec 2024 00:46:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IH0+3qD4z7RnyTP4+sb8Ve+3MnRYVWj8h/D611r2RH3W4G7mum8I0Hgbn+yFyukzggbMv9nwA== X-Received: by 2002:a17:90b:5202:b0:2ee:d186:fe48 with SMTP id 98e67ed59e1d1-2f452ec6a53mr22070941a91.28.1735030010895; Tue, 24 Dec 2024 00:46:50 -0800 (PST) Received: from hu-kriskura-hyd.qualcomm.com ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-219dc9f692fsm85471195ad.216.2024.12.24.00.46.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Dec 2024 00:46:50 -0800 (PST) From: Krishna Kurapati To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul , Kishon Vijay Abraham I , Konrad Dybcio , Dmitry Baryshkov , Johan Hovold , Manivannan Sadhasivam , Varadarajan Narayanan , Wesley Cheng Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, quic_ppratap@quicinc.com, quic_jackp@quicinc.com, Krishna Kurapati Subject: [PATCH v3 3/3] phy: qcom: qmp-usbc: Add qmp configuration for QCS615 Date: Tue, 24 Dec 2024 14:16:21 +0530 Message-Id: <20241224084621.4139021-4-krishna.kurapati@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241224084621.4139021-1-krishna.kurapati@oss.qualcomm.com> References: <20241224084621.4139021-1-krishna.kurapati@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Proofpoint-GUID: 0Dsjoe8wFRt1ZOVB7xql2pSt7AlRmU3K X-Proofpoint-ORIG-GUID: 0Dsjoe8wFRt1ZOVB7xql2pSt7AlRmU3K X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 phishscore=0 mlxlogscore=999 mlxscore=0 spamscore=0 adultscore=0 lowpriorityscore=0 priorityscore=1501 bulkscore=0 suspectscore=0 impostorscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2412240073 From: Krishna Kurapati Provide PHY configuration for the USB QMP PHY for QCS615 Platform. Signed-off-by: Krishna Kurapati Reviewed-by: Dmitry Baryshkov --- drivers/phy/qualcomm/phy-qcom-qmp-usbc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-usbc.c b/drivers/phy/qualcomm/phy-qcom-qmp-usbc.c index cf12a6f12134..5e7fcb26744a 100644 --- a/drivers/phy/qualcomm/phy-qcom-qmp-usbc.c +++ b/drivers/phy/qualcomm/phy-qcom-qmp-usbc.c @@ -1124,6 +1124,9 @@ static const struct of_device_id qmp_usbc_of_match_table[] = { }, { .compatible = "qcom,qcm2290-qmp-usb3-phy", .data = &qcm2290_usb3phy_cfg, + }, { + .compatible = "qcom,qcs615-qmp-usb3-phy", + .data = &qcm2290_usb3phy_cfg, }, { .compatible = "qcom,sdm660-qmp-usb3-phy", .data = &sdm660_usb3phy_cfg,