From patchwork Mon Apr 24 15:26:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 9696601 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 91C5860113 for ; Mon, 24 Apr 2017 15:26:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8294E281AA for ; Mon, 24 Apr 2017 15:26:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7688A283FD; Mon, 24 Apr 2017 15:26:50 +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 0D9E4281AA for ; Mon, 24 Apr 2017 15:26:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1171329AbdDXP0t (ORCPT ); Mon, 24 Apr 2017 11:26:49 -0400 Received: from mail-it0-f65.google.com ([209.85.214.65]:32877 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1171327AbdDXP0s (ORCPT ); Mon, 24 Apr 2017 11:26:48 -0400 Received: by mail-it0-f65.google.com with SMTP id z67so17959923itb.0 for ; Mon, 24 Apr 2017 08:26:48 -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; bh=9jsD+Zh0AaRe98rYTSWOrQAty5QDksxzd8eA+LruNo0=; b=iverpuYg9htJyvjfosQ3rVYjzTUJUE8/s/n5fqrW2LYmaaxeOf6Ad8WnVvKhySGi2f ipKy15bvUPm35I+IilcuYIq3Pisr3SO9bpJj0fKKyDGwbajNju8l69i2wU8SM/ZrjNZy wi6kvYC98N0HGMSMe0ietw1pZjv4Kk/Bf2oLBI6n8XMFvbSx9CPo0bF35xRHFA6rI2Yy zIOrzvT7edrS0nPANYF5HCPzd9+cBcEi/SSGAbjF6qg/3CT4FpwH1j+krKWbJA9eNAnn X9wqBF/OhezoEtMUM2fxKuDFIt+K8/ggQYSo97watMQgb4CSI0qBc+wM8DWGWTE6ZFE7 tdtg== 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; bh=9jsD+Zh0AaRe98rYTSWOrQAty5QDksxzd8eA+LruNo0=; b=kY2XH3xmp2uvzvDZjl7lWTgfufAd5VFldd1Kq/f/WgK3lVLtR1MeY8C6BM9bsOs76s 3DPuOtVa0tnubIm0qcPMuEEgk/9XkaATymB1TaaJUdzzZm1rBmd+5sRx+H9mzfplfwW8 aiB2bbSIZ0vAijSLidU3u/Mio18XxB/ahY0zbe6cK/VMsAMRC6ydY8wC8sTx7+YqjdIA /MP9pv5OR8JpuKBNauX4xK/ij1K0TQG475/+h0RY7+PyJWYx3Nc0YKG4q4yA/EFrQ4Oa znkCJSfga/Y82CsR5aGWyN0nsHbp39CSyMbN50qYTRl/IBAVFvovVztPekPVod3cS+ax 9LfA== X-Gm-Message-State: AN3rC/7zvSq2x1bgIMBRiutMBxfWU545XQcNBarPM413eEZPZHhhGc2e JmEdSSY1i62TPw== X-Received: by 10.202.230.199 with SMTP id d190mr1108301oih.197.1493047602609; Mon, 24 Apr 2017 08:26:42 -0700 (PDT) Received: from kurokawa.lan ([195.140.253.167]) by smtp.gmail.com with ESMTPSA id e31sm8232759ote.42.2017.04.24.08.26.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Apr 2017 08:26:42 -0700 (PDT) From: Marek Vasut X-Google-Original-From: Marek Vasut To: linux-renesas-soc@vger.kernel.org Cc: Marek Vasut , Geert Uytterhoeven , Simon Horman Subject: [PATCH V3] ARM: dts: r8a7791: Add GyroADC clock and device node Date: Mon, 24 Apr 2017 17:26:32 +0200 Message-Id: <20170424152632.3478-1-marek.vasut+renesas@gmail.com> X-Mailer: git-send-email 2.11.0 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 node for the GyroADC block and it's associated clock. Signed-off-by: Marek Vasut Cc: Geert Uytterhoeven Cc: Simon Horman To: linux-renesas-soc@vger.kernel.org Reviewed-by: Geert Uytterhoeven --- V2: - Drop the whole ad-hoc ADC clock block V3: - Add gyroadc p_clk phandle into the mstp9 clocks node --- arch/arm/boot/dts/r8a7791.dtsi | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index 4d0c2ce59900..17b38f88bb7f 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>; + clock-names = "fck"; + power-domains = <&sysc R8A7791_PD_ALWAYS_ON>; + status = "disabled"; + }; + scif2: serial@e6e58000 { compatible = "renesas,scif-r8a7791", "renesas,rcar-gen2-scif", "renesas,scif"; @@ -1425,13 +1434,15 @@ mstp9_clks: mstp9_clks@e6150994 { compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks"; reg = <0 0xe6150994 0 4>, <0 0xe61509a4 0 4>; - clocks = <&cp_clk>, <&cp_clk>, <&cp_clk>, <&cp_clk>, + clocks = <&p_clk>, + <&cp_clk>, <&cp_clk>, <&cp_clk>, <&cp_clk>, <&cp_clk>, <&cp_clk>, <&cp_clk>, <&cp_clk>, <&p_clk>, <&p_clk>, <&cpg_clocks R8A7791_CLK_QSPI>, <&hp_clk>, <&cp_clk>, <&hp_clk>, <&hp_clk>, <&hp_clk>, <&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 +1450,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";