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 X-Spam-Level: X-Spam-Status: No, score=-13.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4BCEFC433E0 for ; Fri, 12 Mar 2021 01:21:57 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6BB2C64F10 for ; Fri, 12 Mar 2021 01:21:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6BB2C64F10 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4DxShg0wQcz3dH3 for ; Fri, 12 Mar 2021 12:21:55 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; secure) header.d=jms.id.au header.i=@jms.id.au header.a=rsa-sha256 header.s=google header.b=KydqWPLF; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::82a; helo=mail-qt1-x82a.google.com; envelope-from=joel.stan@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; secure) header.d=jms.id.au header.i=@jms.id.au header.a=rsa-sha256 header.s=google header.b=KydqWPLF; dkim-atps=neutral Received: from mail-qt1-x82a.google.com (mail-qt1-x82a.google.com [IPv6:2607:f8b0:4864:20::82a]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4DxSgm3LH2z3cGs for ; Fri, 12 Mar 2021 12:21:05 +1100 (AEDT) Received: by mail-qt1-x82a.google.com with SMTP id x9so2678737qto.8 for ; Thu, 11 Mar 2021 17:21:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jms.id.au; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zL0tD8rGUXFO4Qkv46zO0ros0eKWAcJu4QcnRpFWSPc=; b=KydqWPLFtDqnckZM5bgoBC/cBUnc++t+niMv2U6KPYqIsI51ByYJYHekMxFCx0tw68 Yw8ULPsSEAjQx/DTF82+HGkF6urVOxGSTD+faAd0p2TpGX4GAU/JTny6D0PAJkcu3GEv AVH06GkBDzhbjfV8ZekSKkMo2zPxNmAgiWg08= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zL0tD8rGUXFO4Qkv46zO0ros0eKWAcJu4QcnRpFWSPc=; b=VzNuwu0Y5iIqO9llYe5EiLeuzL6uvMZjWNZmeSOezf7L2vEBf7C5skExQ5xunlapup Ekg0iIcbUST4XCRCzA8yK23FFyBHIpzBvasnsdNv4Nh5X4CwfbfGm8xRrn4A2mMxJwYT imkDTim5NDi82RiuGMB5VeYWbC+pXThTdjutG2mc1Wz2qS6YYeeDwq29F3eOcRfxHHC2 0d5yTSG3dOHFB5eBOlVJdjTPbvOU1H81UW73v5O5Ay5jtpPTZ36qznjzV48+s74i9mlO /tJnGhocj6pQDZfQBPBhd3D/vaDumL9EfP8DG7V/PzmMfPlJwKRVwSD2Odf2BOAgSn+a bnIg== X-Gm-Message-State: AOAM531N12pxssux+u1jY9PKis20CE+oWHVA/+mAX8BborHYga9QQlj9 D4fo5BqiHsajpXBNQobjHgUvpDV7A00XieCQDIc= X-Google-Smtp-Source: ABdhPJwKtab6FIKHJm8a6jRHvEYyTe3Wky8rC16X3k2IU+at+AGIrtmhwpaWy4Cr5bWR5atfayaxDwGOO3odezfp4Ik= X-Received: by 2002:ac8:7153:: with SMTP id h19mr10328384qtp.176.1615512062376; Thu, 11 Mar 2021 17:21:02 -0800 (PST) MIME-Version: 1.0 References: <20210310030952.26090-1-george.hung@quantatw.com> In-Reply-To: <20210310030952.26090-1-george.hung@quantatw.com> From: Joel Stanley Date: Fri, 12 Mar 2021 01:20:50 +0000 Message-ID: Subject: Re: [PATCH dev-5.10 v1] ARM: dts: nuvoton: Add Quanta GBS BMC Device Tree To: George Hung Content-Type: text/plain; charset="UTF-8" X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kwliu@nuvoton.com, yschu@nuvoton.com, Benjamin Fair , OpenBMC Maillist , brandonkim@google.com, Tomer Maimon Errors-To: openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Sender: "openbmc" On Wed, 10 Mar 2021 at 03:18, George Hung wrote: > > Add initial version of device tree for Quanta GBS > BMC (NPCM730 SoC) > > Signed-off-by: George Hung > --- > arch/arm/boot/dts/Makefile | 1 + > arch/arm/boot/dts/nuvoton-npcm730-gbs.dts | 1233 +++++++++++++++++++++ > 2 files changed, 1234 insertions(+) > create mode 100644 arch/arm/boot/dts/nuvoton-npcm730-gbs.dts > > diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile > index c57729f40185..82785fe2c8bf 100644 > --- a/arch/arm/boot/dts/Makefile > +++ b/arch/arm/boot/dts/Makefile > @@ -340,6 +340,7 @@ dtb-$(CONFIG_ARCH_LPC32XX) += \ > lpc3250-phy3250.dtb > dtb-$(CONFIG_ARCH_NPCM7XX) += \ > nuvoton-npcm730-gsj.dtb \ > + nuvoton-npcm730-gbs.dtb \ > nuvoton-npcm730-kudo.dtb \ > nuvoton-npcm750-evb.dtb \ > nuvoton-npcm750-runbmc-olympus.dtb > diff --git a/arch/arm/boot/dts/nuvoton-npcm730-gbs.dts b/arch/arm/boot/dts/nuvoton-npcm730-gbs.dts > new file mode 100644 > index 000000000000..15357ae97ec4 > --- /dev/null > +++ b/arch/arm/boot/dts/nuvoton-npcm730-gbs.dts > @@ -0,0 +1,1233 @@ > +// SPDX-License-Identifier: GPL-2.0 > +// Copyright (c) 2020 Quanta Computer Inc. George.Hung@quantatw.com > + > +/dts-v1/; > +#include "nuvoton-npcm730.dtsi" > +#include > + > +/ { > + model = "Quanta GBS Board (Device Tree)"; > + compatible = "nuvoton,npcm750"; Give your machine a compatible string too. eg: compatible = "qanta,gbs-bmc", "nuvoton,npcm750"; > + > + ahb { > + fiu0: spi@fb000000 { > + pinctrl-names = "default"; > + pinctrl-0 = <&spi0cs1_pins>; > + status = "okay"; > + spi-nor@0 { > + compatible = "jedec,spi-nor"; > + #address-cells = <1>; > + #size-cells = <1>; > + reg = <0>; > + spi-max-frequency = <19000000>; > + spi-rx-bus-width = <2>; > + label = "bmc"; > + partitions@80000000 { > + compatible = "fixed-partitions"; > + #address-cells = <1>; > + #size-cells = <1>; > + u-boot@0 { > + label = "u-boot"; > + reg = <0x0000000 0xf0000>; > + }; > + image-descriptor@f0000 { > + label = "image-descriptor"; > + reg = <0xf0000 0x10000>; > + }; > + hoth-update@100000 { > + label = "hoth-update"; > + reg = <0x100000 0x100000>; > + }; Is this layout common for all nuvoton openbmc machines? > + kernel@200000 { > + label = "kernel"; > + reg = <0x200000 0x500000>; > + }; > + rofs@700000 { > + label = "rofs"; > + reg = <0x700000 0x35f0000>; > + }; > + rwfs@3cf0000 { > + label = "rwfs"; > + reg = <0x3cf0000 0x300000>; > + }; > + hoth-mailbox@3ff0000 { > + label = "hoth-mailbox"; > + reg = <0x3ff0000 0x10000>; > + }; > + }; > + }; > + }; > + > + gmac0: eth@f0802000 { Please take a look at the latest version of the other nuvoton device trees. They now follow the convention of using phandles to enable devices. eg: &gmac { status = "okay"; phy-mode = "rgmii-id"; snps,eee-force-disable; }; Please update all of the nodes to use this style. > + status = "okay"; > + phy-mode = "rgmii-id"; > + snps,eee-force-disable; > + }; > + >