From patchwork Tue May 9 00:11:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryan Sie X-Patchwork-Id: 1778696 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=112.213.38.117; helo=lists.ozlabs.org; envelope-from=openbmc-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20221208 header.b=Mg3C1pQM; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QFdqr74Rlz20ff for ; Tue, 9 May 2023 10:11:36 +1000 (AEST) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4QFdqq6SwTz3fDh for ; Tue, 9 May 2023 10:11:35 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20221208 header.b=Mg3C1pQM; dkim-atps=neutral X-Original-To: openbmc@lists.ozlabs.org Delivered-To: openbmc@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::630; helo=mail-pl1-x630.google.com; envelope-from=lesly895@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20221208 header.b=Mg3C1pQM; dkim-atps=neutral Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4QFdqQ24Mkz3cfS for ; Tue, 9 May 2023 10:11:12 +1000 (AEST) Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-1ab0c697c84so39405015ad.3 for ; Mon, 08 May 2023 17:11:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683591069; x=1686183069; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=1hZApWJtWCoUka3rkSmbDNKnSjL75FiQlIzxz4KtAoE=; b=Mg3C1pQMg1Nfz+is2KaqOX0BmAx4z/bjOrzzRPfEfUMRRHsUDHslDz+91oqEzrNozN +fCFKqEZk+upkZKLOaXgoXB43NvHi7k1JKEPurUfbBPyn5xenf2al5PdEf/uUMwJzZDH l6i1cyqD3vu6w6U30SoJLQDuWgkXNvrEpAyYAr+uguq/oIjDONqi8R5CHyUHj7EwcPiu KpuVlO0XB13TvlJJIzHIXsBuEnd4GQHNLqIriHImWQDDIxPzVXc7Gn6GxpTHScm7XGuV Ze2QcZUHkyZWU7RhTH+YN4zbWx1qjXULJCuG2zjtjREyTaxTuvIyAJzWvhguJofshkg/ oP4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683591069; x=1686183069; 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=1hZApWJtWCoUka3rkSmbDNKnSjL75FiQlIzxz4KtAoE=; b=fgcW1R9AhHt//C9SW9MuZthU754dDnI0jjaWtKLoRNwbgZBqAVLvbeuHCrfGQo1fDa U+fD1LJ9Fpv7q1bshVDHiaja6Go2CgMM8lx/7H9g3/qrSVWsPsJmhr2Gt8Rl7f3ShLtU aRBr/cTeKMtRnAeij0QUtkqq/BtVu0TUMdWUgMr/Rx04l56yg/062XrWhj7tViouV+oi lchVGv6a3Va6QSghU+1YCBA0NQ9+fjrVdzP1Emg84vJd07Hn3Qk5+E+JDbBRyDevavw3 TwUZRjCN+RW0SxbOEYj6ulWInqKmFSCAL2ezG1LZMCsbDhiSQ0S8XXSezXe3yKns0Yg6 Zx9A== X-Gm-Message-State: AC+VfDyDwDxYgYxYruYY/L+/hrCCl0eNXEHFgZY7dO+FHH9EtxLr+GpN BUoEj1ymLxjgERmLqaKsUdHuam2A0CY= X-Google-Smtp-Source: ACHHUZ5aJQQfrvy24ndThtavEeWRqU5SNp32QkrBpoRDx/6AfK9O1e1WRBnlIjrBbGW+tAqvHKqPmA== X-Received: by 2002:a17:902:7407:b0:1a6:3ffb:8997 with SMTP id g7-20020a170902740700b001a63ffb8997mr13264187pll.42.1683591068720; Mon, 08 May 2023 17:11:08 -0700 (PDT) Received: from openbmc-server.. (61-220-204-242.hinet-ip.hinet.net. [61.220.204.242]) by smtp.gmail.com with ESMTPSA id q16-20020a170902b11000b001ab016ea3f9sm81976plr.21.2023.05.08.17.11.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 May 2023 17:11:08 -0700 (PDT) From: lesly895@gmail.com X-Google-Original-From: ryans@supermicro.com.tw To: openbmc@lists.ozlabs.org Subject: [PATCH] ARM: dts: aspeed: Add Supermicro X13dem system BMC devicetree Date: Tue, 9 May 2023 00:11:02 +0000 Message-Id: <20230509001102.5886-1-ryans@supermicro.com.tw> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: andrew@aj.id.au, linux-arm-kernel@lists.infradead.org, Ryan Sie Errors-To: openbmc-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "openbmc" From: Ryan Sie Add a devicetree for the new X13dem system. Signed-off-by: Ryan Sie --- .../boot/dts/aspeed-bmc-supermicro-x13dem.dts | 283 ++++++++++++++++++ 1 file changed, 283 insertions(+) create mode 100644 arch/arm/boot/dts/aspeed-bmc-supermicro-x13dem.dts diff --git a/arch/arm/boot/dts/aspeed-bmc-supermicro-x13dem.dts b/arch/arm/boot/dts/aspeed-bmc-supermicro-x13dem.dts new file mode 100644 index 000000000000..b5aac905e7ea --- /dev/null +++ b/arch/arm/boot/dts/aspeed-bmc-supermicro-x13dem.dts @@ -0,0 +1,283 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +// Copyright 2023 Supermicro Corp. +/dts-v1/; + +#include "aspeed-g6.dtsi" +#include +#include + +/ { + model = "X13dem"; + compatible = "aspeed,ast2600"; + + aliases { + mmc0 = &emmc; + }; + + chosen { + stdout-path = &uart5; + bootargs = "console=ttyS4,115200n8 earlycon"; + }; + + memory@80000000 { + device_type = "memory"; + reg = <0x80000000 0x40000000>; + }; + + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + /* LPC FW cycle bridge region requires natural alignment */ + flash_memory: region@b4000000 { + no-map; + reg = <0xb4000000 0x04000000>; /* 64M */ + }; + + /* VGA region is dictated by hardware strapping */ + vga_memory: region@bf000000 { + no-map; + compatible = "shared-dma-pool"; + reg = <0xbf000000 0x01000000>; /* 16M */ + }; + }; + + leds { + compatible = "gpio-leds"; + powerfail { + gpios = <&gpio0 ASPEED_GPIO(G, 5) GPIO_ACTIVE_LOW>; + }; + }; + + 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>; + }; +}; + +&adc0 { + status = "okay"; + aspeed,int-vref-microvolt = <2500000>; + 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 { + status = "okay"; + aspeed,int-vref-microvolt = <2500000>; + 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>; +}; + +&emmc_controller { + status = "okay"; +}; + +&pinctrl_emmc_default { + bias-disable; +}; + +&emmc { + status = "okay"; + clk-phase-mmc-hs200 = <180>, <180>; +}; + +&spi1 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_spi1_default>; + + flash@0 { + status = "okay"; + m25p,fast-read; + label = "spi1:0"; + spi-max-frequency = <25000000>; + }; +}; + +&gpio0 { + status = "okay"; + gpio-line-names = + /*A0-A7*/ "","","","","","","","", + /*B0-B7*/ "","","","","","","jpfr2","jpfr3", + /*C0-C7*/ "","","","","","","","", + /*D0-D7*/ "","","","","","","","", + /*E0-E7*/ "","","","","","","","", + /*F0-F7*/ "","","","","","","","", + /*G0-G7*/ "","","","","","pwrfail-led","","", + /*H0-H7*/ "smc-n","nmi-n","pwrbtn-n","rst-n","","","phy1-rst","", + /*I0-I7*/ "","","","","","","","", + /*J0-J7*/ "","","","","","","","", + /*K0-K7*/ "","","","","","","","", + /*L0-L7*/ "","","","","","","","", + /*M0-M7*/ "","","","","","","","", + /*N0-N7*/ "","","","","","","","", + /*O0-O7*/ "","","","","","","","speaker-bmc", + /*P0-P7*/ "cpld-int","","","","","","","bmc-hbled-n", + /*Q0-Q7*/ "","","","","","","","", + /*R0-R7*/ "","","","","pwr-ctrl-4","","","", + /*S0-S7*/ "","","wake-n","","pwrok-in","pcie-rst-in","","uid-sw-in", + /*T0-T7*/ "","","","","","","","", + /*U0-U7*/ "","","","","","","","", + /*V0-V7*/ "","","","","","","","", + /*W0-W7*/ "","","","","","","","", + /*X0-X7*/ "","bios-cmp-in","smci-pch-out","","","","nmi-in","bmc-ready", + /*Y0-Y7*/ "","bmc-hb-led","bmc-cpld-mux-sel","emmc-rst","","","sci-bmc-out","", + /*Z0-Z7*/ "bmc-prg-n","pwer-ctrl-1","pwrbtn-in","","","","",""; +}; + +&gpio1 { + status = "disabled"; +}; + +&sgpiom0 { + status = "disabled"; + gpio-line-names = + /* SGPIO output lines */ + /*OA0-OA7*/ "","","","","","","","", + /*OB0-OB7*/ "","","","","","","","", + /*OC0-OC7*/ "","","","","","","","", + /*OD0-OD7*/ "","","","","","","","", + /*OE0-OE7*/ "","","","","","","","", + /*OF0-OF7*/ "","","","","","","","", + /*OG0-OG7*/ "","","","","","","","", + /*OH0-OH7*/ "","","","","","","","", + /*OI0-OI7*/ "","","","","","","","", + /*OJ0-OJ7*/ "","","","","","","","", + /*DUMMY*/ "","","","","","","","", + /*DUMMY*/ "","","","","","","","", + + /* SGPIO input lines */ + /*IA0-IA7*/ "","","","","","","","", + /*IB0-IB7*/ "","","","","","","","", + /*IC0-IC7*/ "","","","","","","","", + /*ID0-ID7*/ "","","","","","","","", + /*IE0-IE7*/ "","","","","","","","", + /*IF0-IF7*/ "","","","","","","","", + /*IG0-IG7*/ "","","","","","","","", + /*IH0-IH7*/ "","","","","","","","", + /*II0-II7*/ "","","","","","","","", + /*IJ0-IJ7*/ "","","","","","","",""; +}; + +&kcs3 { + aspeed,lpc-io-reg = <0xca2>; + status = "okay"; +}; + +&kcs4 { + aspeed,lpc-io-reg = <0xca4>; + status = "okay"; +}; + +&uart1 { + status = "okay"; +}; + +&uart2 { + status = "okay"; +}; + +&uart3 { + status = "okay"; +}; + +&uart4 { + status = "okay"; +}; + +&uart_routing { + status = "okay"; +}; + +&mdio0 { + status = "okay"; + + ethphy0: ethernet-phy@0 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <0>; + }; +}; + +&mac0 { + status = "okay"; + + phy-mode = "rgmii"; + phy-handle = <ðphy0>; + + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_rgmii1_default>; +}; + +&mac2 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_rmii3_default>; + clocks = <&syscon ASPEED_CLK_GATE_MAC3CLK>, + <&syscon ASPEED_CLK_MAC3RCLK>; + clock-names = "MACCLK", "RCLK"; + use-ncsi; +}; + +&i2c0 { + status = "okay"; +}; + +&i2c1 { + status = "disabled"; +}; + +&i2c2 { + multi-master; + status = "okay"; +}; + +&i2c3 { + status = "okay"; +}; + +&i2c4 { + status = "okay"; + bus-frequency = <400000>; +}; + +&i2c5 { + status = "okay"; +}; + +&i2c6 { + status = "okay"; +}; + +&i2c7 { + status = "okay"; +}; + +&lpc_ctrl { + status = "okay"; + memory-region = <&flash_memory>; +}; + +&xdma { + status = "okay"; + memory-region = <&vga_memory>; +}; + +&vhub { + status = "okay"; +}; + +&rtc { + status = "okay"; +}; +