From patchwork Fri Aug 25 03:29:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: PeterYin X-Patchwork-Id: 13365029 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 59C93C3DA6F for ; Fri, 25 Aug 2023 03:32:35 +0000 (UTC) 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:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References: List-Owner; bh=QfbtmSGbR5JAXB+xwNdYsqNjRPyBN9h8HsBfWeifMxI=; b=SRSvVu5Esa5z+2 zLDYO9WjCa73CJEgQEnrfyT3lhUg90IbReUS4xCbvoaooes151f9TGETQctmXBjjfg+bRd8keuO/z hbl7maIAcb99k/VMqGSqfr+Q3RYBARbaOqigA3PEh9vZfinaZjQrRavqS23c3l1dhQG89EOvqad1p QTGGIfekfO4OOV3z9H1uVVs9k2xpsSTiVIfMwWxleB5eqqHtyjrWObT4VYgnsTkt0eObt+Z4kZWWd Mii68v09EEYbGU8uIZ8PhlqcmOvoi9iRZpsZJuiQRTMx3O4ONbDRfTa7jTRFo45jBuG+HyPbhtLXo EXGNVBaUD6dU8W+woq6Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qZNYJ-004CRk-1E; Fri, 25 Aug 2023 03:32:03 +0000 Received: from mail-oo1-xc2a.google.com ([2607:f8b0:4864:20::c2a]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qZNYG-004CRI-1C for linux-arm-kernel@lists.infradead.org; Fri, 25 Aug 2023 03:32:02 +0000 Received: by mail-oo1-xc2a.google.com with SMTP id 006d021491bc7-5732481b242so350648eaf.2 for ; Thu, 24 Aug 2023 20:31:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692934312; x=1693539112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=H90oOeYrkwbf+xoaK3jBcWIDwQknofALHbHaFFtwxJg=; b=mGDbL0K3SF2pkLgHiMgrAq5oyd2RsLKf6vLIeGPBstn2lZrxpMcYcI5g9drw2rqZtQ sF7GeDKkWaKrw2LxYapuVggEMhTBEBZ0SjkzUHEWNANUP8D9FbJjBq3ggqqjC8zHUJtf Mv91vybsbc2LbD1lKNq9BfcRGokWNb0vYPZ9JP57v0X8ysBcAmpq0SXuRCkfhG/2LDLH II33byyeWl21X0nU22hOa9jWBIxrpplYdCwykSVFG3RfizRCpR+bmZMLn/d5Xk5O2COX fvHeEal9pjCS94UiYRlEmUzc/CZFnQ/gdC84KA026R+vKaTds1GxaQHHUWBqTGzyysEm w4iA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692934312; x=1693539112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=H90oOeYrkwbf+xoaK3jBcWIDwQknofALHbHaFFtwxJg=; b=RypZMaEtYXbcrYzGhxjF+TQE2+ltJwZw2SfGMhw4UdJr3JZtEDNOHdzPWTX5+Fq2do 6HlpPE4mAtrHEDa60TLlFrUTKwuKXpx4K1vSutz/KjqvvpmYIeIdFrApaDVncM9b3Mbx ytTCDrkLTPaqy8/YgChzi8bTN0aDbeQZV1FWzQtJTkraYTWXI8XRnUjv7oQR3uinQZw9 yQTTjMxSzZoDJK8fw00lwUClPcWMGNiP2f1nImShb6mbWbdHcNGn5hnTm4W/iFrWjh+h Cd9eiwJ2ud0OdCWqOgojazgpKXOFtFYps1G63ljNKxbuOihHt1qp5x7hJtlaSs4Kk2Jm 7/mg== X-Gm-Message-State: AOJu0Yz/PI8wYPt5fhnwiWzaQ5CoQ4QjLdkabi4RcbOZDFcWgLJT4Eb1 i9NBPrMPIQs40ShqsbPW9HY= X-Google-Smtp-Source: AGHT+IEktqJR1lBjOJV3K63tpPkjTmHg3s0ySzI46NjesmTphSu3beB9t0RWkaadWTpxcb+K6Nq3uA== X-Received: by 2002:a05:6358:5e0b:b0:134:c4dc:2c43 with SMTP id q11-20020a0563585e0b00b00134c4dc2c43mr15507561rwn.28.1692934311727; Thu, 24 Aug 2023 20:31:51 -0700 (PDT) Received: from peter-bmc.dhcpserver.bu9bmc.local (1-34-21-66.hinet-ip.hinet.net. [1.34.21.66]) by smtp.gmail.com with ESMTPSA id p9-20020a63b809000000b0055b61cd99a1sm406474pge.81.2023.08.24.20.31.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Aug 2023 20:31:51 -0700 (PDT) From: peteryin To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, joel@jms.id.au, andrew@aj.id.au, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org Cc: cosmo.chou@quantatw.com, potin.lai@quantatw.com, daniel-hsu@quantatw.com, peteryin Subject: [PATCH] Add Meta openBMC Minerva dts file. Date: Fri, 25 Aug 2023 11:29:45 +0800 Message-Id: <20230825032945.1649050-1-peteryin.openbmc@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230824_203200_452378_F37773AC X-CRM114-Status: GOOD ( 11.35 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This is for Meta openBMC Minerva dts. Signed-off-by: peteryin --- .../boot/dts/aspeed-bmc-facebook-minerva.dts | 330 ++++++++++++++++++ 1 file changed, 330 insertions(+) create mode 100644 arch/arm/boot/dts/aspeed-bmc-facebook-minerva.dts diff --git a/arch/arm/boot/dts/aspeed-bmc-facebook-minerva.dts b/arch/arm/boot/dts/aspeed-bmc-facebook-minerva.dts new file mode 100644 index 000000000000..4fb9b5f72942 --- /dev/null +++ b/arch/arm/boot/dts/aspeed-bmc-facebook-minerva.dts @@ -0,0 +1,330 @@ +// SPDX-License-Identifier: GPL-2.0+ +// Copyright (c) 2023 Facebook Inc. +/dts-v1/; + +#include "aspeed-g6.dtsi" +#include + +/ { + model = "Facebook Minerva"; + compatible = "facebook, minerva-bmc", "aspeed,ast2600"; + + aliases { + serial0 = &uart1; + serial4 = &uart5; + }; + + chosen { + bootargs = "console=ttyS4,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>; + }; + +}; + +// HOST BIOS Debug +&uart1 { + status = "okay"; +}; + + +// SOL Host Console +&uart2 { + status = "okay"; + pinctrl-0 = <>; + +}; + +// SOL BMC Console +&uart4 { + status = "okay"; + pinctrl-0 = <>; +}; + +// BMC Debug Console +&uart5 { + status = "okay"; +}; + +//MTIA +&uart6 { + status = "okay"; +}; + +&uart_routing { + status = "okay"; +}; + +&vuart1 { + status = "okay"; + virtual; + port=<0x3e8>; + sirq = <7>; + sirq-polarity = <0>; + dma-mode; + dma-channel = <12>; +}; + +&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>; + no-hw-checksum; + use-ncsi; + ncsi-ctrl,start-redo-probe; + ncsi-ctrl,no-channel-monitor; + mlx,multi-host; + ncsi-package = <1>; + ncsi-channel = <1>; + ncsi-rexmit = <1>; + ncsi-timeout = <2>; +}; + +&rtc { + status = "okay"; +}; + +&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>; + }; +}; + + +//BIOS Flash +&spi2 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_spi2_default>; + + flash@0 { + status = "okay"; + m25p,fast-read; + label = "pnor"; + spi-max-frequency = <12000000>; + spi-tx-bus-width = <2>; + spi-rx-bus-width = <2>; + }; +}; + + +&kcs2 { + status = "okay"; + aspeed,lpc-io-reg = <0xca8>; +}; + +&kcs3 { + status = "okay"; + aspeed,lpc-io-reg = <0xca2>; +}; + + +&lpc_snoop { + status = "okay"; + snoop-ports = <0x80>; +}; + +&peci0 { + status = "okay"; + clock-frequency = <1000000>; +}; + +&sgpiom0 { + status = "okay"; + max-ngpios = <128>; + ngpios = <128>; + bus-frequency = <2000000>; + gpio-line-names = + /*in - out - in - out */ + /*A0-A7*/ "","","","","","enable_sensors","","", + /*A0-A7*/ "","","","","","","","", + /*B0-B7*/ "","","","","","","","", + /*B0-B7*/ "","","","","","","","", + /*C0-C7*/ "","","","","","","","", + /*C0-C7*/ "","","","","","","","", + /*D0-D7*/ "","","","","","","","", + /*D0-D7*/ "","","","","","","","", + /*E0-E7*/ "","","","","","","","", + /*E0-E7*/ "","","","","","","","", + /*F0-F7*/ "","","","","","","","", + /*F0-F7*/ "","","","","","","","", + /*G0-G7*/ "","","","","","","","", + /*G0-G7*/ "","","","","","","","", + /*H0-H7*/ "","","","","","","","", + /*H0-H7*/ "","","","","","","",""; +}; + +&i2c0 { + status = "okay"; +}; + +&i2c1 { + status = "okay"; + tmp75@4B { + compatible = "ti,tmp75"; + reg = <0x4B>; + }; +}; + +&i2c2 { + status = "okay"; +}; + +&i2c3 { + status = "okay"; +}; + +&i2c4 { + status = "okay"; +}; + +&i2c5 { + status = "okay"; +}; + +&i2c6 { + status = "okay"; +}; + +&i2c7 { + status = "okay"; +}; + +&i2c8 { + status = "okay"; +}; + +&i2c9 { + status = "okay"; +}; + +&i2c11 { + status = "okay"; +}; + +&i2c12 { + status = "okay"; +}; + +&i2c13 { + status = "okay"; +}; + +// To Debug card +&i2c14 { + status = "okay"; + multi-master; + aspeed,hw-timeout-ms = <1000>; +}; + +&i2c15 { + status = "okay"; + // SCM FRU + eeprom@50 { + compatible = "atmel,24c64"; + reg = <0x50>; + }; + // BSM FRU + eeprom@56 { + compatible = "atmel,24c64"; + reg = <0x56>; + }; + +}; + +&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-names = "default"; + pinctrl-0 = <&pinctrl_adc10_default>; +}; + +&jtag1 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_jtagm_default>; +}; + +&ehci1 { + status = "okay"; +}; + +&gpio0 { + pinctrl-names = "default"; + gpio-line-names = + /*A0-A7*/ "","","","","","","","", + /*B0-B7*/ "","","","","","","","", + /*C0-C7*/ "","","","","","","","", + /*D0-D7*/ "","","SOL_UART_SET","","","","","", + /*E0-E7*/ "","","","","","","","", + /*F0-F7*/ "","","","","","","","", + /*G0-G7*/ "","","","","","","","", + /*H0-H7*/ "","","","","","","","", + /*I0-I7*/ "","","","","","","","", + /*J0-J7*/ "","","","","","","","", + /*K0-K7*/ "","","","","","","","", + /*L0-L7*/ "","","","","","","","", + /*M0-M7*/ "","","","","","","","", + /*N0-N7*/ "LED_POSTCODE_0","LED_POSTCODE_1", + "LED_POSTCODE_2","LED_POSTCODE_3", + "LED_POSTCODE_4","LED_POSTCODE_5", + "LED_POSTCODE_6","LED_POSTCODE_7", + /*O0-O7*/ "","","","","","","","", + /*P0-P7*/ "","","","","","","","", + /*Q0-Q7*/ "","","","","","","","", + /*R0-R7*/ "","","","","","","","", + /*S0-S7*/ "","","","","","","","", + /*T0-T7*/ "","","","","","","","", + /*U0-U7*/ "","","","","","","","", + /*V0-V7*/ "","","","","","","","", + /*W0-W7*/ "","","","","","","","", + /*X0-X7*/ "","","","","","","","", + /*Y0-Y7*/ "","","","","","","","", + /*Z0-Z7*/ "","","","","","","",""; +}; +