From patchwork Mon Mar 12 16:10:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harald Geyer X-Patchwork-Id: 10276713 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 DFB6860211 for ; Mon, 12 Mar 2018 16:19:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D05DD28883 for ; Mon, 12 Mar 2018 16:19:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C43F428A5C; Mon, 12 Mar 2018 16:19:44 +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_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 3927428883 for ; Mon, 12 Mar 2018 16:19:44 +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=/jtTv6ywoPrIAPItOjNllytzH7iIh/xg8epEaUrLug4=; b=TIr0miqKIJSVZRrHSAefeTqmtr 9T3S2v896wDtYg/fY7ryqgwBZPfB1bpnQb/i48Sod6jRkkTRooiOhDKqcWrvR+pWgkk94T/1afjQp v2WQVeHjmqKG4k5jq5ccwLHTbQ7Ch8M08vSRsGArdmxAAnlc0HxeQ9TKRfQigQweZN21xrknXonDR g9OnTEUmwSLoPv8KOADLGEC5UCKNVqQZovSTnyMxfktNx+3TKIlW7B2FOsUd++dT8GrMkalQtnmGH MbIFxQTP2kr5/CRYZlGlPGNTQVbXsBu5EOlX8EHOw7l2Ykzjzj2hof1rp2w3DldrVAqDqvi59Vm83 T4dL1CVQ==; 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 1evQAj-00078o-0r; Mon, 12 Mar 2018 16:19:37 +0000 Received: from mail.cosmopool.net ([2a01:4f8:160:20c1::10:107]) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1evQAD-0006hY-F0 for linux-arm-kernel@lists.infradead.org; Mon, 12 Mar 2018 16:19:07 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.cosmopool.net (Postfix) with ESMTP id D6055901AAE; Mon, 12 Mar 2018 17:11:11 +0100 (CET) Received: from mail.cosmopool.net ([127.0.0.1]) by localhost (mail.your-server.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uRbR8zDC3n5n; Mon, 12 Mar 2018 17:11:11 +0100 (CET) Received: from huygens.ccbib.org (unknown [10.0.10.106]) by mail.cosmopool.net (Postfix) with SMTP id 6ACF1900946; Mon, 12 Mar 2018 17:11:10 +0100 (CET) Received: by huygens.ccbib.org (sSMTP sendmail emulation); Mon, 12 Mar 2018 16:11:10 +0000 From: Harald Geyer To: Maxime Ripard , Chen-Yu Tsai Subject: [PATCH 4/5] arm64: dts: allwinner: a64: Add pwm device Date: Mon, 12 Mar 2018 16:10:49 +0000 Message-Id: <20180312161050.7647-5-harald@ccbib.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180312161050.7647-1-harald@ccbib.org> References: <20180312161050.7647-1-harald@ccbib.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180312_091905_766992_8306475A X-CRM114-Status: GOOD ( 13.06 ) 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 , devicetree@vger.kernel.org, info@olimex.com, Catalin Marinas , Harald Geyer , Will Deacon , linux-kernel@vger.kernel.org, Rob Herring , Andre Przywara , linux-arm-kernel@lists.infradead.org, Icenowy Zheng 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 This device is compatible with A13, so no new driver is needed. Signed-off-by: Harald Geyer --- I saw that Andre Przywara has been working on A64 pwm too and has submitted some patches a few days ago. I think his patches are functionally equivalent to this one here, but clean up things a bit and thus are preferable. See: https://groups.google.com/forum/#!topic/linux-sunxi/hQFeteP591k I'm including my patch here mostly to have a consistent series for others to test. OTOH you might merge the device tree changes here and pick up the cleanup patches from him. Either way should work fine. arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index 05d5e8def68a..95d52f6aa07f 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -364,6 +364,11 @@ bias-pull-up; }; + pwm_pin: pwm_pin { + pins = "PD22"; + function = "pwm"; + }; + rmii_pins: rmii_pins { pins = "PD10", "PD11", "PD13", "PD14", "PD17", "PD18", "PD19", "PD20", "PD22", "PD23"; @@ -629,6 +634,14 @@ #interrupt-cells = <3>; }; + pwm: pwm@1c21400 { + compatible = "allwinner,sun5i-a13-pwm"; + reg = <0x01c21400 0x8>; + clocks = <&osc24M>; + #pwm-cells = <3>; + status = "disabled"; + }; + rtc: rtc@1f00000 { compatible = "allwinner,sun6i-a31-rtc"; reg = <0x01f00000 0x54>;