From patchwork Tue Oct 19 08:44:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Horatiu Vultur X-Patchwork-Id: 1543111 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=IbWJskhN; 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 4HYS625Czpz9sPf for ; Tue, 19 Oct 2021 19:46:50 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234700AbhJSItA (ORCPT ); Tue, 19 Oct 2021 04:49:00 -0400 Received: from esa.microchip.iphmx.com ([68.232.154.123]:58236 "EHLO esa.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230020AbhJSItA (ORCPT ); Tue, 19 Oct 2021 04:49:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1634633207; x=1666169207; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=BtLsDtl4QQydHeks4hNGCZXUEQEYW7NJ27WOZcxg0w0=; b=IbWJskhNCPvYG8Fk/ko6Ec1fWhwbMf/sZ+zVkFJWVZpRaZB+NvabN4wO hTTOXnydWhELQJcmWyjutyi0FwFk0LNg/EoZcBNrsOEjfiTm0vdlmBJ5H Ekdh8FnBuImOWxK4azEdjstwYEb5Lva8SBcsaMtjyaYRyvQWRU2E9QswI oBIi8kPqrGReGbN2Kg0rAD+8aX2UqcWI9bmo5bRMzp1257hYb3nbTlJ2l 0c7AIjJCCw+stzkQ9ygh0Ry7DApmq0LfFU/ZBLxuznYHp9/EHDQEY3MEl QaOk38on/ZgbthcNuzdd5RqB8SLbBHJc8vlR/tsgxT0sKzLDYfJRJ0IFM w==; IronPort-SDR: WRN/CC0W70Wos9hAIyRY7bb1NlrezDYVnAspt1lBA+D6PbHDLr3dBvP7AGQChFDEda0F4cNolv i9UM/3NrGDzkQscZgm6SBNNeG+fePoZPCPqYIZW1CkvO2RN3q0i4EYFxpMq4sBB3A+IRNIPlx2 XvJHX/itE22QJMY4qg0TEqptuWgxGQZhJKg5PeJ/PND8t84PglCY730RN8jHMbi1sdAmZWypDb bZb6H19M2xaJS6NF/su7HBwqPOfIFsrIS6F9RGwUkEjJXScHiBuLCjd0ckJLIMouIkTunJVdy6 kDaqfOwVai4MOXP11a4QSFtO X-IronPort-AV: E=Sophos;i="5.85,383,1624345200"; d="scan'208";a="133556978" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 19 Oct 2021 01:46:47 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Tue, 19 Oct 2021 01:46:47 -0700 Received: from soft-dev3-1.microsemi.net (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Tue, 19 Oct 2021 01:46:45 -0700 From: Horatiu Vultur To: , , CC: , , , , , , Horatiu Vultur Subject: [RFC PATCH 1/3] dt-bindings: clock: lan966x: Extend for clock gate support Date: Tue, 19 Oct 2021 10:44:47 +0200 Message-ID: <20211019084449.1411060-2-horatiu.vultur@microchip.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211019084449.1411060-1-horatiu.vultur@microchip.com> References: <20211019084449.1411060-1-horatiu.vultur@microchip.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org It is required to add a new resource to be able to access the clock gate registers. Now that we have 2 resources, add also reg-names property to make more clear. Signed-off-by: Horatiu Vultur --- .../bindings/clock/microchip,lan966x-gck.yaml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/clock/microchip,lan966x-gck.yaml b/Documentation/devicetree/bindings/clock/microchip,lan966x-gck.yaml index fca83bd68e26..047c77e049f1 100644 --- a/Documentation/devicetree/bindings/clock/microchip,lan966x-gck.yaml +++ b/Documentation/devicetree/bindings/clock/microchip,lan966x-gck.yaml @@ -19,7 +19,14 @@ properties: const: microchip,lan966x-gck reg: - maxItems: 1 + items: + - description: core registers + - description: gate registers + + reg-names: + items: + - const: core + - const: gate clocks: items: @@ -39,6 +46,7 @@ properties: required: - compatible - reg + - reg-names - clocks - clock-names - '#clock-cells' @@ -52,6 +60,7 @@ examples: #clock-cells = <1>; clocks = <&cpu_clk>, <&ddr_clk>, <&sys_clk>; clock-names = "cpu", "ddr", "sys"; - reg = <0xe00c00a8 0x38>; + reg = <0xe00c00a8 0x38>, <0xe00c02cc 0x4>; + reg-names = "core", "gate"; }; ... From patchwork Tue Oct 19 08:44:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Horatiu Vultur X-Patchwork-Id: 1543112 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=db3/fjS7; 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 4HYS6374YKz9sP7 for ; Tue, 19 Oct 2021 19:46:51 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234764AbhJSItC (ORCPT ); Tue, 19 Oct 2021 04:49:02 -0400 Received: from esa.microchip.iphmx.com ([68.232.153.233]:29235 "EHLO esa.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234736AbhJSItC (ORCPT ); Tue, 19 Oct 2021 04:49:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1634633209; x=1666169209; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=8HzmcFlB9X+AGRuuZC7PDuJl2mB4NxIlDbChXkWBnBQ=; b=db3/fjS7Nh6Uz3bypifrMSK1UgYa5eTI5SZkqs6l5QoDc41aRmIoB6oM B7xSemzVtZrPFfs6wIxlMKhmvXYSZ6biSOeXEB9z2WXpOpCXcPgnIE6qv IJSsAMvolzVENBCiYHErFURx7AdvTC/fsmwvuKpfAbmwF6BE6dH/9aJuM QpWIKk+DpSpdmdxMClU43HNYjmSUd7fTGgq+HRIWHHvCxnmTjDXFYtciv ZyfM9UJVwUC8HBGUokZp5SFK+Nf78asgSEGTJRKxvjorKLw1Q/f+6c9mA xvAkPk2Aur6OPkdY3oE86nzjKPr+A3cHyuhQeaTfvlCtuwv6vfN+F9yTD g==; IronPort-SDR: KNHEGymc4XRxXES49XEt/04Nrt2oS65qsH6DsYU28o4Q3KilkpIen3ZoL+yLDWokrhQabf4S27 2llzjBQ9AoPIWERyGlGcbCARDQwLINslHvgnZDnnjNpOF425Qi8qClykLdQDybzextZRqK3oen nWopmIG7DanOVPOJPUfa3NYUohhrftsURIK0hzeseXwiOztoZUCOWcmb9lyt91gpMQoMq3kpuM Zl5XXi9pnJkdmgGETXlHlVvcQ/3WMrJjRUBYxzm+t6idv0CkTB1iYlF40HAmbCu0IVEEZNAycX IFy7Erz0OCs0Fz3brUBuYTG4 X-IronPort-AV: E=Sophos;i="5.85,383,1624345200"; d="scan'208";a="148671234" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 19 Oct 2021 01:46:49 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Tue, 19 Oct 2021 01:46:49 -0700 Received: from soft-dev3-1.microsemi.net (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Tue, 19 Oct 2021 01:46:47 -0700 From: Horatiu Vultur To: , , CC: , , , , , , Horatiu Vultur Subject: [RFC PATCH 2/3] dt-bindings: clock: lan966x: Extend includes with clock gates Date: Tue, 19 Oct 2021 10:44:48 +0200 Message-ID: <20211019084449.1411060-3-horatiu.vultur@microchip.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211019084449.1411060-1-horatiu.vultur@microchip.com> References: <20211019084449.1411060-1-horatiu.vultur@microchip.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On lan966x it is allow to control the clock to some peripherals like USB. So extend the include file with these clocks. Signed-off-by: Horatiu Vultur Acked-by: Rob Herring --- include/dt-bindings/clock/microchip,lan966x.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/dt-bindings/clock/microchip,lan966x.h b/include/dt-bindings/clock/microchip,lan966x.h index fe36ed6d8b5f..6f9d43d76d5a 100644 --- a/include/dt-bindings/clock/microchip,lan966x.h +++ b/include/dt-bindings/clock/microchip,lan966x.h @@ -23,6 +23,12 @@ #define GCK_ID_TIMER 12 #define GCK_ID_USB_REFCLK 13 -#define N_CLOCKS 14 +/* Gate clocks */ +#define GCK_GATE_UHPHS 14 +#define GCK_GATE_UDPHS 15 +#define GCK_GATE_MCRAMC 16 +#define GCK_GATE_HMATRIX 17 + +#define N_CLOCKS 18 #endif