Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp795564rwb; Thu, 19 Jan 2023 02:50:30 -0800 (PST) X-Google-Smtp-Source: AMrXdXv15Vv5vMzO6vC+XuUwmlyw3xC+QtwLM/5DTdLyUPNv5JD2ei/8DWtQGaX3LTLlxZVExKZW X-Received: by 2002:a05:6402:3214:b0:46f:68d0:76 with SMTP id g20-20020a056402321400b0046f68d00076mr12920558eda.34.1674125430488; Thu, 19 Jan 2023 02:50:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674125430; cv=none; d=google.com; s=arc-20160816; b=lNvAd1v3Kbvv5PqJBkzZL93Ksnn50E/nP9PV+n1wctwh9rCGcH5znsldWjCEC9x34R mBlgKoEi9kGqxzUu1LE4mURebAVD4c9pqytW5MpZHWiDdVIaTOHAm+vWV4Z6J7cpUqdM Kp47+4vfGEUd/o3T1+I63My2wkR2WUxdohdGOth1zteCq3bBEEth0zmJALegEZCyTwLz MyLU6LlbF1PK4OoVxDqnIYZBChuMw75qARYGQE06/8vDkI8ALAj6mAlWljiXjZ0tT71N 2BbqEST6Ben53NH55V98zmIFiSrbiyYRgBsGoymRqWiV+MUwiWIt/ZbLKlA3jaJ/dN9K rX4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=gzxculiynfgXpHNLfw83WQVl9BRzHCte92yfypt/lzE=; b=nbQ47/4ik0wwpeDi2/aCtWszof8jvn7TWYnyDg/gHnfVW0ZoyS+TKaD6+6RFSVKlXu 7Poh5K8xqGzajmi+h6b18y0ZwEBCli21YkFaR9fVCbrk8Bk51QqNfe6z//DNUpvXO1us ozKV1TbBWRJKjlhBFEe9IJWfi98rSAF4YOJnX2YPwTJXpqzRrrTnO03eD4nRQ7CvG2kV y4hrepn62Ht9dbdyoPn+FFqxG0/KjDm4ob+cfGRVKPYmXVh2C+q5xQCGVITszh4f+SR+ THtMCGIEb+NS8F1T8K+hPfY/KN3WLxV1E/5MtAYH76adSct00369bMdY31YJL2wd+4iH fPJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ufispace-com.20210112.gappssmtp.com header.s=20210112 header.b=iMez6eg6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q11-20020a056402032b00b0048d858ddabfsi37141158edw.414.2023.01.19.02.50.18; Thu, 19 Jan 2023 02:50:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ufispace-com.20210112.gappssmtp.com header.s=20210112 header.b=iMez6eg6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230339AbjASKVw (ORCPT + 44 others); Thu, 19 Jan 2023 05:21:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230330AbjASKV0 (ORCPT ); Thu, 19 Jan 2023 05:21:26 -0500 Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 992BD6469D for ; Thu, 19 Jan 2023 02:21:24 -0800 (PST) Received: by mail-pg1-x536.google.com with SMTP id r18so1107549pgr.12 for ; Thu, 19 Jan 2023 02:21:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ufispace-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=gzxculiynfgXpHNLfw83WQVl9BRzHCte92yfypt/lzE=; b=iMez6eg6tLPXVJnCAHmcrknTi5rYVgZt1+dLFPJVkgshsgYTpw6SUSxaQESzJAx3z/ fMsiGGOBpLSfrlQjaMsyJK5/Uv7UYA3shLXgvB4HS9K3TdOT3GvWwvf0t4u6LZvXOSRm UXjx95TbLOy+hzDy1sksBPjJNI5/Ms54GF3gp0it9IYwrimXvlCcMHRD6yD0mWj+LKcF wEiYAn8jWnCjM6BZd9Jc2ScUDlpDuA2vigq62jVoQzKYfpUPObGVrxOfRvqU9uAMGLp2 Bhuu8Gqr6pwHX3/7YnO4CbXEfxyEdDP90WJKtjBJHiuB3NTctERKB6ZVPW6HXunzgxg3 9STw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=gzxculiynfgXpHNLfw83WQVl9BRzHCte92yfypt/lzE=; b=dm7H9lZOhGHKDdwlbsILulueWB/kNW9uJhVILTJv/PMo8WW8IFrmY8yeoUfFozJGDT nl9jBh7HQxXQPwU3SHDKzV+GfkbXNq75usHSXPFVVDlOApT/c7z3MyFFmnbXmtnG53Dn I7EdnTZgcsh2ZDcX66LJ0tbgz83vBXdtNFFy6rZf6UrbaAQNdb7tpyVM1Uz8ZzoWTiMK kypAigpkbLr3JtjIJuydmgfi5BJzEySZu4S5NvLpW8o2k8svwjQBKV1HMsYZjeBav3Gl lzwjJXJZaBukXjOXo8gjtkLTLJNehbHoNI/l/XyNtw+3ZfAtpYuPQpZzdRR7UndGWNy0 Q5BQ== X-Gm-Message-State: AFqh2koRCMpHmWr9zGm02KszV6kr1hWx+stv1CilCwsE4lS0IiXWW9Sy agNofT52w7wJ7mD+CwUJC2RF22KRpZzt9MxLLlvMWI/5UnGS+eWDTJCKxaW67JobJrZAeVRh4Mw oRKA1glCzFt9G9esbQqbu0HOX7HO8 X-Received: by 2002:aa7:85c4:0:b0:58d:bb58:e928 with SMTP id z4-20020aa785c4000000b0058dbb58e928mr9998794pfn.32.1674123684077; Thu, 19 Jan 2023 02:21:24 -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 p128-20020a625b86000000b00580d25a2bb2sm19152964pfb.108.2023.01.19.02.21.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Jan 2023 02:21:23 -0800 (PST) From: Jordan Chang To: linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@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 Subject: [PATCH 3/3] ARM: dts: aspeed: Add device tree for Ufispace NCPLite BMC Date: Thu, 19 Jan 2023 18:21:02 +0800 Message-Id: <20230119102102.73414-4-jordan.chang@ufispace.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230119102102.73414-1-jordan.chang@ufispace.com> References: <20230119102102.73414-1-jordan.chang@ufispace.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,WEIRD_QUOTING autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add initial version of device tree for Ufispace NCPlite platform which is equipped with AST2600-based BMC. Signed-off-by: Jordan Chang --- arch/arm/boot/dts/Makefile | 1 + .../boot/dts/aspeed-bmc-ufispace-ncplite.dts | 360 ++++++++++++++++++ 2 files changed, 361 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) += \ 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/boot/dts/aspeed-bmc-ufispace-ncplite.dts new file mode 100644 index 000000000000..7ab29129d1e4 --- /dev/null +++ b/arch/arm/boot/dts/aspeed-bmc-ufispace-ncplite.dts @@ -0,0 +1,360 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +// Copyright (c) 2022 Ufispace Co., Ltd. +/dts-v1/; + +#include "aspeed-g6.dtsi" +#include +#include + +/ { + model = "Ufispace NCPLite BMC"; + compatible = "ufispace,ncplite-bmc", "aspeed,ast2600"; + + aliases { + serial4 = &uart5; + }; + + chosen { + stdout-path = &uart5; + bootargs = "console=ttyS4,115200n8 earlycon"; + }; + + 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 0>, <&adc1 1>, <&adc1 2>, <&adc1 3>, + <&adc1 4>, <&adc1 5>, <&adc1 6>, <&adc1 7>; + }; + + gpio-keys { + compatible = "gpio-keys"; + + fan-status-int-l { + label = "fan-status-int-l"; + gpios = <&gpio0 ASPEED_GPIO(M, 2) GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + allpwr-good { + label = "allpwr-good"; + gpios = <&gpio0 ASPEED_GPIO(V, 4) GPIO_ACTIVE_HIGH>; + linux,code = ; + }; + + psu0-alert-n { + label = "psu0-alert-n"; + gpios = <&gpio0 ASPEED_GPIO(V, 1) GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + psu1-alert-n { + label = "psu1-alert-n"; + gpios = <&gpio0 ASPEED_GPIO(V, 2) GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + int-thermal-alert { + label = "int-thermal-alert"; + gpios = <&gpio0 ASPEED_GPIO(P, 2) GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + cpu-caterr-l { + label = "cpu-caterr-l"; + gpios = <&gpio0 ASPEED_GPIO(N, 3) GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + cpu-thermtrip-l { + label = "cpu-thermtrip-l"; + gpios = <&gpio0 ASPEED_GPIO(V, 5) GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + psu0-presence-l { + label = "psu0-presence-l"; + gpios = <&gpio0 ASPEED_GPIO(F, 6) GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + psu1-presence-l { + label = "psu1-presence-l"; + gpios = <&gpio0 ASPEED_GPIO(F, 7) GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + psu0-power-ok { + label = "psu0-power-ok"; + gpios = <&gpio0 ASPEED_GPIO(M, 4) GPIO_ACTIVE_HIGH>; + linux,code = ; + }; + + psu1-power-ok { + label = "psu1-power-ok"; + gpios = <&gpio0 ASPEED_GPIO(M, 5) GPIO_ACTIVE_HIGH>; + linux,code = ; + }; + }; + + gpio-keys-polled { + compatible = "gpio-keys-polled"; + #address-cells = <1>; + #size-cells = <0>; + poll-interval = <1000>; + + fan0-presence { + label = "fan0-presence"; + gpios = <&fan_ioexp 2 GPIO_ACTIVE_LOW>; + linux,code = <2>; + }; + + fan1-presence { + label = "fan1-presence"; + gpios = <&fan_ioexp 6 GPIO_ACTIVE_LOW>; + linux,code = <6>; + }; + + fan2-presence { + label = "fan2-presence"; + gpios = <&fan_ioexp 10 GPIO_ACTIVE_LOW>; + linux,code = <10>; + }; + + fan3-presence { + label = "fan3-presence"; + gpios = <&fan_ioexp 14 GPIO_ACTIVE_LOW>; + linux,code = <14>; + }; + }; +}; + +&mac2 { + status = "okay"; + use-ncsi; + + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_rmii3_default>; + clocks = <&syscon ASPEED_CLK_GATE_MAC3CLK>, + <&syscon ASPEED_CLK_MAC3RCLK>; + clock-names = "MACCLK", "RCLK"; +}; + +&fmc { + status = "okay"; + flash@0 { + status = "okay"; + m25p,fast-read; + label = "bmc"; + spi-max-frequency = <50000000>; +#include "openbmc-flash-layout-64.dtsi" + }; + + flash@1 { + status = "okay"; + m25p,fast-read; + label = "alt-bmc"; + spi-max-frequency = <50000000>; +#include "openbmc-flash-layout-64-alt.dtsi" + }; +}; + +&uart1 { + status = "okay"; +}; + +&uart4 { + status = "okay"; +}; + +&uart5 { + status = "okay"; +}; + +&kcs3 { + status = "okay"; + aspeed,lpc-io-reg = <0xca2>; +}; + +&lpc_reset { + status = "okay"; +}; + +&lpc_ctrl { + status = "okay"; +}; + +&uart_routing { + status = "okay"; +}; + +&wdt1 { + status = "okay"; +}; + +&wdt2 { + status = "okay"; +}; + +&peci0 { + status = "okay"; +}; + +&udc { + status = "okay"; +}; + +&adc0 { + vref = <2500>; + status = "okay"; + + pinctrl-names = "default"; + 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 { + vref = <2500>; + status = "okay"; + + pinctrl-names = "default"; + pinctrl-0 = <&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 = "okay"; +}; + +&i2c1 { + status = "okay"; + + lm75@48 { + compatible = "national,lm75"; + reg = <0x48>; + }; + + lm75@49 { + compatible = "national,lm75"; + reg = <0x49>; + }; + + lm86@4c { + compatible = "national,lm86"; + reg = <0x4c>; + }; +}; + +&i2c2 { + status = "okay"; + + lm75@4f { + cpmpatible = "national,lm75"; + reg = <0x4f>; + }; + + fan_ioexp: pca9535@20 { + compatible = "nxp,pca9535"; + reg = <0x20>; + #address-cells = <1>; + #size-cells = <0>; + gpio-controller; + #gpio-cells = <2>; + + gpio-line-names = + "","","presence-fan0","", + "","","presence-fan1","", + "","","presence-fan2","", + "","","presence-fan3",""; + }; +}; + +&i2c3 { + status = "okay"; + + eeprom@50 { + compatible = "atmel,24c128"; + reg = <0x50>; + pagesize = <64>; + }; +}; + +&i2c4 { + status = "okay"; + + psu@58 { + compatible = "pmbus"; + reg = <0x58>; + }; + + eeprom@50 { + compatible = "atmel,24c02"; + reg = <0x50>; + pagesize = <1>; + }; +}; + +&i2c5 { + status = "okay"; + + psu@58 { + compatible = "pmbus"; + reg = <0x58>; + }; + + eeprom@50 { + compatible = "atmel,24c02"; + reg = <0x50>; + pagesize = <1>; + }; +}; + +&i2c8 { + status = "okay"; +}; + +&i2c10 { + status = "okay"; + + lm75@4d { + compatible = "national,lm75"; + reg = <0x4d>; + }; +}; + +&gpio0 { + status = "okay"; + + gpio-line-names = + /*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","","",""; +}; -- 2.39.0 -- ****************************** This e-mail is confidential. If you are not the intended recipient, you must not disclose, distribute or use the information in it as this could be a breach of confidentiality.If you have received this message in error, please advise us immediately by return e-mail and delete the document. The address from which this message has been sent is strictly for business mail only and the company reserves the right to monitor the contents of communications and take action where and when it is deemed necessary. Thank you for your co-operation.