From: Mark Brown <broonie@kernel.org>
To: Harini Katakam <harinikatakamlinux@gmail.com>
Cc: Grant Likely <grant.likely@linaro.org>,
Rob Herring <robh+dt@kernel.org>, Pawel Moll <pawel.moll@arm.com>,
Mark Rutland <mark.rutland@arm.com>,
"ijc+devicetree@hellion.org.uk" <ijc+devicetree@hellion.org.uk>,
Kumar Gala <galak@codeaurora.org>,
linux-spi@vger.kernel.org,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-doc@vger.kernel.org" <linux-doc@vger.kernel.org>
Subject: Re: [PATCH v2 2/2] devicetree: Add devicetree bindings documentation for Cadence SPI
Date: Fri, 4 Apr 2014 11:09:19 +0100 [thread overview]
Message-ID: <20140404100919.GO14763@sirena.org.uk> (raw)
In-Reply-To: <CAFcVEC+mpHh_d2j6_sdhWS3d2KyXrDYUq6L6jO2Q=SS68Hda2g@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1321 bytes --]
On Fri, Apr 04, 2014 at 08:30:38AM +0530, Harini Katakam wrote:
> On Fri, Apr 4, 2014 at 3:04 AM, Mark Brown <broonie@kernel.org> wrote:
> > On Thu, Apr 03, 2014 at 04:40:31PM +0530, Harini Katakam wrote:
> >> +Optional properties:
> >> +- num-cs : Number of chip selects used.
> > How does this translate to the hardware?
> This IP can drive 4 slaves.
> The CS line to be driven is selected in spi device structure and
> that is driven by the software.
So why specify this in the binding at all? If the device always has the
same number of chip selects it's redundant.
> >> + num-cs = /bits/ 16 <4>;
> > What's going on with the /bits/ - is this something that's required for
> > the property?
> The master->num-chipselect property is 16 bit but writing <4> here directly
> leads to 0 being read in of_property_read (because it's big endian).
> Instead using of property read u32 and then copying, we decided to do this.
> This was discussed on v2 between Michal and Rob:
No, don't do that. You're contorting the binding to serve Linux's
implementation needs and you've not documented this requirement either.
If there *was* a need to have the number be 16 bits you'd need to
document that reqirement in the binding, though like I say I don't think
the number needs to be there at all.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2014-04-04 10:09 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-03 11:10 [PATCH v2 1/2] SPI: Add driver for Cadence SPI controller Harini Katakam
2014-04-03 11:10 ` [PATCH v2 2/2] devicetree: Add devicetree bindings documentation for Cadence SPI Harini Katakam
2014-04-03 21:34 ` Mark Brown
2014-04-04 3:00 ` Harini Katakam
2014-04-04 8:09 ` Geert Uytterhoeven
2014-04-04 11:16 ` Michal Simek
2014-04-04 10:09 ` Mark Brown [this message]
2014-04-04 12:14 ` Harini Katakam
2014-04-04 12:24 ` Peter Crosthwaite
2014-04-04 12:39 ` Harini Katakam
2014-04-04 12:46 ` Mark Brown
2014-04-04 14:08 ` Harini Katakam
2014-04-04 14:30 ` Harini Katakam
2014-04-04 23:14 ` Peter Crosthwaite
2014-04-05 6:05 ` Harini Katakam
2014-04-05 23:43 ` Peter Crosthwaite
2014-04-07 7:46 ` Harini Katakam
2014-04-04 14:42 ` Mark Brown
2014-04-04 14:49 ` Harini Katakam
2014-04-03 21:43 ` [PATCH v2 1/2] SPI: Add driver for Cadence SPI controller Mark Brown
2014-04-04 3:49 ` Harini Katakam
2014-04-04 9:04 ` sourav
2014-04-04 9:24 ` sourav
2014-04-04 10:02 ` Michal Simek
2014-04-04 22:58 ` Peter Crosthwaite
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=20140404100919.GO14763@sirena.org.uk \
--to=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=galak@codeaurora.org \
--cc=grant.likely@linaro.org \
--cc=harinikatakamlinux@gmail.com \
--cc=ijc+devicetree@hellion.org.uk \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=pawel.moll@arm.com \
--cc=robh+dt@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
all inboxes | Powered by JetHome®