Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1096646ybl; Wed, 11 Dec 2019 12:27:18 -0800 (PST) X-Google-Smtp-Source: APXvYqzp5PosgpUP3ELJtqROVZXXNPpAuryIHQiKUt1iVowrWoa3pjyvGVz9AsxBmX70/Xk4SVrx X-Received: by 2002:a05:6830:10f:: with SMTP id i15mr3821639otp.199.1576096038743; Wed, 11 Dec 2019 12:27:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576096038; cv=none; d=google.com; s=arc-20160816; b=SkpQAiBObKyjbNWJOS94lm/+QtsKTiaiEZBHMXSHLtRUJgMPabuCFIoGh04OlSlPNz T3K0p9UlfxS8Xl6lbZH7WLDA5jKUkggcZtVbwXWDXQEEcRTh18jMOEOKN5Swy3bkCbxX ldILjeLu2ThUzk5t+kFM3x+YWyuGVIYEKTq91LYy1u25eNd3kVTQM/bG+UM8QbF68UGt rvX2/9oS2VCCBnNPIYxu3+AdjUqJhWslWvP9WNCU/mu5cul0OcUh3PpY7o/Xig72e5x+ efkju2A+arbSgt63IheMsAPJUMAhgrdoWOEiyjVuwv+8jlErMJgS5Xgb7FMoNtJPgTda tOPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=05/sLyi8ZUvKCx6X3VggQeSlEqJp/EYPoRsquDZPyBM=; b=s1IO+w26Xp6tC30QKyXVRusmxTseYJ0j/prwSmNXGbqaGkTFFZwoeF5UvGG2YSiwWq uT6bNenV2BpVXX4SL1jyuiziqk/xbj+gzhIoJO7HxuR8Dv/kDPlV3zj7I+SRDDanbSQP JxdGjhA/Rgc6fLxCs0OQCXIzHbu/fmJw0u/p4uzTO6JLA7ahgyeHtH6WhqjNG/0x9lmy MwCM5bRYxalGK4IprxJFba7gNBCroxL7d6KWSMvJa15mmXB+OvF42XYstK2HsOUE7e3D FvjL3k0jeXM2IF5O22DqpcsRe3G16mLcTTlA/gSAodetzmec+kWZ3wHJ2dlvSZQ/YdZO dU4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NY6lAGGp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p16si1689129oto.287.2019.12.11.12.27.03; Wed, 11 Dec 2019 12:27:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NY6lAGGp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726717AbfLKU0b (ORCPT + 99 others); Wed, 11 Dec 2019 15:26:31 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:32913 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726242AbfLKU0b (ORCPT ); Wed, 11 Dec 2019 15:26:31 -0500 Received: by mail-pf1-f196.google.com with SMTP id y206so2377110pfb.0; Wed, 11 Dec 2019 12:26:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=05/sLyi8ZUvKCx6X3VggQeSlEqJp/EYPoRsquDZPyBM=; b=NY6lAGGpCiyDqGAFUZ26Vts0u9XtZTT2wVwQG7P7MUUrzztxxBejTQBRZgUUhKNfzu D/Mawn+fDq+uw4KOQEHm1A43l8+NNHSPC9CKvv1q1WRuY1v7uruHBEWurKDWuhysskBv iDeGGGtFfuljoVySEGNEA2jWD4WnT8W8hwPLa0pfzdvNMTg7sBX9yj13QOY+y284z59K BTKEOBIGyXE8OgKrBeJc90Kxdg/NeYykLkwrI752pX93H+zAjHDw/OWk0KJSBR1so14H UpjmYockyCl/r0eJngYaSAf0pVYUhB4LV5A9VRzzJQpxPNC9Fal4ec0xYunY4xda8Hkb K0IQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=05/sLyi8ZUvKCx6X3VggQeSlEqJp/EYPoRsquDZPyBM=; b=c8v/t4KmWubDRNe4zmpMR3JWQYw7XbTkri9+Cu/rUdj97pP2bGzQTwT1bsD3syfvVN j/PRyp2XYozs/QoGH/4lBNNLfpWPXXlxnrSXFac4zfMXBwU65emgNWbRC0ZZE1OB8UPy jXH1EPiJMcZT4iOz/AX5XdCblOO3tLO/6rn+QfEVuY3q2OfNQR3ROYwrbfRqUiyz/Axx OWE9L+P8QyEP+EUmNJYnZPy/Qs3U+ravc8DPHfclvTcgDC2mNG+SKZazaoQmwmRD7VZ9 X2RWIjrITirzvqjajNoeHvrcrN1zdSwOlQwFvHNB4+huhogi0K6p+WAcOYQretPIQ2Km trZw== X-Gm-Message-State: APjAAAWvKDGhzfsDUSTVT5s4VF8f3VMK24irginfoFPsBGdlkNbhU650 e2HUP00M2dCvkBeIoDEAoWU= X-Received: by 2002:a65:5788:: with SMTP id b8mr6262398pgr.324.1576095990173; Wed, 11 Dec 2019 12:26:30 -0800 (PST) Received: from cnn ([2402:3a80:45f:c744:7070:9118:7874:2897]) by smtp.gmail.com with ESMTPSA id y23sm3007225pfo.110.2019.12.11.12.26.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Dec 2019 12:26:29 -0800 (PST) Date: Thu, 12 Dec 2019 01:56:21 +0530 From: Manikandan Elumalai To: joel@jms.id.au, andrew@aj.id.au, vkhemka@fb.com Cc: sdasari@fb.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-aspeed@lists.ozlabs.org, manikandan.e@hcl.com Subject: [PATCH v4 2/2] ARM: dts: aspeed: Adding Facebook Yosemite V2 BMC Message-ID: <20191211202620.GA31628@cnn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Yosemite V2 is a facebook multi-node server platform that host four OCP server. The BMC in the Yosemite V2 platform based on AST2500 SoC. This patch adds linux device tree entry related to Yosemite V2 specific devices connected to BMC SoC. --- Reviews summary --- v4[2/2] - Spell and contributor name correction. --- - License identifier changed to GPL-2.0-or-later. --- - aspeed-gpio.h removed. --- - FAN2 tacho channel changed. --- v4 - Bootargs removed. --- - Reviewed-by: Vijay Khemka --- v3 - Uart1 Debug removed . --- - Acked-by:Andrew Jeffery --- v2 - LPC and VUART removed . --- v1 - Initial draft. Signed-off-by: Manikandan Elumalai --- .../boot/dts/aspeed-bmc-facebook-yosemitev2.dts | 148 +++++++++++++++++++++ 1 file changed, 148 insertions(+) create mode 100644 arch/arm/boot/dts/aspeed-bmc-facebook-yosemitev2.dts diff --git a/arch/arm/boot/dts/aspeed-bmc-facebook-yosemitev2.dts b/arch/arm/boot/dts/aspeed-bmc-facebook-yosemitev2.dts new file mode 100644 index 0000000..ffd7f4c --- /dev/null +++ b/arch/arm/boot/dts/aspeed-bmc-facebook-yosemitev2.dts @@ -0,0 +1,148 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +// Copyright (c) 2018 Facebook Inc. + +/dts-v1/; + +#include "aspeed-g5.dtsi" +/ { + model = "Facebook Yosemitev2 BMC"; + compatible = "facebook,yosemitev2-bmc", "aspeed,ast2500"; + aliases { + serial4 = &uart5; + }; + chosen { + stdout-path = &uart5; + }; + + memory@80000000 { + reg = <0x80000000 0x20000000>; + }; + + iio-hwmon { + // VOLATAGE SENSOR + compatible = "iio-hwmon"; + io-channels = <&adc 0> , <&adc 1> , <&adc 2> , <&adc 3> , + <&adc 4> , <&adc 5> , <&adc 6> , <&adc 7> , + <&adc 8> , <&adc 9> , <&adc 10>, <&adc 11> , + <&adc 12> , <&adc 13> , <&adc 14> , <&adc 15> ; + }; +}; + +&fmc { + status = "okay"; + flash@0 { + status = "okay"; + m25p,fast-read; +#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"; + }; +}; + +&uart5 { + // BMC Console + status = "okay"; +}; + +&mac0 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_rmii1_default>; + use-ncsi; +}; + +&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>; +}; + +&i2c8 { + //FRU EEPROM + status = "okay"; + eeprom@51 { + compatible = "atmel,24c64"; + reg = <0x51>; + pagesize = <32>; + }; +}; + +&i2c9 { + //INLET & OUTLET TEMP + status = "okay"; + tmp421@4e { + compatible = "ti,tmp421"; + reg = <0x4e>; + }; + tmp421@4f { + compatible = "ti,tmp421"; + reg = <0x4f>; + }; +}; + +&i2c10 { + //HSC + status = "okay"; + adm1278@40 { + compatible = "adi,adm1278"; + reg = <0x40>; + }; +}; + +&i2c11 { + //MEZZ_TEMP_SENSOR + status = "okay"; + tmp421@1f { + compatible = "ti,tmp421"; + reg = <0x1f>; + }; +}; + +&i2c12 { + //MEZZ_FRU + status = "okay"; + eeprom@51 { + compatible = "atmel,24c64"; + reg = <0x51>; + pagesize = <32>; + }; +}; + +&pwm_tacho { + //FSC + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pwm0_default &pinctrl_pwm1_default>; + fan@0 { + reg = <0x00>; + aspeed,fan-tach-ch = /bits/ 8 <0x00>; + }; + fan@1 { + reg = <0x01>; + aspeed,fan-tach-ch = /bits/ 8 <0x01>; + }; +}; -- 2.7.4