Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2639898ybl; Mon, 20 Jan 2020 06:43:38 -0800 (PST) X-Google-Smtp-Source: APXvYqySGio92JPYnxieUFIKW+t6wwue7J7AxIzfrAXnhmDPyyYjDC98luer6k/MH8paGcTFmHPW X-Received: by 2002:a9d:5f13:: with SMTP id f19mr16792690oti.180.1579531418339; Mon, 20 Jan 2020 06:43:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579531418; cv=none; d=google.com; s=arc-20160816; b=h7nxzyF3OC0NoEvaKAZpyzhaIBKNwzNhp6Q820IxZM5HisTqJ7glOCrrkYYhYKiLSs 8Qm/3UE4wjAENiY0VpLzU7PydP0sBkdDG7i59m2oZnP7UNQwS2dkT7RdyB9Yg6MAU2z0 /xOKXKbaCuAIjJdzIKrecpOYF2Eoq7n2zxqqbEixhKhY/wWf29yZpLXtpzXkOlD33HAN 20ccdoXOstSbP+7wcjQ3XEDdgXaUIHxsCa2FPT4zRM2dd9UOSneDwrZsqkfSMxnV3yEM OawurtK03KxZSfimJqV8cxOm+Szyi72QdrrY0YOIqhIEBEJ8sUT5p4NK8ACTRXFXrl0n X7Wg== 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=YqfXc8yXrudcqJ9+BPypAzGN1yskDe+7msexUEFvfvc=; b=FZMOrME1E2TCDAAbw4MU1R7fpBBmVGFPmrd/w7ed9MzHLCSiiDou9RpWkgxmfH8GJN nmV8qDF9kQBMo23rxM/TgLGemAy2LvKpZ+RCwHRMwiZvzZyrHlHfP1emvpjo/ZZCNqWg iBHoK4/ajFs3qMxHkZEFU9jZKi91FhPuAWLCpKS9WfVf3wgBzdH5qf/nhyFUfdZchAWo 5HQdZ1NCABtdGrRV7N94P97fvzLiDi0f0nV07TljMNhwqaXRmFp6LN2FJ/tqjrsIXagI qZmo0uV4F8o62rguJwyzDQIOGQ9v9MyX4BrihBUiAV33quH7V7YupiVgC3C3YzodhZ+t BJnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oe9toNJn; 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 b4si18066864oiy.97.2020.01.20.06.43.25; Mon, 20 Jan 2020 06:43:38 -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=oe9toNJn; 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 S1729137AbgATOm3 (ORCPT + 99 others); Mon, 20 Jan 2020 09:42:29 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:38351 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726988AbgATOm2 (ORCPT ); Mon, 20 Jan 2020 09:42:28 -0500 Received: by mail-pl1-f193.google.com with SMTP id f20so13267341plj.5; Mon, 20 Jan 2020 06:42:28 -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=YqfXc8yXrudcqJ9+BPypAzGN1yskDe+7msexUEFvfvc=; b=oe9toNJnvkAP4PD5GyZiZnfkpld67CC1xeoorIFWRKSe8teuBreIpOIS6DVl+qkOjr SU05RpSvRxi40FipKfZpxf1nzdcjU6aMU9GVeH78Uo6n70vQ11pGUr3qsavc/C+PCHis XpfxUsGyC2LwKx12Mef/FWYPVtuf6U01FDZoUnG9xxIqandQFZFPlGWR0cJfyY0n0Fac Np6IxInbcjlOJ40Mxll/xAkkWz9F12fL30qVCL3Uq/jwbasYlaP0UyTgpayvN5reOFUH YUfaJP1ANyImjcYXwmeqciOZ88vk3QlBQq1kdkfPNTl/SYf+MXkAYs13m6nD4yof/B0X XrKA== 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=YqfXc8yXrudcqJ9+BPypAzGN1yskDe+7msexUEFvfvc=; b=LrHRgNzg5FF/fBqtIcvTpeueZQaDty83tHm1x7USNG6fIrPuTEoy6xDnxHOteZs8KM FdCPNPbC6P3TCAHE8ZvY7elXL6gU0TJmLJU3GcpbcyTMNIEwlT6egC7n0A48Ju1mQ3FY WUsaY0eoUMFdx+Kibe2zyzlXbO80ca8JnJ+lbJpHaO0WgaNXto4VjjDoCJbVsq0yUrSu CN0yDlpz90vcER68jKI7HD81QBJhIFwfxW2kwvMmAeaRbEVXwI7wgarrsx9+BSuJg6mF EbVKLxSOaWrciKHrtP3jpK137FJy23OVySSGa0Sk7uXMM8yjFegmrEYQRXFh4NEGO6wW qEvw== X-Gm-Message-State: APjAAAWZuDkxZXkvN/e9DScRbQFBtwt6I7MMt71ywCdJ/5ENcUMvm3m8 QBAIk+qzUafBAnIPjJvMaJA= X-Received: by 2002:a17:90a:f998:: with SMTP id cq24mr23057835pjb.6.1579531347713; Mon, 20 Jan 2020 06:42:27 -0800 (PST) Received: from cnn ([42.111.130.113]) by smtp.gmail.com with ESMTPSA id w3sm36152429pgj.48.2020.01.20.06.42.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Jan 2020 06:42:27 -0800 (PST) Date: Mon, 20 Jan 2020 20:12:21 +0530 From: Manikandan Elumalai To: andrew@aj.id.au, joel@jms.id.au Cc: sam@mendozajonas.com, 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 v6] ARM: dts: aspeed: Adding Facebook Yosemite V2 BMC Message-ID: <20200120144221.GA22195@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. Signed-off-by: Manikandan Elumalai Acked-by : Andrew Jeffery Reviewed-by : Vijay Khemka --- --- v6 - Added device tree property for multi-host Mellanox NIC in the ncsi driver. --- v5 - 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. --- v3 - Uart1 Debug removed . --- v2 - LPC and VUART removed . --- v1 - Initial draft. --- .../boot/dts/aspeed-bmc-facebook-yosemitev2.dts | 149 +++++++++++++++++++++ 1 file changed, 149 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..04a6a32 --- /dev/null +++ b/arch/arm/boot/dts/aspeed-bmc-facebook-yosemitev2.dts @@ -0,0 +1,149 @@ +// 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>; + mlx,multi-host; + 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