From patchwork Wed Dec 20 03:23:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 10124925 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3707660388 for ; Wed, 20 Dec 2017 03:46:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 18B2A28AE7 for ; Wed, 20 Dec 2017 03:46:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0C8EF28B69; Wed, 20 Dec 2017 03:46:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8269B28AE7 for ; Wed, 20 Dec 2017 03:46:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.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=g1cALEoznDVRf7ziVlL2YucNDJIpqdvVN5kFTieVz3M=; b=qfpyqlhFMtFVKr7XUBenuu41bo Ni/jXmOn9gRFbCt6kuM3ohHNuCDHCUXz9Z74IMYleW31zkJgvl5WrlLBFBO7P0pvAw0Jf1/988m6G vY1LB01Fd3t+3sSQ0TH0QkXcqp9D6k0TQKMEnfYQsc/DC9pSaubSOY5gIT7/4S6s5tERH9er7f41n BzUqhlH9xf+grWelrIhY5CaQMU8EeBOZD3k7JtmVT/SfkGMw4qKV8n4GORgj190pKu5OJbzgA/29m yfZiiwZLypvahP40q9gvy8/IKhY/qCCaoaqbZegkY5cmWfR+987KCitWn7cTtm5wfNWUC8u7FLlKt x4lZgNIQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eRVKf-0002H5-Nu; Wed, 20 Dec 2017 03:46:13 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eRVIq-0008BV-JI for linux-arm-kernel@bombadil.infradead.org; Wed, 20 Dec 2017 03:44:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=T39S1Ar1TwglZBytu3/pBFeBMUB5Uc/SAIyDnYFETBk=; b=pitcIPKdCOF2FdalxAMLeHFMA x585vh6+xK2Rg5AThX4MG/nPD1IaFdo4qNSEpLXHugefFf4QzBhkKuFWeWJ9xoBGJdbMeQVb3vOrd rQ0aw6yjIv7qb+s7mZrZjUcQYYkXdwbUJowxoZo8raQm7t0c3anmAs62jmuBRQKscuiSiWFtyV/IR 8E8sttX3xXlO/fQvXOFw+u5eNIeA7NhnynVhZETStwWPTzStyy8Pw1s+CzAdsXZVlSfcfoR2PO2M6 zQR3YYAyVtNTG4+l8BFX5YzydUuyUZY5GXSOn/xw6otZjACapyHu8v9q5sKofZfiREBeP1rWyj4In GEZ+l4yxg==; Received: from mail-pg0-x242.google.com ([2607:f8b0:400e:c05::242]) by casper.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eRV0j-0000W9-Nz for linux-arm-kernel@lists.infradead.org; Wed, 20 Dec 2017 03:25:40 +0000 Received: by mail-pg0-x242.google.com with SMTP id f12so11417309pgo.5 for ; Tue, 19 Dec 2017 19:25:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=T39S1Ar1TwglZBytu3/pBFeBMUB5Uc/SAIyDnYFETBk=; b=QzqfGiyPZepCFTUrhDPFzzcwTFfWOC/7Y9mrkGkRLGFlyMH5Li1f+W7EpLjTmi95Be zKBj522ww7OSTFss2MiTuOO3j1WhtuzydQKAKuS99uYeoBUH5eNOoO1vHIKTMHwgLSTq gy1EDd/LNcDnbbtsJyhGmXimhoDjq8lJrcoIeOIng8etMWWlaygVytCiKP+OK/daXy9k mWTXvfqslc4Rx/OuBGvQI3Y8VQnbmaDExw+WCygzXiBHLwImBHwncx0T2ZK8DttHTidX YrwqpXfrxqdAiLssKikMFNmLlXSKNB+/rDCoW5lypp+5/avXK9quV0B99wXW4waqQYmL j6xA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=T39S1Ar1TwglZBytu3/pBFeBMUB5Uc/SAIyDnYFETBk=; b=AgOuYaj/cQntI9bPg4+2pQu6/JXLKJSF2UVJ8VtcJlw/3yibcknCaGTq6amRVxBH2k feLJA9v7nJ2kSWAi8nS5BhNvwm85QilHqqwlMgV9D3Cht24x47zQfSKxPe6ckxjfUzw+ ZUYTY2469pSXAXPgSyy3YFoIfVYJbBT9LWuy7B5TtmiP+oJ0PaaNmzFVoEhCDYdppPt8 S6tRLoOEEJcQsz6Gh+wA00VcilJUljWJa002T5GcaAWdN4mtkoM8J/zG4hdYD1tTqsly aTEE4esISS1p1bEqj0JTShx58v+HDbeLbLs/enX+JNNkqQdfcQRWIIu3FGeTaqFDvTuV 9PsA== X-Gm-Message-State: AKGB3mJUssTfYsPXtk6jBWvbfkjIcvaNACNUsvxzVL5iV3942GAFe3xQ ZYIrUwJjmke2MpYiwsiMIZ8= X-Google-Smtp-Source: ACJfBosrhrCcW5jYNa07zHAb3KJ2bnywp9Ij6nd9myueFzgDfFViwA1+5iKR0ZNA3vML0DWpjy1GXg== X-Received: by 10.101.91.74 with SMTP id y10mr1941580pgr.55.1513740324098; Tue, 19 Dec 2017 19:25:24 -0800 (PST) Received: from aurora.jms.id.au ([45.124.203.15]) by smtp.gmail.com with ESMTPSA id h69sm32437403pfe.107.2017.12.19.19.25.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 19 Dec 2017 19:25:22 -0800 (PST) Received: by aurora.jms.id.au (sSMTP sendmail emulation); Wed, 20 Dec 2017 13:55:13 +1030 From: Joel Stanley To: Rob Herring , Mark Rutland , Arnd Bergmann , Andrew Jeffery , Patrick Venture , Xo Wang , Lei YU Subject: [PATCH v3 09/20] ARM: dts: aspeed: Add PWM and tachometer node Date: Wed, 20 Dec 2017 13:53:17 +1030 Message-Id: <20171220032328.30584-10-joel@jms.id.au> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20171220032328.30584-1-joel@jms.id.au> References: <20171220032328.30584-1-joel@jms.id.au> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171220_032537_785023_F6AE0481 X-CRM114-Status: GOOD ( 10.83 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-aspeed@lists.ozlabs.org, Benjamin Herrenschmidt , linux-kernel@vger.kernel.org, =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= , linux-arm-kernel@lists.infradead.org, Jeremy Kerr MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The PWM/tach unit has a clock and reset phandle. It needs both in order to function correctly. Signed-off-by: Joel Stanley --- v3: Add the pwm reset phandle --- arch/arm/boot/dts/aspeed-g4.dtsi | 10 ++++++++++ arch/arm/boot/dts/aspeed-g5.dtsi | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/aspeed-g4.dtsi b/arch/arm/boot/dts/aspeed-g4.dtsi index d2a82850b05b..91aea96c10c8 100644 --- a/arch/arm/boot/dts/aspeed-g4.dtsi +++ b/arch/arm/boot/dts/aspeed-g4.dtsi @@ -189,6 +189,16 @@ clocks = <&syscon ASPEED_CLK_APB>; }; + pwm_tacho: pwm-tacho-controller@1e786000 { + compatible = "aspeed,ast2400-pwm-tacho"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x1e786000 0x1000>; + clocks = <&syscon ASPEED_CLK_APB>; + resets = <&syscon ASPEED_RESET_PWM>; + status = "disabled"; + }; + vuart: serial@1e787000 { compatible = "aspeed,ast2400-vuart"; reg = <0x1e787000 0x40>; diff --git a/arch/arm/boot/dts/aspeed-g5.dtsi b/arch/arm/boot/dts/aspeed-g5.dtsi index 3a25fa48d4f6..af3869ec87bb 100644 --- a/arch/arm/boot/dts/aspeed-g5.dtsi +++ b/arch/arm/boot/dts/aspeed-g5.dtsi @@ -239,6 +239,16 @@ status = "disabled"; }; + pwm_tacho: pwm-tacho-controller@1e786000 { + compatible = "aspeed,ast2500-pwm-tacho"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x1e786000 0x1000>; + clocks = <&syscon ASPEED_CLK_APB>; + resets = <&syscon ASPEED_RESET_PWM>; + status = "disabled"; + }; + vuart: serial@1e787000 { compatible = "aspeed,ast2500-vuart"; reg = <0x1e787000 0x40>;