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) MediaTek MT6397/MT6323 PMIC Keys Device Driver
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) There are two key functions provided by MT6397/MT6323 PMIC, pwrkey
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) and homekey. The key functions are defined as the subnode of the function
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) node provided by MT6397/MT6323 PMIC that is being defined as one kind
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) of Muti-Function Device (MFD)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) For MT6397/MT6323 MFD bindings see:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) Documentation/devicetree/bindings/mfd/mt6397.txt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) Required properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) - compatible: "mediatek,mt6397-keys" or "mediatek,mt6323-keys"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) - linux,keycodes: See Documentation/devicetree/bindings/input/input.yaml
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) Optional Properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) - wakeup-source: See Documentation/devicetree/bindings/power/wakeup-source.txt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) - mediatek,long-press-mode: Long press key shutdown setting, 1 for
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 	pwrkey only, 2 for pwrkey/homekey together, others for disabled.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) - power-off-time-sec: See Documentation/devicetree/bindings/input/input.yaml
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) Example:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 	pmic: mt6397 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 		compatible = "mediatek,mt6397";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 		...
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 		mt6397keys: mt6397keys {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 			compatible = "mediatek,mt6397-keys";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 			mediatek,long-press-mode = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 			power-off-time-sec = <0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 			power {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 				linux,keycodes = <116>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 				wakeup-source;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 			};
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) 			home {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) 				linux,keycodes = <114>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) 			};
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) 		};
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) 	};