From patchwork Wed Dec 13 14:46:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hao Zhang X-Patchwork-Id: 10110195 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 B186760352 for ; Wed, 13 Dec 2017 14:47:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 977DB289AF for ; Wed, 13 Dec 2017 14:47:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8C12028A35; Wed, 13 Dec 2017 14:47:28 +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_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, 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 8BB5328722 for ; Wed, 13 Dec 2017 14:47:27 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:To:From :Date: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=8+EQkcfVQSXmm8st0dpxNO43vlBuGIRYl7wekjSXz1Q=; b=pmVBDo0OfM/zxN o21uLnWG+yCNbPPZNqNotv4VghA2LJkgzhsdTFrJ1rNJx/J6cgD77NO91q9sdH5r4EV42MX+A+gRq odcWbT5OwOiTzR4v2zD9W7DqmzkXFIyh9U6M0ycnBIE4JAc6eVK83zVfnaoRcWxwT9E1Jiu//6rHr /lHw10wcWma/oM7uJ7j/UdtlZeTvQ4Tuk+077lTtEfrzklrfkgJjcw1u4UIuymX82ASOnnB9+poZi IkJ39z4IOOVt7XxD5caiW2isjWA7TkBRPXaXKWi4f6NWPjN9iyFS1zUAqLI51ahvlE4pfSANUlold UYkZfT5ACpW8zyy114cQ==; 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 1eP8Ja-00055W-8v; Wed, 13 Dec 2017 14:47:18 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eP8JI-0004pD-Kh; Wed, 13 Dec 2017 14:47:02 +0000 Received: by mail-wm0-x242.google.com with SMTP id 9so5494991wme.4; Wed, 13 Dec 2017 06:46:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=YrlgeRzkiywjotF+sDejBpn7udPiY3r5ItRHS9QXKVg=; b=MkjBBrHsA2Es1j3/+IlOn7JJ/V/ielqeIFUTwAbQiclwnCLj00PGM8tTkNfWGBc7Pm uN6oaq4JAySSBshBYRO2aD00CaL4/lAbg3Sdm5ND2qWlyX8+DD/w+5HsoZYCTn2rc5DZ SWay2RfHuccTmj9tp0UvIVbUWMotneSqjiWNO4CSBFl7b1zOvROd8PpMSmVkxoPnkU5O 6XnlD5sZV4imsCnML7iH+DohmKLmrQrB5I2JoKUWU8v++fvB+BLA70RkPRi52i8HYNCM /gbUdy1IZXGJ8/8VC25f/o5S5LhlmhFy1lFxTrl8gVJFiavuWsO0VPdG8NkvWt/NfcnU jiHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=YrlgeRzkiywjotF+sDejBpn7udPiY3r5ItRHS9QXKVg=; b=Rr/5QcebGxo5r29GwCjXj+agP2UWJtBL9Y/BzHcUPyImunD1d0EZPiGlk1bnFj52i1 gTx4VFJuV20595AI14csHDUGSFZB06NLMcIGyAV3O+Y6if3n/fAwmEKWc5OSXbTO4zXz N2pDFkjGHQ3dEdsDZJUV0tUuO6UK+qp7eipZoMbfc0aOL7uw6LUwsUCwUVJxV58i1GCg /4WN+7S3bP7yFuxUk/8tz/kr3jc2HzosRJFJr5t85kELB1UOsgLuLrzGk9KMz6WzWfwD 21TFp/cqafY8I45FqQaKt8pjG2alxIhtJTYTqPcUw5wNAmN1hKzA8FIG4DAUUKouKapH NGUA== X-Gm-Message-State: AKGB3mI8mNBWrnbA3KEX2th6oE0vp8BkIzIOGjReQxfkRSZXmhgourJV eF/7eyebm+RM75uI+Oaws8A= X-Google-Smtp-Source: ACJfBosGh+rhHDe8W5bTOK3yiU0t5pHH+LBTltLfVmP5j/LRhbcc+QzcjADt5XvuNc5T+FQBiA8qbw== X-Received: by 10.80.163.7 with SMTP id 7mr8018943edn.100.1513176398869; Wed, 13 Dec 2017 06:46:38 -0800 (PST) Received: from arx-s1 ([79.124.8.2]) by smtp.gmail.com with ESMTPSA id d92sm1511564edd.21.2017.12.13.06.46.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Dec 2017 06:46:38 -0800 (PST) Date: Wed, 13 Dec 2017 22:46:28 +0800 From: hao_zhang To: thierry.reding@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, wens@csie.org, linus.walleij@linaro.org, maxime.ripard@free-electrons.com Subject: [PATCH v4 3/4] ARM: dts: add pwm node for r40. Message-ID: <20171213144628.GA18246@arx-s1> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171213_064700_838195_D5B818C9 X-CRM114-Status: UNSURE ( 7.43 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@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-pwm@vger.kernel.org, linux-kernel@vger.kernel.org, hao5781286@gmail.com, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch add pwm node for r40. Signed-off-by: hao_zhang --- arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts | 6 ++++++ arch/arm/boot/dts/sun8i-r40.dtsi | 13 +++++++++++++ 2 files changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts b/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts index 8c5efe2..6cf6273 100644 --- a/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts +++ b/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts @@ -196,6 +196,12 @@ status = "okay"; }; +&pwm { + pinctrl-names = "default"; + pinctrl-0 = <&pwm_pins>; + status = "okay"; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pb_pins>; diff --git a/arch/arm/boot/dts/sun8i-r40.dtsi b/arch/arm/boot/dts/sun8i-r40.dtsi index 173dcc1..6628b17 100644 --- a/arch/arm/boot/dts/sun8i-r40.dtsi +++ b/arch/arm/boot/dts/sun8i-r40.dtsi @@ -295,6 +295,11 @@ bias-pull-up; }; + pwm_pins: pwm0-pin { + pins = "PB2", "PB3"; + function = "pwm"; + }; + uart0_pb_pins: uart0-pb-pins { pins = "PB22", "PB23"; function = "uart0"; @@ -306,6 +311,14 @@ reg = <0x01c20c90 0x10>; }; + pwm: pwm@1c23400 { + compatible = "allwinner,sun8i-r40-pwm"; + reg = <0x01c23400 0x154>; + clocks = <&osc24M>; + #pwm-cells = <3>; + status = "disabled"; + }; + uart0: serial@1c28000 { compatible = "snps,dw-apb-uart"; reg = <0x01c28000 0x400>;