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: 853587 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 0D8F219993D 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=1735030003; cv=none; b=IOplasygZovr7DDMJ4IcnOjpKX1Xk0gPMaNjwtzG0m9OLJAyPyU/5dFSk3oDphEkiutzYednMxFAEbfp4ccdwYY9kA9lm+iKl8d+h0LrH0EmbXe2ktipAKUJAN/dIWDrkT0ulboFhtkA7VwKZ4LRpi6hP8opCuhPYQ4vfCbU1F4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735030003; c=relaxed/simple; bh=W0N4/coitWW0xWo9nsJOENYp9jOBCJOQx3Uafy8U+OU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=UDcr+ivAiI8KKRnSmhfxCR3hyusxj/CUK83EtA9cheVuG657EgWOVvlUtaBvyGFg9Fy3pPPVUaA3s/HGTxQl/iTmLVxaRgfmumY0zXd1trkZmmUhj5JduEUt5L/PQfikvcm0GrmsaUdzXFnHa+qWd23L2t/kYmeU1oB+GXIPaUA= 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 (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4BO0mLk5027920 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-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 43qjqvhqr2-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-f199.google.com with SMTP id d9443c01a7336-2163c2f32fdso81307605ad.2 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=oWgvMmv2XJx2CDDh4bc05bV1KY9Ep4LLSx9AuwsUfDGqFuMs/J/yJIrU6w2KWUp0hQ fUI6h+2ch3otk47NnnIDyVsqwNdqkoDkKuXeIafLtu6Q80ac6ACJkH7k8QaZJhEjtM0K Z59/WSQO+Gs3+QPZCho7ce/YD6EK2T97i8fgu8BtJGfbha9FRMc7ng/x8ghuXK0dUD+6 Kk7qa35LQijHwffKbvOAoJkIYgPfuJRY1kB7vL3oKsgbeLF8qiT7jUl1lB/iMH2pimbU 5dV4B6OUdZKIuxwE947YQQSi22etNsGpxoPF22a0Ejvy+0pwyQjYN8yycdklKV1dsncf fzsQ== X-Forwarded-Encrypted: i=1; AJvYcCWXWhvR05SzQauzxyK98Y/H6xRt6KzCEc+P5QN/K01239t0pVOp/UOLc5YMpfS8S6+cxcvF7cxu88U=@vger.kernel.org X-Gm-Message-State: AOJu0YyWpGwLp6YmSrY38mVC0w7E0gkUfBYz2KiBiohFwm+kusijHZqX dphChvRRdHYycw4VsOC8xPa7tO2fGYnAYtcj8cQ9T8g1IFc81gQ8Or3I4KALeVsCgEIqSAWy1Wq cRVAQEbbX1A7QOvO2/wCxyd2O8auMq3ffAhXJ1W7qsVcBTMokqzUfiFin1pQ= X-Gm-Gg: ASbGnctSP5gqwMi3gibsWKmwQsKUuHnbCucB/TQXdOOsvXbw5aPIqi9rbMVkR0Fpf9B alEX8WnWid65/ZBeoDmB2KqGoCiiCrXd7Lk/YQuOQsq2KG2tywy8Gv2i+skyu3aIrFZRKAmRRBa MOjkiqXzQIlPZq9mhmw704f1Lkj0FWJUtJOwqXJz9R3aP+I53oUe/5CepqYX1shfABesbxePyVh qYtbttB64LzfYeQuPrIeo40n/5AgiqvDCYtGkTDGmIdo1etq+g3J6heBJnPSxVzuj6gO5ahNe6Z v44vq+8S94O84fOcGOg= X-Received: by 2002:a17:902:c406:b0:219:cdf1:a0b8 with SMTP id d9443c01a7336-219e6ebb28dmr230534125ad.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-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: JKAC3t2crFxi4aJGxmG_mfJbyGAS89Lz X-Proofpoint-GUID: JKAC3t2crFxi4aJGxmG_mfJbyGAS89Lz 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 malwarescore=0 suspectscore=0 priorityscore=1501 phishscore=0 bulkscore=0 mlxscore=0 lowpriorityscore=0 mlxlogscore=578 clxscore=1015 adultscore=0 impostorscore=0 spamscore=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: 853448 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 BA25B1AB52F 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 (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4BO6vUQO025265 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-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 43qr55rhhb-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-f71.google.com with SMTP id 98e67ed59e1d1-2f2a9743093so5060333a91.3 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=NelwKSQ2sOvHRvIdLW0/y+Wke2wGGBvF7s/gXTDgOKA1YtMLUaKKiyyMi0fohqMkIy rPmmtDlpnscumipk5EjKoeUHs06GIKwO2dLcjEDyykWc93mjQ63OAhdYgxgrkwqWpYGi PJb6MuKZ1npu+mM92i/I4x5NaqPf7RChnzkfHM1NI/cbD6O+dJBNFY9ZFDf8CoZiUwPp gI2V43YtawJZz1InjApgXsLkmF22+jh+Sg/YokEsygZkA9SF/ikLkJGciP19kWzBrZfm YQuKp/AhJvCMUutZC79phiCyos2qFmwXJgisM3v7vVW96X1Txzhu6tGnOo1frLy82eBJ YWdg== X-Forwarded-Encrypted: i=1; AJvYcCWZdticIG0FTjR0GhnoMvTh6oy19bnBIsnpOJkTgLpjzm7In6/Lw96n7Sn9Hwu4LvBGhvstDU7hyec=@vger.kernel.org X-Gm-Message-State: AOJu0Yz1uX9nd5uw0/zS9oA90kdsb8KfUZHZmppdH6x/Xql/P8st+UDf Gc4n2oVYZ+MjxmucABS/MR0nYisQgUkCzhZXqY2ZJVO4T8l2/ihJK0uEtMwHhcDpoAk1vpctP/D 1KODyxzwb7X6aqZYvkGRuOMh2boQSgM64YRmgZUN3bS9uZ/gZdFRJ1EChSLI= X-Gm-Gg: ASbGncujO/NVTXnmGjJe1TvvZHsO+yd53KEGhhbQtqse6ZZIYNT2+NOJbxhRrlfrZtu neB8wTKH3WzwIQNicN5ccANzNLwfGh3Gc6eya5GTOL+lSTXN5JtRLQgdRywabPRKdwu+/24soC4 gHhdZhYvdXQG0OHiTmJFGxj/yMoj5GNgRKTCUE5y86npVfSsNVaX3qJC4/WMXq+SW/WzaNpaWwF gdiDJERLgsJFtMtHxzm86L64CUHS/5M1IW2oc1k76pXYENjYl+/EQlhYPJxsBOyLz1doEFeV9Cs Y5SaoYbK9iBdwAEHGcM= X-Received: by 2002:a17:90a:c2ce:b0:2ee:4513:f1d1 with SMTP id 98e67ed59e1d1-2f452eb24b8mr22112274a91.23.1735030005068; 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-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: XdY3T3bDES4hTx5_IwvqrYkCyNhCzYrr X-Proofpoint-GUID: XdY3T3bDES4hTx5_IwvqrYkCyNhCzYrr 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 mlxlogscore=999 lowpriorityscore=0 malwarescore=0 clxscore=1015 suspectscore=0 phishscore=0 impostorscore=0 mlxscore=0 spamscore=0 adultscore=0 bulkscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2412240073 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: 853586 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 E96A41AFB36 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=1735030015; cv=none; b=UQ/xoB0Btzb6JJPdlr2Dw7vPwM+NclAWSxh19kNyTrSdcCawmuP0TAyOpWDpjHkWPsZZdbGq1SkQ138IYC83IGfrC6YGL/+OIL7oLYpcacOgb61NhafhuabHbC8TFrpB/SSQv0uAglwE5qcN3aJLqm0+Ki5ndM7URlF4oa/OyLk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735030015; c=relaxed/simple; bh=qGpWgIXL47YBUsbnUQeWjPLqABrak3lVm1Q6K257iLo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=k3DNWCjHqn/ILB7TrtCoOzPY8mTmCUKvDIvMgbuf1MFbD/PFWKs76p/CpXna7z8z1dUwd/gxC6t5Z1LrzdbkY06zOLYmQf/wYJtqJAH7hE3mvpp8euL0L6wy21M5impJxR0c92OvEJaUP/2i5pt7BvscqEpcSCsXSFnkx45juUc= 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 (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4BO5lZxj006798 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-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 43qq4b0q7h-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-f69.google.com with SMTP id 98e67ed59e1d1-2ef91d5c863so5250138a91.2 for ; Tue, 24 Dec 2024 00:46:52 -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=lbVfAVMU5VBzowY+VRoa/hhbF1/+iVuuyjpa3AtIzL3jWvUqZ1yWQj6yP4iHA6k8d+ DtHfmYThDMD6ZWqcOqcmFHe+ERDna6aXFSavdyy8irmeYJ8o+X0P1xMFycGykxxFdtcu Nw4FStEVBOiRe8v20Cz9BYNYnqIKuMARptyi71eZek/4BwJ6q2pLXIpkMhKvQzOQCx8I +NIyIRUSCOV/OmUkxa2kM2mTYxmXDi+05YoyceiN+XtHLftpiiiIuYcThYXvX94wKdU8 iph1lI8yILjRQxA1cqPp6QHxzffzAQmF0iKsvaKEBP3rr2T9e3S2WBdJ8MYdh+xfN8Qb Gulw== X-Forwarded-Encrypted: i=1; AJvYcCWiKxOVLGIRYwKvJYxgkfrrgj8h2umNfiLa6I6+SRn+5aDdib9zPsOFtyNKHh9pS1bN6PCif9XdsW4=@vger.kernel.org X-Gm-Message-State: AOJu0YxbLtz1F8FzvisQ+6AnuGT7D+pskWmAjZHTpWyleNcHyjs2ovLz 73aq3nqqHtkEB1uNdhYPsEJOcCT2fAGlgoMRiHC/B/3RedZGECm4+IBwX2ktJSocJU/IPZe39sK HrLhMFRTNj/MZf9+ce5LzTltYqkeruH1nWhvOu55XJUrEn9WiKj9K6GDlT9w= X-Gm-Gg: ASbGnctKq9mxoVlNE0ocfMSckvJWeDLnrgiPR6QKVEmMwayGQFXVH2F5hzKm6E7ecjU fnGZYGAnGzZn0y3X7zmal5NjaGJzH/yc3aabKjt/pOFzv+w4t3ZZaROY/Z8c+06cGPE6QvtOFgF nxGfrQVnJCjVa1IPeLKDbdAsPPZAm0AMx3tqhI3ykWPLEoTO8BNs0BClH+8p1tu1txeEt9i/pAa vfqHHOBtT627eL17EqZ9idAWi/R0Hcz4vKiTxcmeorbB0cggS2rwHbr8iS/PNuZttSRp0VGJGHN 4WHjP2S5pk2tU5lTrSo= X-Received: by 2002:a17:90b:5202:b0:2ee:d186:fe48 with SMTP id 98e67ed59e1d1-2f452ec6a53mr22070966a91.28.1735030011254; 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-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: 9dNimc6pN0QMph-7BLftNgpO-aFRTvix X-Proofpoint-GUID: 9dNimc6pN0QMph-7BLftNgpO-aFRTvix 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=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2412240072 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,