From patchwork Wed Nov 3 08:51:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Horatiu Vultur X-Patchwork-Id: 1550168 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=JduV/YKR; 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 4HkgTT0Qmgz9sRK for ; Wed, 3 Nov 2021 19:50:37 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231728AbhKCIxI (ORCPT ); Wed, 3 Nov 2021 04:53:08 -0400 Received: from esa.microchip.iphmx.com ([68.232.153.233]:44039 "EHLO esa.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231702AbhKCIxH (ORCPT ); Wed, 3 Nov 2021 04:53:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1635929431; x=1667465431; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=8Mc4AIkZM5qONANXtlgw3gl/ONIHDQMV9uB5c0K6dZk=; b=JduV/YKR0PidVoGrnscz9U+N3++CmxjTy+Yo7d+rKQLHHxxYPf8wKg6O 0F/pOd/gOig2mqaVT4ea4xfWT1C0G67mqwFJ15zb+/2SZXfkrRragW0p5 K/d8+Yx/qEXRT9gSjQCw7qD7vnsWYYHqIwqmZs4M3HAB66CdLLVaJVAR3 pUO2ID0S7YsjSAIpAxqWMU+pGSrXrzr7CkitV00YABoFM8y3l58oYi87d qVVSENrk2fqMp4OyirLrwSg1yn26+E7RSFed5VPUmcDPZe8+dcryqDcCf 1kq/RJrZDAG6UqeSrcM7woVUQ/Z2cMcXLsvWG1MpN4JpetNm3CB3vsI++ w==; IronPort-SDR: BhUdyzZdBdAPmHeGf4T30/V8cNu1/uusgQF76QfKkD1ElI+qGJhXM/TYr8OIf5wlT7FuI8VvTh QCA5Bx2UbnZ1BY2xrjLeR7oravDto41zVcNGW6dg8fJzKqcBzNSD4jiBFN0uoQ04+vblcDHWXI vONUHxLNBBabfWuU0y0nAHFAM4qyqmB6wHt9Vic/sEMyWSLvKl2PkLVUbQLkH3B+G1RRsi+R3l oETIjRcG+md20X0aryR6pKGvyxJpKTyizKAyWmbcWdxOVpWyA2N1DiAXjdksWW1Ti/bJbcg3pO vZ+dnjAD/1nSd03k/Cya4NgM X-IronPort-AV: E=Sophos;i="5.87,205,1631602800"; d="scan'208";a="150539856" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 03 Nov 2021 01:50:30 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) 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; Wed, 3 Nov 2021 01:50:30 -0700 Received: from soft-dev3-1.microsemi.net (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Wed, 3 Nov 2021 01:50:28 -0700 From: Horatiu Vultur To: , , , , , , , CC: Horatiu Vultur Subject: [RFC PATCH v4 2/4] dt-bindings: clock: lan966x: Extend for clock gate support Date: Wed, 3 Nov 2021 09:51:00 +0100 Message-ID: <20211103085102.1656081-3-horatiu.vultur@microchip.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211103085102.1656081-1-horatiu.vultur@microchip.com> References: <20211103085102.1656081-1-horatiu.vultur@microchip.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Allow to add an optional resource to be able to access the clock gate registers. Signed-off-by: Horatiu Vultur Acked-by: Rob Herring --- .../devicetree/bindings/clock/microchip,lan966x-gck.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/clock/microchip,lan966x-gck.yaml b/Documentation/devicetree/bindings/clock/microchip,lan966x-gck.yaml index fca83bd68e26..df2bec188706 100644 --- a/Documentation/devicetree/bindings/clock/microchip,lan966x-gck.yaml +++ b/Documentation/devicetree/bindings/clock/microchip,lan966x-gck.yaml @@ -19,7 +19,10 @@ properties: const: microchip,lan966x-gck reg: - maxItems: 1 + minItems: 1 + items: + - description: Generic clock registers + - description: Optional gate clock registers clocks: items: From patchwork Wed Nov 3 08:51:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Horatiu Vultur X-Patchwork-Id: 1550170 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=n7Xsg7B6; 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 4HkgTY4bQHz9sRK for ; Wed, 3 Nov 2021 19:50:41 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231952AbhKCIxP (ORCPT ); Wed, 3 Nov 2021 04:53:15 -0400 Received: from esa.microchip.iphmx.com ([68.232.153.233]:60652 "EHLO esa.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231903AbhKCIxM (ORCPT ); Wed, 3 Nov 2021 04:53:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1635929436; x=1667465436; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=GiZSP2N7eXt6hJAdSEsqoCePxdQqvxfYMrEZp11WUS8=; b=n7Xsg7B6FtxojqSJ63eelzaPW1LvM6q/rSfmwPZEDTBpMHfugczNWSGS 7Lx3cyMLat14KgSGyrROFdWZzj93g55XOWAX1H6p6N8Aqx9PfH/DAqR5T UocscDpxraCPgs4OjAAKNtr+vC/1Lkiwg09sAWDueY+LesMmuzh2POHaJ ah8NVuP5yFglPSUpX2igp2n5NG1bCzACpQ6SMoKVxHHsmGlZvOwXZNgeg vlVQh5GJA8D8lEy1RAjsNwg7xg8fybF/7O4NgX5u4dnfPqNoRXT1AHROc CoN62vooE3MMp58kQC76L4ySkOykqIUgTe9RzL05q3zUnXI097btHoi+K A==; IronPort-SDR: h1k77vZFo63YpTQmI3Ydzv5x6QgG9vl9N1oKtm0+OiZrDbesSbviBYvQk6OnhT0H5XyLVSDsiH dIWZCRIF3vce3dOVztq7wmVjENvcejGVBzVUTnNcWOJb5kxuwvWvnpsMO3a4STCLT7fIkxMAs4 S32PVRuX8RfD7Hu5OGdWr0o6BR7AVttPXaEcwqPm+cszf1PspPuavu4fktguIBqwJu4LEQCoO0 ufJ+Vl8uqm1M3wreK01RX6DtJCPJ0u6mYHSwikVjDkqcIbZ0UdQhldG4E0hSUKtngK/7joN2B+ bQSkySOu5jTepkZlHW+Cg9hz X-IronPort-AV: E=Sophos;i="5.87,205,1631602800"; d="scan'208";a="142628717" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 03 Nov 2021 01:50:33 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) 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; Wed, 3 Nov 2021 01:50:33 -0700 Received: from soft-dev3-1.microsemi.net (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Wed, 3 Nov 2021 01:50:30 -0700 From: Horatiu Vultur To: , , , , , , , CC: Horatiu Vultur , Rob Herring Subject: [RFC PATCH v4 3/4] dt-bindings: clock: lan966x: Extend includes with clock gates Date: Wed, 3 Nov 2021 09:51:01 +0100 Message-ID: <20211103085102.1656081-4-horatiu.vultur@microchip.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211103085102.1656081-1-horatiu.vultur@microchip.com> References: <20211103085102.1656081-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. Acked-by: Rob Herring Signed-off-by: Horatiu Vultur --- 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