From patchwork Wed Nov 3 06:19:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kavyasree Kotagiri X-Patchwork-Id: 1550126 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=microchip.com header.i=@microchip.com header.a=rsa-sha256 header.s=mchp header.b=aeLEvjd9; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by bilbo.ozlabs.org (Postfix) with ESMTP id 4Hkc7c1Xbwz9sRN for ; Wed, 3 Nov 2021 17:19:56 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231138AbhKCGW3 (ORCPT ); Wed, 3 Nov 2021 02:22:29 -0400 Received: from esa.microchip.iphmx.com ([68.232.153.233]:27413 "EHLO esa.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230152AbhKCGW2 (ORCPT ); Wed, 3 Nov 2021 02:22:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1635920392; x=1667456392; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=F1Uf9//BXN8QrI7mSZkRXU0PdbhDtcfp2rYAmXma7uU=; b=aeLEvjd9JrdHvKh4O841rSKmIrE4eGck13nADU8Ajp7Vce9LtxRgkY74 FtFchpOB/QaW7MdTjQw/r0Kvxg6tVQlyi49/LMWHdy+FDI/RveTto2kSZ aw3alLejA77IpJ/6unRo/jFzOiigE/lPtHZ4bAtmQgwz9MiXmqsm8eJKZ /jWFRXPGMFtR9+5kfn1dQIaHCclMhXeGNEfPwzvJfNNQqnFUFewm4JMjn d1AVyJzJHiI9sseznSzItuL+siIVVpBNlnpaD5978isXtASIEhmfojcyn gvBvqhEWo3LJ2fz2MO5EidGlsO2+3ei0VJYDwO06BhIERy2tXhX3X303E A==; IronPort-SDR: SNO3wbYOLD5Y5XQIBSRUmwt85dNe544lv8Gw4OVyx9S11zC8WFJLEUL3fqqktErxtQsC5db2KW QpkAyy0Xwkh8f35lh3SK+TEdVGe/aisO6gBtzqBQE/GDWqRofNtnlHmgyy3mFK8UAa22uCSBMj sUzIXfsxdiuQGlois9vrVitQSR4wSS1dmUCMUIhXZCyiR5Dgoh+ccoebHbjkatFCPdFJWAAmwb A/DbqS660ewyEzuDaEY4/nylP3qWf0TU5S+2U143hIftINkitnjf4xm2IFkN6x/YBDIDdWEm6j W/CCgpJ5pdwc7mxADCXXmoDr X-IronPort-AV: E=Sophos;i="5.87,204,1631602800"; d="scan'208";a="142614147" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 02 Nov 2021 23:19:52 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Tue, 2 Nov 2021 23:19:51 -0700 Received: from kavya-HP-Compaq-6000-Pro-SFF-PC.microchip.com (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Tue, 2 Nov 2021 23:19:48 -0700 From: Kavyasree Kotagiri To: , , CC: , , , , , , , Subject: [PATCH v10 1/3] dt-bindings: clock: lan966x: Add binding includes for lan966x SoC clock IDs Date: Wed, 3 Nov 2021 11:49:33 +0530 Message-ID: <20211103061935.25677-2-kavyasree.kotagiri@microchip.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211103061935.25677-1-kavyasree.kotagiri@microchip.com> References: <20211103061935.25677-1-kavyasree.kotagiri@microchip.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org LAN966X supports 14 clock outputs for its peripherals. This include file is introduced to use identifiers for clocks. Signed-off-by: Kavyasree Kotagiri Acked-by: Rob Herring Acked-by: Nicolas Ferre --- v9 -> v10: - No changes. v8 -> v9: - Added Acked-by: Nicolas Ferre. v7 -> v8: - No changes. v6 -> v7: - No changes. v5 -> v6: - Added Acked-by. v4 -> v5: - No changes. v3 -> v4: - No changes. v2 -> v3: - No changes. v1 -> v2: - Updated license. include/dt-bindings/clock/microchip,lan966x.h | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 include/dt-bindings/clock/microchip,lan966x.h diff --git a/include/dt-bindings/clock/microchip,lan966x.h b/include/dt-bindings/clock/microchip,lan966x.h new file mode 100644 index 000000000000..fe36ed6d8b5f --- /dev/null +++ b/include/dt-bindings/clock/microchip,lan966x.h @@ -0,0 +1,28 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ +/* + * Copyright (c) 2021 Microchip Inc. + * + * Author: Kavyasree Kotagiri + */ + +#ifndef _DT_BINDINGS_CLK_LAN966X_H +#define _DT_BINDINGS_CLK_LAN966X_H + +#define GCK_ID_QSPI0 0 +#define GCK_ID_QSPI1 1 +#define GCK_ID_QSPI2 2 +#define GCK_ID_SDMMC0 3 +#define GCK_ID_PI 4 +#define GCK_ID_MCAN0 5 +#define GCK_ID_MCAN1 6 +#define GCK_ID_FLEXCOM0 7 +#define GCK_ID_FLEXCOM1 8 +#define GCK_ID_FLEXCOM2 9 +#define GCK_ID_FLEXCOM3 10 +#define GCK_ID_FLEXCOM4 11 +#define GCK_ID_TIMER 12 +#define GCK_ID_USB_REFCLK 13 + +#define N_CLOCKS 14 + +#endif From patchwork Wed Nov 3 06:19:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kavyasree Kotagiri X-Patchwork-Id: 1550127 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=microchip.com header.i=@microchip.com header.a=rsa-sha256 header.s=mchp header.b=Js4JWbMD; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by bilbo.ozlabs.org (Postfix) with ESMTP id 4Hkc7g2y72z9sRN for ; Wed, 3 Nov 2021 17:19:59 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231720AbhKCGWd (ORCPT ); Wed, 3 Nov 2021 02:22:33 -0400 Received: from esa.microchip.iphmx.com ([68.232.153.233]:14518 "EHLO esa.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230152AbhKCGWd (ORCPT ); Wed, 3 Nov 2021 02:22:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1635920397; x=1667456397; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=eIDx8jrxIrNNdRkrJ9DzGMTOtWv0hiTMcOMNxXujCTg=; b=Js4JWbMDMP5nUCHxcODilpUkjrSmDqwnBKTpfQ0zQxGPx8U1staVUb6X qsiM6qJHdcWQDwT4jytaq463am20Pjdc4uzsNPfaK4Dvws+4QeIzhAtiv /sQTUXB53g//5D3HPYVmNXwfuiuRFeNxD2MTqieJgYiUuDtTFlPr3uzv3 nRDno+HflSGo1SpkSkxc7eSc7eqBvOyp/S/4htu/FHj+VepPtjVCm8w9s yjKaaafSMz3JY6AEkKXNoVzmB/nkcCy5ITPlmTJcQpJJY28Ck5XmU6gZd fydY9BZ5lRozLoelDpjM0CaX4hAb5XfzPZsZ3WhQcr0brMFaHOjbTcYpH Q==; IronPort-SDR: /n/1iYE7Q+FMsgPgm4wjkaulQGakl7fdNQb0RUuEd0g/WDDTaeEVDTZXt1tBOOrZjkB2MrLn+C dB6bvqXAwYsFdUbcrtuAWnnE/9q3anYK1HA0xS11/2nWUkJWG90RyEzbIOauf7OiRC99OPZhnH yarsSqau+YHyDkECxjZNQXcwRPWsSB7bGhLdahZeBYMcN/WKGe39n4CQqm8KfV+IZjW3yd/a0D oFhCqQzf5pK1/0AK+8gh3293hGa/2ZUGOBcA2AA0vNIbT2GqGhI12evJ79q+fS3+nWBTSunoii ZO8E7GLWSu7jQdeHLKp8Wb8Z X-IronPort-AV: E=Sophos;i="5.87,204,1631602800"; d="scan'208";a="150527021" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 02 Nov 2021 23:19:57 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Tue, 2 Nov 2021 23:19:56 -0700 Received: from kavya-HP-Compaq-6000-Pro-SFF-PC.microchip.com (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Tue, 2 Nov 2021 23:19:53 -0700 From: Kavyasree Kotagiri To: , , CC: , , , , , , , Subject: [PATCH v10 2/3] dt-bindings: clock: lan966x: Add LAN966X Clock Controller Date: Wed, 3 Nov 2021 11:49:34 +0530 Message-ID: <20211103061935.25677-3-kavyasree.kotagiri@microchip.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211103061935.25677-1-kavyasree.kotagiri@microchip.com> References: <20211103061935.25677-1-kavyasree.kotagiri@microchip.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This adds the DT bindings documentation for lan966x SoC generic clock controller. Signed-off-by: Kavyasree Kotagiri Reviewed-by: Rob Herring Acked-by: Nicolas Ferre --- v9 -> v10: - No changes. v8 -> v9: - Added Acked-by: Nicolas Ferre. v7 -> v8: - No changes. v6 -> v7: - No changes. v5 -> v6: - Removed "_clk" in clock-names. - Added Reviewed-by. v4 -> v5: - In v4 dt-bindings, missed adding "clock-names" in required properties and example. So, added them. v3 -> v4: - Updated "clocks" description. - Added "clock-names". v2 -> v3: - Fixed dt_binding_check errors. v1 -> v2: - Updated example provided for clk controller DT node. .../bindings/clock/microchip,lan966x-gck.yaml | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/microchip,lan966x-gck.yaml diff --git a/Documentation/devicetree/bindings/clock/microchip,lan966x-gck.yaml b/Documentation/devicetree/bindings/clock/microchip,lan966x-gck.yaml new file mode 100644 index 000000000000..fca83bd68e26 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/microchip,lan966x-gck.yaml @@ -0,0 +1,57 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/microchip,lan966x-gck.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Microchip LAN966X Generic Clock Controller + +maintainers: + - Kavyasree Kotagiri + +description: | + The LAN966X Generic clock controller contains 3 PLLs - cpu_clk, + ddr_clk and sys_clk. This clock controller generates and supplies + clock to various peripherals within the SoC. + +properties: + compatible: + const: microchip,lan966x-gck + + reg: + maxItems: 1 + + clocks: + items: + - description: CPU clock source + - description: DDR clock source + - description: System clock source + + clock-names: + items: + - const: cpu + - const: ddr + - const: sys + + '#clock-cells': + const: 1 + +required: + - compatible + - reg + - clocks + - clock-names + - '#clock-cells' + +additionalProperties: false + +examples: + - | + clks: clock-controller@e00c00a8 { + compatible = "microchip,lan966x-gck"; + #clock-cells = <1>; + clocks = <&cpu_clk>, <&ddr_clk>, <&sys_clk>; + clock-names = "cpu", "ddr", "sys"; + reg = <0xe00c00a8 0x38>; + }; +...