aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/misc
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2015-09-03 18:50:01 -0400
committerRob Herring <robh@kernel.org>2015-10-22 10:21:23 -0400
commitd9d41df3e8ef39b7b2cfeb4e9a2ba5c7cf7cad88 (patch)
treead8a2b88e0e4dbc3864a7ec24d04d93bd60ba327 /Documentation/devicetree/bindings/misc
parent4f2f76f1255444c034c7f95fbaa62b19387936a3 (diff)
dt-bindings: consolidate various misc bindings
Move various bindings in misc to appropriate subsystem directories. Signed-off-by: Rob Herring <robh@kernel.org> Cc: Pawel Moll <pawel.moll@arm.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Ian Campbell <ijc+devicetree@hellion.org.uk> Cc: Kumar Gala <galak@codeaurora.org>
Diffstat (limited to 'Documentation/devicetree/bindings/misc')
-rw-r--r--Documentation/devicetree/bindings/misc/bmp085.txt24
-rw-r--r--Documentation/devicetree/bindings/misc/lis302.txt119
-rw-r--r--Documentation/devicetree/bindings/misc/ti,dac7512.txt20
3 files changed, 0 insertions, 163 deletions
diff --git a/Documentation/devicetree/bindings/misc/bmp085.txt b/Documentation/devicetree/bindings/misc/bmp085.txt
deleted file mode 100644
index d7a6deb6b21e..000000000000
--- a/Documentation/devicetree/bindings/misc/bmp085.txt
+++ /dev/null
@@ -1,24 +0,0 @@
1BMP085/BMP18x digital pressure sensors
2
3Required properties:
4- compatible: bosch,bmp085
5
6Optional properties:
7- chip-id: configurable chip id for non-default chip revisions
8- temp-measurement-period: temperature measurement period (milliseconds)
9- default-oversampling: default oversampling value to be used at startup,
10 value range is 0-3 with rising sensitivity.
11- interrupt-parent: should be the phandle for the interrupt controller
12- interrupts: interrupt mapping for IRQ
13
14Example:
15
16pressure@77 {
17 compatible = "bosch,bmp085";
18 reg = <0x77>;
19 chip-id = <10>;
20 temp-measurement-period = <100>;
21 default-oversampling = <2>;
22 interrupt-parent = <&gpio0>;
23 interrupts = <25 IRQ_TYPE_EDGE_RISING>;
24};
diff --git a/Documentation/devicetree/bindings/misc/lis302.txt b/Documentation/devicetree/bindings/misc/lis302.txt
deleted file mode 100644
index 2a19bff9693f..000000000000
--- a/Documentation/devicetree/bindings/misc/lis302.txt
+++ /dev/null
@@ -1,119 +0,0 @@
1LIS302 accelerometer devicetree bindings
2
3This device is matched via its bus drivers, and has a number of properties
4that apply in on the generic device (independent from the bus).
5
6
7Required properties for the SPI bindings:
8 - compatible: should be set to "st,lis3lv02d_spi"
9 - reg: the chipselect index
10 - spi-max-frequency: maximal bus speed, should be set to 1000000 unless
11 constrained by external circuitry
12 - interrupts: the interrupt generated by the device
13
14Required properties for the I2C bindings:
15 - compatible: should be set to "st,lis3lv02d"
16 - reg: i2c slave address
17 - Vdd-supply: The input supply for Vdd
18 - Vdd_IO-supply: The input supply for Vdd_IO
19
20
21Optional properties for all bus drivers:
22
23 - st,click-single-{x,y,z}: if present, tells the device to issue an
24 interrupt on single click events on the
25 x/y/z axis.
26 - st,click-double-{x,y,z}: if present, tells the device to issue an
27 interrupt on double click events on the
28 x/y/z axis.
29 - st,click-thresh-{x,y,z}: set the x/y/z axis threshold
30 - st,click-click-time-limit: click time limit, from 0 to 127.5msec
31 with step of 0.5 msec
32 - st,click-latency: click latency, from 0 to 255 msec with
33 step of 1 msec.
34 - st,click-window: click window, from 0 to 255 msec with
35 step of 1 msec.
36 - st,irq{1,2}-disable: disable IRQ 1/2
37 - st,irq{1,2}-ff-wu-1: raise IRQ 1/2 on FF_WU_1 condition
38 - st,irq{1,2}-ff-wu-2: raise IRQ 1/2 on FF_WU_2 condition
39 - st,irq{1,2}-data-ready: raise IRQ 1/2 on data ready contition
40 - st,irq{1,2}-click: raise IRQ 1/2 on click condition
41 - st,irq-open-drain: consider IRQ lines open-drain
42 - st,irq-active-low: make IRQ lines active low
43 - st,wu-duration-1: duration register for Free-Fall/Wake-Up
44 interrupt 1
45 - st,wu-duration-2: duration register for Free-Fall/Wake-Up
46 interrupt 2
47 - st,wakeup-{x,y,z}-{lo,hi}: set wakeup condition on x/y/z axis for
48 upper/lower limit
49 - st,wakeup-threshold: set wakeup threshold
50 - st,wakeup2-{x,y,z}-{lo,hi}: set wakeup condition on x/y/z axis for
51 upper/lower limit for second wakeup
52 engine.
53 - st,wakeup2-threshold: set wakeup threshold for second wakeup
54 engine.
55 - st,highpass-cutoff-hz=: 1, 2, 4 or 8 for 1Hz, 2Hz, 4Hz or 8Hz of
56 highpass cut-off frequency
57 - st,hipass{1,2}-disable: disable highpass 1/2.
58 - st,default-rate=: set the default rate
59 - st,axis-{x,y,z}=: set the axis to map to the three coordinates.
60 Negative values can be used for inverted axis.
61 - st,{min,max}-limit-{x,y,z} set the min/max limits for x/y/z axis
62 (used by self-test)
63
64
65Example for a SPI device node:
66
67 lis302@0 {
68 compatible = "st,lis302dl-spi";
69 reg = <0>;
70 spi-max-frequency = <1000000>;
71 interrupt-parent = <&gpio>;
72 interrupts = <104 0>;
73
74 st,click-single-x;
75 st,click-single-y;
76 st,click-single-z;
77 st,click-thresh-x = <10>;
78 st,click-thresh-y = <10>;
79 st,click-thresh-z = <10>;
80 st,irq1-click;
81 st,irq2-click;
82 st,wakeup-x-lo;
83 st,wakeup-x-hi;
84 st,wakeup-y-lo;
85 st,wakeup-y-hi;
86 st,wakeup-z-lo;
87 st,wakeup-z-hi;
88 };
89
90Example for a I2C device node:
91
92 lis331dlh: lis331dlh@18 {
93 compatible = "st,lis331dlh", "st,lis3lv02d";
94 reg = <0x18>;
95 Vdd-supply = <&lis3_reg>;
96 Vdd_IO-supply = <&lis3_reg>;
97
98 st,click-single-x;
99 st,click-single-y;
100 st,click-single-z;
101 st,click-thresh-x = <10>;
102 st,click-thresh-y = <10>;
103 st,click-thresh-z = <10>;
104 st,irq1-click;
105 st,irq2-click;
106 st,wakeup-x-lo;
107 st,wakeup-x-hi;
108 st,wakeup-y-lo;
109 st,wakeup-y-hi;
110 st,wakeup-z-lo;
111 st,wakeup-z-hi;
112 st,min-limit-x = <120>;
113 st,min-limit-y = <120>;
114 st,min-limit-z = <140>;
115 st,max-limit-x = <550>;
116 st,max-limit-y = <550>;
117 st,max-limit-z = <750>;
118 };
119
diff --git a/Documentation/devicetree/bindings/misc/ti,dac7512.txt b/Documentation/devicetree/bindings/misc/ti,dac7512.txt
deleted file mode 100644
index 1db45939dac9..000000000000
--- a/Documentation/devicetree/bindings/misc/ti,dac7512.txt
+++ /dev/null
@@ -1,20 +0,0 @@
1TI DAC7512 DEVICETREE BINDINGS
2
3Required properties:
4
5 - "compatible" Must be set to "ti,dac7512"
6
7Property rules described in Documentation/devicetree/bindings/spi/spi-bus.txt
8apply. In particular, "reg" and "spi-max-frequency" properties must be given.
9
10
11Example:
12
13 spi_master {
14 dac7512: dac7512@0 {
15 compatible = "ti,dac7512";
16 reg = <0>; /* CS0 */
17 spi-max-frequency = <1000000>;
18 };
19 };
20