Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5522768ybc; Wed, 27 Nov 2019 05:26:01 -0800 (PST) X-Google-Smtp-Source: APXvYqzVYetMIUR4eH8FM6UCy2fFCKrjlF6lrxYEDmz7dbtX4wclLX0pMh2Gbr9vrkejOLGOvDgX X-Received: by 2002:aa7:c384:: with SMTP id k4mr2313189edq.10.1574861161289; Wed, 27 Nov 2019 05:26:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574861161; cv=none; d=google.com; s=arc-20160816; b=Cgmnt+fg/8IsmBuaZtNA7vW7OFWTRksP36opsFeslY/+b9iBMHjzhnhTkXrgqkjiaD CBxQ+KsBDS8uo/jLG+MDwNlUDYbdJ+1gEPW9eSNfbMHUKsch0DSzZeTfsER8ZgOZRNNF O/Cps8Yh8CvzFzlA5z/hmaaJuE+ISlVCyObu5GVcQR7Ej2hLkK8jhIgfmggui5VETlbt 9Fs2DRgMTFgsVvhoqRj1XM8jygLUPaFhD+gVbhRGGm4rMHcTuOanHqPRcrHGHGpg0q02 uGiWI+IcM3k1eFoMy4e2lOQMQ7x8SKatN40RvlRWG7uFUJ9P6ZPeZxwvaAde6xxYI+si onCw== 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=FYckdcYvzj5yK1e7XpJFaQ7ZpFtgpcz0P/S/HZ3xvbc=; b=yoNp+9A6W4RhTEU/kGASeI2kEa1e1xOYo8YprJVFjkRSV0tg406PDCTI2+BWFfRcfP //6fL510RrbZynVdayTJ1a4dRwbk9r4Bet9V7ezmmv1TIxyvhkIbaNxJYD1TPIDCWvis xLL6t5NG/NvcDtJJgHLlbLuLorvVqmm+HEfr/AqJeF+ouqZDzPvXcifqV0P2rmAsoOZx LKO0xM1M5plXbkvE7tnVr4FMUtnCeQCRZZDfByhSzkMyP4USMzPibHPzKbflwkF3EIIq ts+iqG+En6po03R96OHj0aj6SvHGImcAaN8nx4a5ng1XxERcBylkVG73oFEQOY/IL6Bs i5kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=De9TnT8O; 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 q2si9629520eju.229.2019.11.27.05.25.36; Wed, 27 Nov 2019 05:26:01 -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=De9TnT8O; 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 S1727008AbfK0NXt (ORCPT + 99 others); Wed, 27 Nov 2019 08:23:49 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:37676 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726587AbfK0NXt (ORCPT ); Wed, 27 Nov 2019 08:23:49 -0500 Received: by mail-pf1-f194.google.com with SMTP id p24so10995500pfn.4; Wed, 27 Nov 2019 05:23:49 -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=FYckdcYvzj5yK1e7XpJFaQ7ZpFtgpcz0P/S/HZ3xvbc=; b=De9TnT8OPZ/OkNDYBgNjAksDWHzISRs/xzkfj1C3qsBCEHTgm0vG8VyIX/LYjDRKyj MareuXWH38yaNVa5oZwxdlaVm8kALUSNOGcMGGnWm7onxh38Ms6rpfdE2HkGNI+3ucC8 fGTPcJ+PB1AS0O5lKIxWOs9DOu/OuhotKXujGQBuPn3D4nrZzJs9+A1VwxPlw1At3elQ umy5EdOZ7iSrNlhnjTUfFaHOgGsDQuqcEQuLXfnmxdnbQoQzLY/85v5I3/cH0rXQQ89n EgeIHjhNyZEtKnRLhJG12OQU8gaq9k3ruFP2MH6UryZ9agKdHLdufsDaGA5deLVB9VQ+ LD1Q== 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=FYckdcYvzj5yK1e7XpJFaQ7ZpFtgpcz0P/S/HZ3xvbc=; b=O9F/L3KM2lLK3jucVglcPS3nzvNW33Uj7yrVEm3XbrJKEnTNBTPpA48FO4v1MdBPNl AXMgIVq4/H6m1+xb/EzUnEA2AN3UL0vettmDHwt2kRwYc1xd+xd/kLtRRJXjQqRAwrDN Em7xr+ol10plxiE+tSPDK1CXel88I3QcUvQX+zxPUNS027+kJXx1/mGD+3u1Tbze6aH+ b/PsBy/xccVileRgDQwjiWWdJtfedAegg0Ulv2Uiu97320GaidvPAcbmD/YPYdKv9FYp DaakAQYEWt/6AiVrHpN+PaeCSt0ruKB9HA7bJqRI99vWDOIS/rK/csNJN8OVL91jYm19 bMHg== X-Gm-Message-State: APjAAAW+Nq9akkZeoiqi4TkgWHKu/klvKj9e9EPl7u7ag1pvZ1aSvnYL zwRRvHA0PGlHmaYbTtjC0SA= X-Received: by 2002:a63:597:: with SMTP id 145mr2050606pgf.384.1574861028745; Wed, 27 Nov 2019 05:23:48 -0800 (PST) Received: from cnn ([2402:3a80:46e:a1cb:a194:63c9:69fb:ee71]) by smtp.gmail.com with ESMTPSA id 16sm16855165pfc.21.2019.11.27.05.23.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Nov 2019 05:23:48 -0800 (PST) Date: Wed, 27 Nov 2019 18:53:40 +0530 From: manikandan-e To: andrew@aj.id.au Cc: joel@jms.id.au, sdasari@fb.com, vijaykhemka@fb.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-aspeed@lists.ozlabs.org, manikandan.e@hcl.com Subject: [PATCH v4] ARM: dts: aspeed: Adding Facebook Yosemite V2 BMC Message-ID: <20191127132340.GA22672@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 platorm based on AST2500 SoC. This patch adds linux device tree entry related to Yosemite V2 specific devices connected to BMC SoC. Signed-off-by: manikandan-e --- .../boot/dts/aspeed-bmc-facebook-yosemitev2.dts | 150 +++++++++++++++++++++ 1 file changed, 150 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..44e2b17 --- /dev/null +++ b/arch/arm/boot/dts/aspeed-bmc-facebook-yosemitev2.dts @@ -0,0 +1,150 @@ +// SPDX-License-Identifier: GPL-2.0+ +// Copyright (c) 2018 Facebook Inc. +/dts-v1/; + +#include "aspeed-g5.dtsi" +#include + +/ { + 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 { + status = "okay"; + //FRU EEPROM + eeprom@51 { + compatible = "atmel,24c64"; + reg = <0x51>; + pagesize = <32>; + }; +}; + +&i2c9 { + status = "okay"; + tmp421@4e { + //INLET TEMP + compatible = "ti,tmp421"; + reg = <0x4e>; + }; + //OUTLET TEMP + tmp421@4f { + compatible = "ti,tmp421"; + reg = <0x4f>; + }; +}; + +&i2c10 { + status = "okay"; + //HSC + adm1278@40 { + compatible = "adi,adm1278"; + reg = <0x40>; + }; +}; + +&i2c11 { + status = "okay"; + //MEZZ_TEMP_SENSOR + tmp421@1f { + compatible = "ti,tmp421"; + reg = <0x1f>; + }; +}; + +&i2c12 { + status = "okay"; + //MEZZ_FRU + eeprom@51 { + compatible = "atmel,24c64"; + reg = <0x51>; + pagesize = <32>; + }; +}; + +&pwm_tacho { + status = "okay"; + //FSC + 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 <0x02>; + }; +}; -- 2.7.4