Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4185467imu; Mon, 10 Dec 2018 14:44:16 -0800 (PST) X-Google-Smtp-Source: AFSGD/XQki8xZIduyobcpTUGYD92d5VElaNQU8EnBsSO/hz0BnMSN/hv+KNXUIqc4okBzAYO1PWe X-Received: by 2002:a62:4255:: with SMTP id p82mr13922569pfa.13.1544481856243; Mon, 10 Dec 2018 14:44:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544481856; cv=none; d=google.com; s=arc-20160816; b=QdYUJiDbfFqzfg21LJ5tScjwOLWJi2p6yxILcpujBN08fU78DDANHj6jOSolwwVBxL a/VctEJFiAu2FRqVo7HXZfl59lKBcUzGrxk0GtLE2HSK82RqQ0FHeMXoN2p10lN9iWhA WNmp1eRN6Gf+gh++j3XccNGqRQU/RmcbL5QKponavvnIV8hpYzYPFeHtPeh+aNci5Z1u NCppaPVvHv2TEqIZx0JGTll8LIZkseKr0dT56IvWXK6QYFzCRHpNRT/QlPgnZvgLj1Eo 4k+FCr5q27ba2PnEmEUlB4+4T35fdKM7lWOZaq3nJUdkZF0lMwP7WCf6KEyfAIl1/Rzh z+0g== 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=dLElzSdHMTcAhV0wX0WRVUowNerbbcAl+7NItdgtBSM=; b=x47LHENXKjrTUmFLmUbNA6MRofgFUrA2eo8aE1SlpFW4GPZhsNPzjXQO8S+7ULq45l tjhO0ox+0Hqkb0r6Vd4fcdHnJqK/hmakIs84FNxvA8M/tqb4olG/eZhOLUWeWAcuaC7T qs54ZE5gxboOCetjuNTiEDZ/Tvy33PhdueVc/Zn99X12Kq+p458Wm60GDnDYjSLUkTQZ bEH0ZuCIRY9D3YCz/TDa15Wg7Z5tcbOciZwIaNWX5cbZhEFtNzJIRIFdCbzbOuHVwMQF kQB11/K6Ppx/zPysQXZXNJrYpfTgYqxb4/pccfBFEfZZQaz8pHg1Otr7yUUXs82F0xYn NJtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=YF3Q5GwI; 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 q189si11604329pfb.62.2018.12.10.14.43.59; Mon, 10 Dec 2018 14:44:16 -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=YF3Q5GwI; 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 S1729677AbeLJWlf (ORCPT + 99 others); Mon, 10 Dec 2018 17:41:35 -0500 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:36698 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727903AbeLJWlf (ORCPT ); Mon, 10 Dec 2018 17:41:35 -0500 Received: from pps.filterd (m0044010.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id wBAMZ7S2005189 for ; Mon, 10 Dec 2018 14:41:34 -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=dLElzSdHMTcAhV0wX0WRVUowNerbbcAl+7NItdgtBSM=; b=YF3Q5GwIJ0cZJe+sTvbOZ/E/OgibWAvxX6FgtUqsVVZQ6U3yDDXpyP9o7qFeBH8KNnY7 trNP80lLNoAL7mxxjQCuaJ1KsigAlWDfGULu0wuE18EawSz61bsODF4b/9UE/W3g9GnO Ul6IpKGi8jzw9GSx4eZ/G5NDsESKCBfg2sI= Received: from mail.thefacebook.com ([199.201.64.23]) by mx0a-00082601.pphosted.com with ESMTP id 2pa0ntg37h-3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Mon, 10 Dec 2018 14:41:34 -0800 Received: from mx-out.facebook.com (2620:10d:c081:10::13) by mail.thefacebook.com (2620:10d:c081:35::127) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.1.1531.3; Mon, 10 Dec 2018 14:41:33 -0800 Received: by devvm4117.prn2.facebook.com (Postfix, from userid 167582) id 532D54BEC11A; Mon, 10 Dec 2018 14:41:27 -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] ARM: dts: aspeed: Add sensors devices for Facebook Date: Mon, 10 Dec 2018 14:41:16 -0800 Message-ID: <20181210224116.3396252-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-10_08:,, 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..d9d7f208788a 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