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) * Kinetic Technologies - KTD2692 Flash LED Driver
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) KTD2692 is the ideal power solution for high-power flash LEDs.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) It uses ExpressWire single-wire programming for maximum flexibility.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) The ExpressWire interface through CTRL pin can control LED on/off and
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) enable/disable the IC, Movie(max 1/3 of Flash current) / Flash mode current,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) Flash timeout, LVP(low voltage protection).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) Also, When the AUX pin is pulled high while CTRL pin is high,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) LED current will be ramped up to the flash-mode current level.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) Required properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) - compatible : Should be "kinetic,ktd2692".
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) - ctrl-gpios : Specifier of the GPIO connected to CTRL pin.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) - aux-gpios : Specifier of the GPIO connected to AUX pin.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) Optional properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) - vin-supply : "vin" LED supply (2.7V to 5.5V).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20)   See Documentation/devicetree/bindings/regulator/regulator.txt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) A discrete LED element connected to the device must be represented by a child
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) node - See Documentation/devicetree/bindings/leds/common.txt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) Required properties for flash LED child nodes:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26)   See Documentation/devicetree/bindings/leds/common.txt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) - led-max-microamp : Minimum Threshold for Timer protection
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28)   is defined internally (Maximum 300mA).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) - flash-max-microamp : Flash LED maximum current
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30)   Formula : I(mA) = 15000 / Rset.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) - flash-max-timeout-us : Flash LED maximum timeout.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) Optional properties for flash LED child nodes:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) - label : See Documentation/devicetree/bindings/leds/common.txt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) Example:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) ktd2692 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) 	compatible = "kinetic,ktd2692";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) 	ctrl-gpios = <&gpc0 1 0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) 	aux-gpios = <&gpc0 2 0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) 	vin-supply = <&vbat>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) 	flash-led {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) 		label = "ktd2692-flash";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) 		led-max-microamp = <300000>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) 		flash-max-microamp = <1500000>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) 		flash-max-timeout-us = <1835000>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) 	};
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) };