Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp1076449rwl; Thu, 10 Aug 2023 06:13:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEy6lGWezd75DahQy9/3EgidBPvZDoiLbENOpGuUlQ9kr80DgjKkPMHx5W/k7XVgrZvGt0u X-Received: by 2002:a17:906:18a2:b0:99c:7301:4d69 with SMTP id c2-20020a17090618a200b0099c73014d69mr2087920ejf.20.1691673185171; Thu, 10 Aug 2023 06:13:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691673185; cv=none; d=google.com; s=arc-20160816; b=QNi1QePi+vF546xJNVkBs2338LXS3cBK8W4tp5sziMqDoe28LAHUuqTYcV/vqtkPQQ emewTkJEY0ndD/9rxoG6OPUCZnTV2Ud4fSv8iIhLscjyBjXj4WrXuBcOXoighcYi/GCP WNPLlma03p9Ubsc+Nt6hAEC1azvjrqnPIKRYOaDmlAHpAZSYN158G8eU01WL2RWGEfv8 rG8LkASHk6dmCFHivy9+IdZdwQDMZ0gW7lFK5T5pJGE284KqRRzFnj1I2qC3GFB1ZWjv 9MtYmztoAgWUuxSIGFN2xv2QBLmEi0i3rraJTxh0PKQCNWpgpA/ZqpcZ+PcCvddjliEV lSxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=RnPMVJ0E3kytxu+Z1p+pHlrHkeIXYvpU/cENA2V4ecs=; fh=tbFb/9iBRmv6GJ7CH4MdCnikCZK6ZCIRkpSaKXxvK6E=; b=yctx8rJeLnZFkzw8sJKqJ3TqXlnAqzoAKGEWr4M4miSUL6NdD1xTetSvAVxFWymJx+ Fjr1Vg82niprYy5wys+1nYhWSNiJbICDi89b1hm9fbWPRus0CppisC/c/ACTpCCazUbQ zlvMRBY+jkfUpwDgDAprYA/0uBxbTesTUCZgIMXZKahgMdRfWRnDO8b/lLZ5B39jq1Qc h/Se+zp5xoFE1FwmlCN0dTm3cmQAhJmSNfIpx8Za0yp2diJ+xd7stlTGwAmDHErBPWgl mpgHIgAZztpfSEzdZ4QcnpL/uJ7uplnUVv2CVBw8+m6EZ0ICVRHSQPXQumavZzCAFvzl U1VQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=cCxdTu9J; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sd17-20020a170906ce3100b0099bcb907318si1621873ejb.351.2023.08.10.06.12.38; Thu, 10 Aug 2023 06:13:05 -0700 (PDT) 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=cCxdTu9J; 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 S234648AbjHJLyr (ORCPT + 99 others); Thu, 10 Aug 2023 07:54:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229848AbjHJLyq (ORCPT ); Thu, 10 Aug 2023 07:54:46 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2941136; Thu, 10 Aug 2023 04:54:45 -0700 (PDT) Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 37AALjkF021976; Thu, 10 Aug 2023 11:54:36 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=qcppdkim1; bh=RnPMVJ0E3kytxu+Z1p+pHlrHkeIXYvpU/cENA2V4ecs=; b=cCxdTu9JxbbXJNlRGTYmiMl45mz3yem+NBt1f1YqO7fUwAQDln1qDMQSPh/49dPFArAv 7llJwT2m8lKYxdPljHkcUTMZUG5O0bIEVZczVxs+cg8Jz7uDhFhR8jmo8nZm5UMGNJ0l TrKT0IeDJkO0h8QKz2R4Fb6IhXRrSQFbYP/ShG7CqrfZ2tozWqXIPkgxOt8e1Rg+8/Fy jLRxm42jutNoW6Gi3205vBGi8Q+HmJMiAvMC2SqEFt6gQqnRVr3R7dArfbhVZ909zKJh Q/afBW49IzFlTKF6b9NO5nHqdomLfHzseryP7p7jppjlf6cyjfMwJkBTSMNmgr7CScNd 3g== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3scr39gxv5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 10 Aug 2023 11:54:35 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 37ABsYlc024761 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 10 Aug 2023 11:54:34 GMT Received: from akronite-sh-dev02.qualcomm.com (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, 10 Aug 2023 04:54:30 -0700 From: Luo Jie To: , , , , , , , , , , CC: , , , , , Luo Jie Subject: [PATCH v3 0/3] add clock controller of qca8386/qca8084 Date: Thu, 10 Aug 2023 19:54:16 +0800 Message-ID: <20230810115419.25539-1-quic_luoj@quicinc.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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-GUID: 7HeM7SEYPDYkp1_j0BltRtqUPohzB1ZF X-Proofpoint-ORIG-GUID: 7HeM7SEYPDYkp1_j0BltRtqUPohzB1ZF X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-08-10_10,2023-08-10_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 lowpriorityscore=0 malwarescore=0 suspectscore=0 spamscore=0 phishscore=0 adultscore=0 mlxlogscore=999 clxscore=1015 mlxscore=0 impostorscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2308100100 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 qca8xxx is 4 * 2.5GBaseT ports chip, working as switch mode named by qca8386, or working as PHY mode named by qca8084, clock hardware reigster is accessed by MDIO bus. This patch series add the clock controller of qca8363/qca8084, and add the clock ops clk_branch2_mdio_ops to avoid spin lock used during the clock operation of qca8k clock controller where the sleep happens when accessing clock control register by MDIO bus. Changes in v2: * remove clock flag CLK_ENABLE_MUTEX_LOCK. * add clock ops clk_branch2_qca8k_ops. * improve yaml file for fixing dtschema warnings. * enable clock controller driver in defconfig. Changes in v3: * rename clk_branch2_qca8k_ops to clk_branch2_mdio_ops. * fix review comments on yaml file. * use dev_err_probe on driver probe error. * only use the compatible "qcom,qca8084-nsscc". * remove enable clock controller driver patch. Luo Jie (3): clk: qcom: branch: Add clk_branch2_mdio_ops dt-bindings: clock: add qca8386/qca8084 clock and reset definitions clk: qcom: add clock controller driver for qca8386/qca8084 .../bindings/clock/qcom,qca8k-nsscc.yaml | 79 + drivers/clk/qcom/Kconfig | 8 + drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/clk-branch.c | 8 + drivers/clk/qcom/clk-branch.h | 2 + drivers/clk/qcom/nsscc-qca8k.c | 2180 +++++++++++++++++ include/dt-bindings/clock/qcom,qca8k-nsscc.h | 101 + include/dt-bindings/reset/qcom,qca8k-nsscc.h | 75 + 8 files changed, 2454 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/qcom,qca8k-nsscc.yaml create mode 100644 drivers/clk/qcom/nsscc-qca8k.c create mode 100644 include/dt-bindings/clock/qcom,qca8k-nsscc.h create mode 100644 include/dt-bindings/reset/qcom,qca8k-nsscc.h base-commit: 29afcd69672a4e3d8604d17206d42004540d6d5c -- 2.17.1