diff options
| author | Jiri Kosina <jkosina@suse.cz> | 2017-05-02 05:02:41 -0400 |
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.cz> | 2017-05-02 05:02:41 -0400 |
| commit | 4d6ca227c768b50b05cf183974b40abe444e9d0c (patch) | |
| tree | bf953d8e895281053548b9967a2c4b58d641df00 /Documentation/devicetree/bindings/input | |
| parent | 800f3eef8ebc1264e9c135bfa892c8ae41fa4792 (diff) | |
| parent | af22a610bc38508d5ea760507d31be6b6983dfa8 (diff) | |
Merge branch 'for-4.12/asus' into for-linus
Diffstat (limited to 'Documentation/devicetree/bindings/input')
4 files changed, 105 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/input/cypress,tm2-touchkey.txt b/Documentation/devicetree/bindings/input/cypress,tm2-touchkey.txt new file mode 100644 index 000000000000..635f62c756ee --- /dev/null +++ b/Documentation/devicetree/bindings/input/cypress,tm2-touchkey.txt | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | Samsung tm2-touchkey | ||
| 2 | |||
| 3 | Required properties: | ||
| 4 | - compatible: must be "cypress,tm2-touchkey" | ||
| 5 | - reg: I2C address of the chip. | ||
| 6 | - interrupt-parent: a phandle for the interrupt controller (see interrupt | ||
| 7 | binding[0]). | ||
| 8 | - interrupts: interrupt to which the chip is connected (see interrupt | ||
| 9 | binding[0]). | ||
| 10 | - vcc-supply : internal regulator output. 1.8V | ||
| 11 | - vdd-supply : power supply for IC 3.3V | ||
| 12 | |||
| 13 | [0]: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt | ||
| 14 | |||
| 15 | Example: | ||
| 16 | &i2c0 { | ||
| 17 | /* ... */ | ||
| 18 | |||
| 19 | touchkey@20 { | ||
| 20 | compatible = "cypress,tm2-touchkey"; | ||
| 21 | reg = <0x20>; | ||
| 22 | interrupt-parent = <&gpa3>; | ||
| 23 | interrupts = <2 IRQ_TYPE_EDGE_FALLING>; | ||
| 24 | vcc-supply=<&ldo32_reg>; | ||
| 25 | vdd-supply=<&ldo33_reg>; | ||
| 26 | }; | ||
| 27 | }; | ||
diff --git a/Documentation/devicetree/bindings/input/mpr121-touchkey.txt b/Documentation/devicetree/bindings/input/mpr121-touchkey.txt new file mode 100644 index 000000000000..b7c61ee5841b --- /dev/null +++ b/Documentation/devicetree/bindings/input/mpr121-touchkey.txt | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | * Freescale MPR121 Controllor | ||
| 2 | |||
| 3 | Required Properties: | ||
| 4 | - compatible: Should be "fsl,mpr121-touchkey" | ||
| 5 | - reg: The I2C slave address of the device. | ||
| 6 | - interrupts: The interrupt number to the cpu. | ||
| 7 | - vdd-supply: Phandle to the Vdd power supply. | ||
| 8 | - linux,keycodes: Specifies an array of numeric keycode values to | ||
| 9 | be used for reporting button presses. The array can | ||
| 10 | contain up to 12 entries. | ||
| 11 | |||
| 12 | Optional Properties: | ||
| 13 | - wakeup-source: Use any event on keypad as wakeup event. | ||
| 14 | - autorepeat: Enable autorepeat feature. | ||
| 15 | |||
| 16 | Example: | ||
| 17 | |||
| 18 | #include "dt-bindings/input/input.h" | ||
| 19 | |||
| 20 | touchkey: mpr121@5a { | ||
| 21 | compatible = "fsl,mpr121-touchkey"; | ||
| 22 | reg = <0x5a>; | ||
| 23 | interrupt-parent = <&gpio1>; | ||
| 24 | interrupts = <28 2>; | ||
| 25 | autorepeat; | ||
| 26 | vdd-supply = <&ldo4_reg>; | ||
| 27 | linux,keycodes = <KEY_0>, <KEY_1>, <KEY_2>, <KEY_3>, | ||
| 28 | <KEY_4> <KEY_5>, <KEY_6>, <KEY_7>, | ||
| 29 | <KEY_8>, <KEY_9>, <KEY_A>, <KEY_B>; | ||
| 30 | }; | ||
diff --git a/Documentation/devicetree/bindings/input/pwm-beeper.txt b/Documentation/devicetree/bindings/input/pwm-beeper.txt index be332ae4f2d6..529408b4431a 100644 --- a/Documentation/devicetree/bindings/input/pwm-beeper.txt +++ b/Documentation/devicetree/bindings/input/pwm-beeper.txt | |||
| @@ -5,3 +5,19 @@ Registers a PWM device as beeper. | |||
| 5 | Required properties: | 5 | Required properties: |
| 6 | - compatible: should be "pwm-beeper" | 6 | - compatible: should be "pwm-beeper" |
| 7 | - pwms: phandle to the physical PWM device | 7 | - pwms: phandle to the physical PWM device |
| 8 | |||
| 9 | Optional properties: | ||
| 10 | - amp-supply: phandle to a regulator that acts as an amplifier for the beeper | ||
| 11 | |||
| 12 | Example: | ||
| 13 | |||
| 14 | beeper_amp: amplifier { | ||
| 15 | compatible = "fixed-regulator"; | ||
| 16 | gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>; | ||
| 17 | }; | ||
| 18 | |||
| 19 | beeper { | ||
| 20 | compatible = "pwm-beeper"; | ||
| 21 | pwms = <&pwm0>; | ||
| 22 | amp-supply = <&beeper_amp>; | ||
| 23 | }; | ||
diff --git a/Documentation/devicetree/bindings/input/touchscreen/zet6223.txt b/Documentation/devicetree/bindings/input/touchscreen/zet6223.txt new file mode 100644 index 000000000000..fe6a1feef703 --- /dev/null +++ b/Documentation/devicetree/bindings/input/touchscreen/zet6223.txt | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | Zeitec ZET6223 I2C touchscreen controller | ||
| 2 | |||
| 3 | Required properties: | ||
| 4 | - compatible : "zeitec,zet6223" | ||
| 5 | - reg : I2C slave address of the chip (0x76) | ||
| 6 | - interrupt-parent : a phandle pointing to the interrupt controller | ||
| 7 | serving the interrupt for this chip | ||
| 8 | - interrupts : interrupt specification for the zet6223 interrupt | ||
| 9 | |||
| 10 | Optional properties: | ||
| 11 | |||
| 12 | - vio-supply : Specification for VIO supply (1.8V or 3.3V, | ||
| 13 | depending on system interface needs). | ||
| 14 | - vcc-supply : Specification for 3.3V VCC supply. | ||
| 15 | - touchscreen-size-x : See touchscreen.txt | ||
| 16 | - touchscreen-size-y : See touchscreen.txt | ||
| 17 | - touchscreen-inverted-x : See touchscreen.txt | ||
| 18 | - touchscreen-inverted-y : See touchscreen.txt | ||
| 19 | - touchscreen-swapped-x-y : See touchscreen.txt | ||
| 20 | |||
| 21 | Example: | ||
| 22 | |||
| 23 | i2c@00000000 { | ||
| 24 | |||
| 25 | zet6223: touchscreen@76 { | ||
| 26 | compatible = "zeitec,zet6223"; | ||
| 27 | reg = <0x76>; | ||
| 28 | interrupt-parent = <&pio>; | ||
| 29 | interrupts = <6 11 IRQ_TYPE_EDGE_FALLING> | ||
| 30 | }; | ||
| 31 | |||
| 32 | }; | ||
