* [PATCH v2] iio:lps331ap: Add support for DT @ 2013-07-19 13:36 Jacek Anaszewski [not found] ` <1374240981-13560-1-git-send-email-j.anaszewski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> 0 siblings, 1 reply; 7+ messages in thread From: Jacek Anaszewski @ 2013-07-19 13:36 UTC (permalink / raw) To: linux-iio-u79uwXL29TY76Z2rM5mHXA Cc: denis.ciocca-qxv4g6HH51o, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, jic23-DgEjT+Ai2ygdnm+yROfE0A, l.czerwinski-Sze3O3UU22JBDgjK7y7TUQ, maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8, Jacek Anaszewski This is the second version of the patch from the series (1). It includes following improvements: - added vendor prefix to the driver DT identifier - resigned from using LPS331AP_PRESS_DEV_NAME macro in few places in favour of clear text - fixed description of the interrupt-map elements in the DT binding documentation file (1) http://www.spinics.net/lists/linux-iio/msg08883.html Thanks, Jacek Jacek Anaszewski (1): iio: lps331ap: Add support for DT .../devicetree/bindings/iio/pressure/lps331ap.txt | 41 ++++++++++++++++++++ drivers/iio/pressure/st_pressure_i2c.c | 11 +++++- drivers/iio/pressure/st_pressure_spi.c | 11 +++++- 3 files changed, 61 insertions(+), 2 deletions(-) create mode 100644 Documentation/devicetree/bindings/iio/pressure/lps331ap.txt -- 1.7.5.4 ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <1374240981-13560-1-git-send-email-j.anaszewski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>]
* [PATCH v2] iio: lps331ap: Add support for DT [not found] ` <1374240981-13560-1-git-send-email-j.anaszewski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> @ 2013-07-19 13:36 ` Jacek Anaszewski [not found] ` <1374240981-13560-2-git-send-email-j.anaszewski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> 0 siblings, 1 reply; 7+ messages in thread From: Jacek Anaszewski @ 2013-07-19 13:36 UTC (permalink / raw) To: linux-iio-u79uwXL29TY76Z2rM5mHXA Cc: denis.ciocca-qxv4g6HH51o, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, jic23-DgEjT+Ai2ygdnm+yROfE0A, l.czerwinski-Sze3O3UU22JBDgjK7y7TUQ, maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8, Jacek Anaszewski, Kyungmin Park This patch adds DT support for the lps331ap barometer sensor. Signed-off-by: Jacek Anaszewski <j.anaszewski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> Signed-off-by: Kyungmin Park <kyungmin.park-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> --- .../devicetree/bindings/iio/pressure/lps331ap.txt | 41 ++++++++++++++++++++ drivers/iio/pressure/st_pressure_i2c.c | 11 +++++- drivers/iio/pressure/st_pressure_spi.c | 11 +++++- 3 files changed, 61 insertions(+), 2 deletions(-) create mode 100644 Documentation/devicetree/bindings/iio/pressure/lps331ap.txt diff --git a/Documentation/devicetree/bindings/iio/pressure/lps331ap.txt b/Documentation/devicetree/bindings/iio/pressure/lps331ap.txt new file mode 100644 index 0000000..e05b45e --- /dev/null +++ b/Documentation/devicetree/bindings/iio/pressure/lps331ap.txt @@ -0,0 +1,41 @@ +* STMicroelectronics LPS331AP barometer sensor + +Required properties: + + - compatible : should be "st,lps331ap" + - reg : the I2C address of the barometer + +Optional properties: + + - drdy-int-pin : redirect DRDY on pin INT1 (1) or pin INT2 (2) (u8) + - interrupt-parent : phandle to the interrupt map subnode + - interrupts : interrupt mapping for LPS331AP interrupt sources: + 2 sources: 0 - data ready, 1 - threshold event + - irq-map : irq sub-node defining interrupt map + (all properties listed below are required): + - #interrupt-cells : should be 1 + - #address-cells : should be 0 + - #size-cells : should be 0 + - interrupt-map : table of entries consisting of three child elements: + - unit_interrupt_specifier - 0 : data ready, 1 : threshold event + - interrupt parent phandle + - parent unit interrupt specifier consisiting of two elements: + - index of the interrupt within the controller + - flags : should be 0 + +Example: + +lps331ap@5d { + compatible = "st,lps331ap"; + reg = <0x5d>; + drdy-int-pin = /bits/ 8 <2>; + interrupt-parent = <&irq_map>; + interrupts = <0>, <1>; + + irq_map: irq-map { + #interrupt-cells = <1>; + #address-cells = <0>; + #size-cells = <0>; + interrupt-map = <0 &gpf0 5 0>; + }; +}; diff --git a/drivers/iio/pressure/st_pressure_i2c.c b/drivers/iio/pressure/st_pressure_i2c.c index 7cebcc7..1683ebe 100644 --- a/drivers/iio/pressure/st_pressure_i2c.c +++ b/drivers/iio/pressure/st_pressure_i2c.c @@ -56,15 +56,24 @@ static int st_press_i2c_remove(struct i2c_client *client) } static const struct i2c_device_id st_press_id_table[] = { - { LPS331AP_PRESS_DEV_NAME }, + { "st,lps331ap" }, {}, }; MODULE_DEVICE_TABLE(i2c, st_press_id_table); +#ifdef CONFIG_OF +static const struct of_device_id lps331ap_of_match[] = { + { .compatible = "st,lps331ap", }, + { } +}; +MODULE_DEVICE_TABLE(of, lps331ap_of_match); +#endif + static struct i2c_driver st_press_driver = { .driver = { .owner = THIS_MODULE, .name = "st-press-i2c", + .of_match_table = of_match_ptr(lps331ap_of_match), }, .probe = st_press_i2c_probe, .remove = st_press_i2c_remove, diff --git a/drivers/iio/pressure/st_pressure_spi.c b/drivers/iio/pressure/st_pressure_spi.c index 17a1490..05c30d6 100644 --- a/drivers/iio/pressure/st_pressure_spi.c +++ b/drivers/iio/pressure/st_pressure_spi.c @@ -55,15 +55,24 @@ static int st_press_spi_remove(struct spi_device *spi) } static const struct spi_device_id st_press_id_table[] = { - { LPS331AP_PRESS_DEV_NAME }, + { "st,lps331ap" }, {}, }; MODULE_DEVICE_TABLE(spi, st_press_id_table); +#ifdef CONFIG_OF +static const struct of_device_id lps331ap_of_match[] = { + { .compatible = "st,lps331ap", }, + { } +}; +MODULE_DEVICE_TABLE(of, lps331ap_of_match); +#endif + static struct spi_driver st_press_driver = { .driver = { .owner = THIS_MODULE, .name = "st-press-spi", + .of_match_table = of_match_ptr(lps331ap_of_match), }, .probe = st_press_spi_probe, .remove = st_press_spi_remove, -- 1.7.5.4 ^ permalink raw reply related [flat|nested] 7+ messages in thread
[parent not found: <1374240981-13560-2-git-send-email-j.anaszewski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>]
* Re: [PATCH v2] iio: lps331ap: Add support for DT [not found] ` <1374240981-13560-2-git-send-email-j.anaszewski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> @ 2013-08-04 11:55 ` Jonathan Cameron [not found] ` <51FE4117.3040404-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> 0 siblings, 1 reply; 7+ messages in thread From: Jonathan Cameron @ 2013-08-04 11:55 UTC (permalink / raw) To: Jacek Anaszewski Cc: linux-iio-u79uwXL29TY76Z2rM5mHXA, denis.ciocca-qxv4g6HH51o, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, l.czerwinski-Sze3O3UU22JBDgjK7y7TUQ, maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8, Kyungmin Park On 07/19/13 14:36, Jacek Anaszewski wrote: > This patch adds DT support for the lps331ap barometer > sensor. > > Signed-off-by: Jacek Anaszewski <j.anaszewski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> > Signed-off-by: Kyungmin Park <kyungmin.park-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> This makes sense to me and looks similar to that in existing bindings hence, Applied to the togreg branch of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git Note I am one of those maintainers who has very limited knowledge of device tree so am basing this decision on the 'it looks like existing mappings' rather than any deep understanding. Jonathan > --- > .../devicetree/bindings/iio/pressure/lps331ap.txt | 41 ++++++++++++++++++++ > drivers/iio/pressure/st_pressure_i2c.c | 11 +++++- > drivers/iio/pressure/st_pressure_spi.c | 11 +++++- > 3 files changed, 61 insertions(+), 2 deletions(-) > create mode 100644 Documentation/devicetree/bindings/iio/pressure/lps331ap.txt > > diff --git a/Documentation/devicetree/bindings/iio/pressure/lps331ap.txt b/Documentation/devicetree/bindings/iio/pressure/lps331ap.txt > new file mode 100644 > index 0000000..e05b45e > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/pressure/lps331ap.txt > @@ -0,0 +1,41 @@ > +* STMicroelectronics LPS331AP barometer sensor > + > +Required properties: > + > + - compatible : should be "st,lps331ap" > + - reg : the I2C address of the barometer > + > +Optional properties: > + > + - drdy-int-pin : redirect DRDY on pin INT1 (1) or pin INT2 (2) (u8) > + - interrupt-parent : phandle to the interrupt map subnode > + - interrupts : interrupt mapping for LPS331AP interrupt sources: > + 2 sources: 0 - data ready, 1 - threshold event > + - irq-map : irq sub-node defining interrupt map > + (all properties listed below are required): > + - #interrupt-cells : should be 1 > + - #address-cells : should be 0 > + - #size-cells : should be 0 > + - interrupt-map : table of entries consisting of three child elements: > + - unit_interrupt_specifier - 0 : data ready, 1 : threshold event > + - interrupt parent phandle > + - parent unit interrupt specifier consisiting of two elements: > + - index of the interrupt within the controller > + - flags : should be 0 > + > +Example: > + > +lps331ap@5d { > + compatible = "st,lps331ap"; > + reg = <0x5d>; > + drdy-int-pin = /bits/ 8 <2>; > + interrupt-parent = <&irq_map>; > + interrupts = <0>, <1>; > + > + irq_map: irq-map { > + #interrupt-cells = <1>; > + #address-cells = <0>; > + #size-cells = <0>; > + interrupt-map = <0 &gpf0 5 0>; > + }; > +}; > diff --git a/drivers/iio/pressure/st_pressure_i2c.c b/drivers/iio/pressure/st_pressure_i2c.c > index 7cebcc7..1683ebe 100644 > --- a/drivers/iio/pressure/st_pressure_i2c.c > +++ b/drivers/iio/pressure/st_pressure_i2c.c > @@ -56,15 +56,24 @@ static int st_press_i2c_remove(struct i2c_client *client) > } > > static const struct i2c_device_id st_press_id_table[] = { > - { LPS331AP_PRESS_DEV_NAME }, > + { "st,lps331ap" }, > {}, > }; > MODULE_DEVICE_TABLE(i2c, st_press_id_table); > > +#ifdef CONFIG_OF > +static const struct of_device_id lps331ap_of_match[] = { > + { .compatible = "st,lps331ap", }, > + { } > +}; > +MODULE_DEVICE_TABLE(of, lps331ap_of_match); > +#endif > + > static struct i2c_driver st_press_driver = { > .driver = { > .owner = THIS_MODULE, > .name = "st-press-i2c", > + .of_match_table = of_match_ptr(lps331ap_of_match), > }, > .probe = st_press_i2c_probe, > .remove = st_press_i2c_remove, > diff --git a/drivers/iio/pressure/st_pressure_spi.c b/drivers/iio/pressure/st_pressure_spi.c > index 17a1490..05c30d6 100644 > --- a/drivers/iio/pressure/st_pressure_spi.c > +++ b/drivers/iio/pressure/st_pressure_spi.c > @@ -55,15 +55,24 @@ static int st_press_spi_remove(struct spi_device *spi) > } > > static const struct spi_device_id st_press_id_table[] = { > - { LPS331AP_PRESS_DEV_NAME }, > + { "st,lps331ap" }, > {}, > }; > MODULE_DEVICE_TABLE(spi, st_press_id_table); > > +#ifdef CONFIG_OF > +static const struct of_device_id lps331ap_of_match[] = { > + { .compatible = "st,lps331ap", }, > + { } > +}; > +MODULE_DEVICE_TABLE(of, lps331ap_of_match); > +#endif > + > static struct spi_driver st_press_driver = { > .driver = { > .owner = THIS_MODULE, > .name = "st-press-spi", > + .of_match_table = of_match_ptr(lps331ap_of_match), > }, > .probe = st_press_spi_probe, > .remove = st_press_spi_remove, > ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <51FE4117.3040404-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>]
* Re: [PATCH v2] iio: lps331ap: Add support for DT [not found] ` <51FE4117.3040404-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> @ 2013-08-04 12:00 ` Jonathan Cameron [not found] ` <51FE4267.2090409-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> 2013-08-04 13:30 ` Lars-Peter Clausen 1 sibling, 1 reply; 7+ messages in thread From: Jonathan Cameron @ 2013-08-04 12:00 UTC (permalink / raw) To: Jacek Anaszewski Cc: linux-iio-u79uwXL29TY76Z2rM5mHXA, denis.ciocca-qxv4g6HH51o, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, l.czerwinski-Sze3O3UU22JBDgjK7y7TUQ, maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8, Kyungmin Park On 08/04/13 12:55, Jonathan Cameron wrote: > On 07/19/13 14:36, Jacek Anaszewski wrote: >> This patch adds DT support for the lps331ap barometer >> sensor. >> >> Signed-off-by: Jacek Anaszewski <j.anaszewski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> >> Signed-off-by: Kyungmin Park <kyungmin.park-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> > This makes sense to me and looks similar to that in existing bindings > hence, > > Applied to the togreg branch of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git Actually I've backed this change out as I've just read a few more emails down my backlog and found a long discussion of it when it got pulled into another patch set. Will review that discussion before making any decisions on this one. Sorry for the confusion. Jonathan > > Note I am one of those maintainers who has very limited knowledge of device > tree so am basing this decision on the 'it looks like existing mappings' rather > than any deep understanding. > > Jonathan >> --- >> .../devicetree/bindings/iio/pressure/lps331ap.txt | 41 ++++++++++++++++++++ >> drivers/iio/pressure/st_pressure_i2c.c | 11 +++++- >> drivers/iio/pressure/st_pressure_spi.c | 11 +++++- >> 3 files changed, 61 insertions(+), 2 deletions(-) >> create mode 100644 Documentation/devicetree/bindings/iio/pressure/lps331ap.txt >> >> diff --git a/Documentation/devicetree/bindings/iio/pressure/lps331ap.txt b/Documentation/devicetree/bindings/iio/pressure/lps331ap.txt >> new file mode 100644 >> index 0000000..e05b45e >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/iio/pressure/lps331ap.txt >> @@ -0,0 +1,41 @@ >> +* STMicroelectronics LPS331AP barometer sensor >> + >> +Required properties: >> + >> + - compatible : should be "st,lps331ap" >> + - reg : the I2C address of the barometer >> + >> +Optional properties: >> + >> + - drdy-int-pin : redirect DRDY on pin INT1 (1) or pin INT2 (2) (u8) >> + - interrupt-parent : phandle to the interrupt map subnode >> + - interrupts : interrupt mapping for LPS331AP interrupt sources: >> + 2 sources: 0 - data ready, 1 - threshold event >> + - irq-map : irq sub-node defining interrupt map >> + (all properties listed below are required): >> + - #interrupt-cells : should be 1 >> + - #address-cells : should be 0 >> + - #size-cells : should be 0 >> + - interrupt-map : table of entries consisting of three child elements: >> + - unit_interrupt_specifier - 0 : data ready, 1 : threshold event >> + - interrupt parent phandle >> + - parent unit interrupt specifier consisiting of two elements: >> + - index of the interrupt within the controller >> + - flags : should be 0 >> + >> +Example: >> + >> +lps331ap@5d { >> + compatible = "st,lps331ap"; >> + reg = <0x5d>; >> + drdy-int-pin = /bits/ 8 <2>; >> + interrupt-parent = <&irq_map>; >> + interrupts = <0>, <1>; >> + >> + irq_map: irq-map { >> + #interrupt-cells = <1>; >> + #address-cells = <0>; >> + #size-cells = <0>; >> + interrupt-map = <0 &gpf0 5 0>; >> + }; >> +}; >> diff --git a/drivers/iio/pressure/st_pressure_i2c.c b/drivers/iio/pressure/st_pressure_i2c.c >> index 7cebcc7..1683ebe 100644 >> --- a/drivers/iio/pressure/st_pressure_i2c.c >> +++ b/drivers/iio/pressure/st_pressure_i2c.c >> @@ -56,15 +56,24 @@ static int st_press_i2c_remove(struct i2c_client *client) >> } >> >> static const struct i2c_device_id st_press_id_table[] = { >> - { LPS331AP_PRESS_DEV_NAME }, >> + { "st,lps331ap" }, >> {}, >> }; >> MODULE_DEVICE_TABLE(i2c, st_press_id_table); >> >> +#ifdef CONFIG_OF >> +static const struct of_device_id lps331ap_of_match[] = { >> + { .compatible = "st,lps331ap", }, >> + { } >> +}; >> +MODULE_DEVICE_TABLE(of, lps331ap_of_match); >> +#endif >> + >> static struct i2c_driver st_press_driver = { >> .driver = { >> .owner = THIS_MODULE, >> .name = "st-press-i2c", >> + .of_match_table = of_match_ptr(lps331ap_of_match), >> }, >> .probe = st_press_i2c_probe, >> .remove = st_press_i2c_remove, >> diff --git a/drivers/iio/pressure/st_pressure_spi.c b/drivers/iio/pressure/st_pressure_spi.c >> index 17a1490..05c30d6 100644 >> --- a/drivers/iio/pressure/st_pressure_spi.c >> +++ b/drivers/iio/pressure/st_pressure_spi.c >> @@ -55,15 +55,24 @@ static int st_press_spi_remove(struct spi_device *spi) >> } >> >> static const struct spi_device_id st_press_id_table[] = { >> - { LPS331AP_PRESS_DEV_NAME }, >> + { "st,lps331ap" }, >> {}, >> }; >> MODULE_DEVICE_TABLE(spi, st_press_id_table); >> >> +#ifdef CONFIG_OF >> +static const struct of_device_id lps331ap_of_match[] = { >> + { .compatible = "st,lps331ap", }, >> + { } >> +}; >> +MODULE_DEVICE_TABLE(of, lps331ap_of_match); >> +#endif >> + >> static struct spi_driver st_press_driver = { >> .driver = { >> .owner = THIS_MODULE, >> .name = "st-press-spi", >> + .of_match_table = of_match_ptr(lps331ap_of_match), >> }, >> .probe = st_press_spi_probe, >> .remove = st_press_spi_remove, >> > -- > To unsubscribe from this list: send the line "unsubscribe linux-iio" 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] 7+ messages in thread
[parent not found: <51FE4267.2090409-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>]
* Re: [PATCH v2] iio: lps331ap: Add support for DT [not found] ` <51FE4267.2090409-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> @ 2013-08-04 12:08 ` Maxime Ripard 2013-08-04 16:22 ` Jonathan Cameron 0 siblings, 1 reply; 7+ messages in thread From: Maxime Ripard @ 2013-08-04 12:08 UTC (permalink / raw) To: Jonathan Cameron Cc: Jacek Anaszewski, linux-iio-u79uwXL29TY76Z2rM5mHXA, denis.ciocca-qxv4g6HH51o, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, l.czerwinski-Sze3O3UU22JBDgjK7y7TUQ, Kyungmin Park [-- Attachment #1: Type: text/plain, Size: 1895 bytes --] Hi Jonathan, On Sun, Aug 04, 2013 at 01:00:39PM +0100, Jonathan Cameron wrote: > On 08/04/13 12:55, Jonathan Cameron wrote: > > On 07/19/13 14:36, Jacek Anaszewski wrote: > >> This patch adds DT support for the lps331ap barometer > >> sensor. > >> > >> Signed-off-by: Jacek Anaszewski <j.anaszewski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> > >> Signed-off-by: Kyungmin Park <kyungmin.park-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> > > This makes sense to me and looks similar to that in existing bindings > > hence, > > > > Applied to the togreg branch of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git > Actually I've backed this change out as I've just read a few more emails down > my backlog and found a long discussion of it when it got pulled into another > patch set. Will review that discussion before making any decisions on this one. Also, a new process begin to emerge, and now, every new bindings should be acked by the new device tree maintainers. I'm not sure the discussion on the exact process has been settled, so that's probably why not all the maintainers are aware of that, but this ACK is (or will be) required for every new binding that comes in, and this should be enforced by all maintainers. The underlying thinking is that DT bindings should be a stable ABI, and as such be properly reviewed, instead of just being looked at by the other maintainers that are often not interested or just don't really know about DT at all. You can see parts of this discussion here: https://lists.ozlabs.org/pipermail/devicetree-discuss/2013-July/038275.html https://lists.ozlabs.org/pipermail/devicetree-discuss/2013-July/038264.html http://lists.infradead.org/pipermail/linux-arm-kernel/2013-July/186420.html Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 836 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2] iio: lps331ap: Add support for DT 2013-08-04 12:08 ` Maxime Ripard @ 2013-08-04 16:22 ` Jonathan Cameron 0 siblings, 0 replies; 7+ messages in thread From: Jonathan Cameron @ 2013-08-04 16:22 UTC (permalink / raw) To: Maxime Ripard Cc: Jacek Anaszewski, linux-iio-u79uwXL29TY76Z2rM5mHXA, denis.ciocca-qxv4g6HH51o, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, l.czerwinski-Sze3O3UU22JBDgjK7y7TUQ, Kyungmin Park On 08/04/13 13:08, Maxime Ripard wrote: > Hi Jonathan, > > On Sun, Aug 04, 2013 at 01:00:39PM +0100, Jonathan Cameron wrote: >> On 08/04/13 12:55, Jonathan Cameron wrote: >>> On 07/19/13 14:36, Jacek Anaszewski wrote: >>>> This patch adds DT support for the lps331ap barometer sensor. >>>> >>>> Signed-off-by: Jacek Anaszewski <j.anaszewski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> Signed-off-by: Kyungmin Park >>>> <kyungmin.park-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> >>> This makes sense to me and looks similar to that in existing bindings hence, >>> >>> Applied to the togreg branch of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git >> Actually I've backed this change out as I've just read a few more emails down my backlog and found a long >> discussion of it when it got pulled into another patch set. Will review that discussion before making any >> decisions on this one. > > Also, a new process begin to emerge, and now, every new bindings should be acked by the new device tree > maintainers. I'm not sure the discussion on the exact process has been settled, so that's probably why not all the > maintainers are aware of that, but this ACK is (or will be) required for every new binding that comes in, and this > should be enforced by all maintainers. > > The underlying thinking is that DT bindings should be a stable ABI, and as such be properly reviewed, instead of > just being looked at by the other maintainers that are often not interested or just don't really know about DT at > all. > > You can see parts of this discussion here: > https://lists.ozlabs.org/pipermail/devicetree-discuss/2013-July/038275.html > https://lists.ozlabs.org/pipermail/devicetree-discuss/2013-July/038264.html > http://lists.infradead.org/pipermail/linux-arm-kernel/2013-July/186420.html > Thanks for the heads up. I'd picked up on this a little via LWN. Hopefully the process will become clear shortly. Jonathan ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2] iio: lps331ap: Add support for DT [not found] ` <51FE4117.3040404-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> 2013-08-04 12:00 ` Jonathan Cameron @ 2013-08-04 13:30 ` Lars-Peter Clausen 1 sibling, 0 replies; 7+ messages in thread From: Lars-Peter Clausen @ 2013-08-04 13:30 UTC (permalink / raw) To: Jonathan Cameron Cc: Jacek Anaszewski, linux-iio-u79uwXL29TY76Z2rM5mHXA, denis.ciocca-qxv4g6HH51o, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, l.czerwinski-Sze3O3UU22JBDgjK7y7TUQ, maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8, Kyungmin Park On 08/04/2013 01:55 PM, Jonathan Cameron wrote: > On 07/19/13 14:36, Jacek Anaszewski wrote: >> This patch adds DT support for the lps331ap barometer >> sensor. >> >> Signed-off-by: Jacek Anaszewski <j.anaszewski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> >> Signed-off-by: Kyungmin Park <kyungmin.park-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> > This makes sense to me and looks similar to that in existing bindings > hence, > > Applied to the togreg branch of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git > > Note I am one of those maintainers who has very limited knowledge of device > tree so am basing this decision on the 'it looks like existing mappings' rather > than any deep understanding. The bindings are not OK. [...] >> + - drdy-int-pin : redirect DRDY on pin INT1 (1) or pin INT2 (2) (u8) This is a vendor specific property, so it needs a vendor prefix. Also abbreviations are kind of frowned upon for dt property names. So 'st,data-ready-interrupt-pin' is probably a better name. >> + - interrupt-parent : phandle to the interrupt map subnode >> + - interrupts : interrupt mapping for LPS331AP interrupt sources: >> + 2 sources: 0 - data ready, 1 - threshold event >> + - irq-map : irq sub-node defining interrupt map >> + (all properties listed below are required): >> + - #interrupt-cells : should be 1 >> + - #address-cells : should be 0 >> + - #size-cells : should be 0 >> + - interrupt-map : table of entries consisting of three child elements: >> + - unit_interrupt_specifier - 0 : data ready, 1 : threshold event >> + - interrupt parent phandle >> + - parent unit interrupt specifier consisiting of two elements: >> + - index of the interrupt within the controller [...] ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2013-08-04 16:22 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-07-19 13:36 [PATCH v2] iio:lps331ap: Add support for DT Jacek Anaszewski [not found] ` <1374240981-13560-1-git-send-email-j.anaszewski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> 2013-07-19 13:36 ` [PATCH v2] iio: lps331ap: " Jacek Anaszewski [not found] ` <1374240981-13560-2-git-send-email-j.anaszewski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> 2013-08-04 11:55 ` Jonathan Cameron [not found] ` <51FE4117.3040404-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> 2013-08-04 12:00 ` Jonathan Cameron [not found] ` <51FE4267.2090409-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> 2013-08-04 12:08 ` Maxime Ripard 2013-08-04 16:22 ` Jonathan Cameron 2013-08-04 13:30 ` Lars-Peter Clausen
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).