mirror of
https://github.com/AetherDroid/android_kernel_samsung_on5xelte.git
synced 2025-09-07 16:58:04 -04:00
Fixed MTP to work with TWRP
This commit is contained in:
commit
f6dfaef42e
50820 changed files with 20846062 additions and 0 deletions
24
Documentation/devicetree/bindings/iio/accel/bma180.txt
Normal file
24
Documentation/devicetree/bindings/iio/accel/bma180.txt
Normal file
|
@ -0,0 +1,24 @@
|
|||
* Bosch BMA180 triaxial acceleration sensor
|
||||
|
||||
http://omapworld.com/BMA180_111_1002839.pdf
|
||||
|
||||
Required properties:
|
||||
|
||||
- compatible : should be "bosch,bma180"
|
||||
- reg : the I2C address of the sensor
|
||||
|
||||
Optional properties:
|
||||
|
||||
- interrupt-parent : should be the phandle for the interrupt controller
|
||||
|
||||
- interrupts : interrupt mapping for GPIO IRQ, it should by configured with
|
||||
flags IRQ_TYPE_LEVEL_HIGH | IRQ_TYPE_EDGE_RISING
|
||||
|
||||
Example:
|
||||
|
||||
bma180@40 {
|
||||
compatible = "bosch,bma180";
|
||||
reg = <0x40>;
|
||||
interrupt-parent = <&gpio6>;
|
||||
interrupts = <18 (IRQ_TYPE_LEVEL_HIGH | IRQ_TYPE_EDGE_RISING)>;
|
||||
};
|
87
Documentation/devicetree/bindings/iio/adc/at91_adc.txt
Normal file
87
Documentation/devicetree/bindings/iio/adc/at91_adc.txt
Normal file
|
@ -0,0 +1,87 @@
|
|||
* AT91's Analog to Digital Converter (ADC)
|
||||
|
||||
Required properties:
|
||||
- compatible: Should be "atmel,<chip>-adc"
|
||||
<chip> can be "at91sam9260", "at91sam9g45" or "at91sam9x5"
|
||||
- reg: Should contain ADC registers location and length
|
||||
- interrupts: Should contain the IRQ line for the ADC
|
||||
- clock-names: tuple listing input clock names.
|
||||
Required elements: "adc_clk", "adc_op_clk".
|
||||
- clocks: phandles to input clocks.
|
||||
- atmel,adc-channels-used: Bitmask of the channels muxed and enabled for this
|
||||
device
|
||||
- atmel,adc-startup-time: Startup Time of the ADC in microseconds as
|
||||
defined in the datasheet
|
||||
- atmel,adc-vref: Reference voltage in millivolts for the conversions
|
||||
- atmel,adc-res: List of resolutions in bits supported by the ADC. List size
|
||||
must be two at least.
|
||||
- atmel,adc-res-names: Contains one identifier string for each resolution
|
||||
in atmel,adc-res property. "lowres" and "highres"
|
||||
identifiers are required.
|
||||
|
||||
Optional properties:
|
||||
- atmel,adc-use-external-triggers: Boolean to enable the external triggers
|
||||
- atmel,adc-use-res: String corresponding to an identifier from
|
||||
atmel,adc-res-names property. If not specified, the highest
|
||||
resolution will be used.
|
||||
- atmel,adc-sleep-mode: Boolean to enable sleep mode when no conversion
|
||||
- atmel,adc-sample-hold-time: Sample and Hold Time in microseconds
|
||||
- atmel,adc-ts-wires: Number of touchscreen wires. Should be 4 or 5. If this
|
||||
value is set, then the adc driver will enable touchscreen
|
||||
support.
|
||||
NOTE: when adc touchscreen is enabled, the adc hardware trigger will be
|
||||
disabled. Since touchscreen will occupy the trigger register.
|
||||
- atmel,adc-ts-pressure-threshold: a pressure threshold for touchscreen. It
|
||||
makes touch detection more precise.
|
||||
|
||||
Optional trigger Nodes:
|
||||
- Required properties:
|
||||
* trigger-name: Name of the trigger exposed to the user
|
||||
* trigger-value: Value to put in the Trigger register
|
||||
to activate this trigger
|
||||
- Optional properties:
|
||||
* trigger-external: Is the trigger an external trigger?
|
||||
|
||||
Examples:
|
||||
adc0: adc@fffb0000 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
compatible = "atmel,at91sam9260-adc";
|
||||
reg = <0xfffb0000 0x100>;
|
||||
interrupts = <20 IRQ_TYPE_LEVEL_HIGH 0>;
|
||||
clocks = <&adc_clk>, <&adc_op_clk>;
|
||||
clock-names = "adc_clk", "adc_op_clk";
|
||||
atmel,adc-channels-used = <0xff>;
|
||||
atmel,adc-startup-time = <40>;
|
||||
atmel,adc-use-external-triggers;
|
||||
atmel,adc-vref = <3300>;
|
||||
atmel,adc-res = <8 10>;
|
||||
atmel,adc-res-names = "lowres", "highres";
|
||||
atmel,adc-use-res = "lowres";
|
||||
|
||||
trigger@0 {
|
||||
reg = <0>;
|
||||
trigger-name = "external-rising";
|
||||
trigger-value = <0x1>;
|
||||
trigger-external;
|
||||
};
|
||||
trigger@1 {
|
||||
reg = <1>;
|
||||
trigger-name = "external-falling";
|
||||
trigger-value = <0x2>;
|
||||
trigger-external;
|
||||
};
|
||||
|
||||
trigger@2 {
|
||||
reg = <2>;
|
||||
trigger-name = "external-any";
|
||||
trigger-value = <0x3>;
|
||||
trigger-external;
|
||||
};
|
||||
|
||||
trigger@3 {
|
||||
reg = <3>;
|
||||
trigger-name = "continuous";
|
||||
trigger-value = <0x6>;
|
||||
};
|
||||
};
|
22
Documentation/devicetree/bindings/iio/adc/max1027-adc.txt
Normal file
22
Documentation/devicetree/bindings/iio/adc/max1027-adc.txt
Normal file
|
@ -0,0 +1,22 @@
|
|||
* Maxim 1027/1029/1031 Analog to Digital Converter (ADC)
|
||||
|
||||
Required properties:
|
||||
- compatible: Should be "maxim,max1027" or "maxim,max1029" or "maxim,max1031"
|
||||
- reg: SPI chip select number for the device
|
||||
- interrupt-parent: phandle to the parent interrupt controller
|
||||
see: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
|
||||
- interrupts: IRQ line for the ADC
|
||||
see: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
|
||||
|
||||
Recommended properties:
|
||||
- spi-max-frequency: Definition as per
|
||||
Documentation/devicetree/bindings/spi/spi-bus.txt
|
||||
|
||||
Example:
|
||||
adc@0 {
|
||||
compatible = "maxim,max1027";
|
||||
reg = <0>;
|
||||
interrupt-parent = <&gpio5>;
|
||||
interrupts = <15 IRQ_TYPE_EDGE_RISING>;
|
||||
spi-max-frequency = <1000000>;
|
||||
};
|
|
@ -0,0 +1,18 @@
|
|||
* Nuvoton NAU7802 Analog to Digital Converter (ADC)
|
||||
|
||||
Required properties:
|
||||
- compatible: Should be "nuvoton,nau7802"
|
||||
- reg: Should contain the ADC I2C address
|
||||
|
||||
Optional properties:
|
||||
- nuvoton,vldo: Internal reference voltage in millivolts to be
|
||||
configured valid values are between 2400 mV and 4500 mV.
|
||||
- interrupts: IRQ line for the ADC. If not used the driver will use
|
||||
polling.
|
||||
|
||||
Example:
|
||||
adc2: nau7802@2a {
|
||||
compatible = "nuvoton,nau7802";
|
||||
reg = <0x2a>;
|
||||
nuvoton,vldo = <3000>;
|
||||
};
|
|
@ -0,0 +1,24 @@
|
|||
Rockchip Successive Approximation Register (SAR) A/D Converter bindings
|
||||
|
||||
Required properties:
|
||||
- compatible: Should be "rockchip,saradc"
|
||||
- reg: physical base address of the controller and length of memory mapped
|
||||
region.
|
||||
- interrupts: The interrupt number to the cpu. The interrupt specifier format
|
||||
depends on the interrupt controller.
|
||||
- clocks: Must contain an entry for each entry in clock-names.
|
||||
- clock-names: Shall be "saradc" for the converter-clock, and "apb_pclk" for
|
||||
the peripheral clock.
|
||||
- vref-supply: The regulator supply ADC reference voltage.
|
||||
- #io-channel-cells: Should be 1, see ../iio-bindings.txt
|
||||
|
||||
Example:
|
||||
saradc: saradc@2006c000 {
|
||||
compatible = "rockchip,saradc";
|
||||
reg = <0x2006c000 0x100>;
|
||||
interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
|
||||
clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>;
|
||||
clock-names = "saradc", "apb_pclk";
|
||||
#io-channel-cells = <1>;
|
||||
vref-supply = <&vcc18>;
|
||||
};
|
24
Documentation/devicetree/bindings/iio/adc/twl4030-madc.txt
Normal file
24
Documentation/devicetree/bindings/iio/adc/twl4030-madc.txt
Normal file
|
@ -0,0 +1,24 @@
|
|||
* TWL4030 Monitoring Analog to Digital Converter (MADC)
|
||||
|
||||
The MADC subsystem in the TWL4030 consists of a 10-bit ADC
|
||||
combined with a 16-input analog multiplexer.
|
||||
|
||||
Required properties:
|
||||
- compatible: Should contain "ti,twl4030-madc".
|
||||
- interrupts: IRQ line for the MADC submodule.
|
||||
- #io-channel-cells: Should be set to <1>.
|
||||
|
||||
Optional properties:
|
||||
- ti,system-uses-second-madc-irq: boolean, set if the second madc irq register
|
||||
should be used, which is intended to be used
|
||||
by Co-Processors (e.g. a modem).
|
||||
|
||||
Example:
|
||||
|
||||
&twl {
|
||||
madc {
|
||||
compatible = "ti,twl4030-madc";
|
||||
interrupts = <3>;
|
||||
#io-channel-cells = <1>;
|
||||
};
|
||||
};
|
22
Documentation/devicetree/bindings/iio/adc/vf610-adc.txt
Normal file
22
Documentation/devicetree/bindings/iio/adc/vf610-adc.txt
Normal file
|
@ -0,0 +1,22 @@
|
|||
Freescale vf610 Analog to Digital Converter bindings
|
||||
|
||||
The devicetree bindings are for the new ADC driver written for
|
||||
vf610/i.MX6slx and upward SoCs from Freescale.
|
||||
|
||||
Required properties:
|
||||
- compatible: Should contain "fsl,vf610-adc"
|
||||
- reg: Offset and length of the register set for the device
|
||||
- interrupts: Should contain the interrupt for the device
|
||||
- clocks: The clock is needed by the ADC controller, ADC clock source is ipg clock.
|
||||
- clock-names: Must contain "adc", matching entry in the clocks property.
|
||||
- vref-supply: The regulator supply ADC reference voltage.
|
||||
|
||||
Example:
|
||||
adc0: adc@4003b000 {
|
||||
compatible = "fsl,vf610-adc";
|
||||
reg = <0x4003b000 0x1000>;
|
||||
interrupts = <0 53 0x04>;
|
||||
clocks = <&clks VF610_CLK_ADC0>;
|
||||
clock-names = "adc";
|
||||
vref-supply = <®_vcc_3v3_mcu>;
|
||||
};
|
113
Documentation/devicetree/bindings/iio/adc/xilinx-xadc.txt
Normal file
113
Documentation/devicetree/bindings/iio/adc/xilinx-xadc.txt
Normal file
|
@ -0,0 +1,113 @@
|
|||
Xilinx XADC device driver
|
||||
|
||||
This binding document describes the bindings for both of them since the
|
||||
bindings are very similar. The Xilinx XADC is a ADC that can be found in the
|
||||
series 7 FPGAs from Xilinx. The XADC has a DRP interface for communication.
|
||||
Currently two different frontends for the DRP interface exist. One that is only
|
||||
available on the ZYNQ family as a hardmacro in the SoC portion of the ZYNQ. The
|
||||
other one is available on all series 7 platforms and is a softmacro with a AXI
|
||||
interface. This binding document describes the bindings for both of them since
|
||||
the bindings are very similar.
|
||||
|
||||
Required properties:
|
||||
- compatible: Should be one of
|
||||
* "xlnx,zynq-xadc-1.00.a": When using the ZYNQ device
|
||||
configuration interface to interface to the XADC hardmacro.
|
||||
* "xlnx,axi-xadc-1.00.a": When using the axi-xadc pcore to
|
||||
interface to the XADC hardmacro.
|
||||
- reg: Address and length of the register set for the device
|
||||
- interrupts: Interrupt for the XADC control interface.
|
||||
- clocks: When using the ZYNQ this must be the ZYNQ PCAP clock,
|
||||
when using the AXI-XADC pcore this must be the clock that provides the
|
||||
clock to the AXI bus interface of the core.
|
||||
|
||||
Optional properties:
|
||||
- interrupt-parent: phandle to the parent interrupt controller
|
||||
- xlnx,external-mux:
|
||||
* "none": No external multiplexer is used, this is the default
|
||||
if the property is omitted.
|
||||
* "single": External multiplexer mode is used with one
|
||||
multiplexer.
|
||||
* "dual": External multiplexer mode is used with two
|
||||
multiplexers for simultaneous sampling.
|
||||
- xlnx,external-mux-channel: Configures which pair of pins is used to
|
||||
sample data in external mux mode.
|
||||
Valid values for single external multiplexer mode are:
|
||||
0: VP/VN
|
||||
1: VAUXP[0]/VAUXN[0]
|
||||
2: VAUXP[1]/VAUXN[1]
|
||||
...
|
||||
16: VAUXP[15]/VAUXN[15]
|
||||
Valid values for dual external multiplexer mode are:
|
||||
1: VAUXP[0]/VAUXN[0] - VAUXP[8]/VAUXN[8]
|
||||
2: VAUXP[1]/VAUXN[1] - VAUXP[9]/VAUXN[9]
|
||||
...
|
||||
8: VAUXP[7]/VAUXN[7] - VAUXP[15]/VAUXN[15]
|
||||
|
||||
This property needs to be present if the device is configured for
|
||||
external multiplexer mode (either single or dual). If the device is
|
||||
not using external multiplexer mode the property is ignored.
|
||||
- xnlx,channels: List of external channels that are connected to the ADC
|
||||
Required properties:
|
||||
* #address-cells: Should be 1.
|
||||
* #size-cells: Should be 0.
|
||||
|
||||
The child nodes of this node represent the external channels which are
|
||||
connected to the ADC. If the property is no present no external
|
||||
channels will be assumed to be connected.
|
||||
|
||||
Each child node represents one channel and has the following
|
||||
properties:
|
||||
Required properties:
|
||||
* reg: Pair of pins the the channel is connected to.
|
||||
0: VP/VN
|
||||
1: VAUXP[0]/VAUXN[0]
|
||||
2: VAUXP[1]/VAUXN[1]
|
||||
...
|
||||
16: VAUXP[15]/VAUXN[15]
|
||||
Note each channel number should only be used at most
|
||||
once.
|
||||
Optional properties:
|
||||
* xlnx,bipolar: If set the channel is used in bipolar
|
||||
mode.
|
||||
|
||||
|
||||
Examples:
|
||||
xadc@f8007100 {
|
||||
compatible = "xlnx,zynq-xadc-1.00.a";
|
||||
reg = <0xf8007100 0x20>;
|
||||
interrupts = <0 7 4>;
|
||||
interrupt-parent = <&gic>;
|
||||
clocks = <&pcap_clk>;
|
||||
|
||||
xlnx,channels {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
channel@0 {
|
||||
reg = <0>;
|
||||
};
|
||||
channel@1 {
|
||||
reg = <1>;
|
||||
};
|
||||
channel@8 {
|
||||
reg = <8>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
xadc@43200000 {
|
||||
compatible = "xlnx,axi-xadc-1.00.a";
|
||||
reg = <0x43200000 0x1000>;
|
||||
interrupts = <0 53 4>;
|
||||
interrupt-parent = <&gic>;
|
||||
clocks = <&fpga1_clk>;
|
||||
|
||||
xlnx,channels {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
channel@0 {
|
||||
reg = <0>;
|
||||
xlnx,bipolar;
|
||||
};
|
||||
};
|
||||
};
|
23
Documentation/devicetree/bindings/iio/dac/ad7303.txt
Normal file
23
Documentation/devicetree/bindings/iio/dac/ad7303.txt
Normal file
|
@ -0,0 +1,23 @@
|
|||
Analog Devices AD7303 DAC device driver
|
||||
|
||||
Required properties:
|
||||
- compatible: Must be "adi,ad7303"
|
||||
- reg: SPI chip select number for the device
|
||||
- spi-max-frequency: Max SPI frequency to use (< 30000000)
|
||||
- Vdd-supply: Phandle to the Vdd power supply
|
||||
|
||||
Optional properties:
|
||||
- REF-supply: Phandle to the external reference voltage supply. This should
|
||||
only be set if there is an external reference voltage connected to the REF
|
||||
pin. If the property is not set Vdd/2 is used as the reference voltage.
|
||||
|
||||
Example:
|
||||
|
||||
ad7303@4 {
|
||||
compatible = "adi,ad7303";
|
||||
reg = <4>;
|
||||
spi-max-frequency = <10000000>;
|
||||
Vdd-supply = <&vdd_supply>;
|
||||
adi,use-external-reference;
|
||||
REF-supply = <&vref_supply>;
|
||||
};
|
14
Documentation/devicetree/bindings/iio/dac/max5821.txt
Normal file
14
Documentation/devicetree/bindings/iio/dac/max5821.txt
Normal file
|
@ -0,0 +1,14 @@
|
|||
Maxim max5821 DAC device driver
|
||||
|
||||
Required properties:
|
||||
- compatible: Must be "maxim,max5821"
|
||||
- reg: Should contain the DAC I2C address
|
||||
- vref-supply: Phandle to the vref power supply
|
||||
|
||||
Example:
|
||||
|
||||
max5821@38 {
|
||||
compatible = "maxim,max5821";
|
||||
reg = <0x38>;
|
||||
vref-supply = <®_max5821>;
|
||||
};
|
86
Documentation/devicetree/bindings/iio/frequency/adf4350.txt
Normal file
86
Documentation/devicetree/bindings/iio/frequency/adf4350.txt
Normal file
|
@ -0,0 +1,86 @@
|
|||
Analog Devices ADF4350/ADF4351 device driver
|
||||
|
||||
Required properties:
|
||||
- compatible: Should be one of
|
||||
* "adi,adf4350": When using the ADF4350 device
|
||||
* "adi,adf4351": When using the ADF4351 device
|
||||
- reg: SPI chip select numbert for the device
|
||||
- spi-max-frequency: Max SPI frequency to use (< 20000000)
|
||||
- clocks: From common clock binding. Clock is phandle to clock for
|
||||
ADF435x Reference Clock (CLKIN).
|
||||
|
||||
Optional properties:
|
||||
- gpios: GPIO Lock detect - If set with a valid phandle and GPIO number,
|
||||
pll lock state is tested upon read.
|
||||
- adi,channel-spacing: Channel spacing in Hz (influences MODULUS).
|
||||
- adi,power-up-frequency: If set in Hz the PLL tunes to
|
||||
the desired frequency on probe.
|
||||
- adi,reference-div-factor: If set the driver skips dynamic calculation
|
||||
and uses this default value instead.
|
||||
- adi,reference-doubler-enable: Enables reference doubler.
|
||||
- adi,reference-div2-enable: Enables reference divider.
|
||||
- adi,phase-detector-polarity-positive-enable: Enables positive phase
|
||||
detector polarity. Default = negative.
|
||||
- adi,lock-detect-precision-6ns-enable: Enables 6ns lock detect precision.
|
||||
Default = 10ns.
|
||||
- adi,lock-detect-function-integer-n-enable: Enables lock detect
|
||||
for integer-N mode. Default = factional-N mode.
|
||||
- adi,charge-pump-current: Charge pump current in mA.
|
||||
Default = 2500mA.
|
||||
- adi,muxout-select: On chip multiplexer output selection.
|
||||
Valid values for the multiplexer output are:
|
||||
0: Three-State Output (default)
|
||||
1: DVDD
|
||||
2: DGND
|
||||
3: R-Counter output
|
||||
4: N-Divider output
|
||||
5: Analog lock detect
|
||||
6: Digital lock detect
|
||||
- adi,low-spur-mode-enable: Enables low spur mode.
|
||||
Default = Low noise mode.
|
||||
- adi,cycle-slip-reduction-enable: Enables cycle slip reduction.
|
||||
- adi,charge-cancellation-enable: Enabled charge pump
|
||||
charge cancellation for integer-N modes.
|
||||
- adi,anti-backlash-3ns-enable: Enables 3ns antibacklash pulse width
|
||||
for integer-N modes.
|
||||
- adi,band-select-clock-mode-high-enable: Enables faster band
|
||||
selection logic.
|
||||
- adi,12bit-clk-divider: Clock divider value used when
|
||||
adi,12bit-clkdiv-mode != 0
|
||||
- adi,clk-divider-mode:
|
||||
Valid values for the clkdiv mode are:
|
||||
0: Clock divider off (default)
|
||||
1: Fast lock enable
|
||||
2: Phase resync enable
|
||||
- adi,aux-output-enable: Enables auxiliary RF output.
|
||||
- adi,aux-output-fundamental-enable: Selects fundamental VCO output on
|
||||
the auxiliary RF output. Default = Output of RF dividers.
|
||||
- adi,mute-till-lock-enable: Enables Mute-Till-Lock-Detect function.
|
||||
- adi,output-power: Output power selection.
|
||||
Valid values for the power mode are:
|
||||
0: -4dBm (default)
|
||||
1: -1dBm
|
||||
2: +2dBm
|
||||
3: +5dBm
|
||||
- adi,aux-output-power: Auxiliary output power selection.
|
||||
Valid values for the power mode are:
|
||||
0: -4dBm (default)
|
||||
1: -1dBm
|
||||
2: +2dBm
|
||||
3: +5dBm
|
||||
|
||||
|
||||
Example:
|
||||
lo_pll0_rx_adf4351: adf4351-rx-lpc@4 {
|
||||
compatible = "adi,adf4351";
|
||||
reg = <4>;
|
||||
spi-max-frequency = <10000000>;
|
||||
clocks = <&clk0_ad9523 9>;
|
||||
clock-names = "clkin";
|
||||
adi,channel-spacing = <10000>;
|
||||
adi,power-up-frequency = <2400000000>;
|
||||
adi,phase-detector-polarity-positive-enable;
|
||||
adi,charge-pump-current = <2500>;
|
||||
adi,output-power = <3>;
|
||||
adi,mute-till-lock-enable;
|
||||
};
|
14
Documentation/devicetree/bindings/iio/humidity/dht11.txt
Normal file
14
Documentation/devicetree/bindings/iio/humidity/dht11.txt
Normal file
|
@ -0,0 +1,14 @@
|
|||
* DHT11 humidity/temperature sensor (and compatibles like DHT22)
|
||||
|
||||
Required properties:
|
||||
- compatible: Should be "dht11"
|
||||
- gpios: Should specify the GPIO connected to the sensor's data
|
||||
line, see "gpios property" in
|
||||
Documentation/devicetree/bindings/gpio/gpio.txt.
|
||||
|
||||
Example:
|
||||
|
||||
humidity_sensor {
|
||||
compatible = "dht11";
|
||||
gpios = <&gpio0 6 0>;
|
||||
}
|
97
Documentation/devicetree/bindings/iio/iio-bindings.txt
Normal file
97
Documentation/devicetree/bindings/iio/iio-bindings.txt
Normal file
|
@ -0,0 +1,97 @@
|
|||
This binding is derived from clock bindings, and based on suggestions
|
||||
from Lars-Peter Clausen [1].
|
||||
|
||||
Sources of IIO channels can be represented by any node in the device
|
||||
tree. Those nodes are designated as IIO providers. IIO consumer
|
||||
nodes use a phandle and IIO specifier pair to connect IIO provider
|
||||
outputs to IIO inputs. Similar to the gpio specifiers, an IIO
|
||||
specifier is an array of one or more cells identifying the IIO
|
||||
output on a device. The length of an IIO specifier is defined by the
|
||||
value of a #io-channel-cells property in the IIO provider node.
|
||||
|
||||
[1] http://marc.info/?l=linux-iio&m=135902119507483&w=2
|
||||
|
||||
==IIO providers==
|
||||
|
||||
Required properties:
|
||||
#io-channel-cells: Number of cells in an IIO specifier; Typically 0 for nodes
|
||||
with a single IIO output and 1 for nodes with multiple
|
||||
IIO outputs.
|
||||
|
||||
Example for a simple configuration with no trigger:
|
||||
|
||||
adc: voltage-sensor@35 {
|
||||
compatible = "maxim,max1139";
|
||||
reg = <0x35>;
|
||||
#io-channel-cells = <1>;
|
||||
};
|
||||
|
||||
Example for a configuration with trigger:
|
||||
|
||||
adc@35 {
|
||||
compatible = "some-vendor,some-adc";
|
||||
reg = <0x35>;
|
||||
|
||||
adc1: iio-device@0 {
|
||||
#io-channel-cells = <1>;
|
||||
/* other properties */
|
||||
};
|
||||
adc2: iio-device@1 {
|
||||
#io-channel-cells = <1>;
|
||||
/* other properties */
|
||||
};
|
||||
};
|
||||
|
||||
==IIO consumers==
|
||||
|
||||
Required properties:
|
||||
io-channels: List of phandle and IIO specifier pairs, one pair
|
||||
for each IIO input to the device. Note: if the
|
||||
IIO provider specifies '0' for #io-channel-cells,
|
||||
then only the phandle portion of the pair will appear.
|
||||
|
||||
Optional properties:
|
||||
io-channel-names:
|
||||
List of IIO input name strings sorted in the same
|
||||
order as the io-channels property. Consumers drivers
|
||||
will use io-channel-names to match IIO input names
|
||||
with IIO specifiers.
|
||||
io-channel-ranges:
|
||||
Empty property indicating that child nodes can inherit named
|
||||
IIO channels from this node. Useful for bus nodes to provide
|
||||
and IIO channel to their children.
|
||||
|
||||
For example:
|
||||
|
||||
device {
|
||||
io-channels = <&adc 1>, <&ref 0>;
|
||||
io-channel-names = "vcc", "vdd";
|
||||
};
|
||||
|
||||
This represents a device with two IIO inputs, named "vcc" and "vdd".
|
||||
The vcc channel is connected to output 1 of the &adc device, and the
|
||||
vdd channel is connected to output 0 of the &ref device.
|
||||
|
||||
==Example==
|
||||
|
||||
adc: max1139@35 {
|
||||
compatible = "maxim,max1139";
|
||||
reg = <0x35>;
|
||||
#io-channel-cells = <1>;
|
||||
};
|
||||
|
||||
...
|
||||
|
||||
iio_hwmon {
|
||||
compatible = "iio-hwmon";
|
||||
io-channels = <&adc 0>, <&adc 1>, <&adc 2>,
|
||||
<&adc 3>, <&adc 4>, <&adc 5>,
|
||||
<&adc 6>, <&adc 7>, <&adc 8>,
|
||||
<&adc 9>;
|
||||
};
|
||||
|
||||
some_consumer {
|
||||
compatible = "some-consumer";
|
||||
io-channels = <&adc 10>, <&adc 11>;
|
||||
io-channel-names = "adc1", "adc2";
|
||||
};
|
22
Documentation/devicetree/bindings/iio/light/apds9300.txt
Normal file
22
Documentation/devicetree/bindings/iio/light/apds9300.txt
Normal file
|
@ -0,0 +1,22 @@
|
|||
* Avago APDS9300 ambient light sensor
|
||||
|
||||
http://www.avagotech.com/docs/AV02-1077EN
|
||||
|
||||
Required properties:
|
||||
|
||||
- compatible : should be "avago,apds9300"
|
||||
- reg : the I2C address of the sensor
|
||||
|
||||
Optional properties:
|
||||
|
||||
- interrupt-parent : should be the phandle for the interrupt controller
|
||||
- interrupts : interrupt mapping for GPIO IRQ
|
||||
|
||||
Example:
|
||||
|
||||
apds9300@39 {
|
||||
compatible = "avago,apds9300";
|
||||
reg = <0x39>;
|
||||
interrupt-parent = <&gpio2>;
|
||||
interrupts = <29 8>;
|
||||
};
|
26
Documentation/devicetree/bindings/iio/light/cm36651.txt
Normal file
26
Documentation/devicetree/bindings/iio/light/cm36651.txt
Normal file
|
@ -0,0 +1,26 @@
|
|||
* Capella CM36651 I2C Proximity and Color Light sensor
|
||||
|
||||
Required properties:
|
||||
- compatible: must be "capella,cm36651"
|
||||
- reg: the I2C address of the device
|
||||
- interrupts: interrupt-specifier for the sole interrupt
|
||||
generated by the device
|
||||
- vled-supply: regulator for the IR LED. IR_LED is a part
|
||||
of the cm36651 for proximity detection.
|
||||
As covered in ../../regulator/regulator.txt
|
||||
|
||||
Example:
|
||||
|
||||
i2c_cm36651: i2c-gpio {
|
||||
/* ... */
|
||||
|
||||
cm36651@18 {
|
||||
compatible = "capella,cm36651";
|
||||
reg = <0x18>;
|
||||
interrupt-parent = <&gpx0>;
|
||||
interrupts = <2 0>;
|
||||
vled-supply = <&ps_als_reg>;
|
||||
};
|
||||
|
||||
/* ... */
|
||||
};
|
21
Documentation/devicetree/bindings/iio/light/gp2ap020a00f.txt
Normal file
21
Documentation/devicetree/bindings/iio/light/gp2ap020a00f.txt
Normal file
|
@ -0,0 +1,21 @@
|
|||
* Sharp GP2AP020A00F I2C Proximity/ALS sensor
|
||||
|
||||
The proximity detector sensor requires power supply
|
||||
for its built-in led. It is also defined by this binding.
|
||||
|
||||
Required properties:
|
||||
|
||||
- compatible : should be "sharp,gp2ap020a00f"
|
||||
- reg : the I2C slave address of the light sensor
|
||||
- interrupts : interrupt specifier for the sole interrupt generated
|
||||
by the device
|
||||
- vled-supply : VLED power supply, as covered in ../regulator/regulator.txt
|
||||
|
||||
Example:
|
||||
|
||||
gp2ap020a00f@39 {
|
||||
compatible = "sharp,gp2ap020a00f";
|
||||
reg = <0x39>;
|
||||
interrupts = <2 0>;
|
||||
vled-supply = <...>;
|
||||
};
|
19
Documentation/devicetree/bindings/iio/light/tsl2563.txt
Normal file
19
Documentation/devicetree/bindings/iio/light/tsl2563.txt
Normal file
|
@ -0,0 +1,19 @@
|
|||
* AMS TAOS TSL2563 ambient light sensor
|
||||
|
||||
Required properties:
|
||||
|
||||
- compatible : should be "amstaos,tsl2563"
|
||||
- reg : the I2C address of the sensor
|
||||
|
||||
Optional properties:
|
||||
|
||||
- amstaos,cover-comp-gain : integer used as multiplier for gain
|
||||
compensation (default = 1)
|
||||
|
||||
Example:
|
||||
|
||||
tsl2563@29 {
|
||||
compatible = "amstaos,tsl2563";
|
||||
reg = <0x29>;
|
||||
amstaos,cover-comp-gain = <16>;
|
||||
};
|
|
@ -0,0 +1,18 @@
|
|||
* AsahiKASEI AK8975 magnetometer sensor
|
||||
|
||||
Required properties:
|
||||
|
||||
- compatible : should be "asahi-kasei,ak8975"
|
||||
- reg : the I2C address of the magnetometer
|
||||
|
||||
Optional properties:
|
||||
|
||||
- gpios : should be device tree identifier of the magnetometer DRDY pin
|
||||
|
||||
Example:
|
||||
|
||||
ak8975@0c {
|
||||
compatible = "asahi-kasei,ak8975";
|
||||
reg = <0x0c>;
|
||||
gpios = <&gpj0 7 0>;
|
||||
};
|
|
@ -0,0 +1,21 @@
|
|||
* Honeywell HMC5843 magnetometer sensor
|
||||
|
||||
Required properties:
|
||||
|
||||
- compatible : should be "honeywell,hmc5843"
|
||||
Other models which are supported with driver are:
|
||||
"honeywell,hmc5883"
|
||||
"honeywell,hmc5883l"
|
||||
"honeywell,hmc5983"
|
||||
- reg : the I2C address of the magnetometer - typically 0x1e
|
||||
|
||||
Optional properties:
|
||||
|
||||
- gpios : should be device tree identifier of the magnetometer DRDY pin
|
||||
|
||||
Example:
|
||||
|
||||
hmc5843@1e {
|
||||
compatible = "honeywell,hmc5843"
|
||||
reg = <0x1e>;
|
||||
};
|
28
Documentation/devicetree/bindings/iio/proximity/as3935.txt
Normal file
28
Documentation/devicetree/bindings/iio/proximity/as3935.txt
Normal file
|
@ -0,0 +1,28 @@
|
|||
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. Refer to spi/spi-bus.txt for generic SPI
|
||||
slave node bindings.
|
||||
- interrupt-parent : should be the phandle for the interrupt controller
|
||||
- interrupts : the sole interrupt generated by the device
|
||||
|
||||
Refer to interrupt-controller/interrupts.txt for generic
|
||||
interrupt client node bindings.
|
||||
|
||||
Optional properties:
|
||||
- ams,tuning-capacitor-pf: Calibration tuning capacitor stepping
|
||||
value 0 - 120pF. 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,tuning-capacitor-pf = <80>;
|
||||
};
|
54
Documentation/devicetree/bindings/iio/st-sensors.txt
Normal file
54
Documentation/devicetree/bindings/iio/st-sensors.txt
Normal file
|
@ -0,0 +1,54 @@
|
|||
STMicroelectronics MEMS sensors
|
||||
|
||||
The STMicroelectronics sensor devices are pretty straight-forward I2C or
|
||||
SPI devices, all sharing the same device tree descriptions no matter what
|
||||
type of sensor it is.
|
||||
|
||||
Required properties:
|
||||
- compatible: see the list of valid compatible strings below
|
||||
- reg: the I2C or SPI address the device will respond to
|
||||
|
||||
Optional properties:
|
||||
- vdd-supply: an optional regulator that needs to be on to provide VDD
|
||||
power to the sensor.
|
||||
- vddio-supply: an optional regulator that needs to be on to provide the
|
||||
VDD IO power to the sensor.
|
||||
- st,drdy-int-pin: the pin on the package that will be used to signal
|
||||
"data ready" (valid values: 1 or 2). This property is not configurable
|
||||
on all sensors.
|
||||
|
||||
Sensors may also have applicable pin control settings, those use the
|
||||
standard bindings from pinctrl/pinctrl-bindings.txt.
|
||||
|
||||
Valid compatible strings:
|
||||
|
||||
Accelerometers:
|
||||
- st,lsm303dlh-accel
|
||||
- st,lsm303dlhc-accel
|
||||
- st,lis3dh-accel
|
||||
- st,lsm330d-accel
|
||||
- st,lsm330dl-accel
|
||||
- st,lsm330dlc-accel
|
||||
- st,lis331dlh-accel
|
||||
- st,lsm303dl-accel
|
||||
- st,lsm303dlm-accel
|
||||
- st,lsm330-accel
|
||||
|
||||
Gyroscopes:
|
||||
- st,l3g4200d-gyro
|
||||
- st,lsm330d-gyro
|
||||
- st,lsm330dl-gyro
|
||||
- st,lsm330dlc-gyro
|
||||
- st,l3gd20-gyro
|
||||
- st,l3g4is-gyro
|
||||
- st,lsm330-gyro
|
||||
|
||||
Magnetometers:
|
||||
- st,lsm303dlhc-magn
|
||||
- st,lsm303dlm-magn
|
||||
- st,lis3mdl-magn
|
||||
|
||||
Pressure sensors:
|
||||
- st,lps001wp-press
|
||||
- st,lps25h-press
|
||||
- st,lps331ap-press
|
Loading…
Add table
Add a link
Reference in a new issue