From patchwork Fri Jan 20 12:46:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivasa Rao Mandadapu X-Patchwork-Id: 46328 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp177664wrn; Fri, 20 Jan 2023 04:47:46 -0800 (PST) X-Google-Smtp-Source: AMrXdXtmvrvgTIwlYk3RBQ3ELP/oKIGKovz3wTYgbD7SzWamKXxUCEr6phuOHLoN9hK7WDONveK0 X-Received: by 2002:a05:6a20:9b99:b0:b7:4f67:c2de with SMTP id mr25-20020a056a209b9900b000b74f67c2demr14580012pzb.40.1674218865717; Fri, 20 Jan 2023 04:47:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674218865; cv=none; d=google.com; s=arc-20160816; b=db7VB58NCiTaE1vPKrnUkf5MPN8S6HROhs/DL50CLj2muiK0eZXYeeKxpJDqJ6SrZw k4W6ERMBFX4x0z/IeFuikUR29flYtBtQhyZ8kuuHJjKv8Q3CVFK4wBXFqZIDFNmJFjaA iuCojcMkae95RxAZkhGvukq3CJWhruAeWKjDgzqJg7ioyKJ8yLGx70c3xEnIdlZEM1fV GaKXaCkJh1qakkNP5Uaa+b5LVgvKW5KgxhsMFEaopSBOqNmnSzUmcKFti0svrTPniG9W suomcurGPfDFEah8cU+DvRUzNNNLt5Wb8ynt3uS0WjqGd9b3DHTLACEqbv8QZJ3UzHB7 CZVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=ZCAf8mISwyoplwQVcb17wI/dTTbJ8iCf1Y6jy5rmUYo=; b=UoojOY+2K9oV2LF+qnCEPKG4Zk76kz3p5mui6iyBVZE/lQfEALtqDW6HAcJokgc6op 4Hflnb4e5fU+bwSDxna6EAUmT3KoLmuGWylQn16IaHBO8cM+n0JShJlqjMf12u/YV3ml 0ra/RVM157Q2ll6Vj66TVqxApxvBfFjJh8imTh7/foQL3WP+KiO+khrhWCEJZWVqlUNv dKDBHNm9Ey2F8v7Hrlo+VnrB0giE5cFGBFG36C+qZbDWll1tR5h4TSfpm1PXPsWIiL6/ Z2RWRFVlSdjdL877CKERGSn317e477MPmQeku9Yuo/SchikuJm/50TL8dPlvYW6+gRAZ deew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=YZReWkhd; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y24-20020a634958000000b004790510bfe5si40548429pgk.692.2023.01.20.04.47.33; Fri, 20 Jan 2023 04:47:45 -0800 (PST) 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=YZReWkhd; 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 S230213AbjATMrX (ORCPT + 99 others); Fri, 20 Jan 2023 07:47:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229966AbjATMrT (ORCPT ); Fri, 20 Jan 2023 07:47:19 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6998BBF5F3; Fri, 20 Jan 2023 04:47:18 -0800 (PST) Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30KCkM3J027048; Fri, 20 Jan 2023 12:47:10 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=ZCAf8mISwyoplwQVcb17wI/dTTbJ8iCf1Y6jy5rmUYo=; b=YZReWkhdzUsV0fmFmVPFGUCLNORItmEE3NbMUFgZLnu67TvyE+YXPC+oYIfH4RXDOVH/ HJUy2voiF/aOdCfTFBL+geu2Cdvl/9vryhUBrhILkH0k/8yp+h3wQs+60OSZUoYctXsN Y7wEJwd5wtTbUuPjTsKff2uzrgp+TB7Eulr+A88ukcfKs/sNkNFXqbTzhLcqeJH6cqx0 jTF1uJWcxRQgRGcOXJMPpuh5peAKbZ6nJPjHUH6TKbPl5AbJT8hlccpiH0kO6/VLaNXv fwK+ezw6sA8EbEdkm+8NuFOUNjdxRd099lLI7urV6hZ+gZLKqezmFhpRSyUjrv7ovBOD Tw== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3n6r59ccu3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 Jan 2023 12:47:10 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 30KCl9Pv029892 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 Jan 2023 12:47:09 GMT Received: from hu-srivasam-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.36; Fri, 20 Jan 2023 04:47:04 -0800 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , , , , CC: Srinivasa Rao Mandadapu Subject: [PATCH v5 1/6] dt-bindings: clock: qcom,sc7280-lpasscc: Add qcom,adsp-pil-mode property Date: Fri, 20 Jan 2023 18:16:41 +0530 Message-ID: <1674218806-7711-2-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1674218806-7711-1-git-send-email-quic_srivasam@quicinc.com> References: <1674218806-7711-1-git-send-email-quic_srivasam@quicinc.com> MIME-Version: 1.0 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: P0RXro5MygQw6VwsVtJQSTfjdTMpTsHb X-Proofpoint-GUID: P0RXro5MygQw6VwsVtJQSTfjdTMpTsHb X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-01-20_08,2023-01-20_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 clxscore=1015 mlxscore=0 mlxlogscore=999 malwarescore=0 priorityscore=1501 bulkscore=0 suspectscore=0 phishscore=0 adultscore=4 spamscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301200120 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755545721689965619?= X-GMAIL-MSGID: =?utf-8?q?1755545721689965619?= When this property is set, the remoteproc is used to boot the LPASS and therefore qdsp6ss clocks would be used to bring LPASS out of reset, hence they are directly controlled by the remoteproc. This is a cleanup done to handle overlap of regmap of lpasscc and adsp remoteproc blocks. Signed-off-by: Srinivasa Rao Mandadapu Reviewed-by: Krzysztof Kozlowski Reviewed-by: Stephen Boyd --- Documentation/devicetree/bindings/clock/qcom,sc7280-lpasscc.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/qcom,sc7280-lpasscc.yaml b/Documentation/devicetree/bindings/clock/qcom,sc7280-lpasscc.yaml index 6151fde..97c6bd9 100644 --- a/Documentation/devicetree/bindings/clock/qcom,sc7280-lpasscc.yaml +++ b/Documentation/devicetree/bindings/clock/qcom,sc7280-lpasscc.yaml @@ -41,6 +41,12 @@ properties: - const: qdsp6ss - const: top_cc + qcom,adsp-pil-mode: + description: + Indicates if the LPASS would be brought out of reset using + remoteproc peripheral loader. + type: boolean + required: - compatible - reg @@ -60,6 +66,7 @@ examples: reg-names = "qdsp6ss", "top_cc"; clocks = <&gcc GCC_CFG_NOC_LPASS_CLK>; clock-names = "iface"; + qcom,adsp-pil-mode; #clock-cells = <1>; }; ... From patchwork Fri Jan 20 12:46:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivasa Rao Mandadapu X-Patchwork-Id: 46329 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp177798wrn; Fri, 20 Jan 2023 04:48:05 -0800 (PST) X-Google-Smtp-Source: AMrXdXuOOlSkVDY9jYka+XbksiQKXUJl1S4wsgJcmi4HyIJbxfqZrV/gMMSV1JklvErbfl2eDU9Z X-Received: by 2002:a17:902:c94b:b0:194:dda9:7b40 with SMTP id i11-20020a170902c94b00b00194dda97b40mr4361998pla.2.1674218885044; Fri, 20 Jan 2023 04:48:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674218885; cv=none; d=google.com; s=arc-20160816; b=Z5k2zPQMhzhdoV26Aovbyvtre85KcpFNBMsVJk39ctIgq6/uSjtghVmQjth78FsVBJ gFvMGHdknMtTf1WVwNRl3/kwTZy16XqbSy6wzP7d5zK6TpTYcCGSWAhq6w4hYlRlvtgD zN3T25OnzocxzC+SfggcQeZQI+3lQhV2wtRDtXicz+NH/a9W0D6X8XOJEgtaJ3JIwWYz 0jT7patc6OL0g2o6Npmso9mSUvCP5Z1FQQy4rdiK7WjNQ2UiRPYHdbogs9YtHkCixFqM hMZTyQFGP0PNlAEncbhpl1it3ifRFcOKOiKQYuJQ4KQCw3bbdC4fC8ZajwMk1ryHFjPP 2JNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=C+DPe6/9Bw8OnikJuQsEcIM5j9HXoXYDGLCNE8ijtnM=; b=JJI+aJwXRqLV6u31kzI/+q2rK6PuKEfleRFO3WQD5OMQmwQbjw5gx41P2blEDSAvEX eV1KoYBkcdSE4IwhWhuAFBu6D/WoGJaeCbvUVSFe4Jh8P1q0wjqZFdYAMKCOL3nlPJuV 3XyX31UOv3UT6aWwR5mkoN1CbUDBlavriI7XkPZ8gemmWMjXMCjeSKGhiZ79CJB2Dzsd GInmaNrAiZUMF0QNjz2U4B5CpuuMR39+bWqv8aZMIK+3QDhL7dJToEg8i0NhzLD3O/ZD AWlFDTcqKsRoQSz1yVMudS9V74xRF926gNtRR3Jc7gMEB5lPcKGxGYCWRz63WTyO3qYu RbLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=QDTvWDko; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z18-20020a170903019200b001892e5980a7si24923715plg.405.2023.01.20.04.47.53; Fri, 20 Jan 2023 04:48:05 -0800 (PST) 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=QDTvWDko; 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 S230282AbjATMrZ (ORCPT + 99 others); Fri, 20 Jan 2023 07:47:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229540AbjATMrW (ORCPT ); Fri, 20 Jan 2023 07:47:22 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3819911674; Fri, 20 Jan 2023 04:47:22 -0800 (PST) Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30KCDFrG008927; Fri, 20 Jan 2023 12:47:15 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=C+DPe6/9Bw8OnikJuQsEcIM5j9HXoXYDGLCNE8ijtnM=; b=QDTvWDko6Gwfv5509GEeDquLIuJc42K+jWv+aIGQpQpzRZ5A9FojMjMKkywsMRh2B7Dv mTFSdP4zl/Ljjl1VIsJSraFv5iyf1Jr4CBYdiaQH3HnX7ury0kX0mUGxh14wq4W7GSqK Mk4xgFes/wd5dNxlXDxHMIJ1Swvuk7bR3Bv0wxfYA8LQy4jXX99KOfldn+KiD6Lz9drx p6PhhPi0CNhSU9ej29tg4+ejQ/akNt4LqBGn30nk3baplPLg2XhA9RRuElKW1N3s9QlO j9muF62GhNZjIZxGuqXUdhmTzw/BAbRmMNuCXo/ONfircP2UUxsoLwhQV3YwRw3lDLt9 eQ== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3n7q858d79-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 Jan 2023 12:47:15 +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 30KClEQ1029613 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 Jan 2023 12:47:14 GMT Received: from hu-srivasam-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.36; Fri, 20 Jan 2023 04:47:09 -0800 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , , , , CC: Srinivasa Rao Mandadapu Subject: [PATCH v5 2/6] dt-bindings: clock: lpassaudiocc-sc7280: Add binding headers for lpasscc Date: Fri, 20 Jan 2023 18:16:42 +0530 Message-ID: <1674218806-7711-3-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1674218806-7711-1-git-send-email-quic_srivasam@quicinc.com> References: <1674218806-7711-1-git-send-email-quic_srivasam@quicinc.com> MIME-Version: 1.0 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: 9vNP3aP8TuiBGp0x0kA7j9BU5FICNTL4 X-Proofpoint-GUID: 9vNP3aP8TuiBGp0x0kA7j9BU5FICNTL4 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-01-20_08,2023-01-20_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 suspectscore=0 spamscore=0 malwarescore=0 priorityscore=1501 clxscore=1015 adultscore=0 phishscore=0 lowpriorityscore=0 bulkscore=0 mlxlogscore=871 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301200120 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755545741644230055?= X-GMAIL-MSGID: =?utf-8?q?1755545741644230055?= Add binding headers for lpasscc clocks to merge lpasscc clocks into lpass_aon clk_regmap structure. Signed-off-by: Srinivasa Rao Mandadapu Acked-by: Krzysztof Kozlowski --- include/dt-bindings/clock/qcom,lpassaudiocc-sc7280.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/dt-bindings/clock/qcom,lpassaudiocc-sc7280.h b/include/dt-bindings/clock/qcom,lpassaudiocc-sc7280.h index 22dcd47..c72a980 100644 --- a/include/dt-bindings/clock/qcom,lpassaudiocc-sc7280.h +++ b/include/dt-bindings/clock/qcom,lpassaudiocc-sc7280.h @@ -41,6 +41,8 @@ #define LPASS_AON_CC_TX_MCLK_CLK 8 #define LPASS_AON_CC_TX_MCLK_RCG_CLK_SRC 9 #define LPASS_AON_CC_VA_MEM0_CLK 10 +#define LPASS_Q6_AHBM_CLK 11 +#define LPASS_Q6_AHBS_CLK 12 /* LPASS_AON_CC power domains */ #define LPASS_AON_CC_LPASS_AUDIO_HM_GDSC 0 From patchwork Fri Jan 20 12:46:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivasa Rao Mandadapu X-Patchwork-Id: 46332 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp178095wrn; Fri, 20 Jan 2023 04:48:51 -0800 (PST) X-Google-Smtp-Source: AMrXdXvExpYGjcKFDjCGU6d2Bv7Crj048mZ8NNfUOVwtTfcLMhy43wgK4lkhLoembAh5ECYSJEiF X-Received: by 2002:a17:902:e205:b0:189:c8d9:ed30 with SMTP id u5-20020a170902e20500b00189c8d9ed30mr12529551plb.24.1674218931391; Fri, 20 Jan 2023 04:48:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674218931; cv=none; d=google.com; s=arc-20160816; b=L3pnOdPJH9V/dhbu2UrG7R7gVWK6vagy1wFCpFG/Ko0XtoyJapru4BKSDCBRtos2UU TxRxdQ/oy4UqR/cDfl9G25vKbl9iqP0FF5vkndks3qIUTM4KzdKMjez/xeOw0DpjNON/ Uw98yHxA2cVX14JtB+6Z+Qvwnk+YqQzJJnB57FrXKU9vuhutn4GlVyQdBRjEMHyFqSvT m7qqMQbyB3DYLnAVPhLdnFp8d4vk9X2baY8yaR2wiwHLtHLFj9XVhVIjd+Aq6kLqaWCH u1vZs8X7Gr5JziEmZe+qRkaCLiZABLqHrLH9vyi5gGbYeDUuZHrvr6jWFKsLpaQeVR/Z ELTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=lmeM+DB2VDIPrS3hzzoUz5qgNKJjawV/XSN9MCTs++0=; b=ZITaSsXyv7HHD6tCvPMLVq4LJIcdQMICMQICFg6se7KpOkoLxUJ/MA/cbzarqtEBUs X23SbI3Mn1GSPruXI+T1JXCJ2DdyD1f3vpQHCh0IM1EZVbB866XXwBTxy77sxzu85bxl GiuQfv7wn6KiFaLvn2bCS/S6OwaMC6HV87cO5uQq1FDdxVMX0LtHoediG52gV1Xm9K2z Mj7w1G4HIToYwQCE0LaQODWxCHokHtP1NgxRPmyPzKPXHHt3pdUmCjsY64JIB9oTGIhU 8Rce9rIzE5gBST6W3VBRPohTHAUZO47yJxZNoOg+9H+bBK0IRBklbSR0I21M3+U8OeiR TU0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=DqgfEIsV; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u10-20020a17090282ca00b001947cc33552si18643634plz.462.2023.01.20.04.48.38; Fri, 20 Jan 2023 04:48:51 -0800 (PST) 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=DqgfEIsV; 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 S230335AbjATMrd (ORCPT + 99 others); Fri, 20 Jan 2023 07:47:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230344AbjATMra (ORCPT ); Fri, 20 Jan 2023 07:47:30 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E356CBF881; Fri, 20 Jan 2023 04:47:26 -0800 (PST) Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30KCCFnt000437; Fri, 20 Jan 2023 12:47:20 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=lmeM+DB2VDIPrS3hzzoUz5qgNKJjawV/XSN9MCTs++0=; b=DqgfEIsV0kjz8q0Jq+Et7b2GCPhpJgZJRYdf8Gvcqgv6Nslzs4t09ftaDxxhuDX8E5RJ jzLU4s0couwQWv6aKbBb4lleoCkkPSeUa4HtkfD80xjHBzvLTBCIxwob6N7EM7BZ9GxL 7VXFJkCXQ/PInyOVCUEbWg9KmjP9jBOSfy2FmlK7pkXaF3sZExf+K9uFpR3sWZooJfYQ MAJv7wczrkf5Akd0vkkNWjZMst4p9DEpqCCOwVGfHh5rKg0iMc4wmERvRQZgHbELWzX7 Ev2XPfiEg543lzM6cxtmqoQw7vKKhhSuGec7f4/kHEHiremM/0ruAAK02GR7djmPX7GR qA== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3n6r59ccuc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 Jan 2023 12:47:20 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 30KClJ4r030854 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 Jan 2023 12:47:19 GMT Received: from hu-srivasam-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.36; Fri, 20 Jan 2023 04:47:14 -0800 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , , , , CC: Srinivasa Rao Mandadapu Subject: [PATCH v5 3/6] clk: qcom: lpasscc-sc7280: Skip qdsp6ss clock registration Date: Fri, 20 Jan 2023 18:16:43 +0530 Message-ID: <1674218806-7711-4-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1674218806-7711-1-git-send-email-quic_srivasam@quicinc.com> References: <1674218806-7711-1-git-send-email-quic_srivasam@quicinc.com> MIME-Version: 1.0 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: OfKaqCMV2l1p2lO9TlryE9jhZn_jTG96 X-Proofpoint-GUID: OfKaqCMV2l1p2lO9TlryE9jhZn_jTG96 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-01-20_08,2023-01-20_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 clxscore=1015 mlxscore=0 mlxlogscore=999 malwarescore=0 priorityscore=1501 bulkscore=0 suspectscore=0 phishscore=0 adultscore=0 spamscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301200120 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755545790206237935?= X-GMAIL-MSGID: =?utf-8?q?1755545790206237935?= The qdsp6ss memory region is being shared by ADSP remoteproc device and lpasscc clock device, hence causing memory conflict. As the qdsp6ss clocks are being enabled in remoteproc driver, skip qdsp6ss clock registration if "qcom,adsp-pil-mode" is enabled. Fixes: 4ab43d171181 ("clk: qcom: Add lpass clock controller driver for SC7280") Signed-off-by: Srinivasa Rao Mandadapu Tested-by: Mohammad Rafi Shaik Reviewed-by: Stephen Boyd --- drivers/clk/qcom/lpasscc-sc7280.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/clk/qcom/lpasscc-sc7280.c b/drivers/clk/qcom/lpasscc-sc7280.c index 5c1e17b..85dd5b9 100644 --- a/drivers/clk/qcom/lpasscc-sc7280.c +++ b/drivers/clk/qcom/lpasscc-sc7280.c @@ -118,12 +118,14 @@ static int lpass_cc_sc7280_probe(struct platform_device *pdev) goto destroy_pm_clk; } - lpass_regmap_config.name = "qdsp6ss"; - desc = &lpass_qdsp6ss_sc7280_desc; + if (!of_property_read_bool(pdev->dev.of_node, "qcom,adsp-pil-mode")) { + lpass_regmap_config.name = "qdsp6ss"; + desc = &lpass_qdsp6ss_sc7280_desc; - ret = qcom_cc_probe_by_index(pdev, 0, desc); - if (ret) - goto destroy_pm_clk; + ret = qcom_cc_probe_by_index(pdev, 0, desc); + if (ret) + goto destroy_pm_clk; + } lpass_regmap_config.name = "top_cc"; desc = &lpass_cc_top_sc7280_desc; From patchwork Fri Jan 20 12:46:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivasa Rao Mandadapu X-Patchwork-Id: 46330 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp177901wrn; Fri, 20 Jan 2023 04:48:19 -0800 (PST) X-Google-Smtp-Source: AMrXdXs+Ne6OU2lRrxTnomPuGcjQbzKgd9txXlkf/iQYNPZRjWayM/QcCazNUBH4uRZDHq02EaK3 X-Received: by 2002:a05:6a00:10:b0:576:a74a:13c3 with SMTP id h16-20020a056a00001000b00576a74a13c3mr17307456pfk.1.1674218899531; Fri, 20 Jan 2023 04:48:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674218899; cv=none; d=google.com; s=arc-20160816; b=QYhUsqsZ8+ubuRSXAgvs8LFTdTqgl0+6o3amBoAyyD67kQgJ6PfBYYKccm3WDfeuE5 2g0orNhr7T0HfXnaAI2qDDZejKoBuvKbwRhff2PJc7HM5nsZK0/NlWNYb/hozKyQAm5w RClmookfzUegteicoMjLUqhaNTNC56vAznWRRZFY+R7IPf8cwNmjlJvrYFiVy/gre7U2 m3BFwAjLCpCKbmNyzjo7HETtkGQBbjOZO4nPTaIwJvlyZyKEGUaIrYYrtGJ+cWK0B7gQ 3KvS7GsvtrE+UkfPtQe2NntVJVZAHiqHT/ON+HNf0VjXgf0iV5l0qI/kXTAD453OULu3 RKVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=It6HwbxzBzijiUrWxDwnPsxlQeS2oJacAX0qTbCGG8Y=; b=xHd/SDM5FJqmuGt2V53vLLeP6arM0h7ysiWi9rnrWGeYKNqn0j1BsupKsHlxyhgZgl K7W054STE8wfuf/fg65yMH9H8IBMPxiafJyErmg+nEJpDEwHLlvFX7vIokGtcQy6fJnT y48jQhL+H03Kvre2VAKBDZSMUUM2TFQO5Owwhs189voQ270WiaacGQmPyCh154cAMjz2 YryJln8P6XxwqF/qua/G9ZvS3rJ9QJfUywUDzoQ5ai1qTvyt+Hw4M/rvWJ+FvXNOqFVT LCA970bfLG0vv97zqGLR914mnyHvMdS89tkqOzK0hDeB+LJsJGweVsgi9oeILUeJjhHD hy0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Itxo0snF; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s12-20020a056a00194c00b0058dc1d84b4asi4425060pfk.52.2023.01.20.04.48.05; Fri, 20 Jan 2023 04:48:19 -0800 (PST) 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=Itxo0snF; 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 S230343AbjATMrm (ORCPT + 99 others); Fri, 20 Jan 2023 07:47:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230353AbjATMrj (ORCPT ); Fri, 20 Jan 2023 07:47:39 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 930B0BD15F; Fri, 20 Jan 2023 04:47:31 -0800 (PST) Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30KCCmE2004209; Fri, 20 Jan 2023 12:47:25 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=It6HwbxzBzijiUrWxDwnPsxlQeS2oJacAX0qTbCGG8Y=; b=Itxo0snFMZ9QCUSKKeozqmWbbZn1ttt4kXib8KsEmVV32DuojRCzVDQHay8clL70Q3Qc XDNaPr0lyH6tsB2MuuWBZDXWN+1J5kXZFeP3WmFlB0r+Y/4TT0VmQ5eXk9immGau0ye/ 6oJAb+PvKfNnujoYBSHz/OB7ktFA2OD6SW8E90b1yYcIW5B0KUBMldc20UD2XPTkcxPH OA2N+NyYsd0qfA/qZ/7Q+C9hxy5CgrPDukOjoaYhGGAFHu0B6mA/I3LKxn0VpqgUgNwf zonV7KUJvQvI9t5rmEzI8x7qAE+wiK66upqpNtIqBWSlBK+Hhz5rW8JOFlHAFJLQixos MA== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3n6r59ccug-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 Jan 2023 12:47:24 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 30KClOCV030904 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 Jan 2023 12:47:24 GMT Received: from hu-srivasam-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.36; Fri, 20 Jan 2023 04:47:19 -0800 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , , , , CC: Srinivasa Rao Mandadapu Subject: [PATCH v5 4/6] clk: qcom: lpasscorecc-sc7280: Skip lpasscorecc registration Date: Fri, 20 Jan 2023 18:16:44 +0530 Message-ID: <1674218806-7711-5-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1674218806-7711-1-git-send-email-quic_srivasam@quicinc.com> References: <1674218806-7711-1-git-send-email-quic_srivasam@quicinc.com> MIME-Version: 1.0 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: hrlB-NF6tcFvqI0BADlIskkLS3HtcgY_ X-Proofpoint-GUID: hrlB-NF6tcFvqI0BADlIskkLS3HtcgY_ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-01-20_08,2023-01-20_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 clxscore=1015 mlxscore=0 mlxlogscore=999 malwarescore=0 priorityscore=1501 bulkscore=0 suspectscore=0 phishscore=0 adultscore=0 spamscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301200120 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755545756836817901?= X-GMAIL-MSGID: =?utf-8?q?1755545756836817901?= Skip lpasscorecc clocks registration for ADSP based platforms as it's causing NOC errors when ADSP based clocks are enabled. Signed-off-by: Srinivasa Rao Mandadapu Tested-by: Mohammad Rafi Shaik --- drivers/clk/qcom/lpasscorecc-sc7280.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/clk/qcom/lpasscorecc-sc7280.c b/drivers/clk/qcom/lpasscorecc-sc7280.c index 6ad19b0..3aa16d8 100644 --- a/drivers/clk/qcom/lpasscorecc-sc7280.c +++ b/drivers/clk/qcom/lpasscorecc-sc7280.c @@ -395,6 +395,9 @@ static int lpass_core_cc_sc7280_probe(struct platform_device *pdev) const struct qcom_cc_desc *desc; struct regmap *regmap; + if (of_property_read_bool(pdev->dev.of_node, "qcom,adsp-pil-mode")) + return 0; + lpass_core_cc_sc7280_regmap_config.name = "lpass_core_cc"; lpass_core_cc_sc7280_regmap_config.max_register = 0x4f004; desc = &lpass_core_cc_sc7280_desc; From patchwork Fri Jan 20 12:46:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivasa Rao Mandadapu X-Patchwork-Id: 46331 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp177991wrn; Fri, 20 Jan 2023 04:48:34 -0800 (PST) X-Google-Smtp-Source: AMrXdXvsimihpem9rHnRGiljIyI+DxHf4bYfoPoMATsV/ETL8p7xks4o9I+cJyW1pzPF1+mWBHQ+ X-Received: by 2002:a05:6a21:998c:b0:b0:2b9c:c11a with SMTP id ve12-20020a056a21998c00b000b02b9cc11amr21172131pzb.9.1674218914097; Fri, 20 Jan 2023 04:48:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674218914; cv=none; d=google.com; s=arc-20160816; b=qIdee5iSaciDmSsnd3BEb0st/AcTPWr8CjR45oOdjs3cNO4HwsqyYLcWU4921kWKT1 BVvgUbQb5C3sWP73Gf0cHDGx+hIXJMNaZrbYHxQJlmjTo/k3y7YJgGSjsNBAtbfYbbTq ol8mznGxK3UcKua/2REkTcaEjD38Lkw0mqJHoxHO9HIqdxXrrAiWEGBh1B9n19YPlxMQ ECm1OZA6wC/hA6ymdxYLvfEu75Y3IS+9caOK1sfGtHXtbuvGFKVKq72DG2kyKTq7CXPO DBsmLG+RWO5NPNxDAn1hbiNqBUMJ1WFQVYJ4YAx1ZYTuyh1hircltc5gOEaZndWWx+XP W04g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=DCKrb3P7nekSK9eKi2Ps/31DNO6RV37h11YsJzrBZ24=; b=lqY5XQr/RFb2J/VuqUOpYo7+cAdoqJ170pjuntJE0fkmzroZJRrTynXhFAkFsDLqjF 4EuTwVUyAcrfxSnu9doq13OWLEcaDzAqPLNiEBpWADgJFSBNpgdTyKkdg2t7UFLEWjQF O1aJjNt7pH6SoY7q3bzaZ24bvORWPYoEf45+UnCg0fD/WDC/IRJfiUX7z1En/Yz0uyZ/ Ag/nldWBvHZX731SuTbK9GM0zarVdHsySbMIeAxAnrmwxpxMCVcMkN3eEmpjW22CiuCS 018p74wEeS7+nBdp5D9bdE92EM0sc/7REEAk67xGHbCf9EdHp0xMU/P8hMURWL9Jyref OeXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="GR/kblml"; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x26-20020a63171a000000b004cd02a7bd53si15752488pgl.638.2023.01.20.04.48.22; Fri, 20 Jan 2023 04:48:34 -0800 (PST) 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="GR/kblml"; 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 S230360AbjATMsC (ORCPT + 99 others); Fri, 20 Jan 2023 07:48:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230368AbjATMrz (ORCPT ); Fri, 20 Jan 2023 07:47:55 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E20C85FF9; Fri, 20 Jan 2023 04:47:36 -0800 (PST) Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30KClUMo018877; Fri, 20 Jan 2023 12:47:30 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=DCKrb3P7nekSK9eKi2Ps/31DNO6RV37h11YsJzrBZ24=; b=GR/kblmlg5HnMw2iPhtyptJ/KspT1tioCxc2ViF/0hCFsKVNDHzqPHaNqQMSg5Wh9kCb mCNEHD9Q4CQRl89E0pW2hwKL7cnP5n/I2Bo70p/E5FGR/hrr1A4ogIbspbt6WB1bTJoo kD/a5KbLgErUmqLqYwr+slfRobOMkLXow3xI0k+ezYRchOnnT1Mp3Fz4wb/gF2O8IJLP wq8Zj6SKigv8EZFzhO68NAVB5NQ1onNUwrmoXRvfLRO/395iU2vQIM9gDn5qVI4A1AMU s1ctnXKNaP3tpbMPPAOO0CKgk7O4rzWmh+/ikW2dSXoE9FuXBZLC5nWv/6ktTK11zG+B 2Q== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3n6xktkupx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 Jan 2023 12:47:30 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 30KClT4M024482 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 Jan 2023 12:47:29 GMT Received: from hu-srivasam-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.36; Fri, 20 Jan 2023 04:47:24 -0800 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , , , , CC: Srinivasa Rao Mandadapu Subject: [PATCH v5 5/6] clk: qcom: lpassaudiocc-sc7280: Merge lpasscc into lpass_aon Date: Fri, 20 Jan 2023 18:16:45 +0530 Message-ID: <1674218806-7711-6-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1674218806-7711-1-git-send-email-quic_srivasam@quicinc.com> References: <1674218806-7711-1-git-send-email-quic_srivasam@quicinc.com> MIME-Version: 1.0 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: 1sMRpx3o9B9YR10jVFIRygFSeNwPw3OA X-Proofpoint-GUID: 1sMRpx3o9B9YR10jVFIRygFSeNwPw3OA X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-01-20_08,2023-01-20_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 adultscore=0 clxscore=1015 spamscore=0 mlxlogscore=647 lowpriorityscore=0 bulkscore=0 malwarescore=0 priorityscore=1501 mlxscore=0 phishscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301200120 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755545772083599427?= X-GMAIL-MSGID: =?utf-8?q?1755545772083599427?= Merge lpasscc clocks into lpass_aon clk_regmap structure as they are using same register space. In existing implementation, lpasscc clocks and lpass_aon clocks are being registered exclusively and overlapping if both of them are to be used. This is required to avoid such overlapping and to register lpasscc clocks and lpass_aon clocks simultaneously. Fixes: 4ab43d171181 ("clk: qcom: Add lpass clock controller driver for SC7280") Signed-off-by: Srinivasa Rao Mandadapu Tested-by: Mohammad Rafi Shaik --- drivers/clk/qcom/lpassaudiocc-sc7280.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/clk/qcom/lpassaudiocc-sc7280.c b/drivers/clk/qcom/lpassaudiocc-sc7280.c index 1339f92..732ecc4 100644 --- a/drivers/clk/qcom/lpassaudiocc-sc7280.c +++ b/drivers/clk/qcom/lpassaudiocc-sc7280.c @@ -660,6 +660,8 @@ static struct clk_regmap *lpass_aon_cc_sc7280_clocks[] = { [LPASS_AON_CC_TX_MCLK_2X_CLK] = &lpass_aon_cc_tx_mclk_2x_clk.clkr, [LPASS_AON_CC_TX_MCLK_CLK] = &lpass_aon_cc_tx_mclk_clk.clkr, [LPASS_AON_CC_TX_MCLK_RCG_CLK_SRC] = &lpass_aon_cc_tx_mclk_rcg_clk_src.clkr, + [LPASS_Q6_AHBM_CLK] = &lpass_q6ss_ahbm_clk.clkr, + [LPASS_Q6_AHBS_CLK] = &lpass_q6ss_ahbs_clk.clkr, }; static struct gdsc *lpass_aon_cc_sc7280_gdscs[] = { @@ -826,10 +828,12 @@ static int lpass_aon_cc_sc7280_probe(struct platform_device *pdev) return ret; if (of_property_read_bool(pdev->dev.of_node, "qcom,adsp-pil-mode")) { - lpass_audio_cc_sc7280_regmap_config.name = "cc"; - desc = &lpass_cc_sc7280_desc; - ret = qcom_cc_probe(pdev, desc); - goto exit; + res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "cc"); + if (res) { + lpass_audio_cc_sc7280_regmap_config.name = "cc"; + desc = &lpass_cc_sc7280_desc; + return qcom_cc_probe(pdev, desc); + } } lpass_audio_cc_sc7280_regmap_config.name = "lpasscc_aon"; From patchwork Fri Jan 20 12:46:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivasa Rao Mandadapu X-Patchwork-Id: 46334 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp186790wrn; Fri, 20 Jan 2023 05:06:44 -0800 (PST) X-Google-Smtp-Source: AMrXdXs+78mJRY6czNcckxhAj35U7VIdQ5/4uq8LU9sJez1gi8S0kPZZ6BX75HXjamqrVr1kkpcU X-Received: by 2002:a17:907:3f20:b0:7c0:f7b0:9aed with SMTP id hq32-20020a1709073f2000b007c0f7b09aedmr19617159ejc.55.1674220004202; Fri, 20 Jan 2023 05:06:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674220004; cv=none; d=google.com; s=arc-20160816; b=fYFhg8kEJcaR1LoINJgQ3duwGZxtzp/kjFihrMaF7iZ2a1JugRo4AXHofzuCROU/+B B8k3BYYV+EQUYvpzeG+3jy+yYMCFlzH070zN4AK71wTGKay2u9HDTufciIVCj0TrrXga J2spv9WNTgdwslmaSJbfZ7sbBkDzWZruXqQDaffVV80gBI68/dt1ir+s1jjbtqIutVWi +pn0aiSrlU4kzIHdstCcufvjIa0ZacUXmMg5D4ygYR+E8rfakAWZBz3LViYupBSdm/3h 8xS+55HBMuWcV01DGRJkwp86QlgZidUwrRUntXZC9foG3blXKL3nsP+Pt5+q3ayni3+p fQPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=vXi5NSA8pXu6r8itrTtWjr7+Au14TerrSkz8Lx2g/Uk=; b=Z4KPYpI/lHn5JudNuUvo29tT5S1SirNM7Sxwl+D8kP79PJQ1meQoIbW4l8XvQFdMLA cSVFg+mlbG2YCLrlQnA9ZKQItdr9bNtjFZwtavwiCFnnehg01w3Ijh9BBgY1Z5kmHbjG 58GZwL6hr4bP8Gvt4PYi+JU8iWWwnfGo1ysdyufMVOXVdug/aO1Fs5NOtIofANcyYSv2 VcfvRBJU2pl3cASEfU5J9E8YbFxEUllqgXfUXw9cUrdpCo8IjLWTQsaNtEMt4xxEEIkb 4djbdh5Pjml6qucqfv+MbFzINNVAQ2gmHDaXhzuN4UDB46fFSmNzzp1g6bNaB5nNCyzL F+IA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ZEGU9z0D; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xg3-20020a170907320300b007c4fe4301basi44344939ejb.983.2023.01.20.05.06.18; Fri, 20 Jan 2023 05:06:44 -0800 (PST) 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=ZEGU9z0D; 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 S230382AbjATMsF (ORCPT + 99 others); Fri, 20 Jan 2023 07:48:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230349AbjATMsB (ORCPT ); Fri, 20 Jan 2023 07:48:01 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3B9636FC7; Fri, 20 Jan 2023 04:47:41 -0800 (PST) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30KCJY9M026642; Fri, 20 Jan 2023 12:47:35 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=vXi5NSA8pXu6r8itrTtWjr7+Au14TerrSkz8Lx2g/Uk=; b=ZEGU9z0DJ0OkJfmsIwwCc7wKrvT62pdiwjxseQqGUG6l5zYog8Js3uNwyWcBxOaUcvgw ZKJI/CpdqVT5lUZLAA0cS9XCg6dy5q45zR6yOwaBjF2cebs4ooqe7g5mQQbTxDunJ2qI Dd1TyOgofpnr6/zvcfwaiH4vL+EmLjhP+hPEFF49zRypqQ/D0WlgfAHkwPOzyTKbOL4o tRX+GEwXkm3MbRDdAas0KrZIUuhW0sMuE9lkON0d19heGc7QArHh8XjFVLR6FnaJMv2r OLNALeo13Uzo4y+P23dAlhD15lfSOK/t8EQMZh40KInNlwdMJjKEE/gsful+QaLHWB5Z eA== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3n7nuxrhxw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 Jan 2023 12:47:34 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 30KClYck024505 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 Jan 2023 12:47:34 GMT Received: from hu-srivasam-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.36; Fri, 20 Jan 2023 04:47:29 -0800 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , , , , CC: Srinivasa Rao Mandadapu Subject: [PATCH v5 6/6] clk: qcom: lpassaudiocc-sc7280: Skip lpass_aon_cc_pll config Date: Fri, 20 Jan 2023 18:16:46 +0530 Message-ID: <1674218806-7711-7-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1674218806-7711-1-git-send-email-quic_srivasam@quicinc.com> References: <1674218806-7711-1-git-send-email-quic_srivasam@quicinc.com> MIME-Version: 1.0 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-GUID: i_dsfSfQGFXz7zU_iddcEa9-cX3kgBFY X-Proofpoint-ORIG-GUID: i_dsfSfQGFXz7zU_iddcEa9-cX3kgBFY X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-01-20_08,2023-01-20_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 mlxlogscore=999 malwarescore=0 impostorscore=0 adultscore=0 priorityscore=1501 spamscore=0 bulkscore=0 phishscore=0 mlxscore=0 clxscore=1015 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301200120 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755546915174948860?= X-GMAIL-MSGID: =?utf-8?q?1755546915174948860?= Skip lpass_aon_cc_pll configuration for ADSP based platforms based on qcom,adsp-pil-mode property. This is to avoid ADSP out of reset fail. Signed-off-by: Srinivasa Rao Mandadapu Tested-by: Mohammad Rafi Shaik --- drivers/clk/qcom/lpassaudiocc-sc7280.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clk/qcom/lpassaudiocc-sc7280.c b/drivers/clk/qcom/lpassaudiocc-sc7280.c index 732ecc4..12b15de 100644 --- a/drivers/clk/qcom/lpassaudiocc-sc7280.c +++ b/drivers/clk/qcom/lpassaudiocc-sc7280.c @@ -846,7 +846,8 @@ static int lpass_aon_cc_sc7280_probe(struct platform_device *pdev) goto exit; } - clk_lucid_pll_configure(&lpass_aon_cc_pll, regmap, &lpass_aon_cc_pll_config); + if (!of_property_read_bool(pdev->dev.of_node, "qcom,adsp-pil-mode")) + clk_lucid_pll_configure(&lpass_aon_cc_pll, regmap, &lpass_aon_cc_pll_config); ret = qcom_cc_really_probe(pdev, &lpass_aon_cc_sc7280_desc, regmap); if (ret) {