~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/clock/nvidia,tegra124-dfll.txt

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 NVIDIA Tegra124 DFLL FCPU clocksource
  2 
  3 This binding uses the common clock binding:
  4 Documentation/devicetree/bindings/clock/clock-bindings.txt
  5 
  6 The DFLL IP block on Tegra is a root clocksource designed for clocking
  7 the fast CPU cluster. It consists of a free-running voltage controlled
  8 oscillator connected to the CPU voltage rail (VDD_CPU), and a closed loop
  9 control module that will automatically adjust the VDD_CPU voltage by
 10 communicating with an off-chip PMIC either via an I2C bus or via PWM signals.
 11 
 12 Required properties:
 13 - compatible : should be one of:
 14   - "nvidia,tegra124-dfll": for Tegra124
 15   - "nvidia,tegra210-dfll": for Tegra210
 16 - reg : Defines the following set of registers, in the order listed:
 17         - registers for the DFLL control logic.
 18         - registers for the I2C output logic.
 19         - registers for the integrated I2C master controller.
 20         - look-up table RAM for voltage register values.
 21 - interrupts: Should contain the DFLL block interrupt.
 22 - clocks: Must contain an entry for each entry in clock-names.
 23   See clock-bindings.txt for details.
 24 - clock-names: Must include the following entries:
 25   - soc: Clock source for the DFLL control logic.
 26   - ref: The closed loop reference clock
 27   - i2c: Clock source for the integrated I2C master.
 28 - resets: Must contain an entry for each entry in reset-names.
 29   See ../reset/reset.txt for details.
 30 - reset-names: Must include the following entries:
 31   - dvco: Reset control for the DFLL DVCO.
 32 - #clock-cells: Must be 0.
 33 - clock-output-names: Name of the clock output.
 34 - vdd-cpu-supply: Regulator for the CPU voltage rail that the DFLL
 35   hardware will start controlling. The regulator will be queried for
 36   the I2C register, control values and supported voltages.
 37 
 38 Required properties for the control loop parameters:
 39 - nvidia,sample-rate: Sample rate of the DFLL control loop.
 40 - nvidia,droop-ctrl: See the register CL_DVFS_DROOP_CTRL in the TRM.
 41 - nvidia,force-mode: See the field DFLL_PARAMS_FORCE_MODE in the TRM.
 42 - nvidia,cf: Numeric value, see the field DFLL_PARAMS_CF_PARAM in the TRM.
 43 - nvidia,ci: Numeric value, see the field DFLL_PARAMS_CI_PARAM in the TRM.
 44 - nvidia,cg: Numeric value, see the field DFLL_PARAMS_CG_PARAM in the TRM.
 45 
 46 Optional properties for the control loop parameters:
 47 - nvidia,cg-scale: Boolean value, see the field DFLL_PARAMS_CG_SCALE in the TRM.
 48 
 49 Optional properties for mode selection:
 50 - nvidia,pwm-to-pmic: Use PWM to control regulator rather then I2C.
 51 
 52 Required properties for I2C mode:
 53 - nvidia,i2c-fs-rate: I2C transfer rate, if using full speed mode.
 54 
 55 Required properties for PWM mode:
 56 - nvidia,pwm-period-nanoseconds: period of PWM square wave in nanoseconds.
 57 - nvidia,pwm-tristate-microvolts: Regulator voltage in micro volts when PWM
 58   control is disabled and the PWM output is tristated. Note that this voltage is
 59   configured in hardware, typically via a resistor divider.
 60 - nvidia,pwm-min-microvolts: Regulator voltage in micro volts when PWM control
 61   is enabled and PWM output is low. Hence, this is the minimum output voltage
 62   that the regulator supports when PWM control is enabled.
 63 - nvidia,pwm-voltage-step-microvolts: Voltage increase in micro volts
 64   corresponding to a 1/33th increase in duty cycle. Eg the voltage for 2/33th
 65   duty cycle would be: nvidia,pwm-min-microvolts +
 66   nvidia,pwm-voltage-step-microvolts * 2.
 67 - pinctrl-0: I/O pad configuration when PWM control is enabled.
 68 - pinctrl-1: I/O pad configuration when PWM control is disabled.
 69 - pinctrl-names: must include the following entries:
 70   - dvfs_pwm_enable: I/O pad configuration when PWM control is enabled.
 71   - dvfs_pwm_disable: I/O pad configuration when PWM control is disabled.
 72 
 73 Example for I2C:
 74 
 75 clock@70110000 {
 76         compatible = "nvidia,tegra124-dfll";
 77         reg = <0 0x70110000 0 0x100>, /* DFLL control */
 78               <0 0x70110000 0 0x100>, /* I2C output control */
 79               <0 0x70110100 0 0x100>, /* Integrated I2C controller */
 80               <0 0x70110200 0 0x100>; /* Look-up table RAM */
 81         interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
 82         clocks = <&tegra_car TEGRA124_CLK_DFLL_SOC>,
 83                  <&tegra_car TEGRA124_CLK_DFLL_REF>,
 84                  <&tegra_car TEGRA124_CLK_I2C5>;
 85         clock-names = "soc", "ref", "i2c";
 86         resets = <&tegra_car TEGRA124_RST_DFLL_DVCO>;
 87         reset-names = "dvco";
 88         #clock-cells = <0>;
 89         clock-output-names = "dfllCPU_out";
 90         vdd-cpu-supply = <&vdd_cpu>;
 91 
 92         nvidia,sample-rate = <12500>;
 93         nvidia,droop-ctrl = <0x00000f00>;
 94         nvidia,force-mode = <1>;
 95         nvidia,cf = <10>;
 96         nvidia,ci = <0>;
 97         nvidia,cg = <2>;
 98 
 99         nvidia,i2c-fs-rate = <400000>;
100 };
101 
102 Example for PWM:
103 
104 clock@70110000 {
105         compatible = "nvidia,tegra124-dfll";
106         reg = <0 0x70110000 0 0x100>, /* DFLL control */
107               <0 0x70110000 0 0x100>, /* I2C output control */
108               <0 0x70110100 0 0x100>, /* Integrated I2C controller */
109               <0 0x70110200 0 0x100>; /* Look-up table RAM */
110         interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
111         clocks = <&tegra_car TEGRA210_CLK_DFLL_SOC>,
112                  <&tegra_car TEGRA210_CLK_DFLL_REF>,
113                  <&tegra_car TEGRA124_CLK_I2C5>;;
114         clock-names = "soc", "ref", "i2c";
115         resets = <&tegra_car TEGRA124_RST_DFLL_DVCO>;
116         reset-names = "dvco";
117         #clock-cells = <0>;
118         clock-output-names = "dfllCPU_out";
119 
120         nvidia,sample-rate = <25000>;
121         nvidia,droop-ctrl = <0x00000f00>;
122         nvidia,force-mode = <1>;
123         nvidia,cf = <6>;
124         nvidia,ci = <0>;
125         nvidia,cg = <2>;
126 
127         nvidia,pwm-min-microvolts = <708000>; /* 708mV */
128         nvidia,pwm-period-nanoseconds = <2500>; /* 2.5us */
129         nvidia,pwm-to-pmic;
130         nvidia,pwm-tristate-microvolts = <1000000>;
131         nvidia,pwm-voltage-step-microvolts = <19200>; /* 19.2mV */
132 
133         pinctrl-names = "dvfs_pwm_enable", "dvfs_pwm_disable";
134         pinctrl-0 = <&dvfs_pwm_active_state>;
135         pinctrl-1 = <&dvfs_pwm_inactive_state>;
136 };
137 
138 /* pinmux nodes added for completeness. Binding doc can be found in:
139  * Documentation/devicetree/bindings/pinctrl/nvidia,tegra210-pinmux.yaml
140  */
141 
142 pinmux: pinmux@700008d4 {
143         dvfs_pwm_active_state: dvfs_pwm_active {
144                 dvfs_pwm_pbb1 {
145                         nvidia,pins = "dvfs_pwm_pbb1";
146                         nvidia,tristate = <TEGRA_PIN_DISABLE>;
147                 };
148         };
149         dvfs_pwm_inactive_state: dvfs_pwm_inactive {
150                 dvfs_pwm_pbb1 {
151                         nvidia,pins = "dvfs_pwm_pbb1";
152                         nvidia,tristate = <TEGRA_PIN_ENABLE>;
153                 };
154         };
155 };

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php