Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5657460pxv; Wed, 28 Jul 2021 16:40:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwUpMv56/GmmHNoigZp/0PmOrrTHIa+APV7wU52olVQBIwACr0y6r5ALhaX1q3ZBALVAHRQ X-Received: by 2002:a6b:7311:: with SMTP id e17mr1515146ioh.127.1627515604339; Wed, 28 Jul 2021 16:40:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627515604; cv=none; d=google.com; s=arc-20160816; b=LrrY9+EQ/EaFy/dLuPGITghe20JeGc/APC1hvhzXj4yz6k2NEX8Ur1td0KVunObMDE uwYGRTs3BhAmwiWjD3Q91hog1tTyytk12b7l5z89w6d0Smi4pQyhW7QhIARqpbMCWhun +OEWLfv7EeBz0HzfXBkthDMMEL3uv90SzI1YprErGm6C2mtAhLokJiUuy3bjyqe1VeB2 9FNGXGH7/rYkvM5JeoWED8yiLRogQNUrguPS/fClF2ClSENI0oA8yKm5uaEW9Kc1Cp+a 31UB0H5K9dJBsUuRHQicgclDDvB+u2s/CUnSBS2PtN2rArO2QMdkuSXbkH7iKPNURN45 9+uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=H/QVxjPMi8AJixP6Wwbg2ZVyBcu5V0oH60YocJQkA94=; b=VGNH3ph2gEPMb+KJ9la6VaNNfpxst2KsXxM+oEVDx8PTk8JOQWbQi0ufdgIGBNjVXA 9ezG6cfaVbmOqT+J/w8ZrnDvDMRg/N6g4LR+wm8EwmnIgbj35LbLwaiIJGb2EmrAIidp LK+UZpy2wHEOILBC0cmG0Sw8T9aRodpl8pMCw5Z7f+q8hV5fz3oxndSs5GOjV+yC1RMb mdEaFpfYzezA2tUcQi3MTu2Cv9fQ4g3KNV+ah5pwpQtvBlWUg2BqfGdl1nrnD/UfahF9 r2Mh10AXDM5jKEp9Yz7Y/T5L3qj+JqwodevfXOBRzQVpZdc0AOfcm3SC+Ei2ROanvv3I IaHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FGyNKWO+; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t11si1242142ils.106.2021.07.28.16.39.52; Wed, 28 Jul 2021 16:40:04 -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=@gmail.com header.s=20161025 header.b=FGyNKWO+; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232865AbhG1XiQ (ORCPT + 99 others); Wed, 28 Jul 2021 19:38:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232730AbhG1XiN (ORCPT ); Wed, 28 Jul 2021 19:38:13 -0400 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E02AC061765; Wed, 28 Jul 2021 16:38:10 -0700 (PDT) Received: by mail-pj1-x102a.google.com with SMTP id ca5so7506225pjb.5; Wed, 28 Jul 2021 16:38:10 -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=H/QVxjPMi8AJixP6Wwbg2ZVyBcu5V0oH60YocJQkA94=; b=FGyNKWO+gmtAa+GX93N920LrFv4PFfQyR0kGQPFK/tjs52W9xJ0w9l7IVZE5p8zzQq YXFCXNNsQm+ulwJKtmt/JCmhpObyr1Zk+u2Apx9mbDA/bMFC81Bu0v8AzEM2CfOkHD02 fxv0Yrxqbct2d2iNsVlnvwJ2YJo0t3DGcbZPjtL2AZogDdMcbeud62+9wpDnx3qUqQZ7 aHg7m7cMFiO6C28loHXBELT3wYQ/VamsHNtEntFV+EEvtsqPiClVjsZsJiZNwsfmNDZ+ efVnZUetVsQ6xbiQBA3/zVqPRnJwBBwBD2mAEaPoMxybnj9iyqbn884rs4El+c3UVkdQ 43lA== 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=H/QVxjPMi8AJixP6Wwbg2ZVyBcu5V0oH60YocJQkA94=; b=KxdwDnEHoVdGRh3H8Z5dP6rArJCTAokgeFu1470ZYXATnltYV35cjUDCRDD9smMgAh AyY/W2d6UpprScA4EpumBcnH4fCr98OkZoaXWQGE5quH02iMNEOAdCCP1bLkbsDGwTeG VmoIkbGunual+XLaE/TJFgJDTVWAgvIRELP5a8hAv5SjbmWg+J3xbyjBfuR5hwcKcpr7 4F3OC/zYNJDu1u+2NxVs2Xtamz+bBcQv8NCxWGwyVZQvLJwdaMvJcYvyX5FMSdDkxd4h MrIneXqu6rEXzfeLIPZCc0ftYNi+rdiTDClZQX8UpQwA4t7nNFOKxH30QbLYK2xiFjbi HWyQ== X-Gm-Message-State: AOAM530ajG5kRbxQOo5HFT2X4ipf5E+f/BIB1d8gL63HIfR8vMuE1QWJ 2p29ManGYpTlc2gkfB0iAkc= X-Received: by 2002:a17:902:9688:b029:129:183a:2a61 with SMTP id n8-20020a1709029688b0290129183a2a61mr1988887plp.27.1627515489589; Wed, 28 Jul 2021 16:38:09 -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 k37sm1038671pgm.84.2021.07.28.16.38.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Jul 2021 16:38:09 -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 3/6] ARM: dts: aspeed: Common dtsi for Facebook AST2600 Network BMCs Date: Wed, 28 Jul 2021 16:37:52 -0700 Message-Id: <20210728233755.17963-4-rentao.bupt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210728233755.17963-1-rentao.bupt@gmail.com> References: <20210728233755.17963-1-rentao.bupt@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 --- .../dts/ast2600-facebook-netbmc-common.dtsi | 176 ++++++++++++++++++ 1 file changed, 176 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..e3b350c824d2 --- /dev/null +++ b/arch/arm/boot/dts/ast2600-facebook-netbmc-common.dtsi @@ -0,0 +1,176 @@ +// 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"; +}; + +&mac3 { + status = "okay"; + phy-mode = "rgmii"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_rgmii4_default>; +}; + +&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