18c2ecf20Sopenharmony_ciTPS65090 regulators 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciRequired properties: 48c2ecf20Sopenharmony_ci- compatible: "ti,tps65090" 58c2ecf20Sopenharmony_ci- reg: I2C slave address 68c2ecf20Sopenharmony_ci- interrupts: the interrupt outputs of the controller 78c2ecf20Sopenharmony_ci- regulators: A node that houses a sub-node for each regulator within the 88c2ecf20Sopenharmony_ci device. Each sub-node is identified using the node's name, with valid 98c2ecf20Sopenharmony_ci values listed below. The content of each sub-node is defined by the 108c2ecf20Sopenharmony_ci standard binding for regulators; see regulator.txt. 118c2ecf20Sopenharmony_ci dcdc[1-3], fet[1-7] and ldo[1-2] respectively. 128c2ecf20Sopenharmony_ci- vsys[1-3]-supply: The input supply for DCDC[1-3] respectively. 138c2ecf20Sopenharmony_ci- infet[1-7]-supply: The input supply for FET[1-7] respectively. 148c2ecf20Sopenharmony_ci- vsys-l[1-2]-supply: The input supply for LDO[1-2] respectively. 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ciOptional properties: 178c2ecf20Sopenharmony_ci- ti,enable-ext-control: This is applicable for DCDC1, DCDC2 and DCDC3. 188c2ecf20Sopenharmony_ci If DCDCs are externally controlled then this property should be there. 198c2ecf20Sopenharmony_ci- dcdc-ext-control-gpios: This is applicable for DCDC1, DCDC2 and DCDC3. 208c2ecf20Sopenharmony_ci If DCDCs are externally controlled and if it is from GPIO then GPIO 218c2ecf20Sopenharmony_ci number should be provided. If it is externally controlled and no GPIO 228c2ecf20Sopenharmony_ci entry then driver will just configure this rails as external control 238c2ecf20Sopenharmony_ci and will not provide any enable/disable APIs. 248c2ecf20Sopenharmony_ci- ti,overcurrent-wait: This is applicable to FET registers, which have a 258c2ecf20Sopenharmony_ci poorly defined "overcurrent wait" field. If this property is present it 268c2ecf20Sopenharmony_ci should be between 0 - 3. If this property isn't present we won't touch the 278c2ecf20Sopenharmony_ci "overcurrent wait" field and we'll leave it to the BIOS/EC to deal with. 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ciEach regulator is defined using the standard binding for regulators. 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ciExample: 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ci tps65090@48 { 348c2ecf20Sopenharmony_ci compatible = "ti,tps65090"; 358c2ecf20Sopenharmony_ci reg = <0x48>; 368c2ecf20Sopenharmony_ci interrupts = <0 88 0x4>; 378c2ecf20Sopenharmony_ci 388c2ecf20Sopenharmony_ci vsys1-supply = <&some_reg>; 398c2ecf20Sopenharmony_ci vsys2-supply = <&some_reg>; 408c2ecf20Sopenharmony_ci vsys3-supply = <&some_reg>; 418c2ecf20Sopenharmony_ci infet1-supply = <&some_reg>; 428c2ecf20Sopenharmony_ci infet2-supply = <&some_reg>; 438c2ecf20Sopenharmony_ci infet3-supply = <&some_reg>; 448c2ecf20Sopenharmony_ci infet4-supply = <&some_reg>; 458c2ecf20Sopenharmony_ci infet5-supply = <&some_reg>; 468c2ecf20Sopenharmony_ci infet6-supply = <&some_reg>; 478c2ecf20Sopenharmony_ci infet7-supply = <&some_reg>; 488c2ecf20Sopenharmony_ci vsys-l1-supply = <&some_reg>; 498c2ecf20Sopenharmony_ci vsys-l2-supply = <&some_reg>; 508c2ecf20Sopenharmony_ci 518c2ecf20Sopenharmony_ci regulators { 528c2ecf20Sopenharmony_ci dcdc1 { 538c2ecf20Sopenharmony_ci regulator-name = "dcdc1"; 548c2ecf20Sopenharmony_ci regulator-boot-on; 558c2ecf20Sopenharmony_ci regulator-always-on; 568c2ecf20Sopenharmony_ci ti,enable-ext-control; 578c2ecf20Sopenharmony_ci dcdc-ext-control-gpios = <&gpio 10 0>; 588c2ecf20Sopenharmony_ci }; 598c2ecf20Sopenharmony_ci 608c2ecf20Sopenharmony_ci dcdc2 { 618c2ecf20Sopenharmony_ci regulator-name = "dcdc2"; 628c2ecf20Sopenharmony_ci regulator-boot-on; 638c2ecf20Sopenharmony_ci regulator-always-on; 648c2ecf20Sopenharmony_ci }; 658c2ecf20Sopenharmony_ci 668c2ecf20Sopenharmony_ci dcdc3 { 678c2ecf20Sopenharmony_ci regulator-name = "dcdc3"; 688c2ecf20Sopenharmony_ci regulator-boot-on; 698c2ecf20Sopenharmony_ci regulator-always-on; 708c2ecf20Sopenharmony_ci }; 718c2ecf20Sopenharmony_ci 728c2ecf20Sopenharmony_ci fet1 { 738c2ecf20Sopenharmony_ci regulator-name = "fet1"; 748c2ecf20Sopenharmony_ci regulator-boot-on; 758c2ecf20Sopenharmony_ci regulator-always-on; 768c2ecf20Sopenharmony_ci }; 778c2ecf20Sopenharmony_ci 788c2ecf20Sopenharmony_ci fet2 { 798c2ecf20Sopenharmony_ci regulator-name = "fet2"; 808c2ecf20Sopenharmony_ci regulator-boot-on; 818c2ecf20Sopenharmony_ci regulator-always-on; 828c2ecf20Sopenharmony_ci }; 838c2ecf20Sopenharmony_ci 848c2ecf20Sopenharmony_ci fet3 { 858c2ecf20Sopenharmony_ci regulator-name = "fet3"; 868c2ecf20Sopenharmony_ci regulator-boot-on; 878c2ecf20Sopenharmony_ci regulator-always-on; 888c2ecf20Sopenharmony_ci }; 898c2ecf20Sopenharmony_ci 908c2ecf20Sopenharmony_ci fet4 { 918c2ecf20Sopenharmony_ci regulator-name = "fet4"; 928c2ecf20Sopenharmony_ci regulator-boot-on; 938c2ecf20Sopenharmony_ci regulator-always-on; 948c2ecf20Sopenharmony_ci }; 958c2ecf20Sopenharmony_ci 968c2ecf20Sopenharmony_ci fet5 { 978c2ecf20Sopenharmony_ci regulator-name = "fet5"; 988c2ecf20Sopenharmony_ci regulator-boot-on; 998c2ecf20Sopenharmony_ci regulator-always-on; 1008c2ecf20Sopenharmony_ci }; 1018c2ecf20Sopenharmony_ci 1028c2ecf20Sopenharmony_ci fet6 { 1038c2ecf20Sopenharmony_ci regulator-name = "fet6"; 1048c2ecf20Sopenharmony_ci regulator-boot-on; 1058c2ecf20Sopenharmony_ci regulator-always-on; 1068c2ecf20Sopenharmony_ci }; 1078c2ecf20Sopenharmony_ci 1088c2ecf20Sopenharmony_ci fet7 { 1098c2ecf20Sopenharmony_ci regulator-name = "fet7"; 1108c2ecf20Sopenharmony_ci regulator-boot-on; 1118c2ecf20Sopenharmony_ci regulator-always-on; 1128c2ecf20Sopenharmony_ci }; 1138c2ecf20Sopenharmony_ci 1148c2ecf20Sopenharmony_ci ldo1 { 1158c2ecf20Sopenharmony_ci regulator-name = "ldo1"; 1168c2ecf20Sopenharmony_ci regulator-boot-on; 1178c2ecf20Sopenharmony_ci regulator-always-on; 1188c2ecf20Sopenharmony_ci }; 1198c2ecf20Sopenharmony_ci 1208c2ecf20Sopenharmony_ci ldo2 { 1218c2ecf20Sopenharmony_ci regulator-name = "ldo2"; 1228c2ecf20Sopenharmony_ci regulator-boot-on; 1238c2ecf20Sopenharmony_ci regulator-always-on; 1248c2ecf20Sopenharmony_ci }; 1258c2ecf20Sopenharmony_ci }; 1268c2ecf20Sopenharmony_ci }; 127