Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1708850ybh; Thu, 23 Jul 2020 16:06:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVrYil/gBgy96J181N3WNyhBSLrvazbpz5bjwWNisKFc5SfkIlQMsICFPUBvbsgF+eSLtE X-Received: by 2002:a17:906:1db1:: with SMTP id u17mr6422761ejh.72.1595545590681; Thu, 23 Jul 2020 16:06:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595545590; cv=none; d=google.com; s=arc-20160816; b=rWscqSbFn64PMseBGJuZJTvNxcVn3Axh9u3LT+rpOp7iPC3zuqzMveLKJ4unT2UI/l rx95qUgEc/CBzUQfIEZrZOKgkvrJLAr730UDElhL1C4P3FUeF7/QkEa8GbOo603PVZWB ZW4NjDbhjd0gdxEQM+epnssSpX9XOEzOuC07vpDJFVlVFh0lJ8JIIMBAM64klnuyPMNW glmlCUsLJD9HHNRVDLfjH4/fO7NxZLvzpyMsJlGuXHwfkJ8N7j3I8hCjFHhjcwxX2Gfi h4/rusGoV7YTmn1DbStZG2JIWC3EECCNqDrmvTTDKoz/z1UbIPH6kbU2th8JPhQwFkpZ xMfA== 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=lVepU+ZwtLg61EekGifFvcWIHx8/75YvPPQTkYbwJr8=; b=KIPI9s+syVjyxccB0+OxajxxorA262ZXi4IQ186yMUwY84OLvt1mLbmHMFYt4kVzyz 27NYOsP0DoCpyRELfhSVBOEeNN5B+4yQj6NziiT3UH6qbCIdpje2R4rmicWWfmZtTfNw ulzb0xg33NSrrltbKWJMndlaMuA9p5gAirDdfRLfcc6/VqQ9LrHtuonupSlFKYcXw3JV Xp67VGbv/BgaJZ9DMqW+8iaXjfxXmm750YuHMrrbrC+B1BN6Up7/Ina65RCJItISyEYE lFA+qd7p4065vGEkcLIzPZBVvhiGr265HrAzCrt9n6PmzejBTaJu1JWDqHCLKJm7eyv3 u9xA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NNsqvlR3; 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 m26si3478789ejn.625.2020.07.23.16.06.08; Thu, 23 Jul 2020 16:06:30 -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=NNsqvlR3; 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 S1728114AbgGWXF5 (ORCPT + 99 others); Thu, 23 Jul 2020 19:05:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726818AbgGWXFw (ORCPT ); Thu, 23 Jul 2020 19:05:52 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8FFAC0619D3; Thu, 23 Jul 2020 16:05:52 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id g67so4066019pgc.8; 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=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=CJDs/vRzFuhnafCAsxugYaQDnxR2jpWxLaLuJGUJdyp0tbnH+9TnkEj13wvlIugDQ9 E9hKBVwTholE3VyJkNPmp9NeKCoafXPITRn1a0EBdOKMqso5CdMsdj18vGXbVUP0Cz0e 427pKtJVNmdjHxuUe5aVshoNJPtbyMT7tmF4Sr5kBCeBIDvP7d9mgyxQcLG5+/Jd6s3E EgGdxq3/rFa606GccCENoKM39t3Laitw4aGax5n5iItNEQThTEG/aXxC1ggZpQpt6W/x ltu0FFr0teDP6rd1Ob19xBqdJWAsDbQcnFKh4XUhKFCiIEDgxph623+iZ2XgQtxMSWQQ 1scA== X-Gm-Message-State: AOAM532UWyPZxAU7ST9SDA7l9Yl7vh5924kH5CMGnY7w4b/kq/caFrLI kKI3J/RlWPO77bG8QdHbh8o= 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 Cc: Tao Ren 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> 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 --- 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>; + }; +}; -- 2.17.1