tps6586x.txt 3.6 KB
Newer Older
1 2 3 4 5 6 7 8
TPS6586x family of regulators

Required properties:
- compatible: "ti,tps6586x"
- reg: I2C slave address
- interrupts: the interrupt outputs of the controller
- #gpio-cells: number of cells to describe a GPIO
- gpio-controller: mark the device as a GPIO controller
9 10 11
- regulators: list of regulators provided by this controller, must have
  property "regulator-compatible" to match their hardware counterparts:
  sm[0-2], ldo[0-9] and ldo_rtc
12 13 14
- vin-sm0-supply: The input supply for the SM0.
- vin-sm1-supply: The input supply for the SM1.
- vin-sm2-supply: The input supply for the SM2.
15 16 17 18 19
- vinldo01-supply: The input supply for the LDO1 and LDO2
- vinldo23-supply: The input supply for the LDO2 and LDO3
- vinldo4-supply: The input supply for the LDO4
- vinldo678-supply: The input supply for the LDO6, LDO7 and LDO8
- vinldo9-supply: The input supply for the LDO9
20 21 22 23 24 25 26 27 28 29 30 31 32

Each regulator is defined using the standard binding for regulators.

Example:

	pmu: tps6586x@34 {
		compatible = "ti,tps6586x";
		reg = <0x34>;
		interrupts = <0 88 0x4>;

		#gpio-cells = <2>;
		gpio-controller;

33 34 35
		vin-sm0-supply = <&some_reg>;
		vin-sm1-supply = <&some_reg>;
		vin-sm2-supply = <&some_reg>;
36 37 38 39 40 41
		vinldo01-supply = <...>;
		vinldo23-supply = <...>;
		vinldo4-supply = <...>;
		vinldo678-supply = <...>;
		vinldo9-supply = <...>;

42
		regulators {
43 44 45 46 47 48
			#address-cells = <1>;
			#size-cells = <0>;

			sm0_reg: regulator@0 {
				reg = <0>;
				regulator-compatible = "sm0";
49 50 51 52 53 54
				regulator-min-microvolt = < 725000>;
				regulator-max-microvolt = <1500000>;
				regulator-boot-on;
				regulator-always-on;
			};

55 56 57
			sm1_reg: regulator@1 {
				reg = <1>;
				regulator-compatible = "sm1";
58 59 60 61 62 63
				regulator-min-microvolt = < 725000>;
				regulator-max-microvolt = <1500000>;
				regulator-boot-on;
				regulator-always-on;
			};

64 65 66
			sm2_reg: regulator@2 {
				reg = <2>;
				regulator-compatible = "sm2";
67 68 69 70 71 72
				regulator-min-microvolt = <3000000>;
				regulator-max-microvolt = <4550000>;
				regulator-boot-on;
				regulator-always-on;
			};

73 74 75
			ldo0_reg: regulator@3 {
				reg = <3>;
				regulator-compatible = "ldo0";
76 77 78 79 80
				regulator-name = "PCIE CLK";
				regulator-min-microvolt = <3300000>;
				regulator-max-microvolt = <3300000>;
			};

81 82 83
			ldo1_reg: regulator@4 {
				reg = <4>;
				regulator-compatible = "ldo1";
84 85 86 87
				regulator-min-microvolt = < 725000>;
				regulator-max-microvolt = <1500000>;
			};

88 89 90
			ldo2_reg: regulator@5 {
				reg = <5>;
				regulator-compatible = "ldo2";
91 92 93 94
				regulator-min-microvolt = < 725000>;
				regulator-max-microvolt = <1500000>;
			};

95 96 97
			ldo3_reg: regulator@6 {
				reg = <6>;
				regulator-compatible = "ldo3";
98 99 100 101
				regulator-min-microvolt = <1250000>;
				regulator-max-microvolt = <3300000>;
			};

102 103 104
			ldo4_reg: regulator@7 {
				reg = <7>;
				regulator-compatible = "ldo4";
105 106 107 108
				regulator-min-microvolt = <1700000>;
				regulator-max-microvolt = <2475000>;
			};

109 110 111
			ldo5_reg: regulator@8 {
				reg = <8>;
				regulator-compatible = "ldo5";
112 113 114 115
				regulator-min-microvolt = <1250000>;
				regulator-max-microvolt = <3300000>;
			};

116 117 118
			ldo6_reg: regulator@9 {
				reg = <9>;
				regulator-compatible = "ldo6";
119 120 121 122
				regulator-min-microvolt = <1250000>;
				regulator-max-microvolt = <3300000>;
			};

123 124 125
			ldo7_reg: regulator@10 {
				reg = <10>;
				regulator-compatible = "ldo7";
126 127 128 129
				regulator-min-microvolt = <1250000>;
				regulator-max-microvolt = <3300000>;
			};

130 131 132
			ldo8_reg: regulator@11 {
				reg = <11>;
				regulator-compatible = "ldo8";
133 134 135 136
				regulator-min-microvolt = <1250000>;
				regulator-max-microvolt = <3300000>;
			};

137 138 139
			ldo9_reg: regulator@12 {
				reg = <12>;
				regulator-compatible = "ldo9";
140 141 142 143 144
				regulator-min-microvolt = <1250000>;
				regulator-max-microvolt = <3300000>;
			};
		};
	};