From patchwork Sat Mar 18 15:43:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ralph Sennhauser X-Patchwork-Id: 9632239 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 8664C602D6 for ; Sat, 18 Mar 2017 15:44:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6D30927165 for ; Sat, 18 Mar 2017 15:44:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 606E728437; Sat, 18 Mar 2017 15:44:15 +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=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM 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 A27E327165 for ; Sat, 18 Mar 2017 15:44:14 +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=pNyPzseldRMzD6ir4FN+f6FI/bK+2UCCfY3ZaR+b2Y4=; b=CfRy3UT8BKHCDniwi+rR3EyEFG HnXTBd1TfZ/oikXDG+FSCWBqZyf4cPE+FMe3y0dRpTw9HTQCWxAX5nENLwJVS2Z+XkfFOzUQm63f8 1X/2r5TVqRoyND9ihdMO2iW/oav5cJG7FmB6xsXTezFw+bcwdWVSgsTvPzg6NqGcZ7O/0i1TdmUfN CbWAJ2EK3WPXaJblUKqRDdm+PQu7+pFri2CcV1vN5q+d6zKe1QtFVmuXJas/5iXZCniTr12SU9M9l rEy6Lcu5vPsWCvbuUgmxF7eWIrM2wzuDk0BZdy77AwsIuFBd+JYnmUV0DHLl5UiLOU1kMhMUjdmUZ M78U0AjQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cpGWU-0000kz-Ek; Sat, 18 Mar 2017 15:44:06 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cpGWP-0000iv-E1 for linux-arm-kernel@lists.infradead.org; Sat, 18 Mar 2017 15:44:04 +0000 Received: by mail-wm0-x243.google.com with SMTP id z133so7687543wmb.2 for ; Sat, 18 Mar 2017 08:43:40 -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=/kKgGELFdpqGm1z1XNHQT/WksAWbDzAHHP93J6jALQk=; b=NsLZ8HA3kAKSaEEwrIxNxJaowxXDiCCbebhVDDEIwwipYT9SlXqcw3q1LXVQ+JUH1k hVi0SYIPRRg6tpHaZn4Z9Sfa2cbjCIIihFe+p0d6umT/eGa3e62N2+/VnVc0n4sISml5 M/EKtW6rljf2gNBQ71LYuqSUfA1mbVt6N8pX16TqYvAMHrponclLebxISkIMWYsdeqST tSD97Z/ah8dQZLYovKsVHmzhTNFJa4XTRo/Zdj+d1earsVwbhwJNOLcCwIxAyoo2tQh+ iVd11f87tY4CtDhS7P4xFNal4TiEdm+0rKgVcjFY47gk2EKplpzeo2N20v4nRYCAJxCw +BTA== 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=/kKgGELFdpqGm1z1XNHQT/WksAWbDzAHHP93J6jALQk=; b=FKkG4k7YvQJ+uIKkKSS+XvLyC6aPyNUiwx8HuZ3i9aAH+eX1vjpTSN0ZUrolBF2KA5 0NLS3Sk43QCOXYlRAOfM5yQyXk3cZhejXAjwcBnS7+fE0T3ftDL8nH4FjEA1UgZvhI5v uij+3PtEO5rnxIGERpk64r/Ydh0HZ0Ld7ZtrdQv3uZD8sI90NUMShjS4I+CRd1bP0GNi E99WM1sb3yaaeJX923cVmEKjePhxSYwOA4J7WOhG/0ZCc+7f4srEQ5UHR1Gwh7pSJ9+/ E5eEJcJcD7zDnsneIHhnIM3bFGHicNbimUM2gQONuM6G7+Fsf87lFeW80t50AWav7e3R 37ew== X-Gm-Message-State: AFeK/H0Iuf0P+EOlc1ELjuvfg5ICp8FAek7iH1IfOwYm+mw1lRLbeVUwG7WEPbuf+4ASlw== X-Received: by 10.28.234.206 with SMTP id g75mr2949596wmi.54.1489851818707; Sat, 18 Mar 2017 08:43:38 -0700 (PDT) Received: from localhost.lan ([37.209.189.139]) by smtp.googlemail.com with ESMTPSA id b199sm6649709wmb.13.2017.03.18.08.43.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 18 Mar 2017 08:43:37 -0700 (PDT) From: Ralph Sennhauser To: linux-gpio@vger.kernel.org Subject: [PATCH v2 2/4] mvebu: xp: Add pwm properties to .dtsi files Date: Sat, 18 Mar 2017 16:43:02 +0100 Message-Id: <20170318154305.28348-3-ralph.sennhauser@gmail.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170318154305.28348-1-ralph.sennhauser@gmail.com> References: <20170318154305.28348-1-ralph.sennhauser@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170318_084401_653012_5DF04EAC X-CRM114-Status: GOOD ( 11.21 ) 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: Mark Rutland , Andrew Lunn , Jason Cooper , Alexandre Courbot , Linus Walleij , Russell King , "open list:PWM SUBSYSTEM" , open list , Gregory Clement , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Rob Herring , Thierry Reding , Ralph Sennhauser , Imre Kaloz , "moderated list:ARM/Marvell Kirkwood and Armada 370, 375, 38x, ..." , Sebastian Hesselbarth 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 From: Andrew Lunn Add properties to the gpio nodes to allow them to be also used as pwm lines. Signed-off-by: Andrew Lunn URL: https://patchwork.ozlabs.org/patch/427294/ Signed-off-by: Ralph Sennhauser --- arch/arm/boot/dts/armada-370.dtsi | 10 ++++++++-- arch/arm/boot/dts/armada-xp-mv78230.dtsi | 10 ++++++++-- arch/arm/boot/dts/armada-xp-mv78260.dtsi | 8 ++++++-- arch/arm/boot/dts/armada-xp-mv78460.dtsi | 10 ++++++++-- 4 files changed, 30 insertions(+), 8 deletions(-) diff --git a/arch/arm/boot/dts/armada-370.dtsi b/arch/arm/boot/dts/armada-370.dtsi index cc011c8..aa9fe72 100644 --- a/arch/arm/boot/dts/armada-370.dtsi +++ b/arch/arm/boot/dts/armada-370.dtsi @@ -138,24 +138,30 @@ gpio0: gpio@18100 { compatible = "marvell,orion-gpio"; - reg = <0x18100 0x40>; + reg = <0x18100 0x40>, <0x181c0 0x08>; + reg-names = "gpio", "pwm"; ngpios = <32>; gpio-controller; #gpio-cells = <2>; + #pwm-cells = <2>; interrupt-controller; #interrupt-cells = <2>; interrupts = <82>, <83>, <84>, <85>; + clocks = <&coreclk 0>; }; gpio1: gpio@18140 { compatible = "marvell,orion-gpio"; - reg = <0x18140 0x40>; + reg = <0x18140 0x40>, <0x181c8 0x08>; + reg-names = "gpio", "pwm"; ngpios = <32>; gpio-controller; #gpio-cells = <2>; + #pwm-cells = <2>; interrupt-controller; #interrupt-cells = <2>; interrupts = <87>, <88>, <89>, <90>; + clocks = <&coreclk 0>; }; gpio2: gpio@18180 { diff --git a/arch/arm/boot/dts/armada-xp-mv78230.dtsi b/arch/arm/boot/dts/armada-xp-mv78230.dtsi index 07c5090..fc3934f 100644 --- a/arch/arm/boot/dts/armada-xp-mv78230.dtsi +++ b/arch/arm/boot/dts/armada-xp-mv78230.dtsi @@ -203,24 +203,30 @@ internal-regs { gpio0: gpio@18100 { compatible = "marvell,orion-gpio"; - reg = <0x18100 0x40>; + reg = <0x18100 0x40>, <0x181c0 0x08>; + reg-names = "gpio", "pwm"; ngpios = <32>; gpio-controller; #gpio-cells = <2>; + #pwm-cells = <2>; interrupt-controller; #interrupt-cells = <2>; interrupts = <82>, <83>, <84>, <85>; + clocks = <&coreclk 0>; }; gpio1: gpio@18140 { compatible = "marvell,orion-gpio"; - reg = <0x18140 0x40>; + reg = <0x18140 0x40>, <0x181c8 0x08>; + reg-names = "gpio", "pwm"; ngpios = <17>; gpio-controller; #gpio-cells = <2>; + #pwm-cells = <2>; interrupt-controller; #interrupt-cells = <2>; interrupts = <87>, <88>, <89>; + clocks = <&coreclk 0>; }; }; }; diff --git a/arch/arm/boot/dts/armada-xp-mv78260.dtsi b/arch/arm/boot/dts/armada-xp-mv78260.dtsi index 64e936a..04dda6a 100644 --- a/arch/arm/boot/dts/armada-xp-mv78260.dtsi +++ b/arch/arm/boot/dts/armada-xp-mv78260.dtsi @@ -286,24 +286,28 @@ internal-regs { gpio0: gpio@18100 { compatible = "marvell,orion-gpio"; - reg = <0x18100 0x40>; + reg = <0x18100 0x40>, <0x181c0 0x08>; + reg-names = "gpio", "pwm"; ngpios = <32>; gpio-controller; #gpio-cells = <2>; + #pwm-cells = <2>; interrupt-controller; #interrupt-cells = <2>; interrupts = <82>, <83>, <84>, <85>; + clocks = <&coreclk 0>; }; gpio1: gpio@18140 { compatible = "marvell,orion-gpio"; - reg = <0x18140 0x40>; + reg = <0x18140 0x40>, <0x181c8 0x08>; ngpios = <32>; gpio-controller; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; interrupts = <87>, <88>, <89>, <90>; + clocks = <&coreclk 0>; }; gpio2: gpio@18180 { diff --git a/arch/arm/boot/dts/armada-xp-mv78460.dtsi b/arch/arm/boot/dts/armada-xp-mv78460.dtsi index d1383dd..fb6d28a 100644 --- a/arch/arm/boot/dts/armada-xp-mv78460.dtsi +++ b/arch/arm/boot/dts/armada-xp-mv78460.dtsi @@ -324,24 +324,30 @@ internal-regs { gpio0: gpio@18100 { compatible = "marvell,orion-gpio"; - reg = <0x18100 0x40>; + reg = <0x18100 0x40>, <0x181c0 0x08>; + reg-names = "gpio", "pwm"; ngpios = <32>; gpio-controller; #gpio-cells = <2>; + #pwm-cells = <2>; interrupt-controller; #interrupt-cells = <2>; interrupts = <82>, <83>, <84>, <85>; + clocks = <&coreclk 0>; }; gpio1: gpio@18140 { compatible = "marvell,orion-gpio"; - reg = <0x18140 0x40>; + reg = <0x18140 0x40>, <0x181c8 0x08>; + reg-names = "gpio", "pwm"; ngpios = <32>; gpio-controller; #gpio-cells = <2>; + #pwm-cells = <2>; interrupt-controller; #interrupt-cells = <2>; interrupts = <87>, <88>, <89>, <90>; + clocks = <&coreclk 0>; }; gpio2: gpio@18180 {