1 * palmas regulator IP block devicetree binding 1 * palmas regulator IP block devicetree bindings 2 2 3 The tps659038 for the AM57x class have OTP spi 3 The tps659038 for the AM57x class have OTP spins that 4 have different part numbers but the same funct 4 have different part numbers but the same functionality. There 5 is not a need to add the OTP spins to the palm 5 is not a need to add the OTP spins to the palmas driver. The 6 spin devices should use the tps659038 as it's 6 spin devices should use the tps659038 as it's compatible value. 7 This is the list of those devices: 7 This is the list of those devices: 8 tps659037 8 tps659037 9 9 10 Required properties: 10 Required properties: 11 - compatible : Should be from the list 11 - compatible : Should be from the list 12 ti,twl6035-pmic 12 ti,twl6035-pmic 13 ti,twl6036-pmic 13 ti,twl6036-pmic 14 ti,twl6037-pmic 14 ti,twl6037-pmic 15 ti,tps65913-pmic 15 ti,tps65913-pmic 16 ti,tps65914-pmic 16 ti,tps65914-pmic 17 ti,tps65917-pmic 17 ti,tps65917-pmic 18 ti,tps659038-pmic 18 ti,tps659038-pmic 19 and also the generic series names 19 and also the generic series names 20 ti,palmas-pmic 20 ti,palmas-pmic >> 21 - interrupt-parent : The parent interrupt controller which is palmas. 21 - interrupts : The interrupt number and the ty 22 - interrupts : The interrupt number and the type which can be looked up here: 22 arch/arm/boot/dts/include/dt-bi 23 arch/arm/boot/dts/include/dt-bindings/interrupt-controller/irq.h 23 - interrupts-name: The names of the individual 24 - interrupts-name: The names of the individual interrupts. 24 25 25 Optional properties: 26 Optional properties: 26 - ti,ldo6-vibrator : ldo6 is in vibrator mode 27 - ti,ldo6-vibrator : ldo6 is in vibrator mode 27 28 28 Optional nodes: 29 Optional nodes: 29 - regulators : Must contain a sub-node per reg 30 - regulators : Must contain a sub-node per regulator from the list below. 30 Each sub-node should contain th 31 Each sub-node should contain the constraints and initialization 31 information for that regulator. 32 information for that regulator. See regulator.txt for a 32 description of standard propert 33 description of standard properties for these sub-nodes. 33 Additional custom properties a 34 Additional custom properties are listed below. 34 35 35 For ti,palmas-pmic - smps12, sm 36 For ti,palmas-pmic - smps12, smps123, smps3 depending on OTP, 36 smps45, smps457, smps7 dependin 37 smps45, smps457, smps7 depending on variant, smps6, smps[8-9], 37 smps10_out2, smps10_out1, ldo[1 38 smps10_out2, smps10_out1, ldo[1-9], ldoln, ldousb. 38 39 39 Optional sub-node properties: 40 Optional sub-node properties: 40 ti,warm-reset - maintain voltag 41 ti,warm-reset - maintain voltage during warm reset(boolean) 41 ti,roof-floor - This takes as o 42 ti,roof-floor - This takes as optional argument on platform supporting 42 the rail from desired external 43 the rail from desired external control. If there is no argument then 43 it will be assume that it is co 44 it will be assume that it is controlled by NSLEEP pin. 44 The valid value for external pi 45 The valid value for external pins are: 45 ENABLE1 then 1, 46 ENABLE1 then 1, 46 ENABLE2 then 2 or 47 ENABLE2 then 2 or 47 NSLEEP then 3. 48 NSLEEP then 3. 48 ti,mode-sleep - mode to adopt i 49 ti,mode-sleep - mode to adopt in pmic sleep 0 - off, 1 - auto, 49 2 - eco, 3 - forced pwm 50 2 - eco, 3 - forced pwm 50 ti,smps-range - OTP has the wro 51 ti,smps-range - OTP has the wrong range set for the hardware so override 51 0 - low range, 1 - high range. 52 0 - low range, 1 - high range. 52 53 53 - ti,system-power-controller: Telling whether 54 - ti,system-power-controller: Telling whether or not this pmic is controlling 54 the system power 55 the system power. 55 56 56 Example: 57 Example: 57 58 58 #include <dt-bindings/interrupt-controller/irq 59 #include <dt-bindings/interrupt-controller/irq.h> 59 60 60 pmic { 61 pmic { 61 compatible = "ti,twl6035-pmic", "ti,pa 62 compatible = "ti,twl6035-pmic", "ti,palmas-pmic"; 62 interrupt-parent = <&palmas>; 63 interrupt-parent = <&palmas>; 63 interrupts = <14 IRQ_TYPE_NONE>; 64 interrupts = <14 IRQ_TYPE_NONE>; 64 interrupts-name = "short-irq"; 65 interrupts-name = "short-irq"; 65 66 66 ti,ldo6-vibrator; 67 ti,ldo6-vibrator; 67 68 68 ti,system-power-controller; 69 ti,system-power-controller; 69 70 70 regulators { 71 regulators { 71 smps12_reg : smps12 { 72 smps12_reg : smps12 { 72 regulator-name = "smps 73 regulator-name = "smps12"; 73 regulator-min-microvol 74 regulator-min-microvolt = < 600000>; 74 regulator-max-microvol 75 regulator-max-microvolt = <1500000>; 75 regulator-always-on; 76 regulator-always-on; 76 regulator-boot-on; 77 regulator-boot-on; 77 ti,warm-reset; 78 ti,warm-reset; 78 ti,roof-floor = <1>; / 79 ti,roof-floor = <1>; /* ENABLE1 control */ 79 ti,mode-sleep = <0>; 80 ti,mode-sleep = <0>; 80 ti,smps-range = <1>; 81 ti,smps-range = <1>; 81 }; 82 }; 82 83 83 ldo1_reg: ldo1 { 84 ldo1_reg: ldo1 { 84 regulator-name = "ldo1 85 regulator-name = "ldo1"; 85 regulator-min-microvol 86 regulator-min-microvolt = <2800000>; 86 regulator-max-microvol 87 regulator-max-microvolt = <2800000>; 87 }; 88 }; 88 }; 89 }; 89 }; 90 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.