aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel <pavel@ucw.cz>2018-10-28 16:22:37 +0100
committerPavel <pavel@ucw.cz>2019-01-07 11:23:50 +0100
commitb65b22a5cedee0c7a9887852d2df308524144b2e (patch)
tree031f6c44f50b0d34c00fa22f6372406d353e6cf8
parentdc3a77930caa5340d1d9321ab8eb1184685eaa15 (diff)
downloadlinux-k-b65b22a5cedee0c7a9887852d2df308524144b2e.tar.gz
n9?: dts binding for apds990x
-rw-r--r--Documentation/devicetree/bindings/iio/light/avago-apds990x.txt41
1 files changed, 41 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/iio/light/avago-apds990x.txt b/Documentation/devicetree/bindings/iio/light/avago-apds990x.txt
new file mode 100644
index 00000000000000..2dedc4be105973
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/light/avago-apds990x.txt
@@ -0,0 +1,41 @@
+Avago APDS990X light sensor
+
+https://docs.broadcom.com/docs/AV02-2867EN
+
+Required properties:
+- compatible: "avago,apds990x"
+- reg: address on the I2C bus
+- interrupts: external interrupt line number
+- vdd-supply: power supply for VDD
+- vled-supply: power supply for LEDA
+- avago,glass-coef: Glass attenuation coefficient. Fixed point, 4096 == 1.00.
+- avago,cf1: Clear channel factor 1. Fixed point, 4096 == 1.00.
+- avago,irf1: IR channel factor 1. Fixed point, 4096 == 1.00.
+- avago,cf2: Clear channel factor 2. Fixed point, 4096 == 1.00.
+- avago,irf2: IR channel factor 2. Fixed point, 4096 == 1.00.
+- avago,df: Device factor. Fixed point, 4096 == 1.00.
+- avago,pdrive: IR current, one of APDS_IRLED_CURR_XXXmA values
+- avago,ppcount: Proximity pulse count
+
+Example (Nokia N9):
+
+ light-sensor@39 {
+ compatible = "avago,apds990x";
+ reg = <0x39>;
+
+ interrupt-parent = <&gpio3>;
+ interrupts = <19 (IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_LEVEL_LOW)>; /* gpio_83 */
+
+ vdd-supply = <&vaux1>;
+ vled-supply = <&vbat>;
+
+ avago,ga = <168834>;
+ avago,cf1 = <4096>;
+ avago,irf1 = <7824>;
+ avago,cf2 = <877>;
+ avago,irf2 = <1575>;
+ avago,df = <52>;
+
+ avago,pdrive = <0x2>; /* APDS_IRLED_CURR_25mA */
+ avago,ppcount = <5>;
+ };