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.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable 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 0E0EEC4338F for ; Thu, 5 Aug 2021 22:31:15 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 C4EEC60EE4 for ; Thu, 5 Aug 2021 22:31:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org C4EEC60EE4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=LOyaxC4KgzfLMUPJRRURi5Dc7ZyUD0MyDwIleh6OyM4=; b=GBGaos+X42sdmc EHFvvrRcL8i1je6L1KG8/SfBLAFKY3AHinSCuMCbMDP/zBfjrxBWqOlG9xlIa1ArK4mVr0o50A7EB BI8+lYYByHAbp8NWNw7PG19QMKqM8x8OCzkAfmstFmeQc4Y8+pnowDuMVgWWCwFfLV3i1oUYeQglM Zwc1VmyxQEHbq/PF2xZypVmTBoJsi2+RoYacBNfRkvk8akMjl9gxW80lzQnmjbe3q0+oZfdzBRMLf sdgtHt9Fn4x63iqI4KIrvqmESGxfqgjxOuVJbOWYuEswgVvZsIiZt/gsdM1EBkZQ7C//TzmNMeft9 QnNbYnJzrw6KKRiIUUDg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mBlrg-00AxAp-69; Thu, 05 Aug 2021 22:29:24 +0000 Received: from mail-pj1-x1033.google.com ([2607:f8b0:4864:20::1033]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mBlqr-00AwxC-8M for linux-arm-kernel@lists.infradead.org; Thu, 05 Aug 2021 22:28:34 +0000 Received: by mail-pj1-x1033.google.com with SMTP id j1so12462109pjv.3 for ; Thu, 05 Aug 2021 15:28:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=lw6gEfo2Nw0mBe3S5xni2/OM/VRr81Ls+EqynsWDkMc=; b=aOcpCuuQ0oZecIVFgmbyx/nUvanBWvhzq2rfR/nVSM0vyTA3cNp7Z8RlCAWGJ7c9zg xuZ371oGoGa3EfR8yul5t/RSNzV9G11LIBo4G7oR892flIJExRxaU4rJRbrcFXgDMmdm KmgJv2gfQ+P8AURFIwp+ZphhLAwFhf/HbISR2u8yUAkNkHnDxQLqO5wgkCNOyQFe8do5 5aUfD1+gaCN7gveWCB16RT+f/Oiu+xknX5OlyIX7vcgE5O9Gknr6gMih+FHiVOfNQ931 dSsAmE8PHrWH6TXla+tkxw7+OSyZ6noX3ogHoBRG33VJIfi2jkQwpgZgXg35N8bhBIsO 7Igw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=lw6gEfo2Nw0mBe3S5xni2/OM/VRr81Ls+EqynsWDkMc=; b=cDuVt+V/MosyZb/3/M+RvHkhRNlTe1lcB6quJIBLu2/xjGQHhMw6xYrzVdGF9iI3TG vd77fmDCNFbA1H4EWuTWRd0XiBNk2oD0qTYVfZ675SHwo/v0jf8HF+iJRhX/430Lszp9 7hQv7AHifuPrh1da4HsdOjMHHk8CUgApvaeC6k8JafBBd0yQqRPhT6sM27I20psBqqqD pdQnWegzOnwYgF5Vr7e9RQHf4cai3R4K1GYF8nWMcOowRj8tCQbgeHv3HoIpugT7vaTK rBWBFsg3pAC5NH1KkePwagTrtensJyCCQA4p1cCM+NSYE64/IBP1VRCqXZsrtWUJ3Sho AlHQ== X-Gm-Message-State: AOAM533WfwnFKArdYsvd8UFomRXfOooUTnvYQZuLrNa8mQNvC7byfiSl yJ/FQKuEeZt+ECS1sAZHTqSeZWdYZceQ0zMiDJE= X-Google-Smtp-Source: ABdhPJzOXA2xJb3hzf499cQvBTj3sFISjd2xApvkTjWJm88fkqrqkVChquuhHW4AnYTQa+r8MGVViA== X-Received: by 2002:a62:36c5:0:b029:32b:83fa:3a3e with SMTP id d188-20020a6236c50000b029032b83fa3a3emr1603833pfa.52.1628202512620; Thu, 05 Aug 2021 15:28:32 -0700 (PDT) Received: from taoren-ubuntu-R90MNF91.thefacebook.com (c-73-252-146-110.hsd1.ca.comcast.net. [73.252.146.110]) by smtp.gmail.com with ESMTPSA id b26sm8082292pfo.47.2021.08.05.15.28.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Aug 2021 15:28:32 -0700 (PDT) From: rentao.bupt@gmail.com To: Rob Herring , Joel Stanley , Andrew Jeffery , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, taoren@fb.com Cc: Tao Ren Subject: [PATCH v2 3/6] ARM: dts: aspeed: Common dtsi for Facebook AST2600 Network BMCs Date: Thu, 5 Aug 2021 15:28:15 -0700 Message-Id: <20210805222818.8391-4-rentao.bupt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210805222818.8391-1-rentao.bupt@gmail.com> References: <20210805222818.8391-1-rentao.bupt@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210805_152833_357607_23D1B749 X-CRM114-Status: GOOD ( 16.28 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Tao Ren This common descirption is included by all Facebook AST2600 Network BMC platforms to minimize duplicated device entries across Facebook Network BMC device trees. Signed-off-by: Tao Ren --- Changes in v2: - "mac3" is removed from the dtsi (moved to platform dts files). .../dts/ast2600-facebook-netbmc-common.dtsi | 169 ++++++++++++++++++ 1 file changed, 169 insertions(+) create mode 100644 arch/arm/boot/dts/ast2600-facebook-netbmc-common.dtsi diff --git a/arch/arm/boot/dts/ast2600-facebook-netbmc-common.dtsi b/arch/arm/boot/dts/ast2600-facebook-netbmc-common.dtsi new file mode 100644 index 000000000000..051de5bec345 --- /dev/null +++ b/arch/arm/boot/dts/ast2600-facebook-netbmc-common.dtsi @@ -0,0 +1,169 @@ +// SPDX-License-Identifier: GPL-2.0+ +// Copyright (c) 2020 Facebook Inc. + +#include "aspeed-g6.dtsi" +#include + +/ { + aliases { + mmc0 = &emmc; + spi1 = &spi1; + spi2 = &spi_gpio; + }; + + chosen { + bootargs = "console=ttyS0,9600n8 root=/dev/ram rw vmalloc=640M"; + }; + + memory@80000000 { + device_type = "memory"; + reg = <0x80000000 0x80000000>; + }; + + /* + * 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>; + + 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>; + + tpmdev@0 { + compatible = "tcg,tpm_tis-spi"; + spi-max-frequency = <33000000>; + reg = <0>; + }; + }; +}; + +&fmc { + status = "okay"; + + flash@0 { + status = "okay"; + m25p,fast-read; + label = "spi0.0"; + +#include "facebook-bmc-flash-layout-128.dtsi" + }; + + flash@1 { + status = "okay"; + m25p,fast-read; + label = "spi0.1"; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + flash1@0 { + reg = <0x0 0x8000000>; + label = "flash1"; + }; + }; + }; +}; + +&spi1 { + status = "okay"; +}; + +&uart1 { + status = "okay"; +}; + +&uart2 { + status = "okay"; +}; + +&uart5 { + status = "okay"; +}; + +&wdt1 { + status = "okay"; +}; + +&i2c0 { + status = "okay"; +}; + +&i2c1 { + status = "okay"; +}; + +&i2c2 { + status = "okay"; +}; + +&i2c3 { + status = "okay"; +}; + +&i2c4 { + status = "okay"; +}; + +&i2c5 { + status = "okay"; +}; + +&i2c6 { + status = "okay"; +}; + +&i2c7 { + status = "okay"; +}; + +&i2c8 { + status = "okay"; +}; + +&i2c9 { + status = "okay"; +}; + +&i2c10 { + status = "okay"; +}; + +&i2c12 { + status = "okay"; +}; + +&i2c13 { + status = "okay"; +}; + +&i2c15 { + status = "okay"; +}; + +&vhub { + status = "okay"; +}; + +&emmc_controller { + status = "okay"; +}; + +&emmc { + status = "okay"; + + non-removable; + max-frequency = <25000000>; + bus-width = <4>; +}; + +&rtc { + status = "okay"; +}; -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel