Skip to contentSkip to conversation

dt-bindings: mma8452: Re-word 'interrupt-names' description

PATCH In review Andrey Smirnov 3 participants 4 messages Oct 22, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: mma8452: Re-word 'interrupt-names' description

Current wording in the binding documentation doesn't make it 100% clear that only one of "INT1" and "INT2" will ever be used by the driver and that specifying both has no advantages. Re-word it to make this aspect a bit more explicit.

Cc Chris Healy <[email protected]>
Cc Jonathan Cameron <[email protected]>
Cc Hartmut Knaack <[email protected]>
Cc Lars-Peter Clausen <[email protected]>
Cc Peter Meerwald-Stadler <[email protected]>
---
 Documentation/devicetree/bindings/iio/accel/mma8452.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/iio/accel/mma8452.txt +1 -1
index e132394375a1..b27b6bee9eb6 100644
@@ -17,7 +17,7 @@ Optional properties:
 
   - interrupts: interrupt mapping for GPIO IRQ
 
-  - interrupt-names: should contain "INT1" and/or "INT2", the accelerometer's
+  - interrupt-names: should contain "INT1" or "INT2", the accelerometer's
 		     interrupt line in use.
 
   - vdd-supply: phandle to the regulator that provides vdd power to the accelerometer.
Signature · 1 line
2.21.0
Acked-by on v1 1/1
#1 lore raw
Quoted 24 lines · Andrey Smirnov

Current wording in the binding documentation doesn't make it 100% clear that only one of "INT1" and "INT2" will ever be used by the driver and that specifying both has no advantages. Re-word it to make this aspect a bit more explicit.

Cc Chris Healy <[email protected]>
Cc Jonathan Cameron <[email protected]>
Cc Hartmut Knaack <[email protected]>
Cc Lars-Peter Clausen <[email protected]>
Cc Peter Meerwald-Stadler <[email protected]>
---
 Documentation/devicetree/bindings/iio/accel/mma8452.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/iio/accel/mma8452.txt +0 -0
index e132394375a1..b27b6bee9eb6 100644

Documentation/devicetree/bindings/iio/accel/mma8452.txt Optional properties: · line 23

Quoted 8 lines
Documentation/devicetree/bindings/iio/accel/mma8452.txt +1 -1
@@ -17,7 +17,7 @@ Optional properties:
 
   - interrupts: interrupt mapping for GPIO IRQ
 
-  - interrupt-names: should contain "INT1" and/or "INT2", the accelerometer's
+  - interrupt-names: should contain "INT1" or "INT2", the accelerometer's
 		     interrupt line in use.
 
   - vdd-supply: phandle to the regulator that provides vdd power to the accelerometer.

thanks,

martin

maintainer
#2 lore raw
Quoted 5 lines · On Tue, 22 Oct 2019 10:43:09 +0200 Martin Kepplinger <[email protected]> wrote:
Quoted 4 lines · Andrey Smirnov

Current wording in the binding documentation doesn't make it 100% clear that only one of "INT1" and "INT2" will ever be used by the driver and that specifying both has no advantages. Re-word it to make this aspect a bit more explicit.

From a quick glance at the datasheet, it appears that the hardware is capable of routing different interrupts to different pins, even if the driver does not do so.

CTRL_REG5 has 6 different bits to set whether particular blocks have their interrupt routed to INT1 or INT2, so it appears to be possible to send some each way.

A binding is for the hardware not the driver, so if I'm right about this the current text is correct and should be left alone.

Thanks,

Jonathan

Quoted 35 lines
Quoted 20 lines
Cc Chris Healy <[email protected]>
Cc Jonathan Cameron <[email protected]>
Cc Hartmut Knaack <[email protected]>
Cc Lars-Peter Clausen <[email protected]>
Cc Peter Meerwald-Stadler <[email protected]>
---
 Documentation/devicetree/bindings/iio/accel/mma8452.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/iio/accel/mma8452.txt +0 -0
index e132394375a1..b27b6bee9eb6 100644

Documentation/devicetree/bindings/iio/accel/mma8452.txt Optional properties: · line 23

Quoted 8 lines
Documentation/devicetree/bindings/iio/accel/mma8452.txt +1 -1
@@ -17,7 +17,7 @@ Optional properties:
 
   - interrupts: interrupt mapping for GPIO IRQ
 
-  - interrupt-names: should contain "INT1" and/or "INT2", the accelerometer's
+  - interrupt-names: should contain "INT1" or "INT2", the accelerometer's
 		     interrupt line in use.
 
   - vdd-supply: phandle to the regulator that provides vdd power to the accelerometer.

thanks,

martin

#3 lore raw
Quoted 13 lines · Jonathan Cameron
Quoted 5 lines · On Tue, 22 Oct 2019 10:43:09 +0200 Martin Kepplinger <[email protected]> wrote:
Quoted 4 lines · Andrey Smirnov

Current wording in the binding documentation doesn't make it 100% clear that only one of "INT1" and "INT2" will ever be used by the driver and that specifying both has no advantages. Re-word it to make this aspect a bit more explicit.

From a quick glance at the datasheet, it appears that the hardware is capable of routing different interrupts to different pins, even if the driver does not do so.

Quoted 6 lines

CTRL_REG5 has 6 different bits to set whether particular blocks have their interrupt routed to INT1 or INT2, so it appears to be possible to send some each way.

A binding is for the hardware not the driver, so if I'm right about this the current text is correct and should be left alone.

right, please ignore my "acked-by". Thanks a lot for taking a look.

martin