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