From patchwork Wed Sep 16 08:20:43 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: yao yuan X-Patchwork-Id: 7192491 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A2A7A9F32B for ; Wed, 16 Sep 2015 08:29:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B68FA20706 for ; Wed, 16 Sep 2015 08:29:09 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4D557206FF for ; Wed, 16 Sep 2015 08:29:06 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zc83U-0000vC-SX; Wed, 16 Sep 2015 08:27:04 +0000 Received: from mail-by2on0140.outbound.protection.outlook.com ([207.46.100.140] helo=na01-by2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zc83R-0000oO-QW for linux-arm-kernel@lists.infradead.org; Wed, 16 Sep 2015 08:27:02 +0000 Received: from DM2PR03CA0040.namprd03.prod.outlook.com (10.141.96.39) by BY2PR03MB143.namprd03.prod.outlook.com (10.242.35.149) with Microsoft SMTP Server (TLS) id 15.1.268.17; Wed, 16 Sep 2015 08:26:39 +0000 Received: from BN1AFFO11FD011.protection.gbl (2a01:111:f400:7c10::103) by DM2PR03CA0040.outlook.office365.com (2a01:111:e400:2428::39) with Microsoft SMTP Server (TLS) id 15.1.268.17 via Frontend Transport; Wed, 16 Sep 2015 08:26:38 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=freescale.com; freescale.mail.onmicrosoft.com; dkim=none (message not signed) header.d=none; freescale.mail.onmicrosoft.com; dmarc=none action=none header.from=freescale.com; Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BN1AFFO11FD011.mail.protection.outlook.com (10.58.52.71) with Microsoft SMTP Server (TLS) id 15.1.262.18 via Frontend Transport; Wed, 16 Sep 2015 08:26:38 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id t8G8QYGr013921; Wed, 16 Sep 2015 01:26:34 -0700 From: Yuan Yao To: , , Subject: [PATCH] arm/dts: Add node for ina220 on LS1021ATWR Date: Wed, 16 Sep 2015 16:20:43 +0800 Message-ID: <1442391643-37883-1-git-send-email-yao.yuan@freescale.com> X-Mailer: git-send-email 2.1.0.27.g96db324 X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD011; 1:UmyOjfsLCNz589p/kpRdx4E08F7FEfKQ6HuKSIoUbzHxdxeEhNLoptg7eJoUFsunNz91muFcFDJ2ODYsK1249ze7tDsrVNNFozVyjc4xJJtv6mRMfUZiIkGIFUjRN+cxwlDqEL0LDpdHkS+6+LSzIUc+1BOPwInZsjL26Qanv6zpqFFS+SMLfhYIY+jnAJWhizNZR9TeT1Gf/2f9XKUg4uUmKGqbCH0HPwk9oNleJOf7yt6TTfJCVxlIPwwcPaGORkrePUEJj3XAvTmz0N6VVYRz65tuiEUbSIkWSKcSfSuQpFQmOXlVlGyYomP3keelNJhfQWXj1bDj3mv8lmKQPLi9uTOKZrwHtiybdRM8dgKQFO8CYGMRcz6/pTPFBjIaUQcJ8VgpcubVs5qs+RpUbA== X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(19580405001)(77156002)(104016003)(50986999)(46102003)(11100500001)(5001860100001)(5003940100001)(5007970100001)(33646002)(64706001)(69596002)(6806004)(92566002)(107886002)(19580395003)(229853001)(97736004)(5001960100002)(189998001)(62966003)(4001540100001)(68736005)(48376002)(47776003)(86362001)(85426001)(50466002)(81156007)(87936001)(50226001)(5001830100001)(105606002)(2201001)(36756003)(106466001)(77096005)(5001770100001)(2101003)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:BY2PR03MB143; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB143; 2:m1u+sVVZLA5E4qucAkie6CwGH0JHTrjadCv0xHvC2OgZMx0KlCwcWI+aOSdKfFG23Dr1t7YruAoYUDvlhiMtmgTbf0qp2kR+c5aWlBnxmIfQdkplDhZf2lSSUbGE1GfHz/pCJQIJ/UrF8BAaz+XL89rTBd8/pgJqauhjnrAfOf0=; 3:+JgPb9xl43NCAzT55y3GraQenGYQ7pBiavcPQMghO1aSfV6Id17UhyuSIAIKiGWeQVYdjuP4Hwq+DY5ms/OOg0Rtf685KU+usWSh1QBeM+3iu1LVBrq036Xjkotf2zATsi4ewfoEne5EgILs8EQu4dqDQkRUiIfYLZr9GQSOCxM8n40Ws6W6gRS2ocF6tCHRKzM0itJu6YVEev1+eh5Owywle16A27mGuFi4dQ0OJP0=; 25:yeG27cOpXf/WNeiFCigNWeJOYvz2RwH5wZK2DH1IuVfRFmYnrBYuFKOSO08R1s1VyLYbTCa2Z309DL/9iAfqDBvYH64U576nlnSl2JAd+UWil0DgTmQP9mV382zHQ3VdwXXDRDTzJAG5qTQvXZHULg14KeeFUaXQEurZtCoMqkmxilSjYXbEiPpDVkY5t6usLMQT9sT9G77MFM2v2K+so0Xvg3BWIP6qKTOG58piW/7alBHojx+H8KNmnUC3jh0sQNPjj4KLF2/+4O6xFdzvJA== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR03MB143; X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB143; 20:IHOKtecoTrq4JJnm8t/tLcWnjcAZrn6IvWAURqc5Q5IcGBVGbLcRiu/904ZJr+AXfyT/KcztiBqi+GagiCQm6yhYRYZObaG0ILGMNk3pgIYOJ04gUEwtDBlDhfSYpe4e0mddm9/yn710bT9vabZEpXk+PQ2zio2YsBervG6Ou5bpqT4Jd8vZoL2CO7gAU/siVj02fNGNMmWDHzfaOVcqW9mtSIvd3JR/4wWktAx+/ZI6MH990862WA8HDkqOIuy0e4XZ0eoH6ZBT1YoUe4FWycrlS1F0DXZUi29FGhUBgaCVO2slfZbUIALOaeSAf91JGRrKsTwZsOSORMCkCVsHub/rLRYWkN51GepcV+ftXJ8=; 4:6hQGaj9RWsRopx/OoyGUDyuGWSnUvtFDTczyFAr3aQ/QMfeAMy+4CFjO5kPHJwt1ajYrK8XkgpVKboJqLK2lfg9qi32QKpdlfYVrC4FikUHXOUzNHA/86BVYA4EDQC1rLuM4gClJ6oDHKkOb21PidgOMtF2tWd19pNx2cG/0QggJwirg9UqgFehDZ7+6ue9NJznAbXD3N+MFSiv4uRqgWE+XBiQU0/7Y6KMJJ8fGiQzxMI1fp0rNxJ3pZgt1HK9/68uf6YajfrbB7XAUjcgUXnLi2ve8RroNc6DeXsawSNvpGJGLCF0lCdYav2j1E4qyfQYoxfwKMQ5xYhG+TVXcPrjpCkpbPDetzePtwatEEbg= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(8121501046)(520078)(520075)(3002001); SRVR:BY2PR03MB143; BCL:0; PCL:0; RULEID:; SRVR:BY2PR03MB143; X-Forefront-PRVS: 07013D7479 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR03MB143; 23:0d+I1szLihXkWPKy2VD+7tD33p9roY+OHCRv41/R9q?= =?us-ascii?Q?c5stOoHtfHhc8wrpROeLpqS8Fdoaa7N2SDWACaeJ9+08XvZFv5PzV1gJVeG7?= =?us-ascii?Q?BMETi3bIJcOz+o7Md0uQ+tomwnRQe3i3QyJmvncigHNzFYSlvZ/+CsJYlSMB?= =?us-ascii?Q?ftl4pXWNvyzQYT7YbDzeWewcqq66k6osCVpPuGKLVPIHZZaQfACV7zF1zw6p?= =?us-ascii?Q?wo1MNWXs+PN0sRnMufF0BiVzsQiQJwkV+gcDLWvM6bW42YngEy2Undoz5put?= =?us-ascii?Q?jP7jYN5vFVM1K8Fu2GUS9KRUEvRT/DlnPr4sdDUzbKLIm7Qge0ljCGP+79FF?= =?us-ascii?Q?58+MzYcTjUYCV5NtGCx5Mzg9OdqNG0GlNikkwU06pzpwbxa8quoUs+4Pw4rP?= =?us-ascii?Q?eSbwCqjNHplyU8uLyTsYaI7cDy/AARh+Vm/GnJByfmJk3yCsRRrnHnZDJEWJ?= =?us-ascii?Q?qvtOInmMMn9qqGV2yZ7QhpSjSvF8vMdOvZuqZwS9FLxv0lbfTwawrO5+b85D?= =?us-ascii?Q?mr1+L0PEdD1CjQ9PR2K1YR2o47I9rg/ItzQiJy736vSqpeuwdw3uD3pIn6iW?= =?us-ascii?Q?Xf++ccrkzx3lbdpVkfTacpZSJnsr7aictVuBgTkM7/0OGS0FTO3g3nvRRyKo?= =?us-ascii?Q?1gOAHb4plL1wZYtpvsaKP2DBopQ/1yrimD+RY2XHbDD1/KOin0R3wigyfmek?= =?us-ascii?Q?oDFtA/DiciMIW8hdsGYoqQQw2P6oiytNI5bjsHcmB7t01Tc030JadsLVGWH8?= =?us-ascii?Q?YVo1ccAiZt3LF0mI018NG3cBr435fiIg2EqRoLoOrHquzkt/WB8tVWPTB1Bv?= =?us-ascii?Q?yPv0Vh2zy3KAYhxacdvd2XKC4swYoKsLV7JpLADHm9MYL3r6npfCtnIwLbZH?= =?us-ascii?Q?bvmVi4QNz+8aQ+DVN45aDYOFWUMpcj46urjSbA3s9Uca78QxI2dpf+caIUmG?= =?us-ascii?Q?Qa1K9u6JGPY958tI/4gTnf67DxIxPkExSAlxipxUBArbBeIcUlO56qW6heFE?= =?us-ascii?Q?uF9RFvYUXNdZa72RP87sJRY8F+5E0syq6a+wQpWHDgMWZJUAaDxNAEhVM7WP?= =?us-ascii?Q?t6vCjRk6qb3ReBwu+StyadKnBLKKwnkHypJJ8W6ipP1fzLTtDiCT3tiqAGi0?= =?us-ascii?Q?Es9RjU/nES1oTCvYb6fcyshDOdKqOu4bsBrRogpDHB3ttpgE7Cf+60s6XFoH?= =?us-ascii?Q?df6TsVgP/mAABKlWMH32PvjyY1D6yatHyWmp8OD+Dll6dAbuqPvnUb9BMVWq?= =?us-ascii?Q?ggUAGoN+c1zYvx9QnDu+Q6WNSol0LTEsA0Td6X?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB143; 5:t5c1/2lX0DNbXu2qDPMxdDOCX5enEuqAVae2U/Lx+lAYXjb/0LiWBtwgzHvR3Pk43yDC+hmqYYFsbjhsGInDiLrOd7ZGl+xkJhMUY+IninMzFuItTwmAZyB+qNCEcPllzh0t1hqLgdyWgq9oFQZdoQ==; 24:aD6Y+IQSS5FC1JiMgP11mkzGtjwakLc8CnpYKDglfmk2nFdqT4RlLBGTS1LvcNAoVcA58u5ydav0XtrPrVYYU4Sm22RPzbwNOUBXIBKGgh0=; 20:hKgtyb6o+IyhIdwsOqonPaCucFcj5BEaNtWg4nW25Wp2hASLCB0v49v1s1Llwz7A3iXiFrCNt0UOMtovCa2a1g== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Sep 2015 08:26:38.2604 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR03MB143 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150916_012701_874056_04A32355 X-CRM114-Status: GOOD ( 12.30 ) X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: hongtao.jia@freescale.com, yao.yuan@freescale.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The INA220 monitors both shunt drop and supply voltage. Signed-off-by: Yuan Yao --- arch/arm/boot/dts/ls1021a-twr.dts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/ls1021a-twr.dts b/arch/arm/boot/dts/ls1021a-twr.dts index e008f93..fbb89d1 100644 --- a/arch/arm/boot/dts/ls1021a-twr.dts +++ b/arch/arm/boot/dts/ls1021a-twr.dts @@ -144,6 +144,19 @@ &i2c0 { status = "okay"; + + ina220@40 { + compatible = "ti,ina220"; + reg = <0x40>; + shunt-resistor = <1000>; + }; + + ina220@41 { + compatible = "ti,ina220"; + reg = <0x41>; + shunt-resistor = <1000>; + }; + }; &i2c1 {