From patchwork Sun Jan 31 01:20:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: vishnupatekar X-Patchwork-Id: 8172821 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 1DC889FC36 for ; Sun, 31 Jan 2016 01:24:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3BB9F20256 for ; Sun, 31 Jan 2016 01:24:08 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 117A920328 for ; Sun, 31 Jan 2016 01:24:07 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aPgin-00054A-JA; Sun, 31 Jan 2016 01:22:33 +0000 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aPgiA-0004lB-K9 for linux-arm-kernel@lists.infradead.org; Sun, 31 Jan 2016 01:21:55 +0000 Received: by mail-pf0-x243.google.com with SMTP id 66so5226609pfe.2 for ; Sat, 30 Jan 2016 17:21:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=7jVeaCFrvNjih6Qb6OdSr+92uSCJLYZv/NyPb05E0Y8=; b=u5js1KNzJ/luXUJDuqVsrzyuawxC5+F7TuV0dWIbhaaROfJgfq1W3Rr/i2XeQLSs9d d3E+hZa9MHFyWYZSh++C4hijFQ1GDo9gmIMPpkYTgdcdZox9FHwBxVBNEtzmyXhFjP08 UCeZiO8jlCq+yu1u6wecXWyA4sE2umlwbrw0dvx4aLYYqpiWyeBTssNqBk5VIeEGuu2t r42EMOTxWUTZO4jnbPbOTqqQEimwelzirGa/fT0UhXrALzbh6zBp3pudicIoU7CjKUyc 12O7CxR9Y/gvivarOlD3lawog5mJI6FS0U4ew8LIXeELo1PvNPqzvOBe+w6CMIKuDhqS gjeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=7jVeaCFrvNjih6Qb6OdSr+92uSCJLYZv/NyPb05E0Y8=; b=iWmVKB8DWE3DW2IYfjdQUqawJBdxMVmSA75pyF2V2pHlkzXELBstbpBlyaH/kk1LBZ aYc0/DXAmlV47tuZK9W7mCgkN5aJyAiIj1ngf4KOSLnP8IkvKW42j/aITf6g0eT2hkA4 VPCsMHdDAQZrGqgHnv+V0Mcu3PYn19O1E750u2qx+6iUSXWRFs2+tnvTENvQrjLNQ828 iAOh7AcyxJUmB9ElHaWNKaaWbwRncnBdohzvLsAu52ooNQpXOeCp6nfEev7EB52gb3o+ YC8ewx3NdWa/o0aPJiHghQNgpA2jItOPnoubzWWFaaZdk5k5GP9wjpWpdE7tOuCRHQ/s UIMw== X-Gm-Message-State: AG10YOSo/MuRo90JGzrQ1of2f45mhuagvONdOfxq/bzLoims7uYih6rzdlLYH5x0ZwUTvw== X-Received: by 10.98.13.150 with SMTP id 22mr26201607pfn.143.1454203294847; Sat, 30 Jan 2016 17:21:34 -0800 (PST) Received: from localhost.localdomain ([116.88.131.187]) by smtp.gmail.com with ESMTPSA id o4sm32973151pfa.85.2016.01.30.17.21.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 30 Jan 2016 17:21:34 -0800 (PST) From: Vishnu Patekar To: robh+dt@kernel.org, corbet@lwn.net, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, maxime.ripard@free-electrons.com, linux@arm.linux.org.uk, emilio@elopez.com.ar Subject: [PATCH 03/14] clk: sunxi: add bus gates for A83T Date: Sun, 31 Jan 2016 09:20:55 +0800 Message-Id: <1454203266-4450-4-git-send-email-vishnupatekar0510@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1454203266-4450-1-git-send-email-vishnupatekar0510@gmail.com> References: <1454203266-4450-1-git-send-email-vishnupatekar0510@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160130_172154_706586_90FE7EF1 X-CRM114-Status: UNSURE ( 9.17 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.5 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, linux-sunxi@googlegroups.com, patchesrdh@mveas.com, sboyd@codeaurora.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, hdegoede@redhat.com, wens@csie.org, mturquette@baylibre.com, jenskuske@gmail.com, linus.walleij@linaro.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP A83T has similar bus gates that of H3, including single gating register has different clock parent. As per H3 and A83T datasheet, usbhost is under AHB2. However,below shows allwinner source code assignment: bits: 26 (ehci0), 27 (ehci1), 29 (ohci0) => AHB1 for A83T. bits: 26 (ehci0), 27 (ehci1) => AHB1 for H3 bits 29, 30, 31(ohci0,1,2) => AHB2 for H3. until, this confusion is cleared keep it H3 way. Signed-off-by: Vishnu Patekar Acked-by: Rob Herring Acked-by: Chen-Yu Tsai --- Documentation/devicetree/bindings/clock/sunxi.txt | 1 + drivers/clk/sunxi/clk-sun8i-bus-gates.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/sunxi.txt b/Documentation/devicetree/bindings/clock/sunxi.txt index 7f19ef5..4514d77 100644 --- a/Documentation/devicetree/bindings/clock/sunxi.txt +++ b/Documentation/devicetree/bindings/clock/sunxi.txt @@ -59,6 +59,7 @@ Required properties: "allwinner,sun6i-a31-apb2-gates-clk" - for the APB2 gates on A31 "allwinner,sun8i-a23-apb2-gates-clk" - for the APB2 gates on A23 "allwinner,sun8i-h3-bus-gates-clk" - for the bus gates on H3 + "allwinner,sun8i-a83t-bus-gates-clk" - for the bus gates on A83T "allwinner,sun9i-a80-apbs-gates-clk" - for the APBS gates on A80 "allwinner,sun4i-a10-dram-gates-clk" - for the DRAM gates on A10 "allwinner,sun5i-a13-mbus-clk" - for the MBUS clock on A13 diff --git a/drivers/clk/sunxi/clk-sun8i-bus-gates.c b/drivers/clk/sunxi/clk-sun8i-bus-gates.c index 1113eb9..63fdb79 100644 --- a/drivers/clk/sunxi/clk-sun8i-bus-gates.c +++ b/drivers/clk/sunxi/clk-sun8i-bus-gates.c @@ -109,3 +109,5 @@ err_unmap: CLK_OF_DECLARE(sun8i_h3_bus_gates, "allwinner,sun8i-h3-bus-gates-clk", sun8i_h3_bus_gates_init); +CLK_OF_DECLARE(sun8i_a83t_bus_gates, "allwinner,sun8i-a83t-bus-gates-clk", + sun8i_h3_bus_gates_init);