Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1254128imu; Thu, 13 Dec 2018 11:54:51 -0800 (PST) X-Google-Smtp-Source: AFSGD/U+vM9UiC/P39My7rFG6RHbrTt4l4mOEnA5u05XCVn+t4uY4OA6sL5YscuNpDLFBU1iOpvC X-Received: by 2002:a63:2222:: with SMTP id i34mr110582pgi.83.1544730891786; Thu, 13 Dec 2018 11:54:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544730891; cv=none; d=google.com; s=arc-20160816; b=EtkG6t8QLn1H4korxOMWoz7GpQfukFLXOHIeofvrWjwTCm6Sal5/BjaTaIvVKwr3Jb NazyVe2Ad1SmSvcSfaonr7MgsMLAwKe7mju/smTQMaSavnXCjXw+frHT9/1rnnjPEavG iuXMbGZ2f+O5WrPAkUiQMfZ9lO+tqbnjE94nwCeo2l0siG1oB0r+hkorzgQBfkCC9g7T UNljyT1cMc4w3fMApsYHbpaCKuume+9dwfGmCN7aFSnFxvx35Qq84OaBRLCJrsDbJhNZ +lj+MELG3psRQ4DeN0SW4VeP5vSdCesrpfgOD0oC3nYFAHgIZidyoJ76f6Os1v/UteQB M50w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject :smtp-origin-cluster:cc:to:smtp-origin-hostname:from :smtp-origin-hostprefix:dkim-signature; bh=6xPDv9eZuGzy18l8+m8l21alMMgLY5002Osi37fXirM=; b=sXuToj/IMIqHquNDjTzxnSLyrBw85d1v2RyD6ZDhVsoaVkHrHhGhZRit40kt4F7DnV SvGxnWv9c3+V/jtoQNM6bxu24EFFIFKLc25GHBfE17V4WHBwuimsWt59a23BMveuqldN tjnujFTvXWN+zgb6k/4DjzcX5UOn687alBD9c/6qiB02LihEKYtgFev/+L6b+KdXxaNJ jBLCeSFFFw2ei4puhUnHjSBDhE2n7wF01TVAzr/1OGHGe49BW3xeH9GHZa+fADujQ1kE eDxTmqQPsEvF11SOXe4769Yl/XlQrFBU+ddkf3M9LTJbhHE6lzPLhBTZShe5QEhalbv/ jErQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=cjYEpoTx; 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=NONE dis=NONE) header.from=fb.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g31si2194757pld.358.2018.12.13.11.54.37; Thu, 13 Dec 2018 11:54:51 -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=@fb.com header.s=facebook header.b=cjYEpoTx; 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=NONE dis=NONE) header.from=fb.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728820AbeLMTxm (ORCPT + 99 others); Thu, 13 Dec 2018 14:53:42 -0500 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:59372 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727707AbeLMTxm (ORCPT ); Thu, 13 Dec 2018 14:53:42 -0500 Received: from pps.filterd (m0089730.ppops.net [127.0.0.1]) by m0089730.ppops.net (8.16.0.27/8.16.0.27) with SMTP id wBDJoA9U026122 for ; Thu, 13 Dec 2018 11:53:40 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=facebook; bh=6xPDv9eZuGzy18l8+m8l21alMMgLY5002Osi37fXirM=; b=cjYEpoTxWLNSelJAd2nOvr86y39f34QNlK1PU2rTXxTRuM+RRFtLGtWeEqRQqPaAGe+v 8BloczqzjvaLAf0mRYJiDL581aeBQ/XTtAGMmzgNQWUds+TAgB0Rrptce8AybhJNxg/O FwFfeAIkDI8iPig28rbpWA86dzf5eOPqmvU= Received: from maileast.thefacebook.com ([199.201.65.23]) by m0089730.ppops.net with ESMTP id 2pbv9t8dn3-9 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Thu, 13 Dec 2018 11:53:40 -0800 Received: from mx-out.facebook.com (2620:10d:c0a1:3::13) by mail.thefacebook.com (2620:10d:c021:18::171) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.1.1531.3; Thu, 13 Dec 2018 11:53:24 -0800 Received: by devvm4117.prn2.facebook.com (Postfix, from userid 167582) id 830714EBD9B4; Thu, 13 Dec 2018 11:53:22 -0800 (PST) Smtp-Origin-Hostprefix: devvm From: Vijay Khemka Smtp-Origin-Hostname: devvm4117.prn2.facebook.com To: Rob Herring , Mark Rutland , Joel Stanley , Andrew Jeffery , , , , CC: , "openbmc @ lists . ozlabs . org" Smtp-Origin-Cluster: prn2c23 Subject: [PATCH 1/4] ARM: dts: aspeed: Add sensors devices for Facebook Date: Thu, 13 Dec 2018 11:53:16 -0800 Message-ID: <20181213195319.1333402-1-vijaykhemka@fb.com> X-Mailer: git-send-email 2.17.1 X-FB-Internal: Safe MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-12-13_03:,, signatures=0 X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Added ADC and other sensor devices in Facebook Tiogapass device tree. Signed-off-by: Vijay Khemka --- .../dts/aspeed-bmc-facebook-tiogapass.dts | 33 +++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts b/arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts index f8e7b71af7e6..58bbe08d3ba7 100644 --- a/arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts +++ b/arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts @@ -21,6 +21,25 @@ memory@80000000 { reg = <0x80000000 0x20000000>; }; + + iio-hwmon { + compatible = "iio-hwmon"; + oemname0 = "MB_P3V3"; + oemname1 = "MB_P5V"; + oemname2 = "MB_P12V"; + oemname3 = "MB_P1V05"; + oemname4 = "MB_PVNN_PCH_STBY"; + oemname5 = "MB_P3V3_STBY"; + oemname6 = "MB_P5V_STBY"; + io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>, + <&adc 4>, <&adc 5>, <&adc 6>; + }; + + iio-hwmon-battery { + oemname0 = "MB_P3V_BAT"; + compatible = "iio-hwmon"; + io-channels = <&adc 7>; + }; }; &fmc { @@ -64,6 +83,10 @@ use-ncsi; }; +&adc { + status = "okay"; +}; + &i2c0 { status = "okay"; //Airmax Conn B, CPU0 PIROM, CPU1 PIROM @@ -122,6 +145,10 @@ &i2c8 { status = "okay"; + tmp421@1f { + compatible = "ti,tmp421"; + reg = <0x1f>; + }; //Mezz Sensor SMBus }; @@ -134,13 +161,15 @@ status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_pwm0_default &pinctrl_pwm1_default>; + oemname0 = "System_Fan_Connector_1"; + oemname1 = "System_Fan_Connector_3"; fan@0 { reg = <0x00>; aspeed,fan-tach-ch = /bits/ 8 <0x00>; }; fan@1 { - reg = <0x00>; - aspeed,fan-tach-ch = /bits/ 8 <0x01>; + reg = <0x01>; + aspeed,fan-tach-ch = /bits/ 8 <0x02>; }; }; -- 2.17.1