Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2626138pxa; Mon, 24 Aug 2020 21:17:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfF1sfirKwMDXlrVYI82Jx5AjB7X+oZk/oAyR3mALrrNUZg4yOug+LbDbe6VRqyrrdfFEj X-Received: by 2002:a17:906:b210:: with SMTP id p16mr5009093ejz.312.1598329038465; Mon, 24 Aug 2020 21:17:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598329038; cv=none; d=google.com; s=arc-20160816; b=PPbscn00JYZ4OENzsJ2Tkc8vpPHpgHYwYNELbKTfhTBI7Eg7E7QPONeF/TfDXTCYDJ lHjLLBfrgTL26f+XR+e8rVpygoDULBIOxfHN0byaLx0zONYGBvF7rA8v3y/xoJoFgIN8 PGP53j0dtVI3y3OBIPeKq1O8VUKIGNtzCx3jDxGE7Npdd8GwoQgx6VpkWglpWEeN/Ckv VpaP9PfKjL8teMeQu0NEL8XInsxvPhVVrqih+El9kl8M4ypCA8jgjGUSFaw4b3axZ9BL Cg/ALqdJ0E3nATjA8vTY42X8jD49iDwUGN4rZC2j0lKyCHur+ZZngN8K9Z6I1fzPBOj7 YciQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=UITx1xORgQTs7pWtnOJgbslnkFhN6uaHw/ccxDHn3Lo=; b=k5yumnuYHQZ2C7gphPifs2bqT8HcV2/iY2xHAMOPTg5sJWBmzn2oMHeW+UnT+fVMna WoqMBOMctryILH+0fHtyjWKsYZycyVrpkVcd1CpZTvAjv/EV/ry14XYJl/XVapv7WJST xWDSdYE5JoGOs1/TW58tF6hplcNE0P7XzPBbUBmyv1DulfKpRiEgvaEmKDguFa/O+RlJ BkCz/Pmj+YQ3t2PVHlEghMwQw5tlP4A/sB0nKj/NpOCRTnMQVDhpM+tmJbhvfVZVdQCU sk6Wf7eAYGVgeGdsmpg94tenq+fHnKbLyUQ5i/90GqUezhnNh8Zd8riDmi9KkAvBQA5V h/MA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@jms.id.au header.s=google header.b=QByWUkIE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bl4si8974306ejb.579.2020.08.24.21.16.54; Mon, 24 Aug 2020 21:17:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@jms.id.au header.s=google header.b=QByWUkIE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726066AbgHYEIK (ORCPT + 99 others); Tue, 25 Aug 2020 00:08:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725881AbgHYEIK (ORCPT ); Tue, 25 Aug 2020 00:08:10 -0400 Received: from mail-ed1-x543.google.com (mail-ed1-x543.google.com [IPv6:2a00:1450:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12FDDC061574; Mon, 24 Aug 2020 21:08:10 -0700 (PDT) Received: by mail-ed1-x543.google.com with SMTP id di22so9972110edb.12; Mon, 24 Aug 2020 21:08:10 -0700 (PDT) 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=UITx1xORgQTs7pWtnOJgbslnkFhN6uaHw/ccxDHn3Lo=; b=QByWUkIEOTbEA8Jf+aWgoFiAOyXS4SamtG32JxFywYHgV6ql0w+BbmeUsIqe7Ov+o4 ceBNPyh7Ek5VP9/vAyMwkg2U2IWjQKiRDYNGaL3dLKaF0wPCL4yQ0ucZY6InCpKarKV4 pSubCcUTFf3YWQsLv48zBvz65c48bl5Yw1+ww= 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=UITx1xORgQTs7pWtnOJgbslnkFhN6uaHw/ccxDHn3Lo=; b=S3MGLciDApKvfJMsrUhtSaoLWXxnA6pUY4dMG3A/ioLy+fncK+Mg1MBtYr25lNfvyu BcrV9I7ikpkuVVrnDUROouSGvCqZjqK00RHLDQpy8yKI3JSWVOOnRthIWgJquYp9YXVZ HW73kxqcmhMKX5Ki8QcIJHP8jvy3gId5gSvhyV2N+0ICS5pt1n+23cfMlzz7Glnb2smT gg4uTokEfRuOHim33lVZ8oWxuVdy8Tx41cAS1P5tdW2nzfQfq8EI5C7xXJqvK0J3SBEu vL0C+tBJiaMa7Vg1mfSifi34zqRvPINPU44v5MReUKFeqRVbWS7jBfrTcQI8GMWuCryZ cbYQ== X-Gm-Message-State: AOAM5335eV+1Wz96ZKp3OnyK+x0e784IpCLg2zHY7mre2fFLB7ts0/9O gFgfLfhjkDAiM6q6DT4Xq+6RAIw3PveWlNe4DSU= X-Received: by 2002:a05:6402:36f:: with SMTP id s15mr375329edw.325.1598328488676; Mon, 24 Aug 2020 21:08:08 -0700 (PDT) MIME-Version: 1.0 References: <20200824211948.12852-1-rentao.bupt@gmail.com> <20200824211948.12852-6-rentao.bupt@gmail.com> In-Reply-To: <20200824211948.12852-6-rentao.bupt@gmail.com> From: Joel Stanley Date: Tue, 25 Aug 2020 04:07:56 +0000 Message-ID: Subject: Re: [PATCH 5/5] ARM: dts: aspeed: Add Facebook Wedge400 BMC To: Tao Ren Cc: Rob Herring , Andrew Jeffery , devicetree , Linux ARM , linux-aspeed , Linux Kernel Mailing List , OpenBMC Maillist , Tao Ren Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 24 Aug 2020 at 21:20, wrote: > > From: Tao Ren > > Add initial version of device tree for Facebook Wedge400 (AST2500) BMC. > > Signed-off-by: Tao Ren Reviewed-by: Joel Stanley > --- > arch/arm/boot/dts/Makefile | 1 + > .../boot/dts/aspeed-bmc-facebook-wedge400.dts | 420 ++++++++++++++++++ > 2 files changed, 421 insertions(+) > create mode 100644 arch/arm/boot/dts/aspeed-bmc-facebook-wedge400.dts > > diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile > index 77f1c95c4e1c..24f7acc0e2ee 100644 > --- a/arch/arm/boot/dts/Makefile > +++ b/arch/arm/boot/dts/Makefile > @@ -1354,6 +1354,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \ > aspeed-bmc-facebook-tiogapass.dtb \ > aspeed-bmc-facebook-wedge40.dtb \ > aspeed-bmc-facebook-wedge100.dtb \ > + aspeed-bmc-facebook-wedge400.dtb \ > aspeed-bmc-facebook-yamp.dtb \ > aspeed-bmc-facebook-yosemitev2.dtb \ > aspeed-bmc-ibm-rainier.dtb \ > diff --git a/arch/arm/boot/dts/aspeed-bmc-facebook-wedge400.dts b/arch/arm/boot/dts/aspeed-bmc-facebook-wedge400.dts > new file mode 100644 > index 000000000000..ad1fcad3676c > --- /dev/null > +++ b/arch/arm/boot/dts/aspeed-bmc-facebook-wedge400.dts > @@ -0,0 +1,420 @@ > +// SPDX-License-Identifier: GPL-2.0+ > +// Copyright (c) 2019 Facebook Inc. > +/dts-v1/; > + > +#include > +#include "ast2500-facebook-netbmc-common.dtsi" > + > +/ { > + model = "Facebook Wedge 400 BMC"; > + compatible = "facebook,wedge400-bmc", "aspeed,ast2500"; > + > + aliases { > + /* > + * PCA9548 (2-0070) provides 8 channels connecting to > + * SCM (System Controller Module). > + */ > + i2c16 = &imux16; > + i2c17 = &imux17; > + i2c18 = &imux18; > + i2c19 = &imux19; > + i2c20 = &imux20; > + i2c21 = &imux21; > + i2c22 = &imux22; > + i2c23 = &imux23; > + > + /* > + * PCA9548 (8-0070) provides 8 channels connecting to > + * SMB (Switch Main Board). > + */ > + i2c24 = &imux24; > + i2c25 = &imux25; > + i2c26 = &imux26; > + i2c27 = &imux27; > + i2c28 = &imux28; > + i2c29 = &imux29; > + i2c30 = &imux30; > + i2c31 = &imux31; > + > + /* > + * PCA9548 (11-0076) provides 8 channels connecting to > + * FCM (Fan Controller Module). > + */ > + i2c32 = &imux32; > + i2c33 = &imux33; > + i2c34 = &imux34; > + i2c35 = &imux35; > + i2c36 = &imux36; > + i2c37 = &imux37; > + i2c38 = &imux38; > + i2c39 = &imux39; > + > + spi2 = &spi_gpio; > + }; > + > + chosen { > + stdout-path = &uart1; > + bootargs = "console=ttyS0,9600n8 root=/dev/ram rw"; > + }; > + > + ast-adc-hwmon { > + compatible = "iio-hwmon"; > + io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>, <&adc 4>; > + }; > + > + /* > + * GPIO-based SPI Master is required to access SPI TPM, because > + * full-duplex SPI transactions are not supported by ASPEED SPI > + * Controllers. > + */ > + spi_gpio: spi-gpio { > + status = "okay"; > + compatible = "spi-gpio"; > + #address-cells = <1>; > + #size-cells = <0>; > + > + cs-gpios = <&gpio ASPEED_GPIO(R, 2) GPIO_ACTIVE_LOW>; > + gpio-sck = <&gpio ASPEED_GPIO(R, 3) GPIO_ACTIVE_HIGH>; > + gpio-mosi = <&gpio ASPEED_GPIO(R, 4) GPIO_ACTIVE_HIGH>; > + gpio-miso = <&gpio ASPEED_GPIO(R, 5) GPIO_ACTIVE_HIGH>; > + num-chipselects = <1>; > + > + tpmdev@0 { > + compatible = "tcg,tpm_tis-spi"; > + spi-max-frequency = <33000000>; > + reg = <0>; > + }; > + }; > +}; > + > +/* > + * Both firmware flashes are 128MB on Wedge400 BMC. > + */ > +&fmc_flash0 { > + partitions { > + compatible = "fixed-partitions"; > + #address-cells = <1>; > + #size-cells = <1>; > + > + /* > + * u-boot partition: 384KB. > + */ > + u-boot@0 { > + reg = <0x0 0x60000>; > + label = "u-boot"; > + }; > + > + /* > + * u-boot environment variables: 128KB. > + */ > + u-boot-env@60000 { > + reg = <0x60000 0x20000>; > + label = "env"; > + }; > + > + /* > + * FIT image: 123.5 MB. > + */ > + fit@80000 { > + reg = <0x80000 0x7b80000>; > + label = "fit"; > + }; > + > + /* > + * "data0" partition (4MB) is reserved for persistent > + * data store. > + */ > + data0@3800000 { > + reg = <0x7c00000 0x800000>; > + label = "data0"; > + }; > + > + /* > + * "flash0" partition (covering the entire flash) is > + * explicitly created to avoid breaking legacy applications. > + */ > + flash0@0 { > + reg = <0x0 0x8000000>; > + label = "flash0"; > + }; > + }; > +}; > + > +&fmc_flash1 { > + partitions { > + compatible = "fixed-partitions"; > + #address-cells = <1>; > + #size-cells = <1>; > + > + flash1@0 { > + reg = <0x0 0x8000000>; > + label = "flash1"; > + }; > + }; > +}; > + > +&uart2 { > + status = "okay"; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_txd2_default > + &pinctrl_rxd2_default>; > +}; > + > +&uart4 { > + status = "okay"; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_txd4_default > + &pinctrl_rxd4_default>; > +}; > + > +/* > + * I2C bus #0 is multi-master environment dedicated for BMC and Bridge IC > + * communication. > + */ > +&i2c0 { > + status = "okay"; > + multi-master; > + bus-frequency = <1000000>; > +}; > + > +&i2c1 { > + status = "okay"; > +}; > + > +&i2c2 { > + status = "okay"; > + > + i2c-switch@70 { > + compatible = "nxp,pca9548"; > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <0x70>; > + i2c-mux-idle-disconnect; > + > + imux16: i2c@0 { > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <0>; > + }; > + > + imux17: i2c@1 { > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <1>; > + }; > + > + imux18: i2c@2 { > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <2>; > + }; > + > + imux19: i2c@3 { > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <3>; > + }; > + > + imux20: i2c@4 { > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <4>; > + }; > + > + imux21: i2c@5 { > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <5>; > + }; > + > + imux22: i2c@6 { > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <6>; > + }; > + > + imux23: i2c@7 { > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <7>; > + }; > + }; > +}; > + > +&i2c3 { > + status = "okay"; > +}; > + > +&i2c4 { > + status = "okay"; > +}; > + > +&i2c5 { > + status = "okay"; > +}; > + > +&i2c6 { > + status = "okay"; > +}; > + > +&i2c7 { > + status = "okay"; > +}; > + > +&i2c8 { > + status = "okay"; > + > + i2c-switch@70 { > + compatible = "nxp,pca9548"; > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <0x70>; > + i2c-mux-idle-disconnect; > + > + imux24: i2c@0 { > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <0>; > + }; > + > + imux25: i2c@1 { > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <1>; > + }; > + > + imux26: i2c@2 { > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <2>; > + }; > + > + imux27: i2c@3 { > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <3>; > + }; > + > + imux28: i2c@4 { > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <4>; > + }; > + > + imux29: i2c@5 { > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <5>; > + }; > + > + imux30: i2c@6 { > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <6>; > + }; > + > + imux31: i2c@7 { > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <7>; > + }; > + > + }; > +}; > + > +&i2c9 { > + status = "okay"; > +}; > + > +&i2c10 { > + status = "okay"; > +}; > + > +&i2c11 { > + status = "okay"; > + > + i2c-switch@76 { > + compatible = "nxp,pca9548"; > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <0x76>; > + i2c-mux-idle-disconnect; > + > + imux32: i2c@0 { > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <0>; > + }; > + > + imux33: i2c@1 { > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <1>; > + }; > + > + imux34: i2c@2 { > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <2>; > + }; > + > + imux35: i2c@3 { > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <3>; > + }; > + > + imux36: i2c@4 { > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <4>; > + }; > + > + imux37: i2c@5 { > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <5>; > + }; > + > + imux38: i2c@6 { > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <6>; > + }; > + > + imux39: i2c@7 { > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <7>; > + }; > + > + }; > +}; > + > +&i2c12 { > + status = "okay"; > +}; > + > +&i2c13 { > + status = "okay"; > +}; > + > +&adc { > + status = "okay"; > +}; > + > +&ehci1 { > + status = "okay"; > +}; > + > +&uhci { > + status = "okay"; > +}; > + > +&sdhci1 { > + /* > + * DMA mode needs to be disabled to avoid conflicts with UHCI > + * Controller in AST2500 SoC. > + */ > + sdhci-caps-mask = <0x0 0x580000>; > +}; > -- > 2.17.1 >