Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2768388ybz; Mon, 27 Apr 2020 04:16:02 -0700 (PDT) X-Google-Smtp-Source: APiQypKW3EzfVnSr3VmMSWnhqQDP/PbVocVFVDsyLoA+nonZOqLxPU0M94buTXFlXLwlICJf5ACV X-Received: by 2002:a17:907:20ce:: with SMTP id qq14mr18252272ejb.10.1587986162231; Mon, 27 Apr 2020 04:16:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587986162; cv=none; d=google.com; s=arc-20160816; b=UWr2gGxBqZOQRxcmRgwKakLBHlyVOduOvmXuXVZTAD3FkAItKlix2J+31l6FC9HHX9 e2WVI/lG3TSqWpI7HEg94LPZO5foYpZeRJBjVERY/gzI+4UfMZz5Wf2tGY+j0awKTJbb cruhHXS5brWa1sm4r5fIkLqP6PwSFUJHIQFXU1DwcFfjrATM9p6iSpRauRFnFVV/ScEZ DVJBWK1R1L67HHLzBN0Jdzt57PiMAgpZpCx6GCfcJW67o+rhqDzxQtFoOChr8npyCDWU t88IGOOjYBE+Q4usLoPdgYrx0CTsumwHCtj4Wg6tacOuoUM6EpMEvh5BFg5EGIaXhbdd hSJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=cYrmFZxs8semvvpV6t6EBUmZhrTRTZ0f8zlUla6LICQ=; b=C/9p4awF08t5QX+QfUsgshresbJHt4SPGwE2lRABYgsbI1WUMEOmO+qp5zp8WQRYCQ Z0PZ4ti7/wpdc55xUeBgtZwuo7JQ6yijaW+Dtd1fGDwDC5XWVjYdmHUM6tHy27J8GJOW n/xHE7votBILvyIqEbiU6LycdNt6+/aPSKn0nYElvreB5E1Bs7goU2AtMDkBpyl163u5 ryS1TlOW24M/PzGAfchBGOIErFAXlFAL7RDTPraa2IQxjGAv955iltREA+n09LBwziU+ F9eARNoQbzIeyLrWOKJ1LAndXIoovg4nnp1SA6YiBKeIN1ThQiH6xS7rj+7wozLy/jRI BDow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@jms.id.au header.s=google header.b=N+WGbFSC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p25si8080085eji.408.2020.04.27.04.15.38; Mon, 27 Apr 2020 04:16:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@jms.id.au header.s=google header.b=N+WGbFSC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727032AbgD0LLc (ORCPT + 99 others); Mon, 27 Apr 2020 07:11:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726604AbgD0LLb (ORCPT ); Mon, 27 Apr 2020 07:11:31 -0400 Received: from mail-ed1-x542.google.com (mail-ed1-x542.google.com [IPv6:2a00:1450:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7431EC0610D5; Mon, 27 Apr 2020 04:11:31 -0700 (PDT) Received: by mail-ed1-x542.google.com with SMTP id g16so13130715eds.1; Mon, 27 Apr 2020 04:11:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jms.id.au; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=cYrmFZxs8semvvpV6t6EBUmZhrTRTZ0f8zlUla6LICQ=; b=N+WGbFSCdZbEUenghH0QLH3BTBuZdhZlrDZ5D2+d4BYZTAk4cbLlYI22WhrK6o+rW2 tRjzrnLR5Xjb+HiTR4E8HLsaNJ8F0wX9v5e/VzjrvAnE+NPm7ugas1CcUbsZc+Fj8lYo y458imnNR2j6IJ1SyVLN32+/T/vROkI3zdRV4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=cYrmFZxs8semvvpV6t6EBUmZhrTRTZ0f8zlUla6LICQ=; b=ce9AWaQCuGawpCXD4dJlEEWJxWvU0cYo10XZKhVfOqaDwg8f7p9w6pgnQDfyZH4JMJ a5hl1y6/o3mpMA4GxZhUTgZwi3BbnNuL0dzyNg/tOcDQ5IPJHtN3IdQhkYkn/TsvQysn GasXwuEt4mmenJ7HKFT/XFeNaiHzr8mLwnc+wVlM9z9U6qjqbHS+LaHSpygLO4F6qAI6 Br11Q9F9eBdIwi9xR1xn8UfRuoWcMPZ+J5tuSnJQRGDOMXhvT75Tnc/pbaqZmmeVgW0p J4dVXobXT6PCE6NzOHXhm5/eCl3IF0Hho4cMvW0KMnnc/7l9IjZD1hHpGEVjA6ohUQy/ vXKQ== X-Gm-Message-State: AGi0PuZ3O22UToAqGB+EIob7q9wRU1iHOAayjg3Nxyg17OeIJG/F8Zv1 I9shuLRig0JvfKOYtbHIf1n3zk5D5YfoR200FmkQHAJJ X-Received: by 2002:aa7:cf16:: with SMTP id a22mr17747545edy.77.1587985890008; Mon, 27 Apr 2020 04:11:30 -0700 (PDT) MIME-Version: 1.0 References: <20200424135303.20952-1-a.filippov@yadro.com> In-Reply-To: <20200424135303.20952-1-a.filippov@yadro.com> From: Joel Stanley Date: Mon, 27 Apr 2020 11:11:18 +0000 Message-ID: Subject: Re: [PATCH v5] ARM: DTS: Aspeed: Add YADRO Nicole BMC To: Alexander Filippov Cc: linux-aspeed , Linux ARM , Linux Kernel Mailing List , devicetree , Andrew Jeffery , Rob Herring Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 24 Apr 2020 at 13:53, Alexander Filippov wrote: > > Nicole is an OpenPower machine with an Aspeed 2500 BMC SoC manufactured > by YADRO. > > Signed-off-by: Alexander Filippov This looks good to me. Andrew, do you have any comments before I merge? > --- > arch/arm/boot/dts/Makefile | 1 + > arch/arm/boot/dts/aspeed-bmc-opp-nicole.dts | 316 ++++++++++++++++++++ > 2 files changed, 317 insertions(+) > create mode 100644 arch/arm/boot/dts/aspeed-bmc-opp-nicole.dts > > diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile > index e8dd99201397..6f9fe0f959f2 100644 > --- a/arch/arm/boot/dts/Makefile > +++ b/arch/arm/boot/dts/Makefile > @@ -1347,6 +1347,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \ > aspeed-bmc-microsoft-olympus.dtb \ > aspeed-bmc-opp-lanyang.dtb \ > aspeed-bmc-opp-mihawk.dtb \ > + aspeed-bmc-opp-nicole.dtb \ > aspeed-bmc-opp-palmetto.dtb \ > aspeed-bmc-opp-romulus.dtb \ > aspeed-bmc-opp-swift.dtb \ > diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-nicole.dts b/arch/arm/boot/dts/aspeed-bmc-opp-nicole.dts > new file mode 100644 > index 000000000000..31b7e83adc46 > --- /dev/null > +++ b/arch/arm/boot/dts/aspeed-bmc-opp-nicole.dts > @@ -0,0 +1,316 @@ > +// SPDX-License-Identifier: GPL-2.0+ > +// Copyright 2019 YADRO > +/dts-v1/; > +#include "aspeed-g5.dtsi" > +#include > + > +/ { > + model = "Nicole BMC"; > + compatible = "yadro,nicole-bmc", "aspeed,ast2500"; > + > + chosen { > + stdout-path = &uart5; > + bootargs = "console=ttyS4,115200 earlyprintk"; > + }; > + > + memory@80000000 { > + reg = <0x80000000 0x20000000>; > + }; > + > + reserved-memory { > + #address-cells = <1>; > + #size-cells = <1>; > + ranges; > + > + vga_memory: framebuffer@9f000000 { > + no-map; > + reg = <0x9f000000 0x01000000>; /* 16M */ > + }; > + > + flash_memory: region@98000000 { > + no-map; > + reg = <0x98000000 0x04000000>; /* 64M */ > + }; > + > + coldfire_memory: codefire_memory@9ef00000 { > + reg = <0x9ef00000 0x00100000>; > + no-map; > + }; > + > + gfx_memory: framebuffer { > + size = <0x01000000>; > + alignment = <0x01000000>; > + compatible = "shared-dma-pool"; > + reusable; > + }; > + > + video_engine_memory: jpegbuffer { > + size = <0x02000000>; /* 32M */ > + alignment = <0x01000000>; > + compatible = "shared-dma-pool"; > + reusable; > + }; > + }; > + > + leds { > + compatible = "gpio-leds"; > + > + power { > + gpios = <&gpio ASPEED_GPIO(AA, 4) GPIO_ACTIVE_HIGH>; > + }; > + > + identify { > + gpios = <&gpio ASPEED_GPIO(AA, 7) GPIO_ACTIVE_HIGH>; > + }; > + > + alarm_red { > + gpios = <&gpio ASPEED_GPIO(AA, 3) GPIO_ACTIVE_HIGH>; > + }; > + > + alarm_yellow { > + gpios = <&gpio ASPEED_GPIO(AA, 1) GPIO_ACTIVE_HIGH>; > + }; > + }; > + > + fsi: gpio-fsi { > + compatible = "aspeed,ast2500-cf-fsi-master", "fsi-master"; > + #address-cells = <2>; > + #size-cells = <0>; > + no-gpio-delays; > + > + memory-region = <&coldfire_memory>; > + aspeed,sram = <&sram>; > + aspeed,cvic = <&cvic>; > + > + clock-gpios = <&gpio ASPEED_GPIO(AA, 0) GPIO_ACTIVE_HIGH>; > + data-gpios = <&gpio ASPEED_GPIO(AA, 2) GPIO_ACTIVE_HIGH>; > + mux-gpios = <&gpio ASPEED_GPIO(A, 6) GPIO_ACTIVE_HIGH>; > + enable-gpios = <&gpio ASPEED_GPIO(D, 0) GPIO_ACTIVE_HIGH>; > + trans-gpios = <&gpio ASPEED_GPIO(P, 1) GPIO_ACTIVE_HIGH>; > + }; > + > + gpio-keys { > + compatible = "gpio-keys"; > + > + checkstop { > + label = "checkstop"; > + gpios = <&gpio ASPEED_GPIO(J, 2) GPIO_ACTIVE_LOW>; > + linux,code = ; > + }; > + }; > + > + iio-hwmon-battery { > + compatible = "iio-hwmon"; > + io-channels = <&adc 12>; > + }; > +}; > + > +&fmc { > + status = "okay"; > + flash@0 { > + status = "okay"; > + m25p,fast-read; > + label = "bmc"; > + spi-max-frequency = <50000000>; > +#include "openbmc-flash-layout.dtsi" > + }; > +}; > + > +&spi1 { > + status = "okay"; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_spi1_default>; > + > + flash@0 { > + status = "okay"; > + m25p,fast-read; > + label = "pnor"; > + spi-max-frequency = <100000000>; > + }; > +}; > + > +&lpc_ctrl { > + status = "okay"; > + memory-region = <&flash_memory>; > + flash = <&spi1>; > +}; > + > +&uart1 { > + /* Rear RS-232 connector */ > + status = "okay"; > + > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_txd1_default > + &pinctrl_rxd1_default > + &pinctrl_nrts1_default > + &pinctrl_ndtr1_default > + &pinctrl_ndsr1_default > + &pinctrl_ncts1_default > + &pinctrl_ndcd1_default > + &pinctrl_nri1_default>; > +}; > + > +&uart5 { > + status = "okay"; > +}; > + > +&mac0 { > + status = "okay"; > + > + use-ncsi; > + > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_rmii1_default>; > + clocks = <&syscon ASPEED_CLK_GATE_MAC1CLK>, > + <&syscon ASPEED_CLK_MAC1RCLK>; > + clock-names = "MACCLK", "RCLK"; > +}; > + > +&i2c0 { > + status = "okay"; > + > + eeprom@50 { > + compatible = "atmel,24c256"; > + reg = <0x50>; > + pagesize = <64>; > + }; > +}; > + > +&i2c2 { > + status = "okay"; > + /* CPU0 characterization connector */ > +}; > + > +&i2c3 { > + status = "okay"; > + /* CLK GEN SI5338 */ > +}; > + > +&i2c4 { > + status = "okay"; > + /* Voltage regulators for CPU0 */ > +}; > + > +&i2c5 { > + status = "okay"; > + /* Voltage regulators for CPU1 */ > +}; > + > +&i2c6 { > + status = "okay"; > + > + rtc@32 { > + compatible = "epson,rx8900"; > + reg = <0x32>; > + }; > +}; > + > +&i2c7 { > + status = "okay"; > + /* CPLD */ > +}; > + > +&gpio { > + gpio-line-names = > + /*A0-A7*/ "","cfam-reset","","","","","fsi-mux","", > + /*B0-B7*/ "","","","","","","","", > + /*C0-C7*/ "","","","","","","","", > + /*D0-D7*/ "fsi-enable","","","nic_func_mode0","nic_func_mode1","","","", > + /*E0-E7*/ "","ncsi_cfg","","","","","","", > + /*F0-F7*/ "","","","","","","","", > + /*G0-G7*/ "","","","","","","","", > + /*H0-H7*/ "","","","","","","","", > + /*I0-I7*/ "","","","","","","","", > + /*J0-J7*/ "","","checkstop","","","","","", > + /*K0-K7*/ "","","","","","","","", > + /*L0-L7*/ "","","","","","","","", > + /*M0-M7*/ "","","","","","","","", > + /*N0-N7*/ "","","","","","","","", > + /*O0-O7*/ "","","id-button","","","","","", > + /*P0-P7*/ "","fsi-trans","","","","","","", > + /*Q0-Q7*/ "","","","","","","","", > + /*R0-R7*/ "","","","","","","","", > + /*S0-S7*/ "","","","","","","","seq_cont", > + /*T0-T7*/ "","","","","","","","", > + /*U0-U7*/ "","","","","","","","", > + /*V0-V7*/ "","","","","","","","", > + /*W0-W7*/ "","","","","","","","", > + /*X0-X7*/ "","","","","","","","", > + /*Y0-Y7*/ "","","","","","","","", > + /*Z0-Z7*/ "","","","","","","","", > + /*AA0-AA7*/ "fsi-clock","led_alarm_yellow","fsi-data","led_alarm_red", > + "led_power","","","led_identify", > + /*AB0-AB7*/ "","","","","","","","", > + /*AC0-AC7*/ "","","","","","","",""; > + > + nic_func_mode0 { > + gpio-hog; > + gpios = ; > + output-low; > + }; > + nic_func_mode1 { > + gpio-hog; > + gpios = ; > + output-low; > + }; > + seq_cont { > + gpio-hog; > + gpios = ; > + output-low; > + }; > + ncsi_cfg { > + gpio-hog; > + input; > + gpios = ; > + }; > +}; > + > +&vuart { > + status = "okay"; > +}; > + > +&gfx { > + status = "okay"; > + memory-region = <&gfx_memory>; > +}; > + > +&pinctrl { > + aspeed,external-nodes = <&gfx &lhc>; > +}; > + > +&ibt { > + status = "okay"; > +}; > + > +&vhub { > + status = "okay"; > +}; > + > +&adc { > + 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 > + &pinctrl_adc8_default > + &pinctrl_adc9_default > + &pinctrl_adc10_default > + &pinctrl_adc11_default > + &pinctrl_adc12_default > + &pinctrl_adc13_default > + &pinctrl_adc14_default > + &pinctrl_adc15_default>; > +}; > + > +&video { > + status = "okay"; > + memory-region = <&video_engine_memory>; > +}; > + > +#include "ibm-power9-dual.dtsi" > -- > 2.21.1 >