Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp857867ybz; Wed, 15 Apr 2020 20:57:07 -0700 (PDT) X-Google-Smtp-Source: APiQypIlKEGtK0XdmDQYngAWMVgLrZWuEKZkNR02PjfzIKesDEn7AFgiJHcjPnWsej+ox82cfPRB X-Received: by 2002:aa7:cb0f:: with SMTP id s15mr1507239edt.164.1587009427015; Wed, 15 Apr 2020 20:57:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587009427; cv=none; d=google.com; s=arc-20160816; b=ZMRlodrUyS/sLDydepe2ESmCIwadMLBsNXwnhMVjHUjLNq0G02CqT95n++GYhEfW2F KRaU6a49rfFL+qVtozV2hl7X+v99ZxHrgebWoUwpVMnJl8+vJO+I5jRJlrG4vRj5Fo4l cpYwwAK3Yyo4jwNb9XEk9Uu376ZW9HhKImpi+pQBjRnJnIykaJ748rttVPpFoepWIgiq 1Rz8TkuMM1EP4TDNzbZ7dewgKe7LBxeblsvFL7uDgFBRIc5QymqrMs4U8ncmbytUW2/y MwlTr/u5nrdpBYZzAAZqcNY9qgICJMcH134VDiFPc2mTaY/cCcEvYnzM02bWBl0VXcVN ttGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:cc:to:from:date:references :in-reply-to:message-id:mime-version:user-agent:dkim-signature :dkim-signature; bh=XobaS6f8FFofEDwVaA97uKXB7/n1qnX5ggwVVJ5x9d0=; b=PeBwE7DOLVOTVM3fYKUQA/04Zzz55nlS/4QmRgExUw/GRKxFjTtENRzD0rW0fk5NLl 732VNiVZhxVRUh2cK+DttTHds/gRgUBkByNrMQYOpVQHaJQb8VN3+v4xEgzIn4kPunYK HGJpKtz0cJ5A15k66bxje1oKA4KXTI3BSgJ3qBFvMxNz0blHt5DdQmuyKD3wZIolSrrP BNF4uLuGQ0WU8YVgStzE57DZHu39mTunTzQ9t2szFGlFw21JMJjdq+7bC2zYiTqStIET 5weDWwOdIEU5EtM1auHam7w2D6zEOKOfh3gC6HFgjtuz7PHqSKiS4KuQ/ZD6AyKdd8io Bn+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aj.id.au header.s=fm2 header.b=P7fJSJdK; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b="ATo4uJ/P"; 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 pj27si8943306ejb.196.2020.04.15.20.56.42; Wed, 15 Apr 2020 20:57:07 -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=@aj.id.au header.s=fm2 header.b=P7fJSJdK; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b="ATo4uJ/P"; 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 S2391460AbgDPDzN (ORCPT + 99 others); Wed, 15 Apr 2020 23:55:13 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:39473 "EHLO out3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728187AbgDPDzJ (ORCPT ); Wed, 15 Apr 2020 23:55:09 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 1C4915C024D; Wed, 15 Apr 2020 23:55:06 -0400 (EDT) Received: from imap2 ([10.202.2.52]) by compute3.internal (MEProxy); Wed, 15 Apr 2020 23:55:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h= mime-version:message-id:in-reply-to:references:date:from:to:cc :subject:content-type; s=fm2; bh=XobaS6f8FFofEDwVaA97uKXB7/n1qnX 5ggwVVJ5x9d0=; b=P7fJSJdKt9uLuClJn0/Vl5eT9+yiJ8aGohA6ZyhUrcAgoAq XNylzwrMSpOpVSKnIMMZzFqJLXnFM51ESkwyHYOypyngdLKegT7EjuSPzU5IxrEl dEKpqMgk+PEkRRuwkQ8Ostl4rtZQc9P2eIT3NaVzAZ4O+9vE2SCc2YX575KGurt+ g5EMwd+NlCX/+6oVkb5+e+fXWgO3x1N0dglEjwKbwtyd61ec5ejJpOiLPjWaQi46 a9RAjZFGP2ewnAb1KsKjBw5YUROiHVgq+cF+VdPUDJD3qBeXD+LulMhTCiu2k1eR mla8x2kZX4ceX31bBB9gLgUCbityFaO6F5zaljg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=XobaS6 f8FFofEDwVaA97uKXB7/n1qnX5ggwVVJ5x9d0=; b=ATo4uJ/Pzi+MQ5zAHNQnqD cUlG0QhYDNSDY+DmrYTVAnkIRVzaxeJ5Q7wpM2A3jxStdHZl3SljxHuk8qh+oAXX HzZV6Z9Odb2Qf6Q6IqMTBODXQYsh6QkyOrnqr39zd0dGqA+/BlA43dpqssKqTpEH FDClYVPWAwqWAReFizSTk0KNhBlNibn0ylgDPcDesOF4DYQVTVrs48wTgYJKLkFA kLfR1mX1SsEat7LAQu69EnVf4hxX5AbcsbrA1CoYqYB6L11s1ONzrUvC2ynuM+kL Pk7GxegkwtMrgVTvhXGvC/TlHDy8hSn2Y0TyHJrkZc0THs2v+ZaAeFUXOgLYbHdA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrfeeggdejjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtsehttdertderredtnecuhfhrohhmpedftehnughr vgifucflvghffhgvrhihfdcuoegrnhgurhgvfiesrghjrdhiugdrrghuqeenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvfiesrghj rdhiugdrrghu X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 669F7E00B9; Wed, 15 Apr 2020 23:55:04 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.7-1131-g3221b37-fmstable-20200415v1 Mime-Version: 1.0 Message-Id: <008ef3bb-92bd-4202-a59d-0063ee726ce4@www.fastmail.com> In-Reply-To: <20200410171613.30260-1-a.filippov@yadro.com> References: <20200410171613.30260-1-a.filippov@yadro.com> Date: Thu, 16 Apr 2020 13:25:31 +0930 From: "Andrew Jeffery" To: "Alexander A. Filippov" , linux-aspeed@lists.ozlabs.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, "Joel Stanley" , "Rob Herring" Subject: Re: [PATCH v2] ARM: DTS: Aspeed: Add YADRO Nicole BMC Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 11 Apr 2020, at 02:46, Alexander Filippov wrote: > Nicole is an OpenPower machine with an Aspeed 2500 BMC SoC manufactured > by YADRO. > > Signed-off-by: Alexander Filippov > --- > arch/arm/boot/dts/Makefile | 1 + > arch/arm/boot/dts/aspeed-bmc-opp-nicole.dts | 270 ++++++++++++++++++++ > 2 files changed, 271 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..3f1d92bab07b > --- /dev/null > +++ b/arch/arm/boot/dts/aspeed-bmc-opp-nicole.dts > @@ -0,0 +1,270 @@ > +// 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>; You should request the ADC pin via pinctrl in the ADC node below. Andrew > + }; > +}; > + > +&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 { > + nic_func_mode0 { > + gpio-hog; > + gpios = ; > + output-low; > + line-name = "nic_func_mode0"; > + }; > + nic_func_mode1 { > + gpio-hog; > + gpios = ; > + output-low; > + line-name = "nic_func_mode1"; > + }; > + seq_cont { > + gpio-hog; > + gpios = ; > + output-low; > + line-name = "seq_cont"; > + }; > + ncsi_cfg { > + gpio-hog; > + input; > + gpios = ; > + line-name = "ncsi_cfg"; > + }; > +}; > + > +&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"; > +}; > + > +&video { > + status = "okay"; > + memory-region = <&video_engine_memory>; > +}; > + > +#include "ibm-power9-dual.dtsi" > -- > 2.21.1 > >