linux-clk.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Vishnu Patekar <vishnupatekar0510@gmail.com>
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
Cc: jenskuske@gmail.com, hdegoede@redhat.com, wens@csie.org,
	devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com,
	linux-gpio@vger.kernel.org, linus.walleij@linaro.org,
	mturquette@baylibre.com, sboyd@codeaurora.org,
	patchesrdh@mveas.com, linux-clk@vger.kernel.org
Subject: [PATCH 03/14] clk: sunxi: add bus gates for A83T
Date: Sun, 31 Jan 2016 09:20:55 +0800	[thread overview]
Message-ID: <1454203266-4450-4-git-send-email-vishnupatekar0510@gmail.com> (raw)
In-Reply-To: <1454203266-4450-1-git-send-email-vishnupatekar0510@gmail.com>

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 <vishnupatekar0510@gmail.com>
---
 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);
-- 
1.9.1

  parent reply	other threads:[~2016-01-31  1:20 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-31  1:20 [PATCH 00/14] Add A83T clk, r_pio, mmc rsb support Vishnu Patekar
2016-01-31  1:20 ` [PATCH 01/14] pinctrl: sunxi: Add A83T R_PIO controller support Vishnu Patekar
2016-02-01 15:00   ` Rob Herring
2016-02-11 11:59   ` Linus Walleij
2016-02-11 12:36     ` Maxime Ripard
2016-02-11 13:47       ` Linus Walleij
2016-02-11 15:12         ` Maxime Ripard
2016-02-15 23:23           ` Linus Walleij
2016-02-25  0:56             ` Maxime Ripard
2016-02-25 14:49               ` Linus Walleij
2016-01-31  1:20 ` [PATCH 02/14] clk: sunxi: Add apb0 gates for A83T Vishnu Patekar
2016-02-01 15:02   ` Rob Herring
2016-02-01 15:11     ` Chen-Yu Tsai
2016-02-02 13:12   ` Maxime Ripard
2016-01-31  1:20 ` Vishnu Patekar [this message]
2016-02-01 15:03   ` [PATCH 03/14] clk: sunxi: add bus " Rob Herring
2016-02-01 15:13     ` Chen-Yu Tsai
2016-02-02 13:13   ` Maxime Ripard
2016-01-31  1:20 ` [PATCH 04/14] clk: sunxi: add ahb1 clock " Vishnu Patekar
2016-02-01 14:49   ` Rob Herring
2016-02-01 14:54     ` Chen-Yu Tsai
2016-02-02 13:17   ` Maxime Ripard
2016-02-04  6:06     ` Vishnu Patekar
2016-02-04  8:01       ` Maxime Ripard
2016-02-12  5:24         ` Vishnu Patekar
2016-01-31  1:20 ` [PATCH 05/14] clk: sunxi: Add APB1 " Vishnu Patekar
2016-02-01 14:50   ` Rob Herring
2016-01-31  1:20 ` [PATCH 06/14] ARM: dts: sun8i-a83t: Correct low speed oscillator clocks Vishnu Patekar
2016-02-02 13:18   ` Maxime Ripard
2016-02-02 13:19   ` Maxime Ripard
2016-02-04  8:51     ` Vishnu Patekar
2016-02-04 12:04       ` Maxime Ripard
2016-01-31  1:20 ` [PATCH 07/14] ARM: dts: sun8i-a83t: Add basic clocks and resets Vishnu Patekar
2016-01-31  1:21 ` [PATCH 08/14] ARM: dts: sun8i-a83t: add mmc clock nodes Vishnu Patekar
2016-01-31  1:21 ` [PATCH 09/14] ARM: dts: sun8i-a83t: Add mmc controller nodes Vishnu Patekar
2016-01-31  1:21 ` [PATCH 10/14] ARM: dts: sun8i-a83t: Add PRCM related clocks and resets Vishnu Patekar
     [not found]   ` <CAGb2v67iO-816KaLttWRRPL2f7hpfgJ1--p69tD_oOrewmOjCA@mail.gmail.com>
2016-02-12 16:06     ` Vishnu Patekar
2016-01-31  1:21 ` [PATCH 11/14] ARM: dts: sun8i-a83t: Add R_PIO controller node to the dtsi Vishnu Patekar
2016-01-31  1:21 ` [PATCH 12/14] ARM: dts: sun8i-a83t: Add RSB nodes to dtsi Vishnu Patekar
2016-01-31  1:21 ` [PATCH 13/14] ARM: dts: sun8i: enable mmc for H8Homlet Board Vishnu Patekar
2016-01-31  1:21 ` [PATCH 14/14] ARM: dts: sun8i: Add A83T based Sinovoip Bpi-M3 Board Vishnu Patekar
     [not found]   ` <CAGb2v65BwAcT8920WXt7dBjNx4zjycw2Ea+sNZrm0aM_3JA8pA@mail.gmail.com>
2016-02-04  4:25     ` Vishnu Patekar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1454203266-4450-4-git-send-email-vishnupatekar0510@gmail.com \
    --to=vishnupatekar0510@gmail.com \
    --cc=corbet@lwn.net \
    --cc=devicetree@vger.kernel.org \
    --cc=emilio@elopez.com.ar \
    --cc=galak@codeaurora.org \
    --cc=hdegoede@redhat.com \
    --cc=ijc+devicetree@hellion.org.uk \
    --cc=jenskuske@gmail.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sunxi@googlegroups.com \
    --cc=linux@arm.linux.org.uk \
    --cc=mark.rutland@arm.com \
    --cc=maxime.ripard@free-electrons.com \
    --cc=mturquette@baylibre.com \
    --cc=patchesrdh@mveas.com \
    --cc=pawel.moll@arm.com \
    --cc=robh+dt@kernel.org \
    --cc=sboyd@codeaurora.org \
    --cc=wens@csie.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).