162306a36Sopenharmony_ciBinding for TI DaVinci Power Sleep Controller (PSC)
262306a36Sopenharmony_ci
362306a36Sopenharmony_ciThe PSC provides power management, clock gating and reset functionality. It is
462306a36Sopenharmony_ciprimarily used for clocking.
562306a36Sopenharmony_ci
662306a36Sopenharmony_ciRequired properties:
762306a36Sopenharmony_ci- compatible: shall be one of:
862306a36Sopenharmony_ci	- "ti,da850-psc0" for PSC0 on DA850/OMAP-L138/AM18XX
962306a36Sopenharmony_ci	- "ti,da850-psc1" for PSC1 on DA850/OMAP-L138/AM18XX
1062306a36Sopenharmony_ci- reg: physical base address and size of the controller's register area
1162306a36Sopenharmony_ci- #clock-cells: from common clock binding; shall be set to 1
1262306a36Sopenharmony_ci- #power-domain-cells: from generic power domain binding; shall be set to 1.
1362306a36Sopenharmony_ci- clocks: phandles to clocks corresponding to the clock-names property
1462306a36Sopenharmony_ci- clock-names: list of parent clock names - depends on compatible value
1562306a36Sopenharmony_ci	- for "ti,da850-psc0", shall be "pll0_sysclk1", "pll0_sysclk2",
1662306a36Sopenharmony_ci	  "pll0_sysclk4", "pll0_sysclk6", "async1"
1762306a36Sopenharmony_ci	- for "ti,da850-psc1", shall be "pll0_sysclk2", "pll0_sysclk4", "async3"
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ciOptional properties:
2062306a36Sopenharmony_ci- #reset-cells: from reset binding; shall be set to 1 - only applicable when
2162306a36Sopenharmony_ci  at least one local domain provides a local reset.
2262306a36Sopenharmony_ci
2362306a36Sopenharmony_ciConsumers:
2462306a36Sopenharmony_ci
2562306a36Sopenharmony_ci	Clock, power domain and reset consumers shall use the local power domain
2662306a36Sopenharmony_ci	module ID (LPSC) as the index corresponding to the clock cell. Refer to
2762306a36Sopenharmony_ci	the device-specific datasheet to find these numbers. NB: Most local
2862306a36Sopenharmony_ci	domains	only provide a clock/power domain and not a reset.
2962306a36Sopenharmony_ci
3062306a36Sopenharmony_ciExamples:
3162306a36Sopenharmony_ci
3262306a36Sopenharmony_ci	psc0: clock-controller@10000 {
3362306a36Sopenharmony_ci		compatible = "ti,da850-psc0";
3462306a36Sopenharmony_ci		reg = <0x10000 0x1000>;
3562306a36Sopenharmony_ci		#clock-cells = <1>;
3662306a36Sopenharmony_ci		#power-domain-cells = <1>;
3762306a36Sopenharmony_ci		#reset-cells = <1>;
3862306a36Sopenharmony_ci		clocks = <&pll0_sysclk 1>, <&pll0_sysclk 2>,
3962306a36Sopenharmony_ci			 <&pll0_sysclk 4>, <&pll0_sysclk 6>, <&async1_clk>;
4062306a36Sopenharmony_ci		clock_names = "pll0_sysclk1", "pll0_sysclk2",
4162306a36Sopenharmony_ci			      "pll0_sysclk4", "pll0_sysclk6", "async1";
4262306a36Sopenharmony_ci	};
4362306a36Sopenharmony_ci	psc1: clock-controller@227000 {
4462306a36Sopenharmony_ci		compatible = "ti,da850-psc1";
4562306a36Sopenharmony_ci		reg = <0x227000 0x1000>;
4662306a36Sopenharmony_ci		#clock-cells = <1>;
4762306a36Sopenharmony_ci		#power-domain-cells = <1>;
4862306a36Sopenharmony_ci		clocks = <&pll0_sysclk 2>, <&pll0_sysclk 4>, <&async3_clk>;
4962306a36Sopenharmony_ci		clock_names = "pll0_sysclk2", "pll0_sysclk4", "async3";
5062306a36Sopenharmony_ci	};
5162306a36Sopenharmony_ci
5262306a36Sopenharmony_ci	/* consumer */
5362306a36Sopenharmony_ci	dsp: dsp@11800000 {
5462306a36Sopenharmony_ci		compatible = "ti,da850-dsp";
5562306a36Sopenharmony_ci		reg = <0x11800000 0x40000>,
5662306a36Sopenharmony_ci		      <0x11e00000 0x8000>,
5762306a36Sopenharmony_ci		      <0x11f00000 0x8000>,
5862306a36Sopenharmony_ci		      <0x01c14044 0x4>,
5962306a36Sopenharmony_ci		      <0x01c14174 0x8>;
6062306a36Sopenharmony_ci		reg-names = "l2sram", "l1pram", "l1dram", "host1cfg", "chipsig";
6162306a36Sopenharmony_ci		interrupt-parent = <&intc>;
6262306a36Sopenharmony_ci		interrupts = <28>;
6362306a36Sopenharmony_ci		clocks = <&psc0 15>;
6462306a36Sopenharmony_ci		power-domains = <&psc0 15>;
6562306a36Sopenharmony_ci		resets = <&psc0 15>;
6662306a36Sopenharmony_ci	};
6762306a36Sopenharmony_ci
6862306a36Sopenharmony_ciAlso see:
6962306a36Sopenharmony_ci- Documentation/devicetree/bindings/clock/clock-bindings.txt
7062306a36Sopenharmony_ci- Documentation/devicetree/bindings/power/power-domain.yaml
7162306a36Sopenharmony_ci- Documentation/devicetree/bindings/reset/reset.txt
72