Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1005333iob; Thu, 12 May 2022 09:06:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4OIxEh/i4AY2GEUoozvwZv0Eu08xZiEgt7hGz03fqslgWKC8D6AOj0kj5mJwYv2sFWYLX X-Received: by 2002:a05:6402:948:b0:425:ea37:96b8 with SMTP id h8-20020a056402094800b00425ea3796b8mr35618677edz.90.1652371601266; Thu, 12 May 2022 09:06:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652371601; cv=none; d=google.com; s=arc-20160816; b=JnGRw46cvPo/qhOVSugdZ7oMoZRS+8ngiFpaito9YVl8oemv6qHy31IPfxDAQ/sqkm bDfTu/bXYHnF0wTcu844RbUmHsXmlyCh4Imgbk4Zkeofmut4uZR/XfH1qKoIbHH43D5T ztZSstOVWaZpWN9Kmx0oZy4I95fnnkt2kW3HuNAY8cr3XlklgYL1RyeyiPSN7Fe1kKgF Equ086lSWInD2JnB8MV8iSBAez7IuManG1nyuHmaOt8+lhGaSz/7N0mi/NtKrpbbrhAZ tsIFcVY3Qt6J85iavJaIHS77OZuiea/fkoC82PU5RIDDY1a8CmmkwgtG5jUv4ncPaBWj 1/1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=GPIjrgvs4BQNA9eCtoSaAMxO4nClRBlQSuiV6w2t7iw=; b=MAgQxQP99Ja7rF92PX7gG4iDbx7Yxi+ZOJqPSVyxPw4bGpUJHDc0v1Ehg6Svx273Tn yuw76wcryeyV9kshWFuUunTfoPXzORoLRaNUByk2FySOPJ1+4tbabZe3qaVN6hjgW7aD 5BLN++E9i6iWHVn8PjTY2DBcng1lzN6HeH+kDYxs0G7OKL+WqS8Bi6YHNrgTG9at/O53 N/0HhXNJk9wb3bs32ebcEmUmE81+xDYjmXunTDtryW2PhuzqYVsQ5Kgj8Zx1HKEAhuYO 0rz6KuLqnLUaY9bAwAfEE5Jlt3Z3C1ukuHbx3HcZogKCrLMNI6yCs/VpCesVQCwZK+Uk so5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=u7QsPViO; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p18-20020aa7d312000000b0041f0ddd620esi6053039edq.199.2022.05.12.09.06.14; Thu, 12 May 2022 09:06:41 -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=@linaro.org header.s=google header.b=u7QsPViO; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352602AbiELK2G (ORCPT + 99 others); Thu, 12 May 2022 06:28:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235697AbiELK2E (ORCPT ); Thu, 12 May 2022 06:28:04 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02D233CA75 for ; Thu, 12 May 2022 03:28:03 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id n10so9297399ejk.5 for ; Thu, 12 May 2022 03:28:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=GPIjrgvs4BQNA9eCtoSaAMxO4nClRBlQSuiV6w2t7iw=; b=u7QsPViOON0my/3Vld/mwSoBJb7PZwySeGRnOJ3yY24HRVfpYdp7uLLQxmI3PtDrhr udw+fHERr5nBaDWToCkIOcvYPBrd5Rz08CCqtBhNePRwdkbzaFDt+YXqySK15s2BYJ38 /sOud++DWMkozAm1jJ3hyXQeU9ZwJVZfm0iBNH02h/TmTDE59fJ1rMhyAwM5wnNijwHD sb+n/ofSHeEezWiLWrmTPUH7hm1Ou7DBFkgEFWwVVN/s68UZx6BP6vut/3e+E5HandL6 Dl3Q7pDovpFzmqQxwz8IAe7G07GS0YfatOAkvHq3uJVgau5Y2YEVQokCGDkvm3Gf+efb XIHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=GPIjrgvs4BQNA9eCtoSaAMxO4nClRBlQSuiV6w2t7iw=; b=g1l5A4HtN15j3rJ+0eKgQhnb0Lmlhe1/+R3fCUx4GKArKyYRJAPSMNuX3wclzqkgc8 RzGpH4fEy1N6l/GQDJogtsHinA9DmJB4jTH5I5Lo0haUZY9lg92yQmgdRzGknzl4KkwR eEJuqvtlKuWrp7hnriwBOdaCvRwMTxE1T6Ae3l2lXPdpFSXDWzrClBwNBi4ZB8jByl3F vNjBY/blLS+TtlC5nOSzpmei3ucc5S9D4mvTqDaHlbsahZoP1GqdzqwnkmLqjAOIL1zi y+xeA0O63dAKwJslL9QlsRi/DNqEcfAmRDPQEXBO/cBa+C65PSrWbvoZdrClRFfAXFet OIBg== X-Gm-Message-State: AOAM530e0C72mob03BCVMmNMPOAnnrN4x9aVLOOvLfZz5wo1IspW1oF5 7+AwkgUPzwLnINNa9msZVmhXCg== X-Received: by 2002:a17:906:a188:b0:6f4:f5cd:27bd with SMTP id s8-20020a170906a18800b006f4f5cd27bdmr29318356ejy.406.1652351281599; Thu, 12 May 2022 03:28:01 -0700 (PDT) Received: from [192.168.0.158] (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id q18-20020a1709064cd200b006f3ef214e23sm1911302ejt.137.2022.05.12.03.28.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 12 May 2022 03:28:01 -0700 (PDT) Message-ID: <32c80a79-abd5-3fd2-cbb4-e2ae93c539da@linaro.org> Date: Thu, 12 May 2022 12:28:00 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH v15 10/10] ARM: dts: Add Sunplus SP7021-Demo-V3 board device tree Content-Language: en-US To: Qin Jian , sboyd@kernel.org Cc: robh+dt@kernel.org, mturquette@baylibre.com, tglx@linutronix.de, maz@kernel.org, p.zabel@pengutronix.de, linux@armlinux.org.uk, arnd@arndb.de, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org References: From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On 12/05/2022 08:31, Qin Jian wrote: > Add the basic support for Sunplus SP7021-Demo-V3 board. > > Signed-off-by: Qin Jian > --- > MAINTAINERS | 1 + > arch/arm/boot/dts/sunplus-sp7021-achip.dtsi | 85 +++++ > arch/arm/boot/dts/sunplus-sp7021-demo-v3.dts | 27 ++ > arch/arm/boot/dts/sunplus-sp7021.dtsi | 369 +++++++++++++++++++ > 4 files changed, 482 insertions(+) > create mode 100644 arch/arm/boot/dts/sunplus-sp7021-achip.dtsi > create mode 100644 arch/arm/boot/dts/sunplus-sp7021-demo-v3.dts > create mode 100644 arch/arm/boot/dts/sunplus-sp7021.dtsi > > diff --git a/MAINTAINERS b/MAINTAINERS > index 9cf30e776..b55ec0768 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -2747,6 +2747,7 @@ F: Documentation/devicetree/bindings/arm/sunplus,sp7021.yaml > F: Documentation/devicetree/bindings/clock/sunplus,sp7021-clkc.yaml > F: Documentation/devicetree/bindings/interrupt-controller/sunplus,sp7021-intc.yaml > F: Documentation/devicetree/bindings/reset/sunplus,reset.yaml > +F: arch/arm/boot/dts/sunplus-sp7021*.dts* > F: arch/arm/configs/sp7021_*defconfig > F: arch/arm/mach-sunplus/ > F: drivers/clk/clk-sp7021.c > diff --git a/arch/arm/boot/dts/sunplus-sp7021-achip.dtsi b/arch/arm/boot/dts/sunplus-sp7021-achip.dtsi > new file mode 100644 > index 000000000..1560c95d9 > --- /dev/null > +++ b/arch/arm/boot/dts/sunplus-sp7021-achip.dtsi > @@ -0,0 +1,85 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Device Tree Source for Sunplus SP7021 > + * > + * Copyright (C) 2021 Sunplus Technology Co. > + */ > + > +#include "sunplus-sp7021.dtsi" > + > +/ { > + compatible = "sunplus,sp7021-achip"; This does not match your bindings. > + model = "Sunplus SP7021 (CA7)"; > + #address-cells = <1>; > + #size-cells = <1>; > + interrupt-parent = <&gic>; > + > + clocks { > + #address-cells = <1>; > + #size-cells = <1>; > + ranges; > + > + extclk: clk@osc0 { This is not a valid device tree. Please run make dtbs_check and compile dtbs with W=1. > + compatible = "fixed-clock"; > + #clock-cells = <0>; > + clock-frequency = <27000000>; > + clock-output-names = "extclk"; > + }; > + > + divextclk: clk@0 { How is it suppose to pass any automated checks if there is no unit address? > + compatible = "fixed-factor-clock"; > + #clock-cells = <0>; > + clocks = <&extclk>; > + clock-mult = <1>; > + clock-div = <2>; > + clock-output-names = "extdivclk"; > + }; > + > + A_pll0: clk@A_pll0 { This is not a valid device tree. > + compatible = "fixed-clock"; > + #clock-cells = <0>; > + clock-frequency = <2000000000>; > + clock-output-names = "A_pll0"; > + }; > + }; > + > + cpus { > + #address-cells = <1>; > + #size-cells = <0>; > + > + cpu0: cpu@0 { > + compatible = "arm,cortex-a7"; > + device_type = "cpu"; > + reg = <0>; > + clock-frequency = <931000000>; > + }; > + cpu1: cpu@1 { > + compatible = "arm,cortex-a7"; > + device_type = "cpu"; > + reg = <1>; > + clock-frequency = <931000000>; > + }; > + cpu2: cpu@2 { > + compatible = "arm,cortex-a7"; > + device_type = "cpu"; > + reg = <2>; > + clock-frequency = <931000000>; > + }; > + cpu3: cpu@3 { > + compatible = "arm,cortex-a7"; > + device_type = "cpu"; > + reg = <3>; > + clock-frequency = <931000000>; > + }; > + }; > + > + arm-pmu { > + compatible = "arm,cortex-a7-pmu"; > + interrupts = , > + , > + , > + ; > + interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>; > + }; > + > +}; > diff --git a/arch/arm/boot/dts/sunplus-sp7021-demo-v3.dts b/arch/arm/boot/dts/sunplus-sp7021-demo-v3.dts > new file mode 100644 > index 000000000..05e164115 > --- /dev/null > +++ b/arch/arm/boot/dts/sunplus-sp7021-demo-v3.dts > @@ -0,0 +1,27 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Device Tree Source for Sunplus SP7021 Demo V3 SBC board > + * > + * Copyright (C) Sunplus Technology Co. > + */ > + > +/dts-v1/; > + > +#include "sunplus-sp7021-achip.dtsi" > + > +/ { > + compatible = "sunplus,sp7021-demo-v3"; This does not match your bindings. Please run make dtbs_check. > + model = "SP7021/CA7/Demo_V3"; > + #address-cells = <1>; > + #size-cells = <1>; > + > + chosen { > + bootargs = "console=ttyS0,115200 loglevel=8 earlycon"; No bootargs. I'll stop reviewing. This either does not compile, does not work or does not pass automated checks. There is no point to use reviewers time if the tools are doing the same job, so use the tools and then submit DTS. Best regards, Krzysztof