From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B9759CCD183 for ; Mon, 13 Oct 2025 17:48:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=kyll5aJ5/q7ytwux8tlHoGA4cGNJhp/QHmKHY9+/0kw=; b=Br2xBfneB15GN2 Z/dH1JuoXG7jKXQaOwRhve9mq8Fc1E8+KK6qNxMZggHqJH0zijHTC/oIuL6WObjghpLaezvEXZB9Q sRy31xbA8MC0OfEGej73pb9WWOzvVK8u0IHAGEVjEBFyjpi9Mujw3Qm+k68UN9Bfp5Gj9OKuGAusW q5XrhYov32wNOVckRJ3JFc98tgxB+FUhp9iuNR3sRRctOoBQoKVbKEE78vj1fSo2dlMx2vnBzzJUt /fo9exNCL6gj4jBW43fqhAGpI8tpV6OcbmF+K/AuGP47zB96C6GYhVKw+CkByKs1B6PnP+tNtWuQe FgDPQXxx7EcYf504S5bw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1v8Mer-0000000E5DC-2YFQ; Mon, 13 Oct 2025 17:48:29 +0000 Received: from tor.source.kernel.org ([2600:3c04:e001:324:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1v8Meq-0000000E5Bo-1m9Y for linux-riscv@lists.infradead.org; Mon, 13 Oct 2025 17:48:28 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id CE0A7614B6; Mon, 13 Oct 2025 17:47:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ADC26C19421; Mon, 13 Oct 2025 17:47:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1760377677; bh=4kdgWfgvg7oJNRXLjBlOXle1kvB7aBe2YNXbD+Y8Wc4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AqZ4NnGyMwYhSkM/nSuGxuHjq3fWTwzsRZxzEyVAUVhf9arf3dX/y6hC7v55UTF5/ 8EsYK8utRcv2vv5zjNkr4kg1ityxzfF5eux69k3PptY0a2fk3jY1S+ZQ3dBjBSRde7 YDJSovrhifkZDI4fEmBh5GyamWrPownKJXbXkhbNn8J4AxVBCjzqrlGCilBtENHYR5 +/TNWXuqLE2t0FLbauoZ7X0qGej56BKtoLzHfb+u6Mkjdda/p8IUSpIUcGXMYSmVn0 Q2GPxgjBKbIM2CwH3aHN2Gz6UIHcW0/zFTEoUQ2jDPVO2aIAkr6eNX3vhtG6fLFZ97 irluD7npJEZXA== From: Conor Dooley To: claudiu.beznea@tuxon.dev Cc: conor@kernel.org, Conor Dooley , Daire McNamara , pierre-henry.moussay@microchip.com, valentina.fernandezalanis@microchip.com, Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Philipp Zabel , linux-riscv@lists.infradead.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 4/9] dt-bindings: clk: microchip: mpfs: remove first reg region Date: Mon, 13 Oct 2025 18:45:36 +0100 Message-ID: <20251013-spectacle-slacks-86d498db7d60@spud> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251013-album-bovine-faf9f5ebc5d4@spud> References: <20251013-album-bovine-faf9f5ebc5d4@spud> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3159; i=conor.dooley@microchip.com; h=from:subject:message-id; bh=3LZvSpbfmHa0zvD2pQSWl0P8VI7zypG9G9PgJJXjfzU=; b=owGbwMvMwCVWscWwfUFT0iXG02pJDBlvrQ40OHiq/XJ44fGo0PM9q3nZyUUtCnWhFbYigYf0T 5ydo+TTUcrCIMbFICumyJJ4u69Fav0flx3OPW9h5rAygQxh4OIUgIlsPc7wP8n12/yfjmH/LMvn X+Eyr7b7Gz/7RkbvB9PTE79E1OQaODL8r4h2/b99eXvC0RIbw+ffza/EtM/559PxxucvR9mmA0t 72AE= X-Developer-Key: i=conor.dooley@microchip.com; a=openpgp; fpr=F9ECA03CF54F12CD01F1655722E2C55B37CF380C X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org From: Conor Dooley The first reg region in this binding is not exclusively for clocks, as evidenced by the dual role of this device as a reset controller at present. The first region is however better described by a simple-mfd syscon, but this would have require a significant re-write of the devicetree for the platform, so the easy way out was chosen when reset support was first introduced. The region doesn't just contain clock and reset registers, it also contains pinctrl and interrupt controller functionality, so drop the region from the clock binding so that it can be described instead by a simple-mfd syscon rather than propagate this incorrect description of the hardware to the new pic64gx SoC. Acked-by: Rob Herring (Arm) Signed-off-by: Conor Dooley --- .../bindings/clock/microchip,mpfs-clkcfg.yaml | 36 +++++++++++-------- 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/Documentation/devicetree/bindings/clock/microchip,mpfs-clkcfg.yaml b/Documentation/devicetree/bindings/clock/microchip,mpfs-clkcfg.yaml index e4e1c31267d2..ee4f31596d97 100644 --- a/Documentation/devicetree/bindings/clock/microchip,mpfs-clkcfg.yaml +++ b/Documentation/devicetree/bindings/clock/microchip,mpfs-clkcfg.yaml @@ -22,16 +22,23 @@ properties: const: microchip,mpfs-clkcfg reg: - items: - - description: | - clock config registers: - These registers contain enable, reset & divider tables for the, cpu, - axi, ahb and rtc/mtimer reference clocks as well as enable and reset - for the peripheral clocks. - - description: | - mss pll dri registers: - Block of registers responsible for dynamic reconfiguration of the mss - pll + oneOf: + - items: + - description: | + clock config registers: + These registers contain enable, reset & divider tables for the, cpu, + axi, ahb and rtc/mtimer reference clocks as well as enable and reset + for the peripheral clocks. + - description: | + mss pll dri registers: + Block of registers responsible for dynamic reconfiguration of the mss + pll + deprecated: true + - items: + - description: | + mss pll dri registers: + Block of registers responsible for dynamic reconfiguration of the mss + pll clocks: maxItems: 1 @@ -69,11 +76,12 @@ examples: - | #include soc { - #address-cells = <2>; - #size-cells = <2>; - clkcfg: clock-controller@20002000 { + #address-cells = <1>; + #size-cells = <1>; + + clkcfg: clock-controller@3E001000 { compatible = "microchip,mpfs-clkcfg"; - reg = <0x0 0x20002000 0x0 0x1000>, <0x0 0x3E001000 0x0 0x1000>; + reg = <0x3E001000 0x1000>; clocks = <&ref>; #clock-cells = <1>; }; -- 2.51.0 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv