xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/gpio/gpio-detection.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1Required properties:
2- compatible: should be "gpio-detection"
3- status:
4- pinctrl-0 : phandle referencing pin configuration of the gpio controller
5- pinctrl-names : a pinctrl state named "default" must be defined
6- car-reverse : a describtion to show the gpio will be use to car reverse
7- car-acc : a describtion to show the gpio will be use to car accelerate
8- gpios : The GPIO to set high/low, see "gpios property" in
9  Documentation/devicetree/bindings/gpio/gpio.txt. If the pin should be
10  low to power down the board set it to "Active Low", otherwise set
11  gpio to "Active High".
12- linux,debounce-ms: interrupt debounce time. (u32)
13- label : The label / name for this partition.  If omitted, the label is taken
14- gpio,wakeup : To enable the wakeup comparator in probe
15
16Example:
17
18	gpio_det: gpio-det {
19		compatible = "gpio-detection";
20		status = "okay";
21
22		pinctrl-0 = <&gpio3_b1 &gpio3_b2>;
23		pinctrl-names = "default";
24		car-reverse {
25			car-reverse-gpios = <&gpio3 10 GPIO_ACTIVE_HIGH>;
26			linux,debounce-ms = <5>;
27			label = "car-reverse";
28			gpio,wakeup;
29		};
30
31		car-acc {
32			car-acc-gpios = <&gpio3 9 GPIO_ACTIVE_HIGH>;
33			linux,debounce-ms = <5>;
34			label = "car-acc";
35			gpio,wakeup;
36		};
37	};
38