Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2385671rdh; Wed, 27 Sep 2023 00:27:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH2B4nxjcycy6ARPcywA2YL7RXD09qh0wssbRUcoRGLUY9yb6bHfIf7VQvGgL6pn8kRW9zG X-Received: by 2002:a05:6a20:3942:b0:15e:9032:4199 with SMTP id r2-20020a056a20394200b0015e90324199mr1343161pzg.18.1695799625173; Wed, 27 Sep 2023 00:27:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695799625; cv=none; d=google.com; s=arc-20160816; b=jSepG6ZK8pWukO/85GBWEBV2MwUjHv6wlq02GClkYgqL/GNmcm0G6uxXCHFdI/7JLP hXlbVb9d3LEpx3aqpDpdzcsNJvwX1kdKwiFlb3+tO+b0A8njhj5ITUFotuCoSPPKNxVU jvz3O7qCH2FOodhCYyZOj8wuPsJBWbw8LHMQfycHR1tjT+7Icsvsc9fSHFSQ5mzB01rr 44P0EinH8gl0zEDZoa9+UVVkNDVpmAM3zn1pqUA7ChseuSsEhiHWNSWf9SKdiOVj2s9s Fo3WKK+RD1sr5lj4ljPh5mbnn+ya8GpSTmtjad5ZRoMzAE74Q5HDzuTLoOPcBoQUL5SA Xy6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=P/nKjSTgtvWlgWPru9cXgw85e2YDjLMZClxSdEw5Ww4=; fh=dsXtkkByEheYSb5hhlsJPNepqoKVdxxjmFe2XXGOxB0=; b=MqgGTu3hJlf0+Dax+JZvTrb/hGdxnmJqARfihWeToqoCbVU9QcfwPxLi2wcf1H68ym 1jlcnh9vaH7mqE6kyQ0BNO94eyPYXu33ApP5cxPsgEVk+eLuHu0uGUCuEJa7Fefps6gM dM5/riBDAyhtvvesAieF7X7jyPLKD7KM/e0W/GFVjXkBRvHruC7FyR4mLbnMncmpEoCd mNC/6OtNE0XtqdD6GnoTHTvASq8zYlzHhtTAzOQPuuSSrVyJsIdZglAnQfFUECLxVoxG zvf5NPlrvFjSCyg5UTHF2nBl8hU7W4L5xlOgOWEDp7jcR1wwxijFHIIobfMSScOfDi5J l3fQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@jms.id.au header.s=google header.b="F/8/y5kL"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id z2-20020a1709027e8200b001c60c5726b8si8439530pla.5.2023.09.27.00.27.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 00:27:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@jms.id.au header.s=google header.b="F/8/y5kL"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 75F3481489D4; Tue, 26 Sep 2023 20:25:49 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229520AbjI0DZY (ORCPT + 99 others); Tue, 26 Sep 2023 23:25:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229495AbjI0DXW (ORCPT ); Tue, 26 Sep 2023 23:23:22 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54399D012; Tue, 26 Sep 2023 19:47:27 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-99357737980so1241805666b.2; Tue, 26 Sep 2023 19:47:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jms.id.au; s=google; t=1695782846; x=1696387646; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=P/nKjSTgtvWlgWPru9cXgw85e2YDjLMZClxSdEw5Ww4=; b=F/8/y5kLDXriW/XD/zA99fZHAkUYNIqFGkidSOkAHWQse59NzqsrsmAUlSuiRG9pQR YYa7t+MUs1l5LxLCz4jJmPZ1QkOsEJ9HYOcTgndyGXAoyy2zQJsdO9jaIPXnTb+kkLDm BCGkH1we1ZqNqde8IJ7cC33XLqoIdkPYAnrYA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695782846; x=1696387646; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=P/nKjSTgtvWlgWPru9cXgw85e2YDjLMZClxSdEw5Ww4=; b=Ju0bxxvLzQhvf02gRLEfBDAJqPFDM/uCbtCMHh5txyK18qRFmr60Io3SCxjI3eVyrM YXWsZGKXBNzN8LPKzVkAXVdvz5nTs/ZzKKt4LtCUmFw5mHnpKaJxZnzbaN1aUpENBzy+ yNckg4KHim5yDazsD/j9pspKSNn7nZ5SlSbCOgE12y8nmLego4eMSSrojZFVHJeZ3I0y gmGGYI6fXFs1GmHVtvM7mjbYIirAY1T/vgZOm2t8ofKqgI7ZmW8IoHWWeAZaO+BHEBD1 NV4KaXgwCxjhL6i3hgiqrbPAzx2kVFZtEr37A0ZPA7XyBVrvajLa9pdb16+kzG/pINe/ G16w== X-Gm-Message-State: AOJu0YyDFrp2WHBBSv8Y8BsWJC3tZ6d+uZhIph0Ean8+fkr8luJfF+EG /5iug0wa/kefRiWoa1ebO6z3d9j2hco9yH+THvk= X-Received: by 2002:a17:906:f15:b0:9ae:53df:9855 with SMTP id z21-20020a1709060f1500b009ae53df9855mr498026eji.58.1695782845675; Tue, 26 Sep 2023 19:47:25 -0700 (PDT) MIME-Version: 1.0 References: <20230914125648.3966519-1-yangchen.openbmc@gmail.com> <20230914125648.3966519-3-yangchen.openbmc@gmail.com> In-Reply-To: <20230914125648.3966519-3-yangchen.openbmc@gmail.com> From: Joel Stanley Date: Wed, 27 Sep 2023 02:47:14 +0000 Message-ID: Subject: Re: [PATCH v2 2/2] ARM: dts: aspeed: Minerva: Add Facebook Minerva CMC board To: Yang Chen Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, andrew@aj.id.au, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, patrick@stwcx.xyz, Jerry.Lin@quantatw.com, Eddie.Chen@quantatw.com, EasonChen1@quantatw.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 26 Sep 2023 20:25:49 -0700 (PDT) On Thu, 14 Sept 2023 at 12:59, Yang Chen wrote: > > Add linux device tree entry related to the Minerva Chassis Management > Controller (CMC) specific devices connected to the Aspeed SoC (AST2600). > > Signed-off-by: Yang Chen Reviewed-by: Joel Stanley There was one warning when building. Please double check your code compiles cleanly before submitting: arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-minerva-cmc.dts:91.24-94.4: Warning (i2c_bus_reg): /ahb/apb/bus@1e78a000/i2c-bus@100/temperature-sensor@4B: I2C bus unit address format error, expected "4b" I've fixed that and added your patch to the aspeed tree for 6.7. > --- > arch/arm/boot/dts/aspeed/Makefile | 1 + > .../aspeed-bmc-facebook-minerva-cmc.dts | 265 ++++++++++++++++++ > 2 files changed, 266 insertions(+) > create mode 100644 arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-minerva-cmc.dts > > diff --git a/arch/arm/boot/dts/aspeed/Makefile b/arch/arm/boot/dts/aspeed/Makefile > index 23cbc7203a8e..d3ac20e316d0 100644 > --- a/arch/arm/boot/dts/aspeed/Makefile > +++ b/arch/arm/boot/dts/aspeed/Makefile > @@ -19,6 +19,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \ > aspeed-bmc-facebook-fuji.dtb \ > aspeed-bmc-facebook-galaxy100.dtb \ > aspeed-bmc-facebook-greatlakes.dtb \ > + aspeed-bmc-facebook-minerva-cmc.dtb \ > aspeed-bmc-facebook-minipack.dtb \ > aspeed-bmc-facebook-tiogapass.dtb \ > aspeed-bmc-facebook-wedge40.dtb \ > diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-minerva-cmc.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-minerva-cmc.dts > new file mode 100644 > index 000000000000..3c389fdf58a5 > --- /dev/null > +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-minerva-cmc.dts > @@ -0,0 +1,265 @@ > +// SPDX-License-Identifier: GPL-2.0+ > +// Copyright (c) 2023 Facebook Inc. > +/dts-v1/; > + > +#include "aspeed-g6.dtsi" > +#include > +#include > + > +/ { > + model = "Facebook Minerva CMC"; > + compatible = "facebook,minerva-cmc", "aspeed,ast2600"; > + > + aliases { > + serial5 = &uart5; > + }; > + > + chosen { > + stdout-path = "serial5:57600n8"; > + }; > + > + memory@80000000 { > + device_type = "memory"; > + reg = <0x80000000 0x80000000>; > + }; > + > + iio-hwmon { > + compatible = "iio-hwmon"; > + io-channels = <&adc0 0>, <&adc0 1>, <&adc0 2>, <&adc0 3>, > + <&adc0 4>, <&adc0 5>, <&adc0 6>, <&adc0 7>, > + <&adc1 2>; > + }; > +}; > + > +&uart6 { > + status = "okay"; > +}; > + > +&wdt1 { > + status = "okay"; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_wdtrst1_default>; > + aspeed,reset-type = "soc"; > + aspeed,external-signal; > + aspeed,ext-push-pull; > + aspeed,ext-active-high; > + aspeed,ext-pulse-duration = <256>; > +}; > + > +&mac3 { > + status = "okay"; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_rmii4_default>; > + use-ncsi; > + mlx,multi-host; > +}; > + > +&fmc { > + status = "okay"; > + flash@0 { > + status = "okay"; > + m25p,fast-read; > + label = "bmc"; > + spi-max-frequency = <50000000>; > +#include "openbmc-flash-layout-128.dtsi" > + }; > + flash@1 { > + status = "okay"; > + m25p,fast-read; > + label = "alt-bmc"; > + spi-max-frequency = <50000000>; > + }; > +}; > + > +&rtc { > + status = "okay"; > +}; > + > +&sgpiom1 { > + status = "okay"; > + ngpios = <128>; > + bus-frequency = <2000000>; > +}; > + > +&i2c0 { > + status = "okay"; > +}; > + > +&i2c1 { > + status = "okay"; > + > + temperature-sensor@4B { > + compatible = "ti,tmp75"; > + reg = <0x4B>; > + }; > + > + eeprom@51 { > + compatible = "atmel,24c128"; > + reg = <0x51>; > + }; > +}; > + > +&i2c2 { > + status = "okay"; > + > + i2c-mux@77 { > + compatible = "nxp,pca9548"; > + reg = <0x77>; > + #address-cells = <1>; > + #size-cells = <0>; > + i2c-mux-idle-disconnect; > + > + i2c@0 { > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <0>; > + > + eeprom@50 { > + compatible = "atmel,24c128"; > + reg = <0x50>; > + }; > + }; > + > + i2c@1 { > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <1>; > + > + eeprom@50 { > + compatible = "atmel,24c128"; > + reg = <0x50>; > + }; > + }; > + > + i2c@2 { > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <2>; > + > + eeprom@50 { > + compatible = "atmel,24c128"; > + reg = <0x50>; > + }; > + }; > + > + i2c@3 { > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <3>; > + > + eeprom@50 { > + compatible = "atmel,24c128"; > + reg = <0x50>; > + }; > + }; > + > + i2c@4 { > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <4>; > + > + eeprom@50 { > + compatible = "atmel,24c128"; > + reg = <0x50>; > + }; > + }; > + > + i2c@5 { > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <5>; > + > + eeprom@50 { > + compatible = "atmel,24c128"; > + reg = <0x50>; > + }; > + }; > + }; > +}; > + > +&i2c3 { > + status = "okay"; > +}; > + > +&i2c4 { > + status = "okay"; > +}; > + > +&i2c5 { > + status = "okay"; > +}; > + > +&i2c6 { > + status = "okay"; > +}; > + > +&i2c7 { > + status = "okay"; > +}; > + > +&i2c8 { > + status = "okay"; > +}; > + > +&i2c9 { > + status = "okay"; > +}; > + > +&i2c10 { > + status = "okay"; > +}; > + > +&i2c11 { > + status = "okay"; > +}; > + > +&i2c12 { > + status = "okay"; > +}; > + > +&i2c13 { > + status = "okay"; > +}; > + > +&i2c14 { > + status = "okay"; > + multi-master; > + > + ipmb@10 { > + compatible = "ipmb-dev"; > + reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>; > + i2c-protocol; > + }; > +}; > + > +&i2c15 { > + status = "okay"; > + > + eeprom@50 { > + compatible = "atmel,24c128"; > + reg = <0x50>; > + }; > +}; > + > +&adc0 { > + aspeed,int-vref-microvolt = <2500000>; > + status = "okay"; > + pinctrl-0 = <&pinctrl_adc0_default &pinctrl_adc1_default > + &pinctrl_adc2_default &pinctrl_adc3_default > + &pinctrl_adc4_default &pinctrl_adc5_default > + &pinctrl_adc6_default &pinctrl_adc7_default>; > +}; > + > +&adc1 { > + aspeed,int-vref-microvolt = <2500000>; > + status = "okay"; > + pinctrl-0 = <&pinctrl_adc10_default>; > +}; > + > +&ehci1 { > + status = "okay"; > +}; > + > +&uhci { > + status = "okay"; > +}; > -- > 2.34.1 >