From: Arnd Bergmann <arnd@arndb.de>
To: linux-arm-kernel@lists.infradead.org
Cc: Arun Ramamurthy <arun.ramamurthy@broadcom.com>,
mark.rutland@arm.com, a.zummo@towertech.it,
sbranden@broadcom.com, pawel.moll@arm.com,
devicetree@vger.kernel.org, rtc-linux@googlegroups.com,
Ray Jui <rjui@broadcom.com>,
ijc+devicetree@hellion.org.uk,
Arun Ramamurthy <arunrama@broadcom.com>,
linux-kernel@vger.kernel.org, robh+dt@kernel.org,
bcm-kernel-feedback-list@broadcom.com, galak@codeaurora.org,
grant.likely@linaro.org
Subject: Re: [PATCHv1] rtc: bcm-iproc: Add support for Broadcom iproc rtc
Date: Wed, 11 Mar 2015 21:31:42 +0100 [thread overview]
Message-ID: <3192051.z32dL5alyl@wuerfel> (raw)
In-Reply-To: <55009ED6.4050205@broadcom.com>
On Wednesday 11 March 2015 13:00:22 Arun Ramamurthy wrote:
>
> Arnd, this is the device tree entry that I would end up with and I plan
> to use syscon_regmap_lookup_by_phandle in the rtc driver. Does this look
> acceptable?
>
> rtc: iproc_rtc@0x03026000 {
> compatible = "brcm,iproc-rtc";
> reg = <0x03026000 0xC>,
> iso_cell_syscon = <&crmu_iso_cell_control>;
> bbl_auth_syscon = <&crmu_bbl_auth>
> status = "okay";
>
> crmu_iso_cell_control:crmu@0x0301C02C {
> compatible = "syscon";
> reg = <0x0301C038 0x8>
> }
>
> crmu_bbl_auth:crmu@0x03024C74 {
> compatible = "syscon";
> reg = <0x03024C74 0x8>;
> }
This doesn't look right, sorry:
A syscon device is defined as a collection of registers that
have no logical grouping within them but that can be seen
as a single device. What you have here instead are two syscon
nodes that each have only a single 8-byte register.
What are the other registers surrounding those? I would expect
something like
crmu0: syscon@03010000 {
compatible = "syscon";
reg = <0x03010000 0x10000>;
};
and then use an offset into the syscon from the rtc node, like
iproc_rtc: rtc@03026000 {
compatible = "brcm,iproc-rtc";
reg = <0x03026000 0x1000>;
iso_cell_syscon = <&crmu0 0xc038>;
bbl_auth_syscon = <&crmu1 0x4c74>;
};
Note also that you got most of the naming wrong:
- node names should be generic strings like "rtc", "syscon", "pci" etc.
The specific strings are defined in ePAPR.
- unit addresses should match the first 'reg' property and
not start with '0x'.
- it seems strange that the rtc has only 12 bytes of registers,
though that may actually be correct.
Arnd
prev parent reply other threads:[~2015-03-11 20:31 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-16 19:22 [PATCHv1] rtc: bcm-iproc: Add support for Broadcom iproc rtc arun.ramamurthy-dY08KVG/lbpWk0Htik3J/w
[not found] ` <1418757750-3628-1-git-send-email-arun.ramamurthy-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
2014-12-16 19:42 ` Arnd Bergmann
2014-12-16 20:05 ` Arun Ramamurthy
[not found] ` <54909074.2070804-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
2014-12-16 20:19 ` Arnd Bergmann
2014-12-16 20:27 ` Ray Jui
[not found] ` <549095CA.7090505-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
2014-12-16 21:54 ` Arun Ramamurthy
[not found] ` <5490A9FC.6030305-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
2014-12-17 14:31 ` Arnd Bergmann
2015-02-12 22:17 ` Arun Ramamurthy
2015-03-04 22:21 ` Arnd Bergmann
2015-03-04 22:40 ` Arun Ramamurthy
[not found] ` <54F789CD.5030504-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
2015-03-04 22:50 ` Arnd Bergmann
2015-03-04 22:53 ` Arun Ramamurthy
2015-03-04 22:58 ` Arnd Bergmann
2015-03-11 20:00 ` Arun Ramamurthy
2015-03-11 20:31 ` Arnd Bergmann [this message]
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=3192051.z32dL5alyl@wuerfel \
--to=arnd@arndb.de \
--cc=a.zummo@towertech.it \
--cc=arun.ramamurthy@broadcom.com \
--cc=arunrama@broadcom.com \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=devicetree@vger.kernel.org \
--cc=galak@codeaurora.org \
--cc=grant.likely@linaro.org \
--cc=ijc+devicetree@hellion.org.uk \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=pawel.moll@arm.com \
--cc=rjui@broadcom.com \
--cc=robh+dt@kernel.org \
--cc=rtc-linux@googlegroups.com \
--cc=sbranden@broadcom.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