18c2ecf20Sopenharmony_ciBCM2835 PM (Power domains, watchdog)
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciThe PM block controls power domains and some reset lines, and includes
48c2ecf20Sopenharmony_cia watchdog timer.  This binding supersedes the brcm,bcm2835-pm-wdt
58c2ecf20Sopenharmony_cibinding which covered some of PM's register range and functionality.
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ciRequired properties:
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci- compatible:		Should be "brcm,bcm2835-pm"
108c2ecf20Sopenharmony_ci- reg:			Specifies base physical address and size of the two
118c2ecf20Sopenharmony_ci			  register ranges ("PM" and "ASYNC_BRIDGE" in that
128c2ecf20Sopenharmony_ci			  order)
138c2ecf20Sopenharmony_ci- clocks:		a) v3d: The V3D clock from CPRMAN
148c2ecf20Sopenharmony_ci			b) peri_image: The PERI_IMAGE clock from CPRMAN
158c2ecf20Sopenharmony_ci			c) h264: The H264 clock from CPRMAN
168c2ecf20Sopenharmony_ci			d) isp: The ISP clock from CPRMAN
178c2ecf20Sopenharmony_ci- #reset-cells: 	Should be 1.  This property follows the reset controller
188c2ecf20Sopenharmony_ci			  bindings[1].
198c2ecf20Sopenharmony_ci- #power-domain-cells:	Should be 1.  This property follows the power domain
208c2ecf20Sopenharmony_ci			  bindings[2].
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ciOptional properties:
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci- timeout-sec:		Contains the watchdog timeout in seconds
258c2ecf20Sopenharmony_ci- system-power-controller: Whether the watchdog is controlling the
268c2ecf20Sopenharmony_ci    system power.  This node follows the power controller bindings[3].
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci[1] Documentation/devicetree/bindings/reset/reset.txt
298c2ecf20Sopenharmony_ci[2] Documentation/devicetree/bindings/power/power-domain.yaml
308c2ecf20Sopenharmony_ci[3] Documentation/devicetree/bindings/power/power-controller.txt
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ciExample:
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_cipm {
358c2ecf20Sopenharmony_ci	compatible = "brcm,bcm2835-pm", "brcm,bcm2835-pm-wdt";
368c2ecf20Sopenharmony_ci	#power-domain-cells = <1>;
378c2ecf20Sopenharmony_ci	#reset-cells = <1>;
388c2ecf20Sopenharmony_ci	reg = <0x7e100000 0x114>,
398c2ecf20Sopenharmony_ci	      <0x7e00a000 0x24>;
408c2ecf20Sopenharmony_ci	clocks = <&clocks BCM2835_CLOCK_V3D>,
418c2ecf20Sopenharmony_ci		 <&clocks BCM2835_CLOCK_PERI_IMAGE>,
428c2ecf20Sopenharmony_ci		 <&clocks BCM2835_CLOCK_H264>,
438c2ecf20Sopenharmony_ci		 <&clocks BCM2835_CLOCK_ISP>;
448c2ecf20Sopenharmony_ci	clock-names = "v3d", "peri_image", "h264", "isp";
458c2ecf20Sopenharmony_ci	system-power-controller;
468c2ecf20Sopenharmony_ci};
47