Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1464730iog; Tue, 14 Jun 2022 06:40:22 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vpDzfULkUUdhdOHhBYVODRmBbCvkM0hNMOeUWY/W4IUa/6ENElAQBm4hNMJhhz/xmNnZfy X-Received: by 2002:a05:6402:5cb:b0:434:eb48:754f with SMTP id n11-20020a05640205cb00b00434eb48754fmr6223213edx.421.1655214022552; Tue, 14 Jun 2022 06:40:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655214022; cv=none; d=google.com; s=arc-20160816; b=By8oNQ/D+r+SHXwUc8Th5kZ76i0i5UkaIMIytMh7SDInyulN+aErox9b4XaiwaHDwu qnJhqNcwF/xnMohdbt+N0DFTySDXcLFze9hCW8WNUZc8evH+dEKQuSpTJRpT4vqQJTfb qBTUMmjoNp4Ah+Bsy2wfvP8yQMLHmC2ieWJuInDHntIVOWL+bYhZLorbtHSV7TKYGHJM vjhVs6yNwQK35dxKtDcJSJlEehk2V5o3YDkett16jkVSJzEXm/qQuFbr/KlKadtv4UbY +au1aHhGEYwoWo/rJ0wOnQzCPReqUQNEMMu9lCpbGjsWpYHEOSXuB8Zoe84okVqcmVi6 F9Yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:content-disposition:mime-version :message-id:subject:cc:to:date:from:dkim-signature; bh=PXdAipzTvt3rG1BHsoqxaq3VWKbvzJuF2FmNeakRABE=; b=wULz8PMqNwkP5E9kIAYur8TZSl+NM6ExfcdTc2bxNFJP3tnNFV2v0W6uIJivmKxZUD Dlmr3ADII2C4Wh8lJV+cNXSMG4B6FGPcZogObBiKbUwdZvEUMQNTZ6dgbrT1/1jIwzDx L+vCsoopP1YXBHzV6PDopEyxhIaCVzjaPVk4sa+sHp3LitDlwGPT5Ikw4UOiOFDcE+mh 4j7WVh5DpjeBQP59CXtmsyFd3Q9ws4ABKkXSptYEoLKBbkBkVW5Arq2z+aUjXSJ51t+P S4d/1+ES65Ebsf1rw1wRyecb6F354vNeY+M2qzLxthE5o/3yjsNDLPJm60kJy26hKsx6 NNHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Cf3aKaJS; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o6-20020a170906974600b006f3941cda0bsi12536672ejy.129.2022.06.14.06.39.56; Tue, 14 Jun 2022 06:40:22 -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=@gmail.com header.s=20210112 header.b=Cf3aKaJS; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235345AbiFNMzg (ORCPT + 99 others); Tue, 14 Jun 2022 08:55:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232585AbiFNMzf (ORCPT ); Tue, 14 Jun 2022 08:55:35 -0400 Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C3103BBFD; Tue, 14 Jun 2022 05:55:34 -0700 (PDT) Received: by mail-pg1-x533.google.com with SMTP id 129so8451028pgc.2; Tue, 14 Jun 2022 05:55:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:date:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=PXdAipzTvt3rG1BHsoqxaq3VWKbvzJuF2FmNeakRABE=; b=Cf3aKaJSQSmInGCMy07llaiKqiO9WRoLEov1RalN7yhG5GQmzwZvHSuuBZJM6EpYKy PK7bU1bXEScRdz1w/5oIbBvf1ZkSEl4XZJZxuF2aTac1AiQwZX0knQybzzQeO/tng98i hY7N09PSDXC1gmYIImSLR5zl77CDnjM7TTZl/cQcFv9kFd1fsf7quKiyojPO3NotuGZQ ARq8549fUb9G95WUzUlP+wfSfK2rdwPxY3b5vR/54DC2jZZtFBXTPcF1Bvli1xi8t+vB QQRc6Eu6Fg5yNgAoWyfoipDct5CFJYJECjMhsc9Zl5llgfvTZPSVhvyOZBVoloTTTtXF 4lAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:date:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=PXdAipzTvt3rG1BHsoqxaq3VWKbvzJuF2FmNeakRABE=; b=1WTIjJr85jW+PyP7fl3o9PkUDPrDJrFy8rkqP9wBfTQjgfAuqEYWYRDUd0zf7oESU1 O0JmrT8k+iSJH2zIYmtsakcIY8inNTSSfD0nlOt8Hi4ouKOQlyrudegPAKKUOyjjde72 DFL/qF1SudkhJQzmCfkZ6QdF6jy/6SRUbb7OxlzI6Rsd64jhT3Qg9JmTCJJEPDECH5vM y2ZdnbvHpUKbKFK7kJ0SxrlesRQdfDtWC1oAJEri6PJjPjVGA1hov0L2HU2SCMh+gQ9+ PhwDOtgUqXNLazZmfDEbCDyp2OVmYEhgKnt1xGf/o0mcXwFCwcYXtd6N6wv/wjHf6bJi yasg== X-Gm-Message-State: AOAM5331mXUSfNrI7COFjOQ6hMRR8YDE0ROGSb74PDkzEuU9L6p11OZ5 +k5jmHj0lsv6ZVSZSFkBVU0= X-Received: by 2002:a05:6a00:2392:b0:51b:fe0e:2b8 with SMTP id f18-20020a056a00239200b0051bfe0e02b8mr4371363pfc.84.1655211333665; Tue, 14 Jun 2022 05:55:33 -0700 (PDT) Received: from logan-ThinkPad-T14-Gen-1 ([117.213.143.139]) by smtp.gmail.com with ESMTPSA id d190-20020a6368c7000000b003fd4bd3befesm7751167pgc.55.2022.06.14.05.55.28 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 14 Jun 2022 05:55:32 -0700 (PDT) From: Logananth Sundararaj X-Google-Original-From: Logananth Sundararaj Date: Tue, 14 Jun 2022 18:25:25 +0530 To: Arnd Bergmann , Olof Johansson , soc@kernel.org, Rob Herring , Joel Stanley , Andrew Jeffery , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-aspeed@lists.ozlabs.org, openbmc@lists.ozlabs.org Cc: patrick@stwcx.xyz, garnermic@gmail.com, thangavel.k@hcl.com, naveen.mosess@hcl.com Subject: [PATCH] ARM: dts: aspeed: Adding Facebook Yosemite V3 BMC Message-ID: <20220614125525.GA3629@logan-ThinkPad-T14-Gen-1> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 The Yosemite V3 is a facebook multi-node server platform that host four OCP server. The BMC in the Yosemite V3 platform based on AST2600 SoC. This patch adds linux device tree entry related to Yosemite V3 specific devices connected to BMC SoC. Signed-off-by: Logananth Sundararaj --- --- v1 - Initial draft. --- arch/arm/boot/dts/Makefile | 1 + .../boot/dts/aspeed-bmc-facebook-fby35.dts | 251 ++++++++++++++++++ 2 files changed, 252 insertions(+) create mode 100644 arch/arm/boot/dts/aspeed-bmc-facebook-fby35.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 7e0934180724..58add093e5fb 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -1465,6 +1465,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \ aspeed-bmc-facebook-cloudripper.dtb \ aspeed-bmc-facebook-cmm.dtb \ aspeed-bmc-facebook-elbert.dtb \ + aspeed-bmc-facebook-fby35.dtb \ aspeed-bmc-facebook-fuji.dtb \ aspeed-bmc-facebook-galaxy100.dtb \ aspeed-bmc-facebook-minipack.dtb \ diff --git a/arch/arm/boot/dts/aspeed-bmc-facebook-fby35.dts b/arch/arm/boot/dts/aspeed-bmc-facebook-fby35.dts new file mode 100644 index 000000000000..7ddf2d442c22 --- /dev/null +++ b/arch/arm/boot/dts/aspeed-bmc-facebook-fby35.dts @@ -0,0 +1,251 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +// Copyright (c) 2020 Facebook Inc. + +/dts-v1/; + +#include "aspeed-g6.dtsi" +#include + +/ { + model = "Facebook fby35"; + compatible = "facebook,fby35", "aspeed,ast2600"; + + aliases { + serial4 = &uart5; + }; + + chosen { + stdout-path = &uart5; + bootargs = "console=ttyS4,57600n8 root=/dev/ram rw vmalloc=384M"; + }; + + 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 0>, <&adc1 1>, <&adc1 2>, <&adc1 3>, + <&adc1 4>, <&adc1 5>, <&adc1 6>; + }; + spi_gpio: spi-gpio { + status = "okay"; + compatible = "spi-gpio"; + #address-cells = <1>; + #size-cells = <0>; + + gpio-sck = <&gpio0 ASPEED_GPIO(X, 3) GPIO_ACTIVE_HIGH>; + gpio-mosi = <&gpio0 ASPEED_GPIO(X, 4) GPIO_ACTIVE_HIGH>; + gpio-miso = <&gpio0 ASPEED_GPIO(X, 5) GPIO_ACTIVE_HIGH>; + num-chipselects = <1>; + cs-gpios = <&gpio0 ASPEED_GPIO(X, 0) GPIO_ACTIVE_LOW>; + + tpmdev@0 { + compatible = "tcg,tpm_tis-spi"; + spi-max-frequency = <33000000>; + reg = <0>; + }; + }; + +}; + +&mac3 { + status = "okay"; + + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_rmii4_default>; + no-hw-checksum; + use-ncsi; + mlx,multi-host; + ncsi-ctrl,start-redo-probe; + ncsi-ctrl,no-channel-monitor; + ncsi-package = <1>; + ncsi-channel = <1>; + ncsi-rexmit = <1>; + ncsi-timeout = <2>; +}; + +&uart1 { + status = "okay"; +}; + +&uart2 { + status = "okay"; +}; + +&uart3 { + status = "okay"; +}; + +&uart4 { + status = "okay"; +}; + +&uart5 { + status = "okay"; + /* Workaround for AST2600 A0 */ + compatible = "snps,dw-apb-uart"; +}; + +&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>; +}; + +&rtc { + status = "okay"; +}; + +&fmc { + status = "okay"; + reg = <0x1e620000 0xc4>, <0x20000000 0x8000000>; + flash@0 { + status = "okay"; + m25p,fast-read; + label = "spi0.1"; + spi-max-frequency = <50000000>; + spi-tx-bus-width = <2>; + spi-rx-bus-width = <2>; + #include "openbmc-flash-layout-64.dtsi" + }; +}; + +&spi1 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_spi1_default>; + + flash@0 { + status = "okay"; + m25p,fast-read; + label = "pnor"; + spi-rx-bus-width = <4>; + spi-max-frequency = <100000000>; + }; +}; + +&i2c0 { + multi-master; + bus-frequency = <400000>; + aspeed,hw-timeout-ms = <1000>; + status = "okay"; +}; + +&i2c1 { + multi-master; + bus-frequency = <400000>; + aspeed,hw-timeout-ms = <1000>; + status = "okay"; +}; + +&i2c2 { + multi-master; + bus-frequency = <400000>; + aspeed,hw-timeout-ms = <1000>; + status = "okay"; +}; + +&i2c3 { + multi-master; + bus-frequency = <400000>; + aspeed,hw-timeout-ms = <1000>; + status = "okay"; +}; + +&i2c4 { + status = "okay"; +}; + +&i2c5 { + status = "okay"; +}; + +&i2c6 { + status = "okay"; +}; + +&i2c7 { + status = "okay"; +}; + +&i2c8 { + status = "okay"; +}; + +&i2c9 { + multi-master; + bus-frequency = <100000>; + aspeed,hw-timeout-ms = <1000>; + status = "okay"; +}; + +&i2c10 { + status = "okay"; +}; + +&i2c11 { + status = "okay"; + //FRU EEPROM + eeprom@51 { + compatible = "atmel,24c64"; + reg = <0x51>; + pagesize = <32>; + }; +}; + +&i2c12 { + status = "okay"; + //INLET TEMP + tmp75@4e { + compatible = "ti,tmp75"; + reg = <0x4e>; + }; + //OUTLET TEMP + tmp75@4f { + compatible = "ti,tmp75"; + reg = <0x4f>; + }; +}; + +&i2c13 { + status = "okay"; +}; + +&adc0 { + ref_voltage = <2500>; + 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 { + ref_voltage = <2500>; + status = "okay"; + + pinctrl-0 = <&pinctrl_adc8_default &pinctrl_adc9_default + &pinctrl_adc10_default &pinctrl_adc11_default + &pinctrl_adc12_default &pinctrl_adc13_default>; +}; +&ehci0 { + status = "okay"; +}; + +&ehci1 { + status = "okay"; +}; + +&uhci { + status = "okay"; +}; -- 2.17.1