From patchwork Thu Jul 23 23:05:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tao Ren X-Patchwork-Id: 11681777 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 897C313B6 for ; Thu, 23 Jul 2020 23:07:28 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 613572071A for ; Thu, 23 Jul 2020 23:07:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ntf+bs0a"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="VjTbA6AX" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 613572071A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To:Message-Id:Date:Subject:To: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=BTFBq/nxjI0soTFOsFqDhgqL2nIQwnFio0a0awXcf+A=; b=ntf+bs0a5ufnKqqBJvOJGisXYy GMU/81Uh5EAvnzLaSgac2t5/0P6afUGl2szWHyTKMXw1acRKk/JX9WMeTHaIYJFVpCzheYJtAhXjJ 713kSymtM/JoctIuZk0Pq/eha1ll3ouH7wo7BCQ5qetISgovttJEBzmK5ZujGLIzjg8YXusFIsu9J 95af/b5RK5k2j/ejPKFKprlv6ooDTkwT3csdAD6EfENJkAYTjYmxDk2jypSvuU9zzG0ba7fB82Z/m ju4Wfrzu/RIiA9fyafP195nJ6M+ixFWs1K+7GaH1PGwl9ltMwcKg7CgVF7DTKwcXqsLSkIOhr60oF rSnWac8A==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jykHo-000658-WE; Thu, 23 Jul 2020 23:06:01 +0000 Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jykHh-00062b-1E for linux-arm-kernel@lists.infradead.org; Thu, 23 Jul 2020 23:05:54 +0000 Received: by mail-pl1-x641.google.com with SMTP id m16so3383284pls.5 for ; Thu, 23 Jul 2020 16:05:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=F2Pqk4mRzkFzX9xFSRvFyyP3SBKlsXCsdPwtf6+8Ajo=; b=VjTbA6AXBoaB0RDzYmJ3E0ciocAanVmLtik4kiAq/W3OZ8a+Tk3/9TfQT7UZUKQ1FH 0XMjd0X1PbRuix6Bd/doMNqBaQhPt8KpJCR4TQKZr0kpzi4DdrWCIDsRPwro4sol/rrC gLZMXonkP8qcFTn+SaHNNwJYEmsAAGJNliCU0Sil7g9HVd0NgnvUrqIHXVF4bKOwqR98 y2+uW8U1pg60HJ7kI+7A746BawLg3pY9NOW2FB7i78gOZBkmqmyyM7h4HDLlsesIfX6p ctqj45kqdvxgF8iGptdR1pf1ZCK6EmHgd0FPa/tm570emRMcZCwhkUuLJZ1tKg21nwp1 i84w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=F2Pqk4mRzkFzX9xFSRvFyyP3SBKlsXCsdPwtf6+8Ajo=; b=mem6rGKVh7z+ptVbrbfPHuR0IJxyd8mrNFy+fbuo3yuRbIt29ny1Jx1GsolVX5EgeZ UeY7TskoNhnAk22t32Cv4Ko4zWvrF8orVmQP4Rjg/npGiecKUE+sN1MP+Cv9KLvdcJSu p4cgugRekZKp1XD8UY2ynor/yvYy+tqVHJY05/bLP+FVKJ0hYDBYailVSWxG6d6B6tzr l+KA4rEpdqoOVZSdYVH+ZCn2HAH/O8FvzHgV0lNrh7BbtTDGL0ZEYgQFQsPh1DdLgIUi CyZE4GC6OiAzqw/bCTGIYC8jwhrL45XCauTYnyIPSYyVPDnoIF/G+IQGax72tQRdQXHL 3TRQ== X-Gm-Message-State: AOAM531g6C0p8pFFshG62O94ELB41RywsQRkcKZQzLc6R7Z6pJJ7WX11 McUeMGGEOYYlF7eTGAmWhQY= X-Google-Smtp-Source: ABdhPJxz4fyUslV21YIicSuEUXWODmfGNTJc5KJGMBlAZ1KMU5eHtvAW2G8fxTbZHRjaRg8ywL8E2Q== X-Received: by 2002:a17:902:b113:: with SMTP id q19mr5771431plr.170.1595545549701; Thu, 23 Jul 2020 16:05:49 -0700 (PDT) Received: from taoren-ubuntu-R90MNF91.thefacebook.com (c-73-252-146-110.hsd1.ca.comcast.net. [73.252.146.110]) by smtp.gmail.com with ESMTPSA id gn5sm3644742pjb.23.2020.07.23.16.05.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jul 2020 16:05:49 -0700 (PDT) From: rentao.bupt@gmail.com To: Rob Herring , Joel Stanley , Andrew Jeffery , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, taoren@fb.com Subject: [PATCH v2 1/3] ARM: dts: aspeed: wedge40: disable a few i2c controllers Date: Thu, 23 Jul 2020 16:05:37 -0700 Message-Id: <20200723230539.17860-2-rentao.bupt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200723230539.17860-1-rentao.bupt@gmail.com> References: <20200723230539.17860-1-rentao.bupt@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200723_190553_102714_D921E00E X-CRM114-Status: GOOD ( 10.46 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:641 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [rentao.bupt[at]gmail.com] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tao Ren MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Tao Ren Disable i2c bus #9, #10 and #13 as these i2c controllers are not used on Wedge40. Signed-off-by: Tao Ren --- Changes in v2: - Nothing changed. Resending the patch just in case the previous email was not delivered. arch/arm/boot/dts/aspeed-bmc-facebook-wedge40.dts | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/arch/arm/boot/dts/aspeed-bmc-facebook-wedge40.dts b/arch/arm/boot/dts/aspeed-bmc-facebook-wedge40.dts index 54e508530dce..aea23c313088 100644 --- a/arch/arm/boot/dts/aspeed-bmc-facebook-wedge40.dts +++ b/arch/arm/boot/dts/aspeed-bmc-facebook-wedge40.dts @@ -115,14 +115,6 @@ status = "okay"; }; -&i2c9 { - status = "okay"; -}; - -&i2c10 { - status = "okay"; -}; - &i2c11 { status = "okay"; }; @@ -131,10 +123,6 @@ status = "okay"; }; -&i2c13 { - status = "okay"; -}; - &vhub { status = "okay"; }; From patchwork Thu Jul 23 23:05:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tao Ren X-Patchwork-Id: 11681781 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 49EE8913 for ; Thu, 23 Jul 2020 23:07:34 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 222312071A for ; Thu, 23 Jul 2020 23:07:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Pt/WLXkv"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="oKJuJgi3" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 222312071A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To:Message-Id:Date:Subject:To: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=UVtPub6HKqAYWAO1I3SdffQwFM1fMN02pdDOH6KSOLk=; b=Pt/WLXkvYVYjDlfDVnzI1nyeO4 snTURZRS8mX0E3XwuBtsmqbB2W7t3OIMV/FQJB/5T22r9ZxnmEB3LlzTnHgh+vICKSqXDJkD1rW3c haVvuQK8m2bSHEtgCXkUzUag9ghqab34IYlhIXclkPNGPQ2Im5qQyNRjwgbwi27egxmrGt59/EUmA /FGEehqPoNXZ2ZCgLVPkOlYxrRHVlnR8JUMvvqiwzYkBE/5X0El4NPO21ShizjKcidY6c4ApHuWiE oFYqSFle63RXmzggIRN+mQSGXDZZRlfQchw3wlRztQzSrGZOPvIunju7jtSUJnV8fmKb8kgdTjLqz NJ7PNZ6g==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jykHm-00064e-Ig; Thu, 23 Jul 2020 23:05:58 +0000 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jykHg-00062l-RF for linux-arm-kernel@lists.infradead.org; Thu, 23 Jul 2020 23:05:53 +0000 Received: by mail-pg1-x542.google.com with SMTP id t6so4080863pgq.1 for ; Thu, 23 Jul 2020 16:05:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Zf3sEMsL0DPGCRUnLMz+Lz6K06ydPn+rQ+/2py+7OzE=; b=oKJuJgi3jXl0gFItYfYerp5IuxM+KnI/XCd+fqR7+VKJwnwOZTDB3UxG9XC0UQsCey aDPdu2Tb4JXmd/J3I3KcbxapdceIy8bznltwlbQ8vZwa9+AmhyO1CmAUB725E4bM+ONW N35jTF8ny1KZpsWHE9VhjuTaL8xYOqD89qq8JhTpL7zr0v8iks0nyKknj1CGvux++7KH Yidx/P7DfYyVOHv75uZniLyB3n8qhOKGM+QbYGd14sPARZXev81Aor5ml30g/SoWG/Po N7VZlNg+8snGhUFW4i1OCn66fvIe7Kg4UGMo7Ox7uCWzukia7dSWj7ifSpIh1GmuPLRc Q55g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Zf3sEMsL0DPGCRUnLMz+Lz6K06ydPn+rQ+/2py+7OzE=; b=NbGlv1Vsm4QSj2LNySOwshzwYzdKNnBTrAyZFJx8hRJwox/Udz/wVDdV+yzGPIm3xO AYCPC5LfyOXKfEfP3Mg2N8EmYi53UmS7f0xp6H9Cw5cMl6f9/K5WEYpyn3tktcl8qkRH F3y2sbJwbJ/YJdjs2D9WsQOYjEcdd1/otF9141xe6EtMYNuD1XWCWpR666Dje8jKT4S8 oh9SrCqTcq6AS8YpRcj0JMME4DujH4Pl/eSI4lDwbJ4mWQLFckHUrK5i0MVR8XEvIHyp PDlRlhwNN94LFjksz00kmmk096jH7AFSh9OHVadW4QsFHH/eyCviWuW2bfJ0DHDtCAiT rtNQ== X-Gm-Message-State: AOAM533nqfp8mIyhNkKDewipyLCeil8TBfv422aHi1HApDs/m3TSDvkJ zH+Nw34rDeCnfr1Z6dCFb0k= X-Google-Smtp-Source: ABdhPJzSr/qRS6pTZToh9J+O+BKWXJaU9VYurAj++Srk/ErDDZN8/HehZ/qFCw5K6+UHcK0Q1jzQfQ== X-Received: by 2002:a05:6a00:782:: with SMTP id g2mr6316942pfu.126.1595545550863; Thu, 23 Jul 2020 16:05:50 -0700 (PDT) Received: from taoren-ubuntu-R90MNF91.thefacebook.com (c-73-252-146-110.hsd1.ca.comcast.net. [73.252.146.110]) by smtp.gmail.com with ESMTPSA id gn5sm3644742pjb.23.2020.07.23.16.05.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jul 2020 16:05:50 -0700 (PDT) From: rentao.bupt@gmail.com To: Rob Herring , Joel Stanley , Andrew Jeffery , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, taoren@fb.com Subject: [PATCH v2 2/3] ARM: dts: aspeed: wedge40: enable adc device Date: Thu, 23 Jul 2020 16:05:38 -0700 Message-Id: <20200723230539.17860-3-rentao.bupt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200723230539.17860-1-rentao.bupt@gmail.com> References: <20200723230539.17860-1-rentao.bupt@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200723_190552_931736_97BC14D6 X-CRM114-Status: GOOD ( 11.91 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:542 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [rentao.bupt[at]gmail.com] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tao Ren MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Tao Ren Enable adc controller and corresponding voltage sensoring channels for Wedge40. Signed-off-by: Tao Ren --- Changes in v2: - Nothing changed. Resending the patch just in case the previous email was not delivered. arch/arm/boot/dts/aspeed-bmc-facebook-wedge40.dts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/aspeed-bmc-facebook-wedge40.dts b/arch/arm/boot/dts/aspeed-bmc-facebook-wedge40.dts index aea23c313088..1049cfa80ac2 100644 --- a/arch/arm/boot/dts/aspeed-bmc-facebook-wedge40.dts +++ b/arch/arm/boot/dts/aspeed-bmc-facebook-wedge40.dts @@ -27,6 +27,11 @@ memory@40000000 { reg = <0x40000000 0x20000000>; }; + + ast-adc-hwmon { + compatible = "iio-hwmon"; + io-channels = <&adc 5>, <&adc 6>, <&adc 7>, <&adc 8>, <&adc 9>; + }; }; &wdt1 { @@ -126,3 +131,7 @@ &vhub { status = "okay"; }; + +&adc { + status = "okay"; +}; From patchwork Thu Jul 23 23:05:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tao Ren X-Patchwork-Id: 11681779 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E8270913 for ; Thu, 23 Jul 2020 23:07:32 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C005D2071A for ; Thu, 23 Jul 2020 23:07:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="kn6Sxc3+"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NNsqvlR3" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C005D2071A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To:Message-Id:Date:Subject:To: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=QR/0slifFHzY0MgSpHG3jRoTGHyPHyEqyiGj0H+Ul0E=; b=kn6Sxc3+GSOF85G92PPVPGGo3x 0l63WZ7cBVj5qxzZ+V7b+ikTZUU1nhz3LafIqI1yU3q9tCyNlFkyvhZUWAH/ZKlAjdPNMtTrdwBS8 iK6CwKuV4FYLUjFSP91r3SlKfIlj6tDDaBbb1+XtQeJV4duwcT39RQdd8qTb09kapIb3+ZsiahW3g Mu3Zwr6mATEUbztoVfJ8ZGXicxR8sz0z/L5fZu/W5tWx4OIJmOIwcaCbPplR4vIc8htG94E/sAku4 mCcvkeGlcz0QHBTKPmb8h+GyP5nrF/evH/UqhISbi6elyo5H+4mEyVekz/1ZN/8Kw/zQ3Vyl2AiOb t6jvthnA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jykHr-00065U-32; Thu, 23 Jul 2020 23:06:03 +0000 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jykHi-000635-3J for linux-arm-kernel@lists.infradead.org; Thu, 23 Jul 2020 23:05:55 +0000 Received: by mail-pg1-x544.google.com with SMTP id j19so4059436pgm.11 for ; Thu, 23 Jul 2020 16:05:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=lVepU+ZwtLg61EekGifFvcWIHx8/75YvPPQTkYbwJr8=; b=NNsqvlR3R/ebOXczP2pa2IDEyMN0WNJyDr9UhwB/4qENFd+cLas/Dgp5yds2vqV8w5 8wZrsTnhFfLyN40fhTbzZrb/1NCwNjK67Dvh5cWniM/F8I6u9MwtScNx3mBjcJ5G1/mP tgWTMtKnfVcIm6opPG/3h0K/16DXVJ3KaN2fHxs9VMRbDCHoEVztRo1pinCryuZtXw+R kpPuvWQH71NWFAkLdvsbfVB4E9DxT0NpohOQeNq7ssE7Yu2upjLR55OR9Vxh0dEFxgwk 6EWQayW6LYAy53OcOTl3SYnZUkjO0qj7uq3KzdLkr90Aa8A0KabDJp4ZnuUaobeHtI9m 2Cig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=lVepU+ZwtLg61EekGifFvcWIHx8/75YvPPQTkYbwJr8=; b=ca43hd90N8EGo3bM0lMAlQNk4NIL4lU6HDK73k3o+iNYY7d+t7/mPlUalUBnFvl/hb yy8n2vi1kzlPYZXRA64cChbD+dN3i++/BwMSPDnR9CZ6gUi0w1HFJsee/gr9q/SC4h6X oKvRJ+j/908m74xiN72uaJYsUl2sDIHgK3yxmCJvMOKkU7iTtf0kpMiIojkw6hxjogZF 3akKqdc2Vth4Q+a0YkAwFeCO+4/Bj+U/rApuVxw4yReOzsUqiA/77UeWOKh6zrqBtMcc crfEoLU4zzERO/u+UgjxWoV4MX3jQSxYOkpqeGSRdlIy7lZ3Lu8wtFofXl/oZYLY8E2C YteA== X-Gm-Message-State: AOAM532uElwrwUbwyFxRioxszeGcD6asiIMu2gdRzHSHqBGiiTgd4vnj ZVyGbTBQ/WAO3+4URwniWdo= X-Google-Smtp-Source: ABdhPJx4kMBNnslf9Qu63+wKCjksfkfXgOJnn1caCxGQDWIOybaTSq5CmdnP2Xv5ovGfX7C2Gd/ucg== X-Received: by 2002:a62:3246:: with SMTP id y67mr5914578pfy.131.1595545552160; Thu, 23 Jul 2020 16:05:52 -0700 (PDT) Received: from taoren-ubuntu-R90MNF91.thefacebook.com (c-73-252-146-110.hsd1.ca.comcast.net. [73.252.146.110]) by smtp.gmail.com with ESMTPSA id gn5sm3644742pjb.23.2020.07.23.16.05.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jul 2020 16:05:51 -0700 (PDT) From: rentao.bupt@gmail.com To: Rob Herring , Joel Stanley , Andrew Jeffery , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, taoren@fb.com Subject: [PATCH v2 3/3] ARM: dts: aspeed: wedge40: enable pwm_tacho device Date: Thu, 23 Jul 2020 16:05:39 -0700 Message-Id: <20200723230539.17860-4-rentao.bupt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200723230539.17860-1-rentao.bupt@gmail.com> References: <20200723230539.17860-1-rentao.bupt@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200723_190554_325406_FD8888B4 X-CRM114-Status: GOOD ( 11.02 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:544 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [rentao.bupt[at]gmail.com] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tao Ren MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Tao Ren Enable pwm_tacho device for fan control and monitoring in Wedge40. Signed-off-by: Tao Ren --- Changes in v2: - Nothing changed. Resending the patch just in case the previous email was not delivered. .../boot/dts/aspeed-bmc-facebook-wedge40.dts | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/arm/boot/dts/aspeed-bmc-facebook-wedge40.dts b/arch/arm/boot/dts/aspeed-bmc-facebook-wedge40.dts index 1049cfa80ac2..8ac23ff6b09e 100644 --- a/arch/arm/boot/dts/aspeed-bmc-facebook-wedge40.dts +++ b/arch/arm/boot/dts/aspeed-bmc-facebook-wedge40.dts @@ -135,3 +135,32 @@ &adc { status = "okay"; }; + +&pwm_tacho { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pwm0_default + &pinctrl_pwm1_default + &pinctrl_pwm6_default + &pinctrl_pwm7_default>; + + fan@0 { + reg = <0x00>; + aspeed,fan-tach-ch = /bits/ 8 <0x00 0x01>; + }; + + fan@1 { + reg = <0x01>; + aspeed,fan-tach-ch = /bits/ 8 <0x02 0x03>; + }; + + fan@6 { + reg = <0x06>; + aspeed,fan-tach-ch = /bits/ 8 <0x04 0x05>; + }; + + fan@7 { + reg = <0x07>; + aspeed,fan-tach-ch = /bits/ 8 <0x06 0x07>; + }; +};