Received: by 10.213.65.68 with SMTP id h4csp142726imn; Mon, 12 Mar 2018 09:14:23 -0700 (PDT) X-Google-Smtp-Source: AG47ELutsu1pABQNjc+Az86E7rQg+cC22olqmpYf580W+/Y4+KcZbQaCdQXGZnu2lAhLAoxNyjqd X-Received: by 10.98.160.90 with SMTP id r87mr8423963pfe.151.1520871263107; Mon, 12 Mar 2018 09:14:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520871263; cv=none; d=google.com; s=arc-20160816; b=pMi7h4RUnqGne4Mecb9IVoah8K8Vn3hW5BW1e6E3eUacFgbvjHK8CoBqVKvBCwtSGF ecPkxO1VKVhk/gkSV3WoF9aDkS/FrkG8kRbzaLkmrgPDGP96o5qXC+WyXXtqA3DXzCqs LrhODstiubjx1fIvXYh6spAaZY0msvuTQlUD5sfTuHARbS/p24HhRHHA3kbkyh2lMyrf ArukiKOmClYl+HTnqBaK3xsUFmEXe7l+1rMKML/cJseTbOMYmFchG7Mwh10WfzgLcXa+ jLUEA0vQYtRARutRcWEvq0XbNZlDRn47L1rothwkWXBDV173B6AUJrhfyxRpDJjFJABe tTOQ== 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:arc-authentication-results; bh=Wej4905QGK+zi/jtJKGYef4N78mwmJasHcfBePSBjOI=; b=m7X11HYIQ1XV98zzMTVdoQR8cY503pTkqgJmNTgolzU6T/pMxAQnUXY16gVXXf9a45 EQ9H6V5saSyusGNfTwSmqI+kYxEazw8L/MwltAbFSuVfebYW1/aESmZW01/1JqboU1x7 DL9+eMeUMGlXHRiXT7+umiW8kIFA3eJ1eHs3cD47biPtHp9Fu1Vcqt48ocrArDC0uigx whU0djZcCG9x1kh7CHAfV5w6D0H2yB47jt+CSOLRTKZfLXowpZGz533TfZiPc5DB2oB2 nywXMs6nVjA7qyb3GE4/m8lbGu6c4XdDWmjhXOYQeOVRS92Vlb9fUsgeNIEhdZGyVqje QbIw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z10si5140699pgz.781.2018.03.12.09.14.06; Mon, 12 Mar 2018 09:14:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932531AbeCLQMa (ORCPT + 99 others); Mon, 12 Mar 2018 12:12:30 -0400 Received: from h1.radempa.de ([176.9.142.194]:56678 "EHLO mail.cosmopool.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932147AbeCLQLN (ORCPT ); Mon, 12 Mar 2018 12:11:13 -0400 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 Cc: Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Andre Przywara , Icenowy Zheng , info@olimex.com, Harald Geyer 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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>; -- 2.11.0