Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

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