From: Stephen Warren <swarren@wwwdotorg.org>
To: Paul Walmsley <paul@pwsan.com>
Cc: linux-tegra@vger.kernel.org, linux-arm-kernel@vger.kernel.org,
Mark Rutland <mark.rutland@arm.com>,
Alexandre Courbot <gnurou@gmail.com>,
Pawel Moll <pawel.moll@arm.com>,
Ian Campbell <ijc+devicetree@hellion.org.uk>,
linux-kernel@vger.kernel.org,
Eduardo Valentin <edubezval@gmail.com>,
devicetree@vger.kernel.org, Rob Herring <robh+dt@kernel.org>,
Thierry Reding <thierry.reding@gmail.com>,
Kumar Gala <galak@codeaurora.org>,
Hiroshi DOYU <hdoyu@nvidia.com>
Subject: Re: [PATCH 3/3] Documentation: DT bindings: Tegra AHB: note base address change
Date: Tue, 17 Mar 2015 10:43:12 -0600 [thread overview]
Message-ID: <550859A0.9090500@wwwdotorg.org> (raw)
In-Reply-To: <20150317083221.32662.96822.stgit@baseline>
On 03/17/2015 02:32 AM, Paul Walmsley wrote:
> For Tegra132 and later chips, we can now use the correct hardware base
> address for the Tegra AHB IP block in the DT data. Update the DT binding
> documentation to reflect this change.
> diff --git a/Documentation/devicetree/bindings/arm/tegra/nvidia,tegra20-ahb.txt b/Documentation/devicetree/bindings/arm/tegra/nvidia,tegra20-ahb.txt
> index 067c979..7692b4c 100644
> --- a/Documentation/devicetree/bindings/arm/tegra/nvidia,tegra20-ahb.txt
> +++ b/Documentation/devicetree/bindings/arm/tegra/nvidia,tegra20-ahb.txt
> @@ -2,10 +2,15 @@ NVIDIA Tegra AHB
>
> Required properties:
> - compatible : For Tegra20, must contain "nvidia,tegra20-ahb". For
> - Tegra30, must contain "nvidia,tegra30-ahb". Otherwise, must contain
> - '"nvidia,<chip>-ahb", "nvidia,tegra30-ahb"' where <chip> is tegra124,
> - tegra132, or tegra210.
> -- reg : Should contain 1 register ranges(address and length)
> + Tegra30, must contain "nvidia,tegra30-ahb". For Tegra114 and Tegra124, must
> + contain '"nvidia,<chip>-ahb", "nvidia,tegra30-ahb"' where <chip> is tegra114
> + or tegra124. For Tegra132, the compatible string must contain
> + "nvidia,tegra132-ahb".
> +
> +- reg : Should contain 1 register ranges(address and length). On Tegra20,
> + Tegra30, Tegra114, and Tegra124 chips, the low byte of the physical base
> + address of the IP block must end in 0x04. On DT files for later chips, the
> + actual hardware base address of the IP block should be used.
A table-based approach rather than prose might make this more legible?
- compatible: Must contain the following:
Tegra20: "nvidia,tegra20-ahb"
Tegra30: "nvidia,tegra30-ahb"
Tegra114: "nvidia,tegra114-ahb", "nvidia,tegra30-ahb"
Tegra124: "nvidia,tegra124-ahb", "nvidia,tegra30-ahb"
Tegra132: "nvidia,tegra132-ahb"
Tegra210: "nvidia,tegra210-ahb", "nvidia,tegra132-ahb"
With any luck, we can extend that final item for future chips to be:
Tegra210, TegraNNN:
"nvidia,tegra<chip>-ahb", "nvidia,tegra132-ahb"
Perhaps we format the 114/124 entry that way too.
As a historical note, I thought this issue might have been caused by the
HW lumping together a bunch of vaguely related features into the same
address window, with offset 0 being unrelated to AHB. This is certainly
the explanation for some other interesting reg value in DT on other HW
modules in Tegra. However as best I can tell that isn't the case for
this HW module; we just mapped the start of the reg value to the first
defined register for some reason rather than aligning it with the entry
in the address map. So, this series makes sense to me.
The series,
Acked-by: Stephen Warren <swarren@nvidia.com>
(it'd be nice if the DT doc was modified as I described above, but not
strictly necessary. I like Russell's ideas how to make this more
transparent/automatic so old DTs can be converted too).
next prev parent reply other threads:[~2015-03-17 16:43 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-17 8:32 amba: tegra-ahb: fix base address and register offsets for future chip support Paul Walmsley
2015-03-17 8:32 ` [PATCH 3/3] Documentation: DT bindings: Tegra AHB: note base address change Paul Walmsley
2015-03-17 10:38 ` [PATCHv2 " Russell King - ARM Linux
2015-03-19 15:26 ` Paul Walmsley
2015-03-19 15:42 ` Stephen Warren
[not found] ` <550AEE6B.5080301-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2015-03-19 16:17 ` Paul Walmsley
[not found] ` <alpine.DEB.2.02.1503191601520.9480-rwI8Ez+7Ko+d5PgPZx9QOdBPR1lH4CV8@public.gmane.org>
2015-03-19 16:46 ` Paul Walmsley
2015-03-19 16:54 ` Stephen Warren
[not found] ` <550AFF52.6070503-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2015-03-19 17:55 ` Paul Walmsley
2015-03-19 18:28 ` Stephen Warren
[not found] ` <550B155E.9050308-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2015-03-19 18:46 ` Paul Walmsley
2015-03-17 16:43 ` Stephen Warren [this message]
[not found] ` <550859A0.9090500-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2015-03-19 15:33 ` [PATCH " Paul Walmsley
2015-03-19 15:44 ` Stephen Warren
[not found] ` <550AEEE9.70806-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2015-03-19 16:34 ` Paul Walmsley
[not found] ` <alpine.DEB.2.02.1503191617140.9480-rwI8Ez+7Ko+d5PgPZx9QOdBPR1lH4CV8@public.gmane.org>
2015-03-19 17:46 ` Stephen Warren
[not found] ` <550B0B84.6050400-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2015-03-19 18:42 ` Paul Walmsley
[not found] ` <alpine.DEB.2.02.1503191758590.9480-rwI8Ez+7Ko+d5PgPZx9QOdBPR1lH4CV8@public.gmane.org>
2015-03-19 22:27 ` Stephen Warren
2015-03-17 8:32 ` [PATCH 1/3] amba: tegra-ahb: fix register offsets in the macros Paul Walmsley
2015-03-17 8:32 ` [PATCH 2/3] amba: tegra-ahb: use correct base address for future chip support Paul Walmsley
2015-03-17 10:35 ` Russell King - ARM Linux
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=550859A0.9090500@wwwdotorg.org \
--to=swarren@wwwdotorg.org \
--cc=devicetree@vger.kernel.org \
--cc=edubezval@gmail.com \
--cc=galak@codeaurora.org \
--cc=gnurou@gmail.com \
--cc=hdoyu@nvidia.com \
--cc=ijc+devicetree@hellion.org.uk \
--cc=linux-arm-kernel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=paul@pwsan.com \
--cc=pawel.moll@arm.com \
--cc=robh+dt@kernel.org \
--cc=thierry.reding@gmail.com \
/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).