From patchwork Thu Apr 27 14:37:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 9702959 X-Patchwork-Delegate: horms@verge.net.au 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 67173603F7 for ; Thu, 27 Apr 2017 14:38:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5119B28636 for ; Thu, 27 Apr 2017 14:38:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 45EA028645; Thu, 27 Apr 2017 14:38:03 +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=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D19A228655 for ; Thu, 27 Apr 2017 14:38:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S938428AbdD0OiC (ORCPT ); Thu, 27 Apr 2017 10:38:02 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:36458 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S938475AbdD0OiB (ORCPT ); Thu, 27 Apr 2017 10:38:01 -0400 Received: by mail-wm0-f68.google.com with SMTP id u65so4994069wmu.3; Thu, 27 Apr 2017 07:38:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=QqCDyCt5e8/RY9ADXSofl8CGksliL3ZRc7ooVIIw3Qs=; b=V9AaeWGZ+TMOMCM9qnNNfSy7M3dTSMlRPrV//JHp5/9nalEIJU97doShR17yuA/YbR udMSZAztrZUE4Pi5W+ubwXiG20AZoXLIPSgnuM6hPuko3SHY6oVHCOIwMpFzmDr8+PLX zVH7eamdKHtti2iivYioeTASBB+Zcjx/2bQAs0Yx2IkMwwce/RMub1HUJsKfI61MXZNf E3WvSRfKM1zjmq3ZQOg/HDCH3pWsaZq/TvoM30P5YvJt/YCJHQ/fwnIPAkalcpCCVNd+ 3Z4bxKO3NGcAsOh//vq8L+RJos5TH4sku9VlQACUseCA33eeoJ3ipthAmtD9ulEe4Cqm X1jA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=QqCDyCt5e8/RY9ADXSofl8CGksliL3ZRc7ooVIIw3Qs=; b=kwrgdDDi3H1tFgi+6xDA2nBUxeebQCmUp0EAk/kbc9ceo8xIZ/ctZp+QMlwWBLaJSP ne5Fdcd4GlrIaXYm57KtdOznm//egX8zGDsfkjzsqbwPP1oTDtn6QXo0jti0uAklYm1z Ecf4FNkZY4kGG1PTMz/CWCz2LgqOuDbqhKTHHOz09e4HuIUWyqgM2yZ8vCvKxYttWRu6 Xtk9AmECPHdV8KaY8xddYdS1hiMhw3wc8DbwDvi9SG+Dt/R4R99IqDKzUuqjrb2fVUip g/fzzg8X13tvGrDRaRXRyQnJk5ClYOUAlMX8VszEeOeEgw6m3iz4eejzdbCjpiGe/v3h UpQw== X-Gm-Message-State: AN3rC/7H8z1vnfMHvv+ryEkh6KwQH6IYi8DjXJJhAgqiG2c/UTrhZU/5 SGp26PhTNjULJA== X-Received: by 10.80.147.89 with SMTP id n25mr4875298eda.69.1493303880184; Thu, 27 Apr 2017 07:38:00 -0700 (PDT) Received: from groucho.site (ipbcc0294b.dynamic.kabel-deutschland.de. [188.192.41.75]) by smtp.gmail.com with ESMTPSA id x18sm1295067eda.39.2017.04.27.07.37.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 27 Apr 2017 07:37:59 -0700 (PDT) From: Ulrich Hecht To: geert@glider.be, horms@verge.net.au Cc: linux-pwm@vger.kernel.org, linux-renesas-soc@vger.kernel.org, magnus.damm@gmail.com, laurent.pinchart@ideasonboard.com, Ryo Kodama , Takeshi Kihara , Ulrich Hecht Subject: [PATCH v2 5/8] arm64: dts: r8a7796-salvator-x: Add PWM device support Date: Thu, 27 Apr 2017 16:37:40 +0200 Message-Id: <1493303863-23719-6-git-send-email-ulrich.hecht+renesas@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1493303863-23719-1-git-send-email-ulrich.hecht+renesas@gmail.com> References: <1493303863-23719-1-git-send-email-ulrich.hecht+renesas@gmail.com> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Ryo Kodama This patch adds support of PWM2 device for Salvator-X board on R8A7796 SoC. Signed-off-by: Ryo Kodama Signed-off-by: Takeshi Kihara Signed-off-by: Ulrich Hecht --- arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts b/arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts index abda84c..1516959 100644 --- a/arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts +++ b/arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts @@ -138,6 +138,11 @@ function = "pwm1"; }; + pwm2_pins: pwm2 { + groups = "pwm2_a"; + function = "pwm2"; + }; + sdhi0_pins: sd0 { groups = "sdhi0_data4", "sdhi0_ctrl"; function = "sdhi0"; @@ -257,6 +262,14 @@ status = "okay"; }; +&pwm2 { + /* PMIC DC/DC switching frequency synchronization */ + pinctrl-0 = <&pwm2_pins>; + pinctrl-names = "default"; + + status = "okay"; +}; + &scif1 { pinctrl-0 = <&scif1_pins>; pinctrl-names = "default";