From patchwork Sun Apr 16 16:57:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 9683039 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 50FE360326 for ; Sun, 16 Apr 2017 16:58:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 415D127F17 for ; Sun, 16 Apr 2017 16:58:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 34D3227F80; Sun, 16 Apr 2017 16:58:25 +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.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM 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 C6F5227F17 for ; Sun, 16 Apr 2017 16:58:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756253AbdDPQ6Y (ORCPT ); Sun, 16 Apr 2017 12:58:24 -0400 Received: from mail-oi0-f65.google.com ([209.85.218.65]:33218 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756149AbdDPQ6X (ORCPT ); Sun, 16 Apr 2017 12:58:23 -0400 Received: by mail-oi0-f65.google.com with SMTP id t63so24456079oih.0; Sun, 16 Apr 2017 09:58:23 -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:in-reply-to:references; bh=WxGdekERakjAnmThtPtRs8I2KNB4H7LuspMG1eKXY60=; b=EPjiz6QZCtjJGJu7nmn60XzQFnZsFeN6lxc6iQrQKIoIH0j5H4h2AYRuMODDMHo49B lu5VipKzs3ugsH69JgGTnBMVQa4f8PZtmiUiKcEtMI/OETRNCYY5fwzZIk9FWxfAOVxr mehuam1+xplm/MfIeIziYwz/7XNpGVCGGLvwCzct8oPTfelCF6bKFS49TXw1UCyBFQq4 WGq9hADGIB5MrazF506BEJP/cX0n30nTxZ94d9MiZy18uZMawRDTvs5ioBS2gZHwdnSF 9cVxNtokZf1WZvAPjTtzeEH1a+secjwr5qE5L645Syqf4FkP1U2GBfa1n8T9mjKdlggr HgaA== 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:in-reply-to :references; bh=WxGdekERakjAnmThtPtRs8I2KNB4H7LuspMG1eKXY60=; b=eDGSSFkPOA0unGqIU9OWsuGLrSShHP7gBWqpn5FeiYS1kU588nZ33MTCmTk9j1slW3 +T/orMZd1Jv+sBQG3t5DxItwmlthTLjtm+JHWzeWMQkYL1dMD7K9MBwGjXGGgcagoqUQ VAN1WgQzXWFAtBmk0EnYFqqvQTfjLFX0DPo9yIotbMHU2VWs4GbFQMm0OmqdUoqKBQCe GePBWyardgZwdav0yA7Fzepzm66H3w0ICCKmT3R9JJUu+VEy8XBKzBi0nXU4kshX+WwL g/cJy0lzPIzmddBJQPMT95Ie7i5u4eZmIjkhnXw5rPUeP4YtIk/AlAtz6SL3nBhltyDr UPaA== X-Gm-Message-State: AN3rC/4scJLD5i6nrncLH4UsJ+I3NDnIlwd+rTaZS9R8vvY12UJCC9Vi ZxnU4YE9nitBmQ== X-Received: by 10.202.232.68 with SMTP id f65mr2749756oih.6.1492361902692; Sun, 16 Apr 2017 09:58:22 -0700 (PDT) Received: from kurokawa.lan ([195.140.253.167]) by smtp.gmail.com with ESMTPSA id 64sm3539505otc.35.2017.04.16.09.58.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 16 Apr 2017 09:58:22 -0700 (PDT) From: Marek Vasut X-Google-Original-From: Marek Vasut To: linux-renesas-soc@vger.kernel.org Cc: linux-clk@vger.kernel.org, Marek Vasut , Geert Uytterhoeven , Simon Horman Subject: [PATCH 2/2] ARM: dts: r8a7791: Add GyroADC bindings Date: Sun, 16 Apr 2017 18:57:09 +0200 Message-Id: <20170416165709.27449-2-marek.vasut+renesas@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170416165709.27449-1-marek.vasut+renesas@gmail.com> References: <20170416165709.27449-1-marek.vasut+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 Add bindings for the GyroADC block and it's associated clock. Signed-off-by: Marek Vasut Cc: Geert Uytterhoeven Cc: Simon Horman Cc: linux-renesas-soc@vger.kernel.org --- arch/arm/boot/dts/r8a7791.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index 4d0c2ce59900..1b099dbc9eef 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -776,6 +776,15 @@ status = "disabled"; }; + adc: adc@e6e54000 { + compatible = "renesas,r8a7791-gyroadc", "renesas,rcar-gyroadc"; + reg = <0 0xe6e54000 0 64>; + clocks = <&mstp9_clks R8A7791_CLK_GYROADC>, <&adc_clk>; + clock-names = "fck", "if"; + power-domains = <&sysc R8A7791_PD_ALWAYS_ON>; + status = "disabled"; + }; + scif2: serial@e6e58000 { compatible = "renesas,scif-r8a7791", "renesas,rcar-gen2-scif", "renesas,scif"; @@ -1133,6 +1142,13 @@ clock-frequency = <0>; }; + /* GyroADC clock */ + adc_clk: adc_clk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <65000000>; + }; + /* Special CPG clocks */ cpg_clocks: cpg_clocks@e6150000 { compatible = "renesas,r8a7791-cpg-clocks", @@ -1432,6 +1448,7 @@ <&hp_clk>, <&hp_clk>; #clock-cells = <1>; clock-indices = < + R8A7791_CLK_GYROADC R8A7791_CLK_GPIO7 R8A7791_CLK_GPIO6 R8A7791_CLK_GPIO5 R8A7791_CLK_GPIO4 R8A7791_CLK_GPIO3 R8A7791_CLK_GPIO2 R8A7791_CLK_GPIO1 R8A7791_CLK_GPIO0 R8A7791_CLK_RCAN1 R8A7791_CLK_RCAN0 R8A7791_CLK_QSPI_MOD R8A7791_CLK_I2C5 @@ -1439,6 +1456,7 @@ R8A7791_CLK_I2C1 R8A7791_CLK_I2C0 >; clock-output-names = + "gyroadc", "gpio7", "gpio6", "gpio5", "gpio4", "gpio3", "gpio2", "gpio1", "gpio0", "rcan1", "rcan0", "qspi_mod", "i2c5", "i2c6", "i2c4", "i2c3", "i2c2", "i2c1", "i2c0";