Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4248428rdb; Thu, 14 Sep 2023 17:12:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHXmlyY6Da4YOQ6QRxyfPhLjdYwW6h02eZ2Vg1w2gg+McsQauem7EEd/QVtX2iwGlkKklNj X-Received: by 2002:a05:6a00:851:b0:68f:ca89:9c71 with SMTP id q17-20020a056a00085100b0068fca899c71mr217317pfk.10.1694736730014; Thu, 14 Sep 2023 17:12:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694736730; cv=none; d=google.com; s=arc-20160816; b=TPdOgPpVL+rmnRnvX8B2s2Ih3ueSb8URGTGhvuxu0sBypJHWyhotFIik+NtaBCN38x bQYLfMZLU1ErM34refr/ti5aVM96/k0r9voPogxchnn8kz7O6FGNzTSfiaeOtiWPLCE1 QAI/gi43v/T8MLBn0LEyQMZb17Wr0TJ7q55LXmwE7ktNqdQdqPu+NIyIsk6/syaadvT+ g+Iit8rncEPVKPMG3E9UjkEQHwRwzdo0BAuAdyV65cGfBUsu+PISpzrPCwNIYnx6lYV/ za5ERPRVCRluFlrpywaI3eVEnFgFUO8MOO8Q8WRdTsDNcbN/mn/BQaul4g3N26+hbq3d hLuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Yp6S/Y75kMgrlTIQpeC4sOoOh9eolwxJHQpMwOxlpbI=; fh=8tgybbaVhSkauar+34G+pTJkmvxafp0S1qbhFbkwUMw=; b=pFyNNfq+JBE1hDkPvrXxQ2tbwq9AV6NSRV4KJ+pvB4jTB+fRgNajZmc8C/tYVJTwZ5 iW1VGLQvDHaPgRRr7aq04tBDG1Pzh+VA2HW8p4o0Cg6KjpojdLrwnoBf79lFcbiQa9pR I1iNtb75tjH5abtPc+25g4VYmVM4Maqdv9qsGdV9c+KN12fpvdAw/ucoi5p+3QFcjGyg yePv81XErwyO0HNwt8Rh32iW4y+1NQ0Ul/H1gur6ZA66ED4lMQ4GEl0QgypUapdsGkjH T8daM4RRgxsUeSR3z3YPaiuya9eW3fL+LQKvTJ5Q7mFFs2D7HrONPN0LKiolFBEoE5uP tbcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=oZSdr2zT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id ds4-20020a056a004ac400b0068a14066ae2si2348761pfb.51.2023.09.14.17.12.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 17:12:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=oZSdr2zT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id E928B81CE856; Thu, 14 Sep 2023 00:53:09 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235796AbjINHxD (ORCPT + 99 others); Thu, 14 Sep 2023 03:53:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234161AbjINHxC (ORCPT ); Thu, 14 Sep 2023 03:53:02 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D36101BF6; Thu, 14 Sep 2023 00:52:58 -0700 (PDT) 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 38E6JbYW025804; Thu, 14 Sep 2023 07:52:44 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=Yp6S/Y75kMgrlTIQpeC4sOoOh9eolwxJHQpMwOxlpbI=; b=oZSdr2zTvvWJD5oji3f+6XT2WeqtoFnLLRud27HFt4QRqBUFfu9qpAkVMi/L+iwzfDdF KckGaYYKqlzt5l28HB0io8w5/C50PcjieKXe4fK0PAYu5byE+aVzk5JuLvni0upjd6HS BqQa43v7ZB6l2Rz6bRkMWQNUvz8VozmCygmqXiYiVfDa77aCDWJIZarBhtb/vnrg4Pb7 Huf5/hLs7kpiT7joDix5Q4h/DmDeLKijrQTHMviQ78Of30xTROOAfg1Spt7AnL2Rkuxg vvplOcQQ3TDhI7VSNvN0iKZYnM+BYup2Css5zUFjm0HZHHrKC8cvdNMNVaR4BCQnhMKF 8g== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3t3qqa8wpa-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Sep 2023 07:52:44 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 38E7qhWF008178 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Sep 2023 07:52:43 GMT Received: from [10.253.32.174] (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Thu, 14 Sep 2023 00:52:39 -0700 Message-ID: <1a1922ec-a8ae-4a42-d8a9-921450592213@quicinc.com> Date: Thu, 14 Sep 2023 15:52:36 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH v7 4/4] clk: qcom: add clock controller driver for qca8386/qca8084 To: Krzysztof Kozlowski , , , , , , , , , , , CC: , , , , References: <20230914054639.13075-1-quic_luoj@quicinc.com> <20230914054639.13075-5-quic_luoj@quicinc.com> <357805c5-bedb-8972-bcf1-fabaaaf90ad9@linaro.org> Content-Language: en-US From: Jie Luo In-Reply-To: <357805c5-bedb-8972-bcf1-fabaaaf90ad9@linaro.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: 8o6Trep0c22O8tZ9bjLSKwO9LYIYkC5i X-Proofpoint-GUID: 8o6Trep0c22O8tZ9bjLSKwO9LYIYkC5i X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-14_05,2023-09-13_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 lowpriorityscore=0 mlxscore=0 suspectscore=0 phishscore=0 malwarescore=0 bulkscore=0 priorityscore=1501 clxscore=1015 mlxlogscore=789 spamscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309140068 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 14 Sep 2023 00:53:10 -0700 (PDT) X-Spam-Status: No, score=-2.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email On 9/14/2023 2:15 PM, Krzysztof Kozlowski wrote: > On 14/09/2023 07:46, Luo Jie wrote: >> The clock controller driver of qca8386/qca8084 is registered >> as the MDIO device, the hardware register is accessed by MDIO bus >> that is normally used to access general PHY device, which is >> different from the current existed qcom clock controller drivers >> using ioremap to access hardware clock registers. >> >> MDIO bus is common utilized by both qca8386/qca8084 and other >> PHY devices, so the mutex lock mdio_bus->mdio_lock should be >> used instead of using the mutex lock of remap. >> >> To access the hardware clock registers of qca8386/qca8084, there >> is special MDIO frame sequence(three MDIO read/write operations) >> need to be sent to device. >> >> Signed-off-by: Luo Jie >> --- >> drivers/clk/qcom/Kconfig | 9 + >> drivers/clk/qcom/Makefile | 1 + >> drivers/clk/qcom/nsscc-qca8k.c | 2178 ++++++++++++++++++++++++++++++++ >> 3 files changed, 2188 insertions(+) >> create mode 100644 drivers/clk/qcom/nsscc-qca8k.c >> >> diff --git a/drivers/clk/qcom/Kconfig b/drivers/clk/qcom/Kconfig >> index 865db5202e4c..c95ada6a1385 100644 >> --- a/drivers/clk/qcom/Kconfig >> +++ b/drivers/clk/qcom/Kconfig >> @@ -203,6 +203,15 @@ config IPQ_GCC_9574 >> i2c, USB, SD/eMMC, etc. Select this for the root clock >> of ipq9574. >> >> +config IPQ_NSSCC_QCA8K >> + tristate "QCA8K(QCA8386 or QCA8084) NSS Clock Controller" >> + depends on MDIO_BUS || COMPILE_TEST > > This is SoC is for both ARM and ARM64 worlds? > Thanks Krzysztof for the comments. This chip is independent of the ARCH, which just depends on the MDIO bus, both mips and arm are supported. >> + help >> + Support for NSS(Network SubSystem) clock controller on >> + qca8386/qca8084 chip. >> + Say Y or M if you want to use network features of switch or >> + PHY device. Select this for the root clock of qca8k. >> + > > > Best regards, > Krzysztof >