summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/tegra124-platforms/tegra124-e1780-e1735-dfll.dtsi
blob: 6c499940b9f6433e8153e7a55420f1fff1b5008f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#include <dt-bindings/gpio/tegra-gpio.h>

/ {
	dfll@70110000 {
		board-params = <&{/cpu_dfll_board_params}>;
		status = "okay";
		pwm_dfll: pwm-pmic-integration {
			compatible = "nvidia,tegra124-dfll-pwm";
			pwm-1wire-buffer;
			pwm-data-gpio = <&gpio TEGRA_GPIO(X, 0) 0>;
			pwm-buffer-ctrl-gpio = <&gpio TEGRA_GPIO(S, 5) 1>;
			#pwm-cells = <2>;
			pwm-regulator = <&cpu_pwm_reg>;
		};
	};

	cpu_dfll_board_params {
		sample-rate = <50000>;
		fixed-output-forcing;
		cf = <10>;
		ci = <0>;
		cg = <2>;
		droop-cut-value = <0xf>;
		droop-restore-ramp = <0x0>;
		scale-out-ramp = <0x0>;
	};

	pwm_regulators {
		compatible = "simple-bus";
		#address-cells = <1>;
		#size-cells = <0>;

		cpu_pwm_reg: pwm-regulator@0 {
			reg = <0>;
			compatible = "regulator-pwm";
			pwms = <&pwm_dfll 0 2500>;
			regulator-name = "vdd-cpu-pwm-reg";
			regulator-min-microvolt = <675000>;
			regulator-max-microvolt = <1275000>;
			regulator-init-microvolt = <1000000>;
			regulator-always-on;
			regulator-boot-on;
			regulator-n-voltages = <33>;
			voltage-time-sel = <80>;
			idle-gpio = <&gpio TEGRA_GPIO(X, 2) 0>;

			consumers {
				c1 {
					regulator-consumer-supply = "vdd_cpu";
				};
			};
		};
	};
};