Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3197992imu; Mon, 17 Dec 2018 15:18:54 -0800 (PST) X-Google-Smtp-Source: AFSGD/XW3rnY3WyI2dsnm5LvhGB34AT4cZ9LZf98ahLXwrx/+r+DLjvA3PAVg8OWVZ44Eg3F2xtb X-Received: by 2002:a62:18ce:: with SMTP id 197mr15080716pfy.88.1545088734657; Mon, 17 Dec 2018 15:18:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545088734; cv=none; d=google.com; s=arc-20160816; b=MN6FDjaj77CJm9Y/4+oLHFHkr6Y1osEdR9DyP8zctiH0zitZ07/Ym2qb8MeeLN4oYt Hfmkbl5kF6kceAtfL+1epoPEK9BkyPR0ittSj9fk6KnZGR3hg71p6+HX2USxMZ28jhfk 2ea3+UAaOmlBN1XK5/Bv868BQyM6uXUc/bUCK6cBTaDUyWKHtzz8dnekwr4kvtH5WQjL drEIvk5t5tplUyHg9XIUtHFdvy5zB7PHH8eO8MDovvw+fMuLrucvKsuSsXk9hwHokKkm w1XWuMd4otXWgad0XsPr+Z1XBbEJHJOj9ZIasPJVr0yvWAwjtBforq0iQ094w4H0mAWs GVRg== 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=zuGOXQ5IusDtL5mxBXvygI9mylvziSAZQ8p63Zh4PmM=; b=HgfoIDjB2pmldQud8AwBlNyZvZQ+TPkFwzzyz1T2tzBLbLsfdTe7UdPjnG9Oe3sWD/ Ak1udlX5hNg6kANsEZlNWrqmnTT/GM7GVVuAKzOxB1ghU+/PB2/ffcuLQhCHfnsD8DXx l6pmr6Lt25otLymWpzPhyG5L9llq4mHm2tcFh1yNeCzFCfsIr+241DZUGRpACWUdKxgw WabkppKsejf5Q74j+wAewf3kPVV0OU1k+BdvEvGrp/Opm6vi+sNSw1dEG57QHMBS5Scv Cv5348BD8+4RXAO//j1Rpbj4TgTivPbBDAVpiqDrszsAXpWua/v+rKTfrR+O14Edv7zY Ng+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=iuaSlMpY; 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 23si11986551pfz.20.2018.12.17.15.18.39; Mon, 17 Dec 2018 15:18:54 -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=iuaSlMpY; 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 S2389414AbeLQUEe (ORCPT + 99 others); Mon, 17 Dec 2018 15:04:34 -0500 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:33732 "EHLO mx0b-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388749AbeLQUEc (ORCPT ); Mon, 17 Dec 2018 15:04:32 -0500 Received: from pps.filterd (m0148460.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id wBHJwgFp002852 for ; Mon, 17 Dec 2018 12:04:31 -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=zuGOXQ5IusDtL5mxBXvygI9mylvziSAZQ8p63Zh4PmM=; b=iuaSlMpYJ+4wLyIOAn/MO8rgTPVUcTuwYiHMDvipliVLxjR5Wl1lA89jNT+kSHrsQ2h3 12Do7JoTWLYffuLjHkT43VIMUZujvEegzhyYmrt0rBEQnkNbaBDyY7A/xuQU3nkrSxvc n0XmWQW/NSWe4AeiUF6m5wCtAyq1N5HK8ig= Received: from maileast.thefacebook.com ([199.201.65.23]) by mx0a-00082601.pphosted.com with ESMTP id 2pefy38spa-18 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Mon, 17 Dec 2018 12:04:31 -0800 Received: from mx-out.facebook.com (2620:10d:c0a1:3::13) by mail.thefacebook.com (2620:10d:c021:18::176) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.1.1531.3; Mon, 17 Dec 2018 12:04:18 -0800 Received: by devvm4117.prn2.facebook.com (Postfix, from userid 167582) id 4137C57DA88A; Mon, 17 Dec 2018 12:04:16 -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 v2 1/4] ARM: dts: aspeed: Add sensors devices for Facebook Date: Mon, 17 Dec 2018 12:04:02 -0800 Message-ID: <20181217200405.2904551-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-17_07:,, 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 | 23 +++++++++++++++++-- 1 file changed, 21 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..64039dddd853 100644 --- a/arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts +++ b/arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts @@ -21,6 +21,17 @@ memory@80000000 { reg = <0x80000000 0x20000000>; }; + + iio-hwmon { + compatible = "iio-hwmon"; + io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>, + <&adc 4>, <&adc 5>, <&adc 6>; + }; + + iio-hwmon-battery { + compatible = "iio-hwmon"; + io-channels = <&adc 7>; + }; }; &fmc { @@ -64,6 +75,10 @@ use-ncsi; }; +&adc { + status = "okay"; +}; + &i2c0 { status = "okay"; //Airmax Conn B, CPU0 PIROM, CPU1 PIROM @@ -122,6 +137,10 @@ &i2c8 { status = "okay"; + tmp421@1f { + compatible = "ti,tmp421"; + reg = <0x1f>; + }; //Mezz Sensor SMBus }; @@ -140,7 +159,7 @@ }; fan@1 { - reg = <0x00>; - aspeed,fan-tach-ch = /bits/ 8 <0x01>; + reg = <0x01>; + aspeed,fan-tach-ch = /bits/ 8 <0x02>; }; }; -- 2.17.1