From nobody Fri Sep 12 13:40:24 2025 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 03151C05027 for ; Fri, 10 Feb 2023 05:56:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231191AbjBJF4K (ORCPT ); Fri, 10 Feb 2023 00:56:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231181AbjBJF4E (ORCPT ); Fri, 10 Feb 2023 00:56:04 -0500 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87F5A6A71E for ; Thu, 9 Feb 2023 21:55:49 -0800 (PST) Received: by mail-pf1-x433.google.com with SMTP id a5so2803057pfv.10 for ; Thu, 09 Feb 2023 21:55:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ufispace-com.20210112.gappssmtp.com; s=20210112; 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=c7dOEJ6OBKRDbkb6MdSnWK7OgRCfe1XqjrmNZ8N/X2I=; b=pg3N81ypgjXmtzxfp2mv2D1AzbqTwSvrJe1ermCg4zzBs39vszZrziWanmLsMq7tDC h5mc+U8Fqxp615cjYUaa8SxoEhIXcIyGyH0S3C+v7yavMZVf0aZGAMl1vhxZbl3t/TIO fUcIt8hBFK1Pz1dEHEVLmHD8lFsgSUJMbE6F6/hX02gyX6x3rhQ0s3VDOcL/rtuOj2Lc qtGODwtH0Mwp/bei3QXQ5KM7By45bnQnucN5moFNnAJs59SXDv2QtF8oZ+odRIm/t61h +Fs+BSF+IBlOwZipD0uw4iAfFH5XwHiK16ol3kX8z5Yfh3eNabSkmgc4k8NDotnzlRiv gD0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=c7dOEJ6OBKRDbkb6MdSnWK7OgRCfe1XqjrmNZ8N/X2I=; b=mpHf5PbqeYqjVsA10ETGUjAj2JBv53S5aMMDxX+ov5BDwAA96ixUOe5secvhMuf0Ug RuL/jGrg1Paeyv6e9KYIWJw6fCZu7ZYr+uETf9DfbUJeQQc5cgxjDj2XSqjUYsbrphec iwMf9WOj86A+OCmTLwjVu/sz2ryA83Hf2oCkPFrCblaiE0NyIIN/Ron0YAJZLidCjlvT IPQGFfmmPHn4LUxV0nwSELsy/TXXVnlPJRoVVmnT4gF0RCfe5jRcK7K2bYAfrcmLV4Ew VXIeXSE8WhcIUVCqVfGVWhMTSKdtPJsJaRCiWb+SjcTV9tTWEz8B8feIpJx97P28KB/O H3Ew== X-Gm-Message-State: AO0yUKWHDgMWhLy1lgpzLcb8ZU1Az9VkIetlsVcrgjHuNTnERRsMBvkF Nqswrq+tI0JRR9k2Z6pCbNOrpQ== X-Google-Smtp-Source: AK7set+uYmi78T5OCEBFPQJdlHdNV6m07AAcYi5xkMnroEcW/J71xdz2Ma2jZwXXEm3Q74R6B1OfZw== X-Received: by 2002:a62:1954:0:b0:5a8:4564:27f0 with SMTP id 81-20020a621954000000b005a8456427f0mr6977722pfz.7.1676008548944; Thu, 09 Feb 2023 21:55:48 -0800 (PST) Received: from openbmc500G.LAB.ufispace (CH210-63-217-225.static.apol.com.tw. [210.63.217.225]) by smtp.gmail.com with ESMTPSA id f15-20020aa782cf000000b005a84de344a6sm2500025pfn.14.2023.02.09.21.55.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Feb 2023 21:55:48 -0800 (PST) From: Jordan Chang To: linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, krzysztof.kozlowski+dt@linaro.org, joel@jms.id.au, andrew@aj.id.au, robh+dt@kernel.org Cc: jay.tc.lin@ufispace.com, eason.ys.huang@ufispace.com, Krzysztof Kozlowski Subject: [PATCH v3 3/3] ARM: dts: aspeed: Add device tree for Ufispace NCPLite BMC Date: Fri, 10 Feb 2023 13:54:51 +0800 Message-Id: <20230210055451.72153-4-jordan.chang@ufispace.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230210055451.72153-1-jordan.chang@ufispace.com> References: <20230210055451.72153-1-jordan.chang@ufispace.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add initial version of device tree for Ufispace NCPLite platform which is equipped with AST2600-based BMC. Signed-off-by: Jordan Chang Acked-by: Krzysztof Kozlowski --- arch/arm/boot/dts/Makefile | 1 + .../boot/dts/aspeed-bmc-ufispace-ncplite.dts | 359 ++++++++++++++++++ 2 files changed, 360 insertions(+) create mode 100644 arch/arm/boot/dts/aspeed-bmc-ufispace-ncplite.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 2ee9c043218b..d26e0651e805 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -1626,6 +1626,7 @@ dtb-$(CONFIG_ARCH_ASPEED) +=3D \ aspeed-bmc-inventec-transformers.dtb \ aspeed-bmc-tyan-s7106.dtb \ aspeed-bmc-tyan-s8036.dtb \ + aspeed-bmc-ufispace-ncplite.dtb \ aspeed-bmc-vegman-n110.dtb \ aspeed-bmc-vegman-rx20.dtb \ aspeed-bmc-vegman-sx20.dtb diff --git a/arch/arm/boot/dts/aspeed-bmc-ufispace-ncplite.dts b/arch/arm/b= oot/dts/aspeed-bmc-ufispace-ncplite.dts new file mode 100644 index 000000000000..a3853bdcae9d --- /dev/null +++ b/arch/arm/boot/dts/aspeed-bmc-ufispace-ncplite.dts @@ -0,0 +1,359 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +// Copyright (c) 2022 Ufispace Co., Ltd. +/dts-v1/; + +#include "aspeed-g6.dtsi" +#include +#include + +/ { + model =3D "Ufispace NCPLite BMC"; + compatible =3D "ufispace,ncplite-bmc", "aspeed,ast2600"; + + aliases { + serial4 =3D &uart5; + }; + + chosen { + stdout-path =3D &uart5; + }; + + memory@80000000 { + device_type =3D "memory"; + reg =3D <0x80000000 0x80000000>; + }; + + iio-hwmon { + compatible =3D "iio-hwmon"; + io-channels =3D <&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>, <&adc1 7>; + }; + + gpio-keys { + compatible =3D "gpio-keys"; + + event-fan-alert { + label =3D "fan-alert"; + gpios =3D <&gpio0 ASPEED_GPIO(M, 2) GPIO_ACTIVE_LOW>; + linux,code =3D ; + }; + + event-allpwr-good { + label =3D "allpwr-good"; + gpios =3D <&gpio0 ASPEED_GPIO(V, 4) GPIO_ACTIVE_HIGH>; + linux,code =3D ; + }; + + event-psu0-alert { + label =3D "psu0-alert"; + gpios =3D <&gpio0 ASPEED_GPIO(V, 1) GPIO_ACTIVE_LOW>; + linux,code =3D ; + }; + + event-psu1-alert { + label =3D "psu1-alert"; + gpios =3D <&gpio0 ASPEED_GPIO(V, 2) GPIO_ACTIVE_LOW>; + linux,code =3D ; + }; + + event-thermal-alert { + label =3D "thermal-alert"; + gpios =3D <&gpio0 ASPEED_GPIO(P, 2) GPIO_ACTIVE_LOW>; + linux,code =3D ; + }; + + event-cpu-caterr { + label =3D "cpu-caterr"; + gpios =3D <&gpio0 ASPEED_GPIO(N, 3) GPIO_ACTIVE_LOW>; + linux,code =3D ; + }; + + event-cpu-thermtrip { + label =3D "cpu-thermtrip"; + gpios =3D <&gpio0 ASPEED_GPIO(V, 5) GPIO_ACTIVE_LOW>; + linux,code =3D ; + }; + + event-psu0-presence { + label =3D "psu0-presence"; + gpios =3D <&gpio0 ASPEED_GPIO(F, 6) GPIO_ACTIVE_LOW>; + linux,code =3D ; + }; + + event-psu1-presence { + label =3D "psu1-presence"; + gpios =3D <&gpio0 ASPEED_GPIO(F, 7) GPIO_ACTIVE_LOW>; + linux,code =3D ; + }; + + event-psu0-power-ok { + label =3D "psu0-power-ok"; + gpios =3D <&gpio0 ASPEED_GPIO(M, 4) GPIO_ACTIVE_HIGH>; + linux,code =3D ; + }; + + event-psu1-power-ok { + label =3D "psu1-power-ok"; + gpios =3D <&gpio0 ASPEED_GPIO(M, 5) GPIO_ACTIVE_HIGH>; + linux,code =3D ; + }; + }; + + gpio-keys-polled { + compatible =3D "gpio-keys-polled"; + #address-cells =3D <1>; + #size-cells =3D <0>; + poll-interval =3D <1000>; + + event-fan0-presence { + label =3D "fan0-presence"; + gpios =3D <&fan_ioexp 2 GPIO_ACTIVE_LOW>; + linux,code =3D <2>; + }; + + event-fan1-presence { + label =3D "fan1-presence"; + gpios =3D <&fan_ioexp 6 GPIO_ACTIVE_LOW>; + linux,code =3D <6>; + }; + + event-fan2-presence { + label =3D "fan2-presence"; + gpios =3D <&fan_ioexp 10 GPIO_ACTIVE_LOW>; + linux,code =3D <10>; + }; + + event-fan3-presence { + label =3D "fan3-presence"; + gpios =3D <&fan_ioexp 14 GPIO_ACTIVE_LOW>; + linux,code =3D <14>; + }; + }; +}; + +&mac2 { + status =3D "okay"; + use-ncsi; + + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl_rmii3_default>; + clocks =3D <&syscon ASPEED_CLK_GATE_MAC3CLK>, + <&syscon ASPEED_CLK_MAC3RCLK>; + clock-names =3D "MACCLK", "RCLK"; +}; + +&fmc { + status =3D "okay"; + flash@0 { + status =3D "okay"; + m25p,fast-read; + label =3D "bmc"; + spi-max-frequency =3D <50000000>; +#include "openbmc-flash-layout-64.dtsi" + }; + + flash@1 { + status =3D "okay"; + m25p,fast-read; + label =3D "alt-bmc"; + spi-max-frequency =3D <50000000>; +#include "openbmc-flash-layout-64-alt.dtsi" + }; +}; + +&uart1 { + status =3D "okay"; +}; + +&uart4 { + status =3D "okay"; +}; + +&uart5 { + status =3D "okay"; +}; + +&kcs3 { + status =3D "okay"; + aspeed,lpc-io-reg =3D <0xca2>; +}; + +&lpc_reset { + status =3D "okay"; +}; + +&lpc_ctrl { + status =3D "okay"; +}; + +&uart_routing { + status =3D "okay"; +}; + +&wdt1 { + status =3D "okay"; +}; + +&wdt2 { + status =3D "okay"; +}; + +&peci0 { + status =3D "okay"; +}; + +&udc { + status =3D "okay"; +}; + +&adc0 { + vref =3D <2500>; + status =3D "okay"; + + pinctrl-names =3D "default"; + pinctrl-0 =3D <&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 { + vref =3D <2500>; + status =3D "okay"; + + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl_adc8_default &pinctrl_adc9_default + &pinctrl_adc10_default &pinctrl_adc11_default + &pinctrl_adc12_default &pinctrl_adc13_default + &pinctrl_adc14_default &pinctrl_adc15_default>; +}; + +&i2c0 { + status =3D "okay"; +}; + +&i2c1 { + status =3D "okay"; + + temperature-sensor@48 { + compatible =3D "national,lm75"; + reg =3D <0x48>; + }; + + temperature-sensor@49 { + compatible =3D "national,lm75"; + reg =3D <0x49>; + }; + + temperature-sensor@4c { + compatible =3D "national,lm86"; + reg =3D <0x4c>; + }; +}; + +&i2c2 { + status =3D "okay"; + + temperature-sensor@4f { + cpmpatible =3D "national,lm75"; + reg =3D <0x4f>; + }; + + fan_ioexp: i2c-expander@20 { + compatible =3D "nxp,pca9535"; + reg =3D <0x20>; + #address-cells =3D <1>; + #size-cells =3D <0>; + gpio-controller; + #gpio-cells =3D <2>; + + gpio-line-names =3D + "","","presence-fan0","", + "","","presence-fan1","", + "","","presence-fan2","", + "","","presence-fan3",""; + }; +}; + +&i2c3 { + status =3D "okay"; + + eeprom@50 { + compatible =3D "atmel,24c128"; + reg =3D <0x50>; + pagesize =3D <64>; + }; +}; + +&i2c4 { + status =3D "okay"; + + psu@58 { + compatible =3D "pmbus"; + reg =3D <0x58>; + }; + + eeprom@50 { + compatible =3D "atmel,24c02"; + reg =3D <0x50>; + pagesize =3D <1>; + }; +}; + +&i2c5 { + status =3D "okay"; + + psu@58 { + compatible =3D "pmbus"; + reg =3D <0x58>; + }; + + eeprom@50 { + compatible =3D "atmel,24c02"; + reg =3D <0x50>; + pagesize =3D <1>; + }; +}; + +&i2c8 { + status =3D "okay"; +}; + +&i2c10 { + status =3D "okay"; + + temperature-sensor@4d { + compatible =3D "national,lm75"; + reg =3D <0x4d>; + }; +}; + +&gpio0 { + status =3D "okay"; + + gpio-line-names =3D + /*A0-A7*/ "","","","","","","","", + /*B0-B7*/ "","","","","","","","", + /*C0-C7*/ "","","","","","","","", + /*D0-D7*/ "","","","","","","","", + /*E0-E7*/ "","","","","","","","", + /*F0-F7*/ "CPU_PWRGD","","","power-button","host0-ready","","presence-ps0= ","presence-ps1", + /*G0-G7*/ "","","","","","","","", + /*H0-H7*/ "","","","","","","","", + /*I0-I7*/ "","","","","","reset-button","","", + /*J0-J7*/ "","","","","","","","", + /*K0-K7*/ "","","","","","","","", + /*L0-L7*/ "","","","","","","","", + /*M0-M7*/ "","","","","","","","", + /*N0-N7*/ "power-chassis-control0","power-chassis-control1","","","","","= ","", + /*O0-O7*/ "","","","","","","","", + /*P0-P7*/ "","","","","","","","", + /*Q0-Q7*/ "","","","","","","","", + /*R0-R7*/ "","","","","","","","", + /*S0-S7*/ "","","","","","","","", + /*T0-T7*/ "","","","","","","","", + /*U0-U7*/ "","","","","","","","", + /*V0-V7*/ "","","","","power-chassis-good","","",""; +}; --=20 2.39.0