iio:as3935: Add DT binding docs for AS3935 driver
Subsystems (2)
PATCH v4 1/2 iio:as3935: Add DT binding docs for AS3935 driver
Document compatible string, required and optional DT properties for AS3935 chipset driver.
--- .../devicetree/bindings/iio/proximity/as3935.txt | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/proximity/as3935.txt
Documentation/devicetree/bindings/iio/proximity/as3935.txt new file +25 -0
@@ -0,0 +1,25 @@ +Austrian Microsystems AS3935 Franklin lightning sensor device driver + +Required properties: + - compatible: must be "ams,as3935" + - reg: SPI chip select number for the device + - spi-cpha: SPI Mode 1 + - interrupt-parent : should be the phandle for the interrupt controller + - interrupts : interrupt mapping for GPIO IRQ + +Optional properties: + - ams,tune-cap: Calibration tuning capacitor stepping value 0 - 15. + Range of 0 to 120 pF, 8pF steps. This will require using the + calibration data from the manufacturer. + + +Example: + +as3935@0 { + compatible = "ams,as3935"; + reg = <0>; + spi-cpha; + interrupt-parent = <&gpio1>; + interrupts = <16 1>; + ams,tune-cap = /bits/ 8 <10>; +};
Signature · 1 line
1.8.3.2
PATCH v4 2/2 iio: Add AS3935 lightning sensor support
AS3935 chipset can detect lightning strikes and reports those back as events and the estimated distance to the storm.
--- .../ABI/testing/sysfs-bus-iio-proximity-as3935 | 18 + drivers/iio/Kconfig | 1 + drivers/iio/Makefile | 1 + drivers/iio/proximity/Kconfig | 19 + drivers/iio/proximity/Makefile | 6 + drivers/iio/proximity/as3935.c | 437 +++++++++++++++++++++ 6 files changed, 482 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-bus-iio-proximity-as3935 create mode 100644 drivers/iio/proximity/Kconfig create mode 100644 drivers/iio/proximity/Makefile create mode 100644 drivers/iio/proximity/as3935.c
Documentation/ABI/testing/sysfs-bus-iio-proximity-as3935 new file +18 -0
@@ -0,0 +1,18 @@ +What /sys/bus/iio/devices/iio:deviceX/in_proximity_raw +Date: January 2014 +KernelVersion: 3.15 +Contact: Matt Ranostay <[email protected]> +Description: + Get the current distance in kilometers of storm + 1 = storm overhead + 1-40 = distance in kilometers + 63 = out of range + +What /sys/bus/iio/devices/iio:deviceX/gain_boost +Date: January 2014 +KernelVersion: 3.15 +Contact: Matt Ranostay <[email protected]> +Description: + Show or set the gain boost of the amp, from 0-31 range. + 18 = indoors (default) + 14 = outdoors
drivers/iio/Kconfig +1 -0
@@ -74,6 +74,7 @@ if IIO_TRIGGER source "drivers/iio/trigger/Kconfig" endif #IIO_TRIGGER source "drivers/iio/pressure/Kconfig" +source "drivers/iio/proximity/Kconfig" source "drivers/iio/temperature/Kconfig" endif # IIO
drivers/iio/Makefile +1 -0
@@ -24,5 +24,6 @@ obj-y += light/ obj-y += magnetometer/ obj-y += orientation/ obj-y += pressure/ +obj-y += proximity/ obj-y += temperature/ obj-y += trigger/
drivers/iio/proximity/Kconfig new file +19 -0
@@ -0,0 +1,19 @@ +# +# Proximity sensors +# + +menu "Lightning sensors" + +config AS3935 + tristate "AS3935 Franklin lightning sensor" + select IIO_BUFFER + select IIO_TRIGGERED_BUFFER + depends on SPI + help + Say Y here to build SPI interface support for the Austrian + Microsystems AS3935 lightning detection sensor. + + To compile this driver as a module, choose M here: the + module will be called as3935 + +endmenu
drivers/iio/proximity/Makefile new file +6 -0
@@ -0,0 +1,6 @@ +# +# Makefile for IIO proximity sensors +# + +# When adding new entries keep the list in alphabetical order +obj-$(CONFIG_AS3935) += as3935.o
drivers/iio/proximity/as3935.c new file +437 -0
437 lines not on this page · raw message
Signature · 1 line
1.8.3.2
Quoted 15 lines · Matt Ranostay Matt Ranostay
Document compatible string, required and optional DT properties for AS3935 chipset driver.
Signed-off-by Matt Ranostay <[email protected]>--- .../devicetree/bindings/iio/proximity/as3935.txt | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/proximity/as3935.txtDocumentation/devicetree/bindings/iio/proximity/as3935.txt new file +0
-0
Documentation/devicetree/bindings/iio/proximity/as3935.txt line 4
Quoted 4 lines
Documentation/devicetree/bindings/iio/proximity/as3935.txt new file +4
-0@@ -0,0 +1,25 @@ +Austrian Microsystems AS3935 Franklin lightning sensor device driver + +Required properties: + - compatible: must be "ams,as3935"
Change this to "amstaos,as3935"
amstaos (AMS bought Taos) is already a registered vendor prefix in vendor-prefixes.txt
Documentation/devicetree/bindings/iio/proximity/as3935.txt line 6
Quoted 2 lines
Documentation/devicetree/bindings/iio/proximity/as3935.txt new file +2
-0+ - reg: SPI chip select number for the device + - spi-cpha: SPI Mode 1
When using generic binding properties, please reference the binding being used. Like:
- spi-cpha: SPI Mode 1. Refer to spi/spi-bus.txt for generic SPI slave node bindings.
Documentation/devicetree/bindings/iio/proximity/as3935.txt line 8
Quoted 2 lines
Documentation/devicetree/bindings/iio/proximity/as3935.txt new file +2
-0+ - interrupt-parent : should be the phandle for the interrupt controller + - interrupts : interrupt mapping for GPIO IRQ
Refer to interrupt-controller/interrupts.txt for generic interrupt client node bindings.
Quoted 6 lines
Documentation/devicetree/bindings/iio/proximity/as3935.txt new file +6
-0+ +Optional properties: + - ams,tune-cap: Calibration tuning capacitor stepping value 0 - 15. + Range of 0 to 120 pF, 8pF steps. This will require using the + calibration data from the manufacturer. +
Documentation/devicetree/bindings/iio/proximity/as3935.txt line 24
Quoted 10 lines
Documentation/devicetree/bindings/iio/proximity/as3935.txt new file +10
-0+ +Example: + +as3935@0 { + compatible = "ams,as3935"; + reg = <0>; + spi-cpha; + interrupt-parent = <&gpio1>; + interrupts = <16 1>; + ams,tune-cap = /bits/ 8 <10>;
What is this? Why not just ams,tune-cap = <10>; ?
It's a value between 0-15, right?
-Matt
Quoted 26 lines · Matt Porter
Quoted 15 lines · Matt Ranostay Matt Ranostay
Document compatible string, required and optional DT properties for AS3935 chipset driver.
Signed-off-by Matt Ranostay <[email protected]>--- .../devicetree/bindings/iio/proximity/as3935.txt | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/proximity/as3935.txtDocumentation/devicetree/bindings/iio/proximity/as3935.txt new file +0
-0Documentation/devicetree/bindings/iio/proximity/as3935.txt line 4
Quoted 4 lines
Documentation/devicetree/bindings/iio/proximity/as3935.txt new file +4
-0@@ -0,0 +1,25 @@ +Austrian Microsystems AS3935 Franklin lightning sensor device driver + +Required properties: + - compatible: must be "ams,as3935"Change this to "amstaos,as3935"
amstaos (AMS bought Taos) is already a registered vendor prefix in vendor-prefixes.txt
Quoted 9 lines
Documentation/devicetree/bindings/iio/proximity/as3935.txt line 6
Quoted 2 lines
Documentation/devicetree/bindings/iio/proximity/as3935.txt new file +2
-0+ - reg: SPI chip select number for the device + - spi-cpha: SPI Mode 1When using generic binding properties, please reference the binding being used. Like:
- spi-cpha: SPI Mode 1. Refer to
spi/spi-bus.txtfor generic SPI slave node bindings.
Noted.
Quoted 6 lines
Documentation/devicetree/bindings/iio/proximity/as3935.txt line 8
Quoted 2 lines
Documentation/devicetree/bindings/iio/proximity/as3935.txt new file +2
-0+ - interrupt-parent : should be the phandle for the interrupt controller + - interrupts : interrupt mapping for GPIO IRQRefer to
interrupt-controller/interrupts.txtfor generic interrupt client node bindings.
Noted.
Quoted 19 lines
Quoted 6 lines
Documentation/devicetree/bindings/iio/proximity/as3935.txt new file +6
-0+ +Optional properties: + - ams,tune-cap: Calibration tuning capacitor stepping value 0 - 15. + Range of 0 to 120 pF, 8pF steps. This will require using the + calibration data from the manufacturer. +Documentation/devicetree/bindings/iio/proximity/as3935.txt line 24
Quoted 10 lines
Documentation/devicetree/bindings/iio/proximity/as3935.txt new file +10
-0+ +Example: + +as3935@0 { + compatible = "ams,as3935"; + reg = <0>; + spi-cpha; + interrupt-parent = <&gpio1>; + interrupts = <16 1>; + ams,tune-cap = /bits/ 8 <10>;What is this? Why not just ams,tune-cap = <10>; ?
Quoted 1 line
It's a value between 0-15, right?
Correct but it is using of_property_read_u8() so that requires the /bits/ statement.
Should this just be a u32 value?
Quoted 2 lines
-Matt
Quoted 65 lines · Matt Ranostay Matt Ranostay
Quoted 26 lines · Matt Porter
Quoted 15 lines · Matt Ranostay Matt Ranostay
Document compatible string, required and optional DT properties for AS3935 chipset driver.
Signed-off-by Matt Ranostay <[email protected]>--- .../devicetree/bindings/iio/proximity/as3935.txt | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/proximity/as3935.txtDocumentation/devicetree/bindings/iio/proximity/as3935.txt new file +0
-0Documentation/devicetree/bindings/iio/proximity/as3935.txt line 4
Quoted 4 lines
Documentation/devicetree/bindings/iio/proximity/as3935.txt new file +4
-0@@ -0,0 +1,25 @@ +Austrian Microsystems AS3935 Franklin lightning sensor device driver + +Required properties: + - compatible: must be "ams,as3935"Change this to "amstaos,as3935"
amstaos (AMS bought Taos) is already a registered vendor prefix in vendor-prefixes.txt
Quoted 9 lines
Documentation/devicetree/bindings/iio/proximity/as3935.txt line 6
Quoted 2 lines
Documentation/devicetree/bindings/iio/proximity/as3935.txt new file +2
-0+ - reg: SPI chip select number for the device + - spi-cpha: SPI Mode 1When using generic binding properties, please reference the binding being used. Like:
- spi-cpha: SPI Mode 1. Refer to
spi/spi-bus.txtfor generic SPI slave node bindings.Noted.
Quoted 6 lines
Documentation/devicetree/bindings/iio/proximity/as3935.txt line 8
Quoted 2 lines
Documentation/devicetree/bindings/iio/proximity/as3935.txt new file +2
-0+ - interrupt-parent : should be the phandle for the interrupt controller + - interrupts : interrupt mapping for GPIO IRQRefer to
interrupt-controller/interrupts.txtfor generic interrupt client node bindings.Noted.
Quoted 19 lines
Quoted 6 lines
Documentation/devicetree/bindings/iio/proximity/as3935.txt new file +6
-0+ +Optional properties: + - ams,tune-cap: Calibration tuning capacitor stepping value 0 - 15. + Range of 0 to 120 pF, 8pF steps. This will require using the + calibration data from the manufacturer. +Documentation/devicetree/bindings/iio/proximity/as3935.txt line 24
Quoted 10 lines
Documentation/devicetree/bindings/iio/proximity/as3935.txt new file +10
-0+ +Example: + +as3935@0 { + compatible = "ams,as3935"; + reg = <0>; + spi-cpha; + interrupt-parent = <&gpio1>; + interrupts = <16 1>; + ams,tune-cap = /bits/ 8 <10>;What is this? Why not just ams,tune-cap = <10>; ?
Quoted 5 lines
Quoted 1 line
It's a value between 0-15, right?
Correct but it is using
of_property_read_u8()so that requires the /bits/ statement.
Should this just be a u32 value?
Do you really need a u8? If not just read_u32() into an int and keep this syntax simple.
-Matt
Quoted 66 lines · Matt Porter
Quoted 65 lines · Matt Ranostay Matt Ranostay
Quoted 26 lines · Matt Porter
Quoted 15 lines · Matt Ranostay Matt Ranostay
Document compatible string, required and optional DT properties for AS3935 chipset driver.
Signed-off-by Matt Ranostay <[email protected]>--- .../devicetree/bindings/iio/proximity/as3935.txt | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/proximity/as3935.txtDocumentation/devicetree/bindings/iio/proximity/as3935.txt new file +0
-0Documentation/devicetree/bindings/iio/proximity/as3935.txt line 4
Quoted 4 lines
Documentation/devicetree/bindings/iio/proximity/as3935.txt new file +4
-0@@ -0,0 +1,25 @@ +Austrian Microsystems AS3935 Franklin lightning sensor device driver + +Required properties: + - compatible: must be "ams,as3935"Change this to "amstaos,as3935"
amstaos (AMS bought Taos) is already a registered vendor prefix in vendor-prefixes.txt
Quoted 9 lines
Documentation/devicetree/bindings/iio/proximity/as3935.txt line 6
Quoted 2 lines
Documentation/devicetree/bindings/iio/proximity/as3935.txt new file +2
-0+ - reg: SPI chip select number for the device + - spi-cpha: SPI Mode 1When using generic binding properties, please reference the binding being used. Like:
- spi-cpha: SPI Mode 1. Refer to
spi/spi-bus.txtfor generic SPI slave node bindings.Noted.
Quoted 6 lines
Documentation/devicetree/bindings/iio/proximity/as3935.txt line 8
Quoted 2 lines
Documentation/devicetree/bindings/iio/proximity/as3935.txt new file +2
-0+ - interrupt-parent : should be the phandle for the interrupt controller + - interrupts : interrupt mapping for GPIO IRQRefer to
interrupt-controller/interrupts.txtfor generic interrupt client node bindings.Noted.
Quoted 19 lines
Quoted 6 lines
Documentation/devicetree/bindings/iio/proximity/as3935.txt new file +6
-0+ +Optional properties: + - ams,tune-cap: Calibration tuning capacitor stepping value 0 - 15. + Range of 0 to 120 pF, 8pF steps. This will require using the + calibration data from the manufacturer. +Documentation/devicetree/bindings/iio/proximity/as3935.txt line 24
Quoted 10 lines
Documentation/devicetree/bindings/iio/proximity/as3935.txt new file +10
-0+ +Example: + +as3935@0 { + compatible = "ams,as3935"; + reg = <0>; + spi-cpha; + interrupt-parent = <&gpio1>; + interrupts = <16 1>; + ams,tune-cap = /bits/ 8 <10>;What is this? Why not just ams,tune-cap = <10>; ?
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
It's a value between 0-15, right?
Correct but it is using
of_property_read_u8()so that requires the /bits/ statement.
Should this just be a u32 value?Do you really need a u8? If not just
read_u32()into an int and keep this syntax simple.
Just me different it seems :P. Will fix in next version waiting for Peter's and Jonathan's input on the rest of the code first.
Quoted 2 lines
-Matt
Jonathan Cameron
maintainerQuoted 28 lines · Matt Porter
Quoted 6 lines · Matt Ranostay Matt Ranostay
Document compatible string, required and optional DT properties for AS3935 chipset driver.
Signed-off-by Matt Ranostay <[email protected]>--- .../devicetree/bindings/iio/proximity/as3935.txt | 25++++++++++++++++++++++
Quoted 2 lines
1 file changed, 25 insertions(+) create mode 100644
Documentation/devicetree/bindings/iio/proximity/as3935.txtQuoted 2 lines
diff --git
a/Documentation/devicetree/bindings/iio/proximity/as3935.txtb/Documentation/devicetree/bindings/iio/proximity/as3935.txtDocumentation/devicetree/bindings/iio/proximity/as3935.txt line 4
Quoted 9 lines
new file mode 100644
index 0000000..7e117cdDocumentation/devicetree/bindings/iio/proximity/as3935.txt new file +4
-0@@ -0,0 +1,25 @@ +Austrian Microsystems AS3935 Franklin lightning sensor device driver + +Required properties: + - compatible: must be "ams,as3935"Change this to "amstaos,as3935"
Quoted 2 lines
amstaos (AMS bought Taos) is already a registered vendor prefix in vendor-prefixes.txt
It is but has a rather separate presence and is not where people expect to find non light
sensor stuff from ams. I personally would go for a new vendor prefix and stick with ams.
Quoted 43 lines
Documentation/devicetree/bindings/iio/proximity/as3935.txt line 6
Quoted 3 lines
Documentation/devicetree/bindings/iio/proximity/as3935.txt new file +2
-0+ - reg: SPI chip select number for the device + - spi-cpha: SPI Mode 1When using generic binding properties, please reference the binding being used. Like:
- spi-cpha: SPI Mode 1. Refer to
spi/spi-bus.txtfor generic SPI slave node bindings.Documentation/devicetree/bindings/iio/proximity/as3935.txt line 7
Quoted 1 line
Documentation/devicetree/bindings/iio/proximity/as3935.txt new file +1
-0+ - interrupt-parent : should be the phandle for the interruptcontroller
Documentation/devicetree/bindings/iio/proximity/as3935.txt line 8
Quoted 1 line
Documentation/devicetree/bindings/iio/proximity/as3935.txt new file +1
-0+ - interrupts : interrupt mapping for GPIO IRQRefer to
interrupt-controller/interrupts.txtfor generic interrupt client node bindings.Quoted 6 lines
Documentation/devicetree/bindings/iio/proximity/as3935.txt new file +6
-0+ +Optional properties: + - ams,tune-cap: Calibration tuning capacitor stepping value 0 - 15. + Range of 0 to 120 pF, 8pF steps. This will require using the + calibration data from the manufacturer. +Documentation/devicetree/bindings/iio/proximity/as3935.txt line 24
Quoted 10 lines
Documentation/devicetree/bindings/iio/proximity/as3935.txt new file +10
-0+ +Example: + +as3935@0 { + compatible = "ams,as3935"; + reg = <0>; + spi-cpha; + interrupt-parent = <&gpio1>; + interrupts = <16 1>; + ams,tune-cap = /bits/ 8 <10>;What is this? Why not just ams,tune-cap = <10>; ?
It's a value between 0-15, right?
-Matt
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 1 line
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
Quoted 31 lines · Jonathan Cameron
Quoted 28 lines · Matt Porter
Quoted 6 lines · Matt Ranostay Matt Ranostay
Document compatible string, required and optional DT properties for AS3935 chipset driver.
Signed-off-by Matt Ranostay <[email protected]>--- .../devicetree/bindings/iio/proximity/as3935.txt | 25++++++++++++++++++++++
Quoted 2 lines
1 file changed, 25 insertions(+) create mode 100644
Documentation/devicetree/bindings/iio/proximity/as3935.txtQuoted 2 lines
diff --git
a/Documentation/devicetree/bindings/iio/proximity/as3935.txtb/Documentation/devicetree/bindings/iio/proximity/as3935.txtDocumentation/devicetree/bindings/iio/proximity/as3935.txt line 4
Quoted 9 lines
new file mode 100644
index 0000000..7e117cdDocumentation/devicetree/bindings/iio/proximity/as3935.txt new file +4
-0@@ -0,0 +1,25 @@ +Austrian Microsystems AS3935 Franklin lightning sensor device driver + +Required properties: + - compatible: must be "ams,as3935"Change this to "amstaos,as3935"
Quoted 6 lines
Quoted 2 lines
amstaos (AMS bought Taos) is already a registered vendor prefix in vendor-prefixes.txt
It is but has a rather separate presence and is not where people expect to find non light
sensor stuff from ams. I personally would go for a new vendor prefix and stick with ams.
So should I add to vendor-prefixes.txt as well? or not?
Quoted 46 lines
Quoted 36 lines
Documentation/devicetree/bindings/iio/proximity/as3935.txt line 6
Quoted 3 lines
Documentation/devicetree/bindings/iio/proximity/as3935.txt new file +2
-0+ - reg: SPI chip select number for the device + - spi-cpha: SPI Mode 1When using generic binding properties, please reference the binding being used. Like:
- spi-cpha: SPI Mode 1. Refer to
spi/spi-bus.txtfor generic SPI slave node bindings.Documentation/devicetree/bindings/iio/proximity/as3935.txt line 7
Quoted 1 line
Documentation/devicetree/bindings/iio/proximity/as3935.txt new file +1
-0+ - interrupt-parent : should be the phandle for the interruptcontroller
Documentation/devicetree/bindings/iio/proximity/as3935.txt line 8
Quoted 1 line
Documentation/devicetree/bindings/iio/proximity/as3935.txt new file +1
-0+ - interrupts : interrupt mapping for GPIO IRQRefer to
interrupt-controller/interrupts.txtfor generic interrupt client node bindings.Quoted 6 lines
Documentation/devicetree/bindings/iio/proximity/as3935.txt new file +6
-0+ +Optional properties: + - ams,tune-cap: Calibration tuning capacitor stepping value 0 - 15. + Range of 0 to 120 pF, 8pF steps. This will require using the + calibration data from the manufacturer. +Documentation/devicetree/bindings/iio/proximity/as3935.txt line 24
Quoted 10 lines
Documentation/devicetree/bindings/iio/proximity/as3935.txt new file +10
-0+ +Example: + +as3935@0 { + compatible = "ams,as3935"; + reg = <0>; + spi-cpha; + interrupt-parent = <&gpio1>; + interrupts = <16 1>; + ams,tune-cap = /bits/ 8 <10>;What is this? Why not just ams,tune-cap = <10>; ?
Quoted 7 lines
It's a value between 0-15, right?
-Matt
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
Jonathan Cameron
maintainerQuoted 38 lines · Matt Ranostay
Quoted 3 lines · Jonathan Cameron
On February 5, 2014 4:43:35 AM GMT+00:00, Matt Porter
Quoted 14 lines · <[email protected]> wrote:
Quoted 14 lines
Quoted 6 lines · Matt Ranostay Matt Ranostay
Document compatible string, required and optional DT properties for AS3935 chipset driver.
Signed-off-by Matt Ranostay <[email protected]>--- .../devicetree/bindings/iio/proximity/as3935.txt | 25++++++++++++++++++++++
Quoted 2 lines
1 file changed, 25 insertions(+) create mode 100644
Documentation/devicetree/bindings/iio/proximity/as3935.txtQuoted 2 lines
diff --git
Quoted 8 lines
Quoted 8 lines
a/Documentation/devicetree/bindings/iio/proximity/as3935.txtb/Documentation/devicetree/bindings/iio/proximity/as3935.txtDocumentation/devicetree/bindings/iio/proximity/as3935.txt line 1
Quoted 6 lines
new file mode 100644
index 0000000..7e117cdDocumentation/devicetree/bindings/iio/proximity/as3935.txt new file +1
-0@@ -0,0 +1,25 @@ +Austrian Microsystems AS3935 Franklin lightning sensor devicedriver
Quoted 9 lines
Quoted 8 lines
Documentation/devicetree/bindings/iio/proximity/as3935.txt line 4
Quoted 3 lines
Documentation/devicetree/bindings/iio/proximity/as3935.txt new file +3
-0+ +Required properties: + - compatible: must be "ams,as3935"Change this to "amstaos,as3935"
amstaos (AMS bought Taos) is already a registered vendor prefix in vendor-prefixes.txt
Quoted 7 lines
Quoted 1 line
It is but has a rather separate presence and is not where people
expect to find non light
Quoted 1 line
sensor stuff from ams. I personally would go for a new vendor prefix
and stick with ams.
Quoted 1 line
So should I add to vendor-prefixes.txt as well? or not?
Yes. All vendor prefixes should be in there
Quoted 54 lines
Quoted 9 lines
Quoted 9 lines
Documentation/devicetree/bindings/iio/proximity/as3935.txt line 6
Quoted 4 lines
Documentation/devicetree/bindings/iio/proximity/as3935.txt new file +2
-0+ - reg: SPI chip select number for the device + - spi-cpha: SPI Mode 1When using generic binding properties, please reference the binding being used. Like:
- spi-cpha: SPI Mode 1. Refer to
spi/spi-bus.txtfor genericSPI
Quoted 4 lines
Quoted 4 lines
slave node bindings.
Documentation/devicetree/bindings/iio/proximity/as3935.txt line 7
Quoted 1 line
Documentation/devicetree/bindings/iio/proximity/as3935.txt new file +1
-0+ - interrupt-parent : should be the phandle for the interruptcontroller
Quoted 8 lines
Quoted 8 lines
Documentation/devicetree/bindings/iio/proximity/as3935.txt line 8
Quoted 1 line
Documentation/devicetree/bindings/iio/proximity/as3935.txt new file +1
-0+ - interrupts : interrupt mapping for GPIO IRQRefer to
interrupt-controller/interrupts.txtfor generic interrupt client node bindings.Documentation/devicetree/bindings/iio/proximity/as3935.txt
Quoted 3 lines
Documentation/devicetree/bindings/iio/proximity/as3935.txt new file +3
-0+ +Optional properties: + - ams,tune-cap: Calibration tuning capacitor stepping value 0- 15.
Quoted 16 lines
Quoted 16 lines
Documentation/devicetree/bindings/iio/proximity/as3935.txt line 24
Quoted 13 lines
Documentation/devicetree/bindings/iio/proximity/as3935.txt new file +13
-0+ Range of 0 to 120 pF, 8pF steps. This will require using the + calibration data from the manufacturer. + + +Example: + +as3935@0 { + compatible = "ams,as3935"; + reg = <0>; + spi-cpha; + interrupt-parent = <&gpio1>; + interrupts = <16 1>; + ams,tune-cap = /bits/ 8 <10>;What is this? Why not just ams,tune-cap = <10>; ?
Quoted 5 lines
Quoted 5 lines
It's a value between 0-15, right?
-Matt
--
To unsubscribe from this list: send the line "unsubscribe linux-iio"in
Quoted 5 lines
Quoted 2 lines
the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 1 line
Sent from my Android phone with K-9 Mail. Please excuse my brevity.