[v1,2/2] dt-bindings: iio: accel: kxcjk1013: Document mount-matrix property
diff mbox series

Message ID 20200112203301.30235-2-digetx@gmail.com
State New
Headers show
Series
  • [v1,1/2] iio: accel: kxcjk1013: Support orientation matrix
Related show

Commit Message

Dmitry Osipenko Jan. 12, 2020, 8:33 p.m. UTC
The generic IIO mount-matrix property conveys physical orientation of the
hardware chip.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
---
 .../devicetree/bindings/iio/accel/kionix,kxcjk1013.txt     | 7 +++++++
 1 file changed, 7 insertions(+)

Comments

Rob Herring Jan. 15, 2020, 3:39 p.m. UTC | #1
On Sun, 12 Jan 2020 23:33:01 +0300, Dmitry Osipenko wrote:
> The generic IIO mount-matrix property conveys physical orientation of the
> hardware chip.
> 
> Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
> ---
>  .../devicetree/bindings/iio/accel/kionix,kxcjk1013.txt     | 7 +++++++
>  1 file changed, 7 insertions(+)
> 

Acked-by: Rob Herring <robh@kernel.org>
Dmitry Osipenko Jan. 18, 2020, 2:42 a.m. UTC | #2
15.01.2020 18:39, Rob Herring пишет:
> On Sun, 12 Jan 2020 23:33:01 +0300, Dmitry Osipenko wrote:
>> The generic IIO mount-matrix property conveys physical orientation of the
>> hardware chip.
>>
>> Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
>> ---
>>  .../devicetree/bindings/iio/accel/kionix,kxcjk1013.txt     | 7 +++++++
>>  1 file changed, 7 insertions(+)
>>
> 
> Acked-by: Rob Herring <robh@kernel.org>
> 

Thanks!
Jonathan Cameron Jan. 18, 2020, 2:28 p.m. UTC | #3
On Sat, 18 Jan 2020 05:42:01 +0300
Dmitry Osipenko <digetx@gmail.com> wrote:

> 15.01.2020 18:39, Rob Herring пишет:
> > On Sun, 12 Jan 2020 23:33:01 +0300, Dmitry Osipenko wrote:  
> >> The generic IIO mount-matrix property conveys physical orientation of the
> >> hardware chip.
> >>
> >> Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
> >> ---
> >>  .../devicetree/bindings/iio/accel/kionix,kxcjk1013.txt     | 7 +++++++
> >>  1 file changed, 7 insertions(+)
> >>  
> > 
> > Acked-by: Rob Herring <robh@kernel.org>
> >   
> 
> Thanks!
Applied.

thanks,

Jonathan

Patch
diff mbox series

diff --git a/Documentation/devicetree/bindings/iio/accel/kionix,kxcjk1013.txt b/Documentation/devicetree/bindings/iio/accel/kionix,kxcjk1013.txt
index eb76a02e2a82..ce950e162d5d 100644
--- a/Documentation/devicetree/bindings/iio/accel/kionix,kxcjk1013.txt
+++ b/Documentation/devicetree/bindings/iio/accel/kionix,kxcjk1013.txt
@@ -9,9 +9,16 @@  Required properties:
     "kionix,kxtf9"
  - reg: i2c slave address
 
+Optional properties:
+
+  - mount-matrix: an optional 3x3 mounting rotation matrix
+
 Example:
 
 kxtf9@f {
 	compatible = "kionix,kxtf9";
 	reg = <0x0F>;
+	mount-matrix =	"0", "1", "0",
+			"1", "0", "0",
+			"0", "0", "1";
 };