Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6743560rwn; Tue, 13 Sep 2022 08:27:10 -0700 (PDT) X-Google-Smtp-Source: AA6agR6k0hXzJOGDpQ95ZYBMpbn/8f+ifxcU6M99v3zZdUhZrmpyfe3One+M/Q97QOhEJmw6aAeR X-Received: by 2002:aa7:cada:0:b0:452:5b04:efd9 with SMTP id l26-20020aa7cada000000b004525b04efd9mr3124778edt.84.1663082830348; Tue, 13 Sep 2022 08:27:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663082830; cv=none; d=google.com; s=arc-20160816; b=OhPmi/THpMXkwjyx5KUcYIDn00/3vsK6POrgu/wTzgvAadRC88XpTv7fopxPHEWQTi rAWvgJGahwzG7pC6wnunkv4+yrMQ1+ArJxhrBayvzOKC3rSYldZM0FWmM1BEtMEGBDyS wm+a6AvXHnCGVkyISTewRIEPO0t7RxtEtcWyDW1y2JOZtU/MYbQMsY1diWjQH/3vx0Va LJGBU9p/o+QjUEcFO1Wwx4DN35Bdtenq9MSdrIMG8ABWbdT8sZpZ6y/CjpA5JfzK2/gO V4nZOJ5fQL1zLVCQl7EgxJjtT1mIfpbKnWlhqftv9+uhzlL8oL5kVEESe4rJfFVk1pi5 emOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=WOhluMKSRgFcErGI904JhdBQ34rr5jwCkRRh5amKKCk=; b=aXFTz7CSrdzFtImqteHqkzMs4JvgdM0vzUKelrmSWAfXdF7KPvcO6QQl0GisrtVmzq VjTQ4gcOAMaa78y3DyDRsAtDzB/N10hqhbTfNeIY+6IvyH+hbDZDnKHwv3XI+hHzKV8s S7enVNooi/0ICuRHnqCwKwepkj6kOE+w4hvxvL3q9zP0LxMUzXVtJ/nxenF1Rcd3Kvqr jVtHi/yOzBUYAZXxTQLKLbOqhwfBialMVwhFICY1PpYOvafQb7eruI6AlnWioN38RnMK tCTmV++WJAY9iuc/cC2h0qqDbD8tLkBY0Kr1Jx/lXbH47Ov6EySlLC2ORiRFIfoYKak2 KN1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2LjkIc3s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dm10-20020a170907948a00b0073d6c4b35b7si10108795ejc.336.2022.09.13.08.26.44; Tue, 13 Sep 2022 08:27:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2LjkIc3s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233317AbiIMObf (ORCPT + 99 others); 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-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Geert Uytterhoeven [ Upstream commit 9d7b3078628f591e4007210c0d5d3f94805cff55 ] "make dtbs_check" reports: arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dt.yaml: soc: refclk: {'compatible': ['fixed-clock'], '#clock-cells': [[0]], 'clock-frequency': [[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 @@ }; }; +&refclk { + clock-frequency = <600000000>; +}; + &serial0 { status = "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 @@ }; }; + refclk: msspllclk { + compatible = "fixed-clock"; + #clock-cells = <0>; + }; + soc { #address-cells = <2>; #size-cells = <2>; @@ -188,13 +193,6 @@ #dma-cells = <1>; }; - refclk: refclk { - compatible = "fixed-clock"; - #clock-cells = <0>; - clock-frequency = <600000000>; - clock-output-names = "msspllclk"; - }; - clkcfg: clkcfg@20002000 { compatible = "microchip,mpfs-clkcfg"; reg = <0x0 0x20002000 0x0 0x1000>; -- 2.35.1