From patchwork Tue Jun 30 00:08:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tao Ren X-Patchwork-Id: 11632901 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 C6FBC739 for ; Tue, 30 Jun 2020 00:10:35 +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 A06E0206A1 for ; Tue, 30 Jun 2020 00:10:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="KZvHM5FK"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GZswfwgE" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A06E0206A1 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=SI4xq21VxhR5DPoiR2YpaRIs6bsPGGTFJpeu3Qpa/WM=; b=KZvHM5FKbf5GV/oxFtH8q2+UzQ 6xVPDTW1EyM7RmVTgmKthmbVBw3+U6FTpjwvnWY5QxuRtp+3O5Hh2ufEEBgL7mcxbRcwsgO5G3IJB mEf/mFPdnL/VMrG1povUsyd0x9mtJDGyqZlPXLp+wZbBg1KtzZzeurPTMkUlRmO2Z+HwhG9YD59Dj 8ttF5loF9e36kf7nBO9V2DSs4NerHoSX/erMf/qf34NUfMPporpCHykOTx0pFEgATSo7o0RM8kNAA BOExAOQiYHY5jV5OEZt6mob3fafJajWFDrqCgTAvkx53ktDWxuqgfD87oV5V7fu7R4GoEUchK3NDn ulG5a93g==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jq3pn-0002hp-6A; Tue, 30 Jun 2020 00:09:11 +0000 Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jq3ph-0002gA-AX for linux-arm-kernel@lists.infradead.org; Tue, 30 Jun 2020 00:09:06 +0000 Received: by mail-pj1-x102f.google.com with SMTP id f6so4653855pjq.5 for ; Mon, 29 Jun 2020 17:09:05 -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=eqibuAlbVerKw/zefMiddrebHe1JsCRw3HQfqdX+MX8=; b=GZswfwgEpHRnkCLZDWcoi5oj2YnH2/71kUslgS0hEGKRctt7+oWGXAR100Jk3nSNoY RVBbfykXXOddSv0OfVfN2rgSEmJ3Wq7bkMD0+St3Lxm4AbVcd6uXuUnu5Y5XqNlWo0mG ORxdMawTlko0koyR0spoOv9bocVpjmjlltuP7BSk/BvFymVrhSRwW00Fw2NYIfkbm7as 1Cc2XUK7+2JDYbjkyC2Stcjr3qKEb8xmlaZxXTJnfB4Sx+eXDwLgR+Xk1G2Nl8OnpS6W hY6OIvnclwLsVpTj8CpUpQuI90qsJjqt4tuSZoKVcpuF0CAQ2dy0dvm+OfpCV+HxDGjn 73YA== 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=eqibuAlbVerKw/zefMiddrebHe1JsCRw3HQfqdX+MX8=; b=gGdK91c3okZpqUJw4jAAtkq80jhQwcjWFyg8V5HhHGcH8vdhgHtXDhAfCipj8lK5y5 Uc1IjhCMItmqlnThk/aimH/y8LUaqpAV/EGl6Kjhxo+DQzSTyfEIygN+a7/DNvo/4haJ 7CvoAPUcCMRCRPsVIsjKSrpPfNIm83k0KNb6bM7qUtZPVZENA0n8CEa2d5Sd+iY+bZZa /XgV2tTj9761TXjS/Ka2mpV1N38N1u2dgCExlRu+DODwaKsONgdlo5jy+gKTXl/clfkc yyG1WEokfDS6zQ7/vzIMjlXuhxgkTtzqYzzmS4UJuDJr/6vYvh7Ula3O7u7eHrEaql5z 4FDg== X-Gm-Message-State: AOAM531Hn9iWvftpJ6CT5TeeQfyYs5dy1hdi+zTzKpNDS1YoEytG0sVO aAAOjKFYoIdpPNtgeaLYQNA= X-Google-Smtp-Source: ABdhPJywOKmCFfyQ5L/XOiQUMEjegV1m/9OHXGCYWL5vhYb0EzL028liqixSQqewmEE6FjLYW5NzPQ== X-Received: by 2002:a17:90a:ff16:: with SMTP id ce22mr20515645pjb.160.1593475743310; Mon, 29 Jun 2020 17:09:03 -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 m9sm754600pgq.61.2020.06.29.17.09.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jun 2020 17:09:02 -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 1/3] ARM: dts: aspeed: wedge40: disable a few i2c controllers Date: Mon, 29 Jun 2020 17:08:49 -0700 Message-Id: <20200630000851.26879-2-rentao.bupt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200630000851.26879-1-rentao.bupt@gmail.com> References: <20200630000851.26879-1-rentao.bupt@gmail.com> X-Spam-Note: CRM114 invocation failed 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:102f listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [rentao.bupt[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 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 --- 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 Tue Jun 30 00:08:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tao Ren X-Patchwork-Id: 11632905 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 B34C7161F for ; Tue, 30 Jun 2020 00:10:36 +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 8CAF0206A1 for ; Tue, 30 Jun 2020 00:10:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Q8NebEGd"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BgsP9okA" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8CAF0206A1 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=BK+BZqALHy5+IB/2dIkugdkhyr43W9cLjgHODFwAYH4=; b=Q8NebEGdYd4YtS+Yqv3/5ObRO6 cfE9vyoEdnsx9SQsgY/Id+n12KmUdSEuJ7t//XKcw6n2NA+KA6CqmITAQW2Z8hf2CuhPkYZHuf9wV TRDVGqRP8DdfxkvsAUH2Td8bn4lyrd5GZ8mvyDHKtKIveh5iUZQFfx0+r2Guncv3tnx+OnnsE0XEl BCNG79KihweqNIBGrzTb2HKoI69FH4JjyQ3yvZp23Bg5El4s1cYBNSmtO23ypXC6p2soMib4AFcV6 UIUfsKSODqHxt7GpjHMABPeMPOqPzydJ3ZgwLIO3/OJ42Mn/yIDZMeXkQGpO8jOMiNciHrlmPWMD5 4z6VMYzQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jq3pt-0002ix-6p; Tue, 30 Jun 2020 00:09:17 +0000 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jq3pi-0002gP-Dj for linux-arm-kernel@lists.infradead.org; Tue, 30 Jun 2020 00:09:07 +0000 Received: by mail-pl1-x643.google.com with SMTP id f2so7732156plr.8 for ; Mon, 29 Jun 2020 17:09:06 -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=AYRl8pOAy8o2qO178aXaRH0fdWgs7Bra1sCO7acnTT8=; b=BgsP9okAqsbNdfU8Qix1naJZC6HZ/DB/tRSbhLZXsMdFJ3//c8ILFfjvIsdEtdbGe8 WRNNeOa/ZbF+eJSGaDMTCfI/wS+aBk3qMC8p47zIvI8LMbSGVXMCJCT2J+XbFto6Phht u9IfBs6id4Woyr2Hz7pxGPdt5+63cbCRCUyetzRdWOuEDWVpVd/hpSdfjjLnKPOgKR+b Q1mXnrLYH4bXjUX3snuFbNYlE36BiCXwsXxAVUgD/SA/FYvVvyF1YITEafIic7jal7pj aWr1mhNFpjIaXjSzLdMpam2u7Jop5dpijsoH0GKhooN29zh9KQsueW/aWgIbBj6l/OVW s8Qg== 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=AYRl8pOAy8o2qO178aXaRH0fdWgs7Bra1sCO7acnTT8=; b=Tohuncni43BawPYiL3DifAcm3uw1KnrVlpKykZIucDkwM3eBRNL82yAQFLzovqo5+z 9552U2KULZf6DgZfhR/WLItLRZLiQlVT1O3AksGJ3Uff9852VN+LwwzPkfmx1WajESX/ BbzsgqcRiN3lm1wpMJuRF9QJGp4pHef16BipLqM6fJv2ogE/kyjVNiFT9I8tojm7yKwE Bb7k8yFHBL0TeJO7OHKxWlbzY0nYn42V+1kMKmCPqu5MFlUlOBQrMsIgPQd3QRFg+82J mX7yPcMFxYC/oS4NUybthq45DoEiT9RswQgb0ame3QbCvWuz/sK/VZK4nRh5Gz8cCGgc PKvQ== X-Gm-Message-State: AOAM532M4TUjueh3ktlpQwAHtAcsV8Bz9QOq5Kj5ATlHi8tI6zfsgUso 1zEmKS5oRIhoa1AN1jclERU= X-Google-Smtp-Source: ABdhPJw2TID2zawq32v23OdWSYQPmDRRXwFxa4iOa/bk/gIfLeZrz1CVQRgGVdgnQJcDErCNb42UDg== X-Received: by 2002:a17:90b:4910:: with SMTP id kr16mr10855811pjb.126.1593475744335; Mon, 29 Jun 2020 17:09:04 -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 m9sm754600pgq.61.2020.06.29.17.09.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jun 2020 17:09:03 -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 2/3] ARM: dts: aspeed: wedge40: enable adc device Date: Mon, 29 Jun 2020 17:08:50 -0700 Message-Id: <20200630000851.26879-3-rentao.bupt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200630000851.26879-1-rentao.bupt@gmail.com> References: <20200630000851.26879-1-rentao.bupt@gmail.com> X-Spam-Note: CRM114 invocation failed 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:643 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [rentao.bupt[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 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 --- 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 Tue Jun 30 00:08:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tao Ren X-Patchwork-Id: 11632907 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 BD8AD14E3 for ; Tue, 30 Jun 2020 00:10:39 +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 96D22206A1 for ; Tue, 30 Jun 2020 00:10:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="k6YfS1N/"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NuiSCbQ0" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 96D22206A1 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=KsRE0XbsaBHQsBdE97CwbmpkX/54D/x1l6CvAAkMt1g=; b=k6YfS1N/x7uP4CZA2N1g7PNfB4 zuKLR3A1+JzMk1pNgVwQK29lIdM81maXF6ubL5W6ld6rS0XDHg/qpq9ehYr1IHC3ZqhsF9/Wr9hn1 gsy10DyEdzsrjVLQv2BLEugmyvbiBamuDJZ1bCG/T+m8GLIgOFoFh51oLrnWTn99+lrBZIllLscUT BQ5a5dOvEg0UEaS11xYrZ5dv1Q0a22L+HWxrtWKREVwakjzJxLDQSXwaVcOLEf8rQvrpfmNSQ2yXU 2CC2CbITYdD9CeQDVnpuQuIT6uBieK/Aq/jDQtI+YmLOqEQ89jH2VykU24r6l2Q+NxN+Xa545F/0H 3KPkg4kw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jq3pv-0002k9-IP; Tue, 30 Jun 2020 00:09:19 +0000 Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jq3pj-0002gm-IB for linux-arm-kernel@lists.infradead.org; Tue, 30 Jun 2020 00:09:08 +0000 Received: by mail-pg1-x541.google.com with SMTP id e9so9058917pgo.9 for ; Mon, 29 Jun 2020 17:09:07 -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=b+IGZ6PpnygOrvzFHrSSaDrACHYYVu9vYgrcmIAaoTc=; b=NuiSCbQ0oSqAv7iiF5qikfnPTsQDbEqi6aWPQHuzs/QkcqQ98qHp6wBqkD6XbBmDWk e82jReIUedwdHPM2bp/XHgPj8lOQUCRvzlE5Fpg93YgFr7BXdMuQmLA9Auf0CnmqCfnm JqZ9ExcPRomIBC5CqFQUyzTuF8/X+2uGLVZykeKD/ezb5WDzVxA3GJnQa5tSDieA2l3W /b/GVoFztFSupMHDyP84VziMeiYX9O2gKaU//U6xfzhxTVQ/nkULYGYsHI7BeVlJqsUG SJ8ynf2K3TM5BEJl5vWtijOHjiEHHk5dLXkHbfdj0QIOLkyxwKTidE+OD8Lqy/D5SjOV RQkg== 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=b+IGZ6PpnygOrvzFHrSSaDrACHYYVu9vYgrcmIAaoTc=; b=IkJV/N628UgEw4WUyjPjiNvo+53jWOveDTNp9gH5iklYqo/rGnDyZYzZwIO4QIrG2z rzM3++nCBnlNqiLeS86pdaTTiT5FI6hWpFzDJQcBwJ9cbaJh+jwuf975++FKwGLYE2JU uvS2pFTdao1XIVqXmiO2oWLfmuw4SP1ccxzK2PqZ9Ucfpz1K1OGQVjQLrIZHX4qoQMFg fRG/4afSpA5lj20e+CsFdER4ZJ+T7BVswZj8m8zBuxmCN9AbGL7rKlupoHCbWy9u6urk UmocJHeewIjmuGTK0q1vNRgCnHEuAorKLJkb8j7XymfljY7yA9cPVbz4QBB6XyjDP8ZO Wlvg== X-Gm-Message-State: AOAM532ICOshBLdIO0/1l+D4oMrPpsUlRmrfg7rq7w65K2y4voO3tRAn Xo8olqRP9qd3Xx7mmtkyets= X-Google-Smtp-Source: ABdhPJxJlzhlDCwbl4BKRLwMmmx7nhtrQm6pzWRE2A58IuRaPXG5n4u144jDdYNAnyapV80N6ZKJag== X-Received: by 2002:a65:63ca:: with SMTP id n10mr12762077pgv.252.1593475745495; Mon, 29 Jun 2020 17:09:05 -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 m9sm754600pgq.61.2020.06.29.17.09.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jun 2020 17:09:05 -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 3/3] ARM: dts: aspeed: wedge40: enable pwm_tacho device Date: Mon, 29 Jun 2020 17:08:51 -0700 Message-Id: <20200630000851.26879-4-rentao.bupt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200630000851.26879-1-rentao.bupt@gmail.com> References: <20200630000851.26879-1-rentao.bupt@gmail.com> X-Spam-Note: CRM114 invocation failed 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:541 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [rentao.bupt[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 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 --- .../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>; + }; +};