From patchwork Thu Jun 1 20:10:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ralph Sennhauser X-Patchwork-Id: 9761079 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 CE60760375 for ; Thu, 1 Jun 2017 20:11:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C86F12851A for ; Thu, 1 Jun 2017 20:11:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BD3E02852A; Thu, 1 Jun 2017 20:11:02 +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=unavailable 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 5A5C52851A for ; Thu, 1 Jun 2017 20:11:02 +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: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:In-Reply-To: References:List-Owner; bh=qeI5PAs4j9DJLvUqhRf+COeDDDMCwIoum/QVE81sfIk=; b=I7S VQ3/QOje5trOneAblWYbHqAfxJCnMrWzck6SKJpGirQCiWNzGLxRL+XLb0bW4y95/orwrwUl5cTog Y2HeIku0blyttv5gBfs/3nbYyQk7/X76mvxD2GsPVN5bIkCiRZxqIaeoGP5SMjQXvILKRvAqYK3Ao rl9L2xW1LS++1bsvlnpG3+We5s1XOkLhy8VIeAqdZx9M1pETtDwgE9U5T+ClhN19Sn+4ZHniCabnf vf89A9HwDNml0JqXstUGVb/smdMv9CQmgwfZraind9d96DhmTEx1fYo+wxe0MOPFG7t8wtisbf5Ih +K8HiW7PrIj0VBDiPwx+ndxsRrgwsYA==; 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 1dGWQv-0006sw-Gt; Thu, 01 Jun 2017 20:11:01 +0000 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dGWQr-0006pt-Pa for linux-arm-kernel@lists.infradead.org; Thu, 01 Jun 2017 20:10:59 +0000 Received: by mail-wm0-x244.google.com with SMTP id b84so14028766wmh.0 for ; Thu, 01 Jun 2017 13:10:37 -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; bh=mXAvssmtzA8ZwD3yxqsoIBhM9QUPr/lkNal2x3Vu73w=; b=hgtoYx7c3FRwn53xpZi+dEKA6VHJOXyHMmsQjnLR8VqPlDih4QwL5foCoG/FaBb731 CmtnGKyou+rT7jGkCaDv/qNrGveLkX+mstXcuQ7Qoz9SOXYbxIgE75UZOGOrWhNvJS2+ aCkPqP+jqNizaCB13GYYhTV8xGzZT9SzCFq8Lnd+wOrzK8iswCduG6Gntq9Vhvn+Z3q2 0G7RsG3yhq+znmhGsWwzqwN2C0jNzvc7A1CEvPcn1xeAJiV6W8GH73rCiDiY7JQ+RXCz QO6r3qsOrOwpCznuGzLGrtOYyGlF+dfFd1C61wBHROwMAZx3bG99KWEpwSJC98VdWT7J +/4w== 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; bh=mXAvssmtzA8ZwD3yxqsoIBhM9QUPr/lkNal2x3Vu73w=; b=j+nPNShv524C6YCeMwkHCy0iUyxrrrSa+7MAOo/ceoGnTYWPIPQgbWXhphoVrJWKzK +BUHiIgPyrgrOzLVaZzwCQI69m0m1NaMaFeQL4zw8QS1+bsoSwqDzywe+CD+Q9y0UnI0 MNU/gkwrA7revLCt2GAb1sss8WE9zFaqX7mLa3gXRXyc0TGers21GvWrtarYjc4Bz3jz ycSOCTD6P3fLH0eLZGsYheMXuYEaHK462CwHkCuZHuKccnKAz4u4PmjIQURNxd2Ou2/i MeU8WezqV8aXbpKvVH0hUQleHGBoD0S+eHBpg4xdYGw6N0CE2owkSLmSHoAYcss2Si64 i1AA== X-Gm-Message-State: AODbwcC+9nnKxQBUMGdsKxUSX2+cbsMeiFBNxh6gdZp0OaIPJnCH9Rkr 98KpTFx38MCeaggq X-Received: by 10.28.215.67 with SMTP id o64mr599535wmg.69.1496347835904; Thu, 01 Jun 2017 13:10:35 -0700 (PDT) Received: from localhost.lan ([37.209.189.139]) by smtp.googlemail.com with ESMTPSA id r130sm126702wmg.4.2017.06.01.13.10.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 01 Jun 2017 13:10:35 -0700 (PDT) From: Ralph Sennhauser To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: dts: mvebu: Add PWM properties for armada-38x Date: Thu, 1 Jun 2017 22:10:30 +0200 Message-Id: <20170601201030.22525-1-ralph.sennhauser@gmail.com> X-Mailer: git-send-email 2.10.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170601_131057_983237_3AF7953F X-CRM114-Status: GOOD ( 10.50 ) 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 , devicetree@vger.kernel.org, Richard Genoud , Russell King , linux-kernel@vger.kernel.org, Ralph Sennhauser , Rob Herring , Gregory Clement , 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 Add the required properties to the GPIO nodes for them to be used as PWM lines. Signed-off-by: Ralph Sennhauser --- Hi everyone, this patch uses "marvell,armada-370-gpio" for the compatible property and as such depends on the rename of the property to still make it in in time for 4.12 ("gpio: mvebu: change compatible string for PWM support"). Otherwise the compatible string will need to be amended to "marvell,armada-370-xp-gpio". Checked the functional spec and the register ranges and offsets are the same as for armada-xp. Likely the same holds true for the armada-39x family, though I neither have access to the spec nor any such hardware. Ralph --- arch/arm/boot/dts/armada-38x.dtsi | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/armada-38x.dtsi b/arch/arm/boot/dts/armada-38x.dtsi index 8b165c3..af31f5d 100644 --- a/arch/arm/boot/dts/armada-38x.dtsi +++ b/arch/arm/boot/dts/armada-38x.dtsi @@ -312,31 +312,39 @@ }; gpio0: gpio@18100 { - compatible = "marvell,orion-gpio"; - reg = <0x18100 0x40>; + compatible = "marvell,armada-370-gpio", + "marvell,orion-gpio"; + 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 = , , , ; + clocks = <&coreclk 0>; }; gpio1: gpio@18140 { - compatible = "marvell,orion-gpio"; - reg = <0x18140 0x40>; + compatible = "marvell,armada-370-gpio", + "marvell,orion-gpio"; + reg = <0x18140 0x40>, <0x181c8 0x08>; + reg-names = "gpio", "pwm"; ngpios = <28>; gpio-controller; #gpio-cells = <2>; + #pwm-cells = <2>; interrupt-controller; #interrupt-cells = <2>; interrupts = , , , ; + clocks = <&coreclk 0>; }; systemc: system-controller@18200 {