Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1506647
| From | LABBE Corentin <clabbe.montjoie@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] ARM: dt: sun8i-h3: Add sunxi-sid to dts for sun8i-h3 |
| Date | 2016-10-23 10:30 +0200 |
| Message-ID | <svmki-6Yx-13@gated-at.bofh.it> (permalink) |
| References | <soR9w-7vF-19@gated-at.bofh.it> <soRCy-7ZN-21@gated-at.bofh.it> <su2nE-3Wn-57@gated-at.bofh.it> <susi5-42n-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, Oct 20, 2016 at 10:36:54PM +0200, Maxime Ripard wrote:
> On Wed, Oct 19, 2016 at 09:40:16AM +0200, LABBE Corentin wrote:
> > On Wed, Oct 05, 2016 at 12:21:30PM +0200, Jean-Francois Moine wrote:
> > > On Wed, 5 Oct 2016 11:48:24 +0200
> > > Corentin Labbe <clabbe.montjoie@gmail.com> wrote:
> > >
> > > > This patch add support for the sunxi-sid driver to the device tree for sun8i-h3.
> > > >
> > > > Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
> > > > ---
> > > > arch/arm/boot/dts/sun8i-h3.dtsi | 5 +++++
> > > > 1 file changed, 5 insertions(+)
> > > >
> > > > diff --git a/arch/arm/boot/dts/sun8i-h3.dtsi b/arch/arm/boot/dts/sun8i-h3.dtsi
> > > > index 9f58bb4..abfd29c 100644
> > > > --- a/arch/arm/boot/dts/sun8i-h3.dtsi
> > > > +++ b/arch/arm/boot/dts/sun8i-h3.dtsi
> > > > @@ -211,6 +211,11 @@
> > > > #size-cells = <0>;
> > > > };
> > > >
> > > > + sid: eeprom@01c14200 {
> > > > + compatible = "allwinner,sun7i-a20-sid";
> > > > + reg = <0x01c14200 0x200>;
> > >
> > > The datasheet says 1Kb starting at 0x01c14000.
> > > Is there any reason to reduce the area and to shift the offset?
> > >
> >
> > According to http://linux-sunxi.org/SID_Register_Guide "For
> > Allwinner A83T and H3 the SID address space starts at 0x01c14000,
> > and the e-fuses are at offset 0x200".
> >
> > So I use this offset, since the sunxi_sid driver need the base
> > address of e-fuses.
> >
> > The easiest solution is to use 0x01c14200 since the other part of
> > sid is not used and not known (A83T/H3 user manual doesnt give any
> > information on all sid space, worse for A64 which reference SID only
> > in memory map).
> >
> > So probably for H3/A64/A83T, there will never any usage of the rest
> > of the SID address space.
>
> And since we can't know that, and we have to maintain the DT ABI,
> using the whole address map and an offset, with a new compatible, is
> definetely the safest thing to do.
>
I have two way of doing it, which one do you prefer ?
- Adding two optionnal properties: efuses-offset and efuses-size defaulting to 0 and resourcesize.
- Adding a subnode called efuses with its own reg=<>
The first one is easy and didnt need any work on previous DT entries.
Regards
Corentin Labbe
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH] ARM: dt: sun8i-h3: Add sunxi-sid to dts for sun8i-h3 LABBE Corentin <clabbe.montjoie@gmail.com> - 2016-10-19 19:00 +0200
Re: [PATCH] ARM: dt: sun8i-h3: Add sunxi-sid to dts for sun8i-h3 Maxime Ripard <maxime.ripard@free-electrons.com> - 2016-10-20 22:40 +0200
Re: [PATCH] ARM: dt: sun8i-h3: Add sunxi-sid to dts for sun8i-h3 LABBE Corentin <clabbe.montjoie@gmail.com> - 2016-10-23 10:30 +0200
Re: [PATCH] ARM: dt: sun8i-h3: Add sunxi-sid to dts for sun8i-h3 Maxime Ripard <maxime.ripard@free-electrons.com> - 2016-10-24 21:10 +0200
csiph-web