From patchwork Tue Sep 12 14:05:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Chen X-Patchwork-Id: 13381749 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 94953CA0EEB for ; Tue, 12 Sep 2023 14:08:12 +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: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=Ty4tgwZ7Qfi2qhN/xt7YrC0U1F/VSmzqFrGTeF4sbAY=; b=cHKXFY+g4UD3es Xr5HdLcj0dJdVCZi5oV0X0RGMGnbrhOaRgR5suuc+ivC3gtdeUQ3rxbBaU0oH8m3zIvolcBgigIFn ato3APqxX0eXahVEbgL5OCmUbkjQFGhiyyL5dw3Wr2HAbOzyWhIbWWHLew1p1OglqZbf0C8TsbcQS zkN+TRB8zDP5/s0mPLg79WyjEsH33FYZd5l1lumX8NqWEBGesR/D1cOwR0ccfk9/V7/fBeSwgYj4x jZImt0OROVm9SASk2tuxrn+cTyl/t4VkrsH6bjnULY5lI71NU46YKEwIGzGvcnsFX3N4LzyLGjSAT zeyYpa8tpO3Q2yq6Wt/Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qg43N-003V1A-2D; Tue, 12 Sep 2023 14:07:45 +0000 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qg43K-003UzF-1f for linux-arm-kernel@lists.infradead.org; Tue, 12 Sep 2023 14:07:43 +0000 Received: by mail-pl1-x643.google.com with SMTP id d9443c01a7336-1c3cbfa40d6so12058995ad.1 for ; Tue, 12 Sep 2023 07:07:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694527659; x=1695132459; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=f4rRBJhCHj2aVj7Yvl5LQyb1ciYT6RtfI0V079W7e6g=; b=PLLapC9WMB1ihVAL/3gc7NrFzP6a/T9iO1CH7wPTKYtBq8AP6lFXCxzn9+p3uxxlBf KBzqpXlMZL/YIjWi/IT+PTAW5i94CBvE519VfxTAQsgT4Cimhm96AKz4pgUc2gqxwGkD ylAivNc6yYa6oMwmzwY0/RMFygnWgc/U3IAkRDZioilspq8NgEvOLymtFkmsgQzYwAzn TaYpQ5oPNfJlw8W0PvQdQtx1pqzi0VqVLtnbULF38mhe58XCnKsCqxdqNfsgUefzCayd Yl3Tj1uznOd6UpUG7q0xt+vnM/kOPNNZjsezUGrKCcyIvFBCXurhacYSNS6J8RRR3uCR TGrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694527659; x=1695132459; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=f4rRBJhCHj2aVj7Yvl5LQyb1ciYT6RtfI0V079W7e6g=; b=EjNZo9mXfoCvdv7QgG78r1/zpTTKNLmXSqCYwBt73MnOK2h8fBXGaFPWy5CiuVz8wF aFX0rXhwfZEPJqVG8J3odUOHHVWG5fp/7+iLAmSOa5zQhjlxA0PkEXrHyBVCvyvq/4FH Ozfau54SuoJpZNRIDtyUPOork+HCm4LXQcrIlZgosd5Gg1TV52iogsSafK2wPd7jdc9O IlNkLN1b0Vfows0zlDRA4eTkHFcdvghdlBozBeaNAeHn3sa/3fZat2Jj3yvKfYlphz+r r8/ZFPkHS2kRzuFpB19WHBsSxaR/KsSdiE6BPh4cJywpuS5MuNamOze8wbWdS/NpeMjQ 34rQ== X-Gm-Message-State: AOJu0YzUqlS/9pQK0Nf5pn0g6dPcqlmebZNt/gYTaYl/+4AinKa+BDGT ViV6IlIQFqSKPaA5cWb6TUB0jtSI87oWdg== X-Google-Smtp-Source: AGHT+IFWTBYbUY5zopbPyW+WFsVD6ZVUxCAYNogYZ9qUdRB2H7c8kbzzmj/lSMSXn8XUW+yZ4zMKkw== X-Received: by 2002:a17:903:32d0:b0:1c3:3461:75b5 with SMTP id i16-20020a17090332d000b001c3346175b5mr16649939plr.0.1694527659305; Tue, 12 Sep 2023 07:07:39 -0700 (PDT) Received: from obliging-System-Product-Name.dhcpserver.bu9bmc.local (1-34-21-66.hinet-ip.hinet.net. [1.34.21.66]) by smtp.gmail.com with ESMTPSA id jb11-20020a170903258b00b001ae0a4b1d3fsm6357762plb.153.2023.09.12.07.07.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 07:07:38 -0700 (PDT) From: yangchen.openbmc@gmail.com 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: patrick@stwcx.xyz, Jerry.Lin@quantatw.com, Eddie.Chen@quantatw.com, EasonChen1@quantatw.com, yangchen.openbmc@gmail.com Subject: [PATCH 1/2] dt-bindings: arm: aspeed: document board compatibles Date: Tue, 12 Sep 2023 22:05:31 +0800 Message-Id: <20230912140532.3797736-2-yangchen.openbmc@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230912140532.3797736-1-yangchen.openbmc@gmail.com> References: <20230912140532.3797736-1-yangchen.openbmc@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230912_070742_553144_DFC772E3 X-CRM114-Status: GOOD ( 10.23 ) 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 From: Yang Chen Document the new compatibles used on the Facebook Minerva Chassis Management Controller (CMC). Signed-off-by: Yang Chen Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml b/Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml index 68f717670f78..749ee54a3ff8 100644 --- a/Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml +++ b/Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml @@ -79,6 +79,7 @@ properties: - facebook,elbert-bmc - facebook,fuji-bmc - facebook,greatlakes-bmc + - facebook,minerva-cmc - facebook,yosemite4-bmc - ibm,everest-bmc - ibm,rainier-bmc From patchwork Tue Sep 12 14:05:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Chen X-Patchwork-Id: 13381748 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 C4F1BCA0EEE for ; Tue, 12 Sep 2023 14:08:10 +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: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=i0h8NngNjmlT9NUZQlwu+AliATAaKQH4P0Gp/LizniA=; b=d9qImU/5CEEsCs det2SgdWbYT/GTa4zAHYLCGhwLYrHtQyP1pdTmBzU9I7IA4qWa+nqEGjpso/bSewvygBMrKrfF3HJ LSZcCCu9UNKgsoJ7iAse+9iQuqdqn4fmBvhVlZrfgEfYOOVpbUq5pvaeYZpgyQjsOS//FhKqAulQD exGzEDy63iJjlRT7K/COtsP7RR+fYg70t2YQ2szimIy1+p2tjA5D+fTK648A264JWpB2vv4QEhE7m L8QiDwfJyHy8LOsly/4WP1x4nexZ8Tq2hcBudxe6PYZAnfNoIF5qnA7CfSNeWMIY8Iqjqm9nS7wam yKvO3ojaUXDwy085EJMA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qg43R-003V2c-1Q; Tue, 12 Sep 2023 14:07:49 +0000 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qg43N-003Uzy-2O for linux-arm-kernel@lists.infradead.org; Tue, 12 Sep 2023 14:07:47 +0000 Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-1c397ed8681so24567365ad.2 for ; Tue, 12 Sep 2023 07:07:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694527662; x=1695132462; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=mQP3cOPB/hiDFqAdxWtWxMTFwog0SePlPvDjVtwOiMw=; b=TpDdnBemoBdhiMCYq9I1eW25OZ0HaNNDheqY290ksj6lh6vrZPAilmTFriTwVqvHWT w4OEznB0S05AW5fkpFXt7CgrNGdB5cBKEOYYQ3oU6nQOPBAfjOuaogSI6mJ2ECRrYtBa cHEYinldZg8a3PQO18KimntW+A2tMmFUjTFfwTP9h6WCxIoq+45cJS7lCPYt5fExCMG/ WpS/dyJrtfbN2O8Zy33Y6TjBOpa9xpYm/6EWtgg3bygdD4A4Wd4rvgSCeKcqy3fQwk7I vH4jmAQr20fxP+gKnIriLskscV3/NlreYpWcEREKlkMxeOOkrt/Eg9SyuR1GrmAvQfkn FBIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694527662; x=1695132462; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mQP3cOPB/hiDFqAdxWtWxMTFwog0SePlPvDjVtwOiMw=; b=eUNOoGA6YhkG3dZrUqf2xIEabVVxHL+Bmzbo9LYe/XjXcm7h53D1qb+8NIXLAXMAG/ EmauRmAHiLQxzS1/U9QJ2JH2sMcDNLpNe4pdqbU6qzVX4hjHDOPodZVMArhxBnfVVEhk DKqXDAnKbpJgA8zBMxAhibMIqiMlgWVXI1/qAG69Ga4WVTerJ+BzNZEwfJ3A3wZHnpQm i4LR/XMcRleA6AOJPMNjDsWEtav+GP+Ha56tTRvWtoADJpv4cXcVgy+401D7l73hH+Qo qKn9XRCoTOOWPjKnL3aOuwpsy40eVEheDn5Ss76fVFkfY8r6RRAqpeuXhpoMHMf4hKab RpTQ== X-Gm-Message-State: AOJu0Yxz0hpMAN9fPRx1YaCOU5UzWGKkRSxRxdnHPcgWVaXd4WyZNCjD N3w3SVxcnhf+2CRMcuMcPI9IGWez2WU= X-Google-Smtp-Source: AGHT+IH2OVdnAXkxsYfwFT8om58ycUV9J358TeMaHuv9W0KDo4xwJR9gxpFZpjvczGdiBC6v5vsgAA== X-Received: by 2002:a17:902:cec4:b0:1b7:e49f:1d with SMTP id d4-20020a170902cec400b001b7e49f001dmr13755007plg.62.1694527661850; Tue, 12 Sep 2023 07:07:41 -0700 (PDT) Received: from obliging-System-Product-Name.dhcpserver.bu9bmc.local (1-34-21-66.hinet-ip.hinet.net. [1.34.21.66]) by smtp.gmail.com with ESMTPSA id jb11-20020a170903258b00b001ae0a4b1d3fsm6357762plb.153.2023.09.12.07.07.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 07:07:41 -0700 (PDT) From: yangchen.openbmc@gmail.com 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: patrick@stwcx.xyz, Jerry.Lin@quantatw.com, Eddie.Chen@quantatw.com, EasonChen1@quantatw.com, yangchen.openbmc@gmail.com Subject: [PATCH 2/2] ARM: dts: aspeed: Minerva: Add Facebook Minerva CMC board Date: Tue, 12 Sep 2023 22:05:32 +0800 Message-Id: <20230912140532.3797736-3-yangchen.openbmc@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230912140532.3797736-1-yangchen.openbmc@gmail.com> References: <20230912140532.3797736-1-yangchen.openbmc@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230912_070745_787937_DDDDE5F5 X-CRM114-Status: GOOD ( 15.68 ) 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 From: Yang Chen Add linux device tree entry related to the Minerva Chassis Management Controller (CMC) specific devices connected to the Aspeed SoC (AST2600). Signed-off-by: Yang Chen --- arch/arm/boot/dts/aspeed/Makefile | 1 + .../aspeed-bmc-facebook-minerva-cmc.dts | 265 ++++++++++++++++++ 2 files changed, 266 insertions(+) create mode 100644 arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-minerva-cmc.dts diff --git a/arch/arm/boot/dts/aspeed/Makefile b/arch/arm/boot/dts/aspeed/Makefile index 23cbc7203a8e..d3ac20e316d0 100644 --- a/arch/arm/boot/dts/aspeed/Makefile +++ b/arch/arm/boot/dts/aspeed/Makefile @@ -19,6 +19,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \ aspeed-bmc-facebook-fuji.dtb \ aspeed-bmc-facebook-galaxy100.dtb \ aspeed-bmc-facebook-greatlakes.dtb \ + aspeed-bmc-facebook-minerva-cmc.dtb \ aspeed-bmc-facebook-minipack.dtb \ aspeed-bmc-facebook-tiogapass.dtb \ aspeed-bmc-facebook-wedge40.dtb \ diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-minerva-cmc.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-minerva-cmc.dts new file mode 100644 index 000000000000..0b986864e661 --- /dev/null +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-minerva-cmc.dts @@ -0,0 +1,265 @@ +// SPDX-License-Identifier: GPL-2.0+ +// Copyright (c) 2023 Facebook Inc. +/dts-v1/; + +#include "aspeed-g6.dtsi" +#include +#include + +/ { + model = "Facebook Minerva CMC"; + compatible = "facebook,minerva-cmc", "aspeed,ast2600"; + + aliases { + serial5 = &uart5; + }; + + chosen { + stdout-path = "serial5: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>; + }; +}; + +&uart6 { + status = "okay"; +}; + +&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>; + use-ncsi; + mlx,multi-host; +}; + +&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>; + }; +}; + +&rtc { + status = "okay"; +}; + +&sgpiom1 { + status = "okay"; + ngpios = <128>; + bus-frequency = <2000000>; +}; + +&i2c0 { + status = "okay"; +}; + +&i2c1 { + status = "okay"; + + temperature-sensor@4B { + compatible = "ti,tmp75"; + reg = <0x4B>; + }; + + eeprom@51 { + compatible = "atmel,24c128"; + reg = <0x51>; + }; +}; + +&i2c2 { + status = "okay"; + + i2c-mux@77 { + compatible = "nxp,pca9548"; + reg = <0x77>; + #address-cells = <1>; + #size-cells = <0>; + i2c-mux-idle-disconnect; + + i2c@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + + eeprom@50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + }; + + i2c@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + + eeprom@50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + }; + + i2c@2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <2>; + + eeprom@50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + }; + + i2c@3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <3>; + + eeprom@50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + }; + + i2c@4 { + #address-cells = <1>; + #size-cells = <0>; + reg = <4>; + + eeprom@50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + }; + + i2c@5 { + #address-cells = <1>; + #size-cells = <0>; + reg = <5>; + + eeprom@50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + }; + }; +}; + +&i2c3 { + status = "okay"; +}; + +&i2c4 { + status = "okay"; +}; + +&i2c5 { + status = "okay"; +}; + +&i2c6 { + status = "okay"; +}; + +&i2c7 { + status = "okay"; +}; + +&i2c8 { + status = "okay"; +}; + +&i2c9 { + status = "okay"; +}; + +&i2c10 { + status = "okay"; +}; + +&i2c11 { + status = "okay"; +}; + +&i2c12 { + status = "okay"; +}; + +&i2c13 { + status = "okay"; +}; + +&i2c14 { + status = "okay"; + multi-master; + + ipmb@10 { + compatible = "ipmb-dev"; + reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>; + i2c-protocol; + }; +}; + +&i2c15 { + status = "okay"; + + eeprom@50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; +}; + +&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_adc10_default>; +}; + +&ehci1 { + status = "okay"; +}; + +&uhci { + status = "okay"; +};