Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3156538ybt; Mon, 29 Jun 2020 17:10:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYsdsun1h/Nl1xAf8MzX9KRHWqYB5PhYQVYSkp8PbK2aZkXerflFyTU5eliM9TerXJrWjv X-Received: by 2002:a17:906:c30b:: with SMTP id s11mr16760167ejz.263.1593475835731; Mon, 29 Jun 2020 17:10:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593475835; cv=none; d=google.com; s=arc-20160816; b=NjuQr6oD00O0qOSpy0olVknkdkns13+TUUMigrFko85C9FaV3NpwS9dGXHkE4vSGxE BwLtjlEv1jf9jJX6otx7L8YqZuPoF6eA6qkbblPDUF2bPkrjTx+xBjz0kwYhjWX4xCmF TI3g2uqM7hsxrG6jNRVqftZj+42oj7/o22vrZEh8widZ7NIwnF9iGA+m17p5pyImIzTT LX0DnkkN+0WH51VxReUTPTgjPPrzPlU53rv3vrphV4Zd+HAlBmlBn96wk0Y0wxEXFiq7 p49yQOG+7782L7VLrWhhBngpOVu5Rwhu26mEVeTKCiCu42hkkJexn0q1jE7S17kQPA0j jAzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=b+IGZ6PpnygOrvzFHrSSaDrACHYYVu9vYgrcmIAaoTc=; b=A65Ny9zkB+dnWyI4E5zXRdwwyLnmcQ4HmO6Q8JtUGGHA8zaiiFxtXrzE8CMf+3YByU wKopAE1P2z1piGyNwdBNTJjFFSAS4PDcPREzcbeEljBxPS0ltcu6HUNZSYcfigXPzEzu KziVgINz1wpkbWqBb8nGIuc8R28K2Gtoh6Sj+JQQkkW0ar+7Naz2cseGu3mL8FU9lEw2 ROLMA/gmcj9U1kH3nj2oZjX//snAvRAK9mr9Zu89rF3jOlVXibsFJ7pVC3AaDPf5oSqL B9PyuscmbZEdx3be7Nt1JcWXkKiEN8W67hC8lkWajhBhF4Z+OXAOZvQqRCmUVov/HXM3 bIDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NuiSCbQ0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y19si735227ejb.186.2020.06.29.17.10.12; Mon, 29 Jun 2020 17:10:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NuiSCbQ0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728200AbgF3AJN (ORCPT + 99 others); Mon, 29 Jun 2020 20:09:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728048AbgF3AJG (ORCPT ); Mon, 29 Jun 2020 20:09:06 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08D00C03E97A; Mon, 29 Jun 2020 17:09:06 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id t6so9083256pgq.1; 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=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=lx1V8irN/cGEZ+rHdKEZuhLOZ0WdYw0y7aFBHBT2fDRrbsMFOlq2Rfilygvf6yxwkK j+qpSUIbe64RREa0ghk0uNoocPO0cxl74jB3vBHxBwe6v2JPJcTA3wz5XrTFIFWy7Rqd EuwPKQa3mdQrwjDkRgNikTkjECemSZmkSTLVNKM4AB8bjtQk/LF8dmZ1PRGTsqjX3ZGx COHGFuK3YV/GX6TxepGgzGIuV5B1ulKY8HiY+9wMMuF9o0pMQtRiHvp/+ZzAGkawBhC2 lQbEFf+TKOGsHEg0WJELvBUyR0AWzTjHP6LZBwpY/xfmMyLWIgYatRbsaCCrWssB69No oi6Q== X-Gm-Message-State: AOAM530XtjthSuB8FNg3zB4EQ3THFeaLUwvbhaEoLeaVWHMYBLX74nND ne89VF3TwGcQt/ggqpY7mhI= 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 Cc: Tao Ren 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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>; + }; +}; -- 2.17.1