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) Texas Instruments TWL family (twl4030) reset and power management module
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) The power management module inside the TWL family provides several facilities
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) to control the power resources, including power scripts. For now, the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) binding only supports the complete shutdown of the system after poweroff.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) Required properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) - compatible : must be one of the following
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) 	"ti,twl4030-power"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 	"ti,twl4030-power-reset"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 	"ti,twl4030-power-idle"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 	"ti,twl4030-power-idle-osc-off"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) The use of ti,twl4030-power-reset is recommended at least on
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 3530 that needs a special configuration for warm reset to work.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) When using ti,twl4030-power-idle, the TI recommended configuration
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) for idle modes is loaded to the tlw4030 PMIC.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) When using ti,twl4030-power-idle-osc-off, the TI recommended
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) configuration is used with the external oscillator being shut
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) down during off-idle. Note that this does not work on all boards
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) depending on how the external oscillator is wired.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) Optional properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) - ti,system-power-controller: This indicates that TWL4030 is the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28)   power supply master of the system. With this flag, the chip will
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29)   initiate an ACTIVE-to-OFF or SLEEP-to-OFF transition when the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30)   system poweroffs.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) - ti,use_poweroff: Deprecated name for ti,system-power-controller
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) Example:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) &i2c1 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 	clock-frequency = <2600000>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) 	twl: twl@48 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) 		reg = <0x48>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) 		interrupts = <7>; /* SYS_NIRQ cascaded to intc */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) 		interrupt-parent = <&intc>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) 		twl_power: power {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) 			compatible = "ti,twl4030-power";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) 			ti,use_poweroff;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) 		};
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) 	};
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) };