From nobody Sun Sep 14 22:43:21 2025 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7F200C6FA82 for ; Tue, 13 Sep 2022 14:31:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233762AbiIMObf (ORCPT ); Tue, 13 Sep 2022 10:31:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234091AbiIMO3L (ORCPT ); Tue, 13 Sep 2022 10:29:11 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F849642DC; Tue, 13 Sep 2022 07:18:18 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 10D6F614B6; Tue, 13 Sep 2022 14:18:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2B3ABC433D7; Tue, 13 Sep 2022 14:18:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1663078697; bh=/mmluQiHgHLAHKPQ2lf04xiTTFupX4BQ+YavLtbQiOs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2LjkIc3sx9K5+XkWAK+2kw2QUHAsOgB36uoH8cbYBiBa9URtca/2d8xmUQvkljZwX wWmPmq9Tp+fUJklJB2EjRS5Q4WUlnrCXUa3726IMHu/PWJ6LeYJ0qLGHt+rtz1W/Yr p2ikiz3zPGkPXELx6yM8Hifg08yTvTzbU4OVWxdA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Geert Uytterhoeven , Krzysztof Kozlowski , Conor Dooley , Palmer Dabbelt , Sasha Levin Subject: [PATCH 5.15 048/121] riscv: dts: microchip: mpfs: Fix reference clock node Date: Tue, 13 Sep 2022 16:03:59 +0200 Message-Id: <20220913140359.425823284@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220913140357.323297659@linuxfoundation.org> References: <20220913140357.323297659@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Geert Uytterhoeven [ Upstream commit 9d7b3078628f591e4007210c0d5d3f94805cff55 ] "make dtbs_check" reports: arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dt.yaml: soc: r= efclk: {'compatible': ['fixed-clock'], '#clock-cells': [[0]], 'clock-freque= ncy': [[600000000]], 'clock-output-names': ['msspllclk'], 'phandle': [[7]]}= should not be valid under {'type': 'object'} From schema: dtschema/schemas/simple-bus.yaml Fix this by moving the node out of the "soc" subnode. While at it, rename it to "msspllclk", and drop the now superfluous "clock-output-names" property. Move the actual clock-frequency value to the board DTS, since it is not set until bitstream programming time. Signed-off-by: Geert Uytterhoeven Acked-by: Krzysztof Kozlowski Reviewed-by: Conor Dooley Tested-by: Conor Dooley Signed-off-by: Palmer Dabbelt Signed-off-by: Sasha Levin --- .../boot/dts/microchip/microchip-mpfs-icicle-kit.dts | 4 ++++ arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi | 12 +++++------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts b/= arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts index cce5eca31f257..4b69ab4ff30a2 100644 --- a/arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts +++ b/arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts @@ -40,6 +40,10 @@ }; }; =20 +&refclk { + clock-frequency =3D <600000000>; +}; + &serial0 { status =3D "okay"; }; diff --git a/arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi b/arch/riscv= /boot/dts/microchip/microchip-mpfs.dtsi index 4ef4bcb748729..9279ccf20009a 100644 --- a/arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi +++ b/arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi @@ -139,6 +139,11 @@ }; }; =20 + refclk: msspllclk { + compatible =3D "fixed-clock"; + #clock-cells =3D <0>; + }; + soc { #address-cells =3D <2>; #size-cells =3D <2>; @@ -188,13 +193,6 @@ #dma-cells =3D <1>; }; =20 - refclk: refclk { - compatible =3D "fixed-clock"; - #clock-cells =3D <0>; - clock-frequency =3D <600000000>; - clock-output-names =3D "msspllclk"; - }; - clkcfg: clkcfg@20002000 { compatible =3D "microchip,mpfs-clkcfg"; reg =3D <0x0 0x20002000 0x0 0x1000>; --=20 2.35.1