* [PATCH] spi: dt-binding: clarify gpio chipselect language @ 2013-12-05 11:39 Baruch Siach [not found] ` <542dfeee809e73f7f071f4ae0b4f95af7736f70b.1386243545.git.baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Baruch Siach @ 2013-12-05 11:39 UTC (permalink / raw) To: Mark Brown Cc: linux-spi-u79uwXL29TY76Z2rM5mHXA, devicetree-u79uwXL29TY76Z2rM5mHXA, Baruch Siach, Jean-Christophe PLAGNIOL-VILLARD, Grant Likely Commit 743179849015 (of_spi: add generic binding support to specify cs gpio) introduced generic binding for gpio chip-select. The cs_gpio struct field, however, is an internal implementation detail of the Linux SPI subsystem, and should not be mentioned in the device tree binding documentation. Mention the previously defined cs-gpios master node property instead. Cc: Jean-Christophe PLAGNIOL-VILLARD <plagnioj-sclMFOaUSTBWk0Htik3J/w@public.gmane.org> Cc: Grant Likely <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org> Signed-off-by: Baruch Siach <baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org> --- Documentation/devicetree/bindings/spi/spi-bus.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/spi/spi-bus.txt b/Documentation/devicetree/bindings/spi/spi-bus.txt index 800dafe..e5a4d1b 100644 --- a/Documentation/devicetree/bindings/spi/spi-bus.txt +++ b/Documentation/devicetree/bindings/spi/spi-bus.txt @@ -67,7 +67,7 @@ only 1(SINGLE), 2(DUAL) and 4(QUAD). Dual/Quad mode is not allowed when 3-wire mode is used. If a gpio chipselect is used for the SPI slave the gpio number will be passed -via the cs_gpio +via the SPI master node cs-gpios property. SPI example for an MPC5200 SPI bus: spi@f00 { -- 1.8.4.3 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 5+ messages in thread
[parent not found: <542dfeee809e73f7f071f4ae0b4f95af7736f70b.1386243545.git.baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org>]
* Re: [PATCH] spi: dt-binding: clarify gpio chipselect language [not found] ` <542dfeee809e73f7f071f4ae0b4f95af7736f70b.1386243545.git.baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org> @ 2013-12-05 16:44 ` Jean-Christophe PLAGNIOL-VILLARD [not found] ` <20131205164400.GI12805-HVbc7XotTAhnXn40ka+A6Q@public.gmane.org> 2013-12-09 18:01 ` Mark Brown 1 sibling, 1 reply; 5+ messages in thread From: Jean-Christophe PLAGNIOL-VILLARD @ 2013-12-05 16:44 UTC (permalink / raw) To: Baruch Siach Cc: Mark Brown, linux-spi-u79uwXL29TY76Z2rM5mHXA, devicetree-u79uwXL29TY76Z2rM5mHXA, Grant Likely On 13:39 Thu 05 Dec , Baruch Siach wrote: > Commit 743179849015 (of_spi: add generic binding support to specify cs gpio) > introduced generic binding for gpio chip-select. The cs_gpio struct field, > however, is an internal implementation detail of the Linux SPI subsystem, and > should not be mentioned in the device tree binding documentation. Mention the > previously defined cs-gpios master node property instead. > > Cc: Jean-Christophe PLAGNIOL-VILLARD <plagnioj-sclMFOaUSTBWk0Htik3J/w@public.gmane.org> > Cc: Grant Likely <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org> > Signed-off-by: Baruch Siach <baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org> > --- > Documentation/devicetree/bindings/spi/spi-bus.txt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/spi/spi-bus.txt b/Documentation/devicetree/bindings/spi/spi-bus.txt > index 800dafe..e5a4d1b 100644 > --- a/Documentation/devicetree/bindings/spi/spi-bus.txt > +++ b/Documentation/devicetree/bindings/spi/spi-bus.txt > @@ -67,7 +67,7 @@ only 1(SINGLE), 2(DUAL) and 4(QUAD). > Dual/Quad mode is not allowed when 3-wire mode is used. > > If a gpio chipselect is used for the SPI slave the gpio number will be passed > -via the cs_gpio > +via the SPI master node cs-gpios property. here it's an information about the c structure Best Regards, J. > > SPI example for an MPC5200 SPI bus: > spi@f00 { > -- > 1.8.4.3 > -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <20131205164400.GI12805-HVbc7XotTAhnXn40ka+A6Q@public.gmane.org>]
* Re: [PATCH] spi: dt-binding: clarify gpio chipselect language [not found] ` <20131205164400.GI12805-HVbc7XotTAhnXn40ka+A6Q@public.gmane.org> @ 2013-12-08 5:37 ` Baruch Siach 2013-12-10 11:26 ` Mark Rutland 0 siblings, 1 reply; 5+ messages in thread From: Baruch Siach @ 2013-12-08 5:37 UTC (permalink / raw) To: Jean-Christophe PLAGNIOL-VILLARD Cc: Mark Brown, linux-spi-u79uwXL29TY76Z2rM5mHXA, devicetree-u79uwXL29TY76Z2rM5mHXA, Grant Likely Hi Jean-Christophe, On Thu, Dec 05, 2013 at 05:44:00PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: > On 13:39 Thu 05 Dec , Baruch Siach wrote: > > Commit 743179849015 (of_spi: add generic binding support to specify cs gpio) > > introduced generic binding for gpio chip-select. The cs_gpio struct field, > > however, is an internal implementation detail of the Linux SPI subsystem, and > > should not be mentioned in the device tree binding documentation. Mention the > > previously defined cs-gpios master node property instead. > > > > Cc: Jean-Christophe PLAGNIOL-VILLARD <plagnioj-sclMFOaUSTBWk0Htik3J/w@public.gmane.org> > > Cc: Grant Likely <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org> > > Signed-off-by: Baruch Siach <baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org> > > --- > > Documentation/devicetree/bindings/spi/spi-bus.txt | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/Documentation/devicetree/bindings/spi/spi-bus.txt b/Documentation/devicetree/bindings/spi/spi-bus.txt > > index 800dafe..e5a4d1b 100644 > > --- a/Documentation/devicetree/bindings/spi/spi-bus.txt > > +++ b/Documentation/devicetree/bindings/spi/spi-bus.txt > > @@ -67,7 +67,7 @@ only 1(SINGLE), 2(DUAL) and 4(QUAD). > > Dual/Quad mode is not allowed when 3-wire mode is used. > > > > If a gpio chipselect is used for the SPI slave the gpio number will be passed > > -via the cs_gpio > > +via the SPI master node cs-gpios property. > > here it's an information about the c structure Is binding documentation the place for implementation notes? Especially since cs_gpio struct member is never mentioned in this document, and its name is confusingly similar to the cs-gpios property name. baruch -- http://baruch.siach.name/blog/ ~. .~ Tk Open Systems =}------------------------------------------------ooO--U--Ooo------------{= - baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org - tel: +972.2.679.5364, http://www.tkos.co.il - -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] spi: dt-binding: clarify gpio chipselect language 2013-12-08 5:37 ` Baruch Siach @ 2013-12-10 11:26 ` Mark Rutland 0 siblings, 0 replies; 5+ messages in thread From: Mark Rutland @ 2013-12-10 11:26 UTC (permalink / raw) To: Baruch Siach Cc: Jean-Christophe PLAGNIOL-VILLARD, Mark Brown, linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Grant Likely On Sun, Dec 08, 2013 at 05:37:12AM +0000, Baruch Siach wrote: > Hi Jean-Christophe, > > On Thu, Dec 05, 2013 at 05:44:00PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: > > On 13:39 Thu 05 Dec , Baruch Siach wrote: > > > Commit 743179849015 (of_spi: add generic binding support to specify cs gpio) > > > introduced generic binding for gpio chip-select. The cs_gpio struct field, > > > however, is an internal implementation detail of the Linux SPI subsystem, and > > > should not be mentioned in the device tree binding documentation. Mention the > > > previously defined cs-gpios master node property instead. > > > > > > Cc: Jean-Christophe PLAGNIOL-VILLARD <plagnioj-sclMFOaUSTBWk0Htik3J/w@public.gmane.org> > > > Cc: Grant Likely <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org> > > > Signed-off-by: Baruch Siach <baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org> > > > --- > > > Documentation/devicetree/bindings/spi/spi-bus.txt | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > diff --git a/Documentation/devicetree/bindings/spi/spi-bus.txt b/Documentation/devicetree/bindings/spi/spi-bus.txt > > > index 800dafe..e5a4d1b 100644 > > > --- a/Documentation/devicetree/bindings/spi/spi-bus.txt > > > +++ b/Documentation/devicetree/bindings/spi/spi-bus.txt > > > @@ -67,7 +67,7 @@ only 1(SINGLE), 2(DUAL) and 4(QUAD). > > > Dual/Quad mode is not allowed when 3-wire mode is used. > > > > > > If a gpio chipselect is used for the SPI slave the gpio number will be passed > > > -via the cs_gpio > > > +via the SPI master node cs-gpios property. > > > > here it's an information about the c structure > > Is binding documentation the place for implementation notes? Especially since > cs_gpio struct member is never mentioned in this document, and its name is > confusingly similar to the cs-gpios property name. Preferably, a binding document should not refer to any implementation details of drivers or subsystems using the binding. The implementation can change separately from the binding, and separating the two keeps us honest. Thanks, Mark. -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] spi: dt-binding: clarify gpio chipselect language [not found] ` <542dfeee809e73f7f071f4ae0b4f95af7736f70b.1386243545.git.baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org> 2013-12-05 16:44 ` Jean-Christophe PLAGNIOL-VILLARD @ 2013-12-09 18:01 ` Mark Brown 1 sibling, 0 replies; 5+ messages in thread From: Mark Brown @ 2013-12-09 18:01 UTC (permalink / raw) To: Baruch Siach Cc: linux-spi-u79uwXL29TY76Z2rM5mHXA, devicetree-u79uwXL29TY76Z2rM5mHXA, Jean-Christophe PLAGNIOL-VILLARD, Grant Likely [-- Attachment #1: Type: text/plain, Size: 456 bytes --] On Thu, Dec 05, 2013 at 01:39:05PM +0200, Baruch Siach wrote: > Commit 743179849015 (of_spi: add generic binding support to specify cs gpio) > introduced generic binding for gpio chip-select. The cs_gpio struct field, > however, is an internal implementation detail of the Linux SPI subsystem, and > should not be mentioned in the device tree binding documentation. Mention the > previously defined cs-gpios master node property instead. Applied, thanks. [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 836 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-12-10 11:26 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-12-05 11:39 [PATCH] spi: dt-binding: clarify gpio chipselect language Baruch Siach [not found] ` <542dfeee809e73f7f071f4ae0b4f95af7736f70b.1386243545.git.baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org> 2013-12-05 16:44 ` Jean-Christophe PLAGNIOL-VILLARD [not found] ` <20131205164400.GI12805-HVbc7XotTAhnXn40ka+A6Q@public.gmane.org> 2013-12-08 5:37 ` Baruch Siach 2013-12-10 11:26 ` Mark Rutland 2013-12-09 18:01 ` Mark Brown
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).