From: Cristian Ciocaltea <cristian.ciocaltea@gmail.com>
To: Rob Herring <robh@kernel.org>
Cc: "Andreas Färber" <afaerber@suse.de>,
"Manivannan Sadhasivam" <mani@kernel.org>,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-actions@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/4] dt-bindings: soc: actions: Add Actions Semi Owl socinfo binding
Date: Tue, 30 Mar 2021 01:21:33 +0300 [thread overview]
Message-ID: <20210329222133.GA1792209@BV030612LT> (raw)
In-Reply-To: <20210327163006.GA185779@robh.at.kernel.org>
On Sat, Mar 27, 2021 at 10:30:06AM -0600, Rob Herring wrote:
> On Fri, Mar 19, 2021 at 08:27:59PM +0200, Cristian Ciocaltea wrote:
> > Add devicetree binding for the Actions Semi Owl SoCs info module.
> >
> > Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@gmail.com>
> > ---
> > .../bindings/soc/actions/owl-socinfo.yaml | 71 +++++++++++++++++++
[...]
> > +
> > +patternProperties:
> > + "^soc(@[0-9a-f]+)?$":
>
> Make this a $nodename property.
>
> > + type: object
> > + properties:
>
> And move this up to top-level.
>
> You need a custom 'select' entry to exclude 'simple-bus'.
Indeed, I missed it..
> > + compatible:
> > + items:
> > + - enum:
> > + - actions,s500-soc
> > + - actions,s700-soc
> > + - actions,s900-soc
> > + - const: simple-bus
> > +
> > + "#address-cells":
> > + enum: [1, 2]
> > +
> > + "#size-cells":
> > + enum: [1, 2]
> > +
> > + ranges: true
> > +
> > + actions,serial-number-addrs:
> > + description: |
> > + Contains the physical addresses in DDR memory where the two parts
> > + of the serial number (low & high) can be read from.
> > + This is currently supported only on the S500 SoC variant.
> > + $ref: /schemas/types.yaml#/definitions/uint32-array
> > + minItems: 2
> > + maxItems: 2
>
> Humm, it doesn't really seem you have an actual device or bus here, but
> are abusing DT to create your socinfo device.
>
> As the only property is data in main memory, you should do a compatible
> for that memory region and put it under reserved-memory. You need that
> anyway to prevent the kernel from using the memory, right?
Right, this region should be exposed as reserved-memory. Will handle
it in the next revision.
> Rob
Thanks for the review,
Cristi
next prev parent reply other threads:[~2021-03-29 22:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-19 18:27 [PATCH 0/4] Add support for Actions Semi Owl soc info Cristian Ciocaltea
2021-03-19 18:27 ` [PATCH 1/4] dt-bindings: soc: actions: Add Actions Semi Owl socinfo binding Cristian Ciocaltea
2021-03-27 16:30 ` Rob Herring
2021-03-29 22:21 ` Cristian Ciocaltea [this message]
2021-03-19 18:28 ` [PATCH 2/4] soc: actions: Add Actions Semi Owl socinfo driver Cristian Ciocaltea
2021-03-19 18:28 ` [PATCH 3/4] arm: dts: owl-s500: Add socinfo support Cristian Ciocaltea
2021-03-19 18:28 ` [PATCH 4/4] MAINTAINERS: Add entry for Actions Semi Owl socinfo binding Cristian Ciocaltea
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=20210329222133.GA1792209@BV030612LT \
--to=cristian.ciocaltea@gmail.com \
--cc=afaerber@suse.de \
--cc=devicetree@vger.kernel.org \
--cc=linux-actions@lists.infradead.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mani@kernel.org \
--cc=robh@kernel.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