Message ID | 20230801085352.22873-1-quic_luoj@quicinc.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp2543411vqg; Tue, 1 Aug 2023 02:19:21 -0700 (PDT) X-Google-Smtp-Source: APBJJlG+lQ+nkM4W+XpTKoIy/3Z4WSeA/uS7EWHt/w90HoNPWD6Y1Dxhi36OAgRK4S58bwvecMsc X-Received: by 2002:a05:6a21:789c:b0:13a:3649:dc1a with SMTP id bf28-20020a056a21789c00b0013a3649dc1amr12459356pzc.0.1690881560709; Tue, 01 Aug 2023 02:19:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690881560; cv=none; d=google.com; s=arc-20160816; b=BpU+Q3iQTQK0en1BEmERrxRRqajSPJvqJhULYtStNF0KQBo4xDbCoZEch9qeXWWkF/ JgkIvlusuL6YALMZgxI3cUXHAHLS+HBEv32m0iPXuZTnQ9ciCo9KTzFdBG6/Rqs/iuE7 2VMD1hw2d853FGalEE/OJRxUI6CSLdnYt/x2757wjJj0ooVGoha+MHKzJN5kV3s7oBxQ vWXaiQRaa3dsSA51OHiW1A30/esJG5lo1KnzwfLdfqXESOUIaM6lk1X6QBSUIlHwTwTA JADYtF61XUuQPgSujQhEHI6OyZKBZXbRusF8rQgf93iWNmeIj8lwMYZZXzxXQsiRnVvj czLg== 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=QqdKrxgNGpegtHoX42r1rcywXkR9SeUM/aybOYqB+wk=; fh=WPgq+MfzHooQsZ97CfAnvcZ8hQoQ9nO1y9JOt+qf30c=; b=gx95diB6Xw+OhvRiqV+4XbqbyCCk4Lho5nvN/E42gFNO++934f7vds/kICtPI7UVGO WOVkM3myPsAfeAskKoYfcH81PFVGR3J1WqHYuRGVhKo/PQv0ArPopMnvYktE4QxmXfrm vKw6dNceYW8bpvmnBBpIq9NvazZsPJt2CDvrz6QmlxyQfQy1y9pO+ZW/G5d6gU5w6DmD 80RQwAmvK1Y1mY4F/YlcK6fw90H5i/87O5GdJpZUzahK9ntHK6Qqnldf5PnrowF3zsuy cSB5gD4MA+J5dYBUsvVgs/LRj1qqszqYjO6lkv3P4wOHXRRGvXjf9PujoE2BeJ+VSTTK AqZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=lpJcXKt2; 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 u64-20020a638543000000b0055bc97cc885si8502058pgd.614.2023.08.01.02.18.45; Tue, 01 Aug 2023 02:19:20 -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=lpJcXKt2; 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 S232244AbjHAIym (ORCPT <rfc822;cambridge8321@gmail.com> + 99 others); Tue, 1 Aug 2023 04:54:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231986AbjHAIy2 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 1 Aug 2023 04:54:28 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E9211996; Tue, 1 Aug 2023 01:54:23 -0700 (PDT) Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 37189QSu031114; Tue, 1 Aug 2023 08:54:14 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=QqdKrxgNGpegtHoX42r1rcywXkR9SeUM/aybOYqB+wk=; b=lpJcXKt2LYwWvNLnG5+Uj/RwQFGyjt7v6Rgr3V9s+iBYmRSajhZgo5Sn2qe4S5WHPYRW 7TFfgGMPaB8gY+xUCxLLAjFOaDjZTQnaKzf2PTzAh66mXSoZAxr86tmVU1kRVDzvghMk MySKXDdoFZP079WCpsDsBbqT/SAI/9pniUHhci45/GmGjQO5+HUrk4ojFJGmc7hnRQTO kugWgJp7BjPcikRVTTf3KGcifUqlhMm1Csk7JlCKMR46CB5vnzWkLnl/HB1zhI13aIaZ jEgDZTy11X9v6US+tJZVZghKe022OM868w1JUM+Z024kocz8407up1thr/2IG/z00ahd Ew== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3s6d8gthbr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 01 Aug 2023 08:54:13 +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 3718sC8D016612 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 1 Aug 2023 08:54:12 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; Tue, 1 Aug 2023 01:54:08 -0700 From: Luo Jie <quic_luoj@quicinc.com> To: <agross@kernel.org>, <andersson@kernel.org>, <konrad.dybcio@linaro.org>, <mturquette@baylibre.com>, <sboyd@kernel.org>, <robh+dt@kernel.org>, <krzysztof.kozlowski+dt@linaro.org>, <conor+dt@kernel.org>, <p.zabel@pengutronix.de> CC: <linux-arm-msm@vger.kernel.org>, <linux-clk@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <quic_srichara@quicinc.com>, Jie Luo <quic_luoj@quicinc.com> Subject: [PATCH 0/3] add clock controller of qca8386/qca8084 Date: Tue, 1 Aug 2023 16:53:49 +0800 Message-ID: <20230801085352.22873-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-ORIG-GUID: lO4lk7Ly_MYHmIRXpFMgJbK47cAhbfeB X-Proofpoint-GUID: lO4lk7Ly_MYHmIRXpFMgJbK47cAhbfeB X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-08-01_03,2023-07-31_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 lowpriorityscore=0 bulkscore=0 suspectscore=0 impostorscore=0 spamscore=0 adultscore=0 phishscore=0 priorityscore=1501 clxscore=1011 mlxlogscore=785 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2308010080 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773017823277116332 X-GMAIL-MSGID: 1773017823277116332 |
Series | add clock controller of qca8386/qca8084 | |
Message
Jie Luo
Aug. 1, 2023, 8:53 a.m. UTC
From: Jie Luo <quic_luoj@quicinc.com>
qca8xxx is 4 * 2.5GBaseT ports chip, working as switch mode
named by qca8386, 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 flag CLK_ENABLE_MUTEX_LOCK 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.
Luo Jie (3):
clk: Add the flag CLK_ENABLE_MUTEX_LOCK of enabling clock
dt-bindings: clock: add qca8386/qca8084 clock and reset definitions
clk: qcom: add clock controller driver for qca8386/qca8084
.../bindings/clock/qcom,nsscc-qca8k.yaml | 59 +
drivers/clk/clk.c | 78 +-
drivers/clk/qcom/Kconfig | 8 +
drivers/clk/qcom/Makefile | 1 +
drivers/clk/qcom/nsscc-qca8k.c | 2205 +++++++++++++++++
include/dt-bindings/clock/qcom,nsscc-qca8k.h | 102 +
include/dt-bindings/reset/qcom,nsscc-qca8k.h | 76 +
include/linux/clk-provider.h | 4 +
8 files changed, 2519 insertions(+), 14 deletions(-)
create mode 100644 Documentation/devicetree/bindings/clock/qcom,nsscc-qca8k.yaml
create mode 100644 drivers/clk/qcom/nsscc-qca8k.c
create mode 100644 include/dt-bindings/clock/qcom,nsscc-qca8k.h
create mode 100644 include/dt-bindings/reset/qcom,nsscc-qca8k.h
base-commit: ec89391563792edd11d138a853901bce76d11f44
Comments
On Tue, 01 Aug 2023 16:53:51 +0800, Luo Jie wrote: > QCA8386/QCA8084 includes the clock & reset controller that is > accessed by MDIO bus. Two work modes are supported, qca8386 works > as switch mode, qca8084 works as PHY mode. > > Signed-off-by: Luo Jie <quic_luoj@quicinc.com> > --- > .../bindings/clock/qcom,nsscc-qca8k.yaml | 59 ++++++++++ > include/dt-bindings/clock/qcom,nsscc-qca8k.h | 102 ++++++++++++++++++ > include/dt-bindings/reset/qcom,nsscc-qca8k.h | 76 +++++++++++++ > 3 files changed, 237 insertions(+) > create mode 100644 Documentation/devicetree/bindings/clock/qcom,nsscc-qca8k.yaml > create mode 100644 include/dt-bindings/clock/qcom,nsscc-qca8k.h > create mode 100644 include/dt-bindings/reset/qcom,nsscc-qca8k.h > My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' on your patch (DT_CHECKER_FLAGS is new in v5.13): yamllint warnings/errors: dtschema/dtc warnings/errors: Documentation/devicetree/bindings/clock/qcom,nsscc-qca8k.example.dts:22.11-22: Warning (reg_format): /example-0/clock-controller@24:reg: property has invalid length (4 bytes) (#address-cells == 1, #size-cells == 1) Documentation/devicetree/bindings/clock/qcom,nsscc-qca8k.example.dtb: Warning (pci_device_reg): Failed prerequisite 'reg_format' Documentation/devicetree/bindings/clock/qcom,nsscc-qca8k.example.dtb: Warning (pci_device_bus_num): Failed prerequisite 'reg_format' Documentation/devicetree/bindings/clock/qcom,nsscc-qca8k.example.dtb: Warning (simple_bus_reg): Failed prerequisite 'reg_format' Documentation/devicetree/bindings/clock/qcom,nsscc-qca8k.example.dtb: Warning (i2c_bus_reg): Failed prerequisite 'reg_format' Documentation/devicetree/bindings/clock/qcom,nsscc-qca8k.example.dtb: Warning (spi_bus_reg): Failed prerequisite 'reg_format' /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/clock/qcom,nsscc-qca8k.example.dtb: clock-controller@24: '#power-domain-cells' is a required property from schema $id: http://devicetree.org/schemas/clock/qcom,nsscc-qca8k.yaml# /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/clock/qcom,nsscc-qca8k.example.dtb: clock-controller@24: Unevaluated properties are not allowed ('#clock-cells', '#reset-cells' were unexpected) from schema $id: http://devicetree.org/schemas/clock/qcom,nsscc-qca8k.yaml# doc reference errors (make refcheckdocs): See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20230801085352.22873-3-quic_luoj@quicinc.com The base for the series is generally the latest rc1. A different dependency should be noted in *this* patch. If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date: pip3 install dtschema --upgrade Please check and re-submit after running the above command yourself. Note that DT_SCHEMA_FILES can be set to your schema file to speed up checking your schema. However, it must be unset to test all examples with your schema.