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) USB GPIO Extcon device
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) This is a virtual device used to generate USB cable states from the USB ID pin
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) connected to a GPIO pin.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) Required properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) - compatible: Should be "linux,extcon-usb-gpio"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) Either one of id-gpio or vbus-gpio must be present. Both can be present as well.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) - id-gpio: gpio for USB ID pin. See gpio binding.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) - vbus-gpio: gpio for USB VBUS pin.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) Example: Examples of extcon-usb-gpio node in dra7-evm.dts as listed below:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 	extcon_usb1 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 		compatible = "linux,extcon-usb-gpio";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 		id-gpio = <&gpio6 1 GPIO_ACTIVE_HIGH>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 	&omap_dwc3_1 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 		extcon = <&extcon_usb1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 	};