Add "qcom,regulator-hw-type" device tree property to differentiate the pmic-ldo types. Change-Id: Iede9b56c546027599687051347ba8384e8b3853e Signed-off-by: Naitik Bharadiya <bharad@codeaurora.org>tirimbino
parent
5266e6455c
commit
961365de61
@ -0,0 +1,314 @@ |
||||
/* Copyright (c) 2016, 2019, The Linux Foundation. All rights reserved. |
||||
* |
||||
* This program is free software; you can redistribute it and/or modify |
||||
* it under the terms of the GNU General Public License version 2 and |
||||
* only version 2 as published by the Free Software Foundation. |
||||
* |
||||
* This program is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU General Public License for more details. |
||||
*/ |
||||
|
||||
&rpm_bus { |
||||
rpm-regulator-smpa4 { |
||||
compatible = "qcom,rpm-smd-regulator-resource"; |
||||
qcom,resource-name = "smpa"; |
||||
qcom,resource-id = <4>; |
||||
qcom,regulator-type = <1>; |
||||
status = "disabled"; |
||||
|
||||
regulator-s4 { |
||||
compatible = "qcom,rpm-smd-regulator"; |
||||
regulator-name = "pm660_s4"; |
||||
qcom,set = <3>; |
||||
status = "disabled"; |
||||
}; |
||||
}; |
||||
|
||||
rpm-regulator-smpa5 { |
||||
compatible = "qcom,rpm-smd-regulator-resource"; |
||||
qcom,resource-name = "smpa"; |
||||
qcom,resource-id = <5>; |
||||
qcom,regulator-type = <1>; |
||||
status = "disabled"; |
||||
|
||||
regulator-s5 { |
||||
compatible = "qcom,rpm-smd-regulator"; |
||||
regulator-name = "pm660_s5"; |
||||
qcom,set = <3>; |
||||
status = "disabled"; |
||||
}; |
||||
}; |
||||
|
||||
rpm-regulator-smpa6 { |
||||
compatible = "qcom,rpm-smd-regulator-resource"; |
||||
qcom,resource-name = "smpa"; |
||||
qcom,resource-id = <6>; |
||||
qcom,regulator-type = <1>; |
||||
status = "disabled"; |
||||
|
||||
regulator-s6 { |
||||
compatible = "qcom,rpm-smd-regulator"; |
||||
regulator-name = "pm660_s6"; |
||||
qcom,set = <3>; |
||||
status = "disabled"; |
||||
}; |
||||
}; |
||||
|
||||
rpm-regulator-ldoa1 { |
||||
compatible = "qcom,rpm-smd-regulator-resource"; |
||||
qcom,resource-name = "ldoa"; |
||||
qcom,resource-id = <1>; |
||||
qcom,regulator-type = <0>; |
||||
qcom,regulator-hw-type = "pmic4-ldo"; |
||||
status = "disabled"; |
||||
|
||||
regulator-l1 { |
||||
compatible = "qcom,rpm-smd-regulator"; |
||||
regulator-name = "pm660_l1"; |
||||
qcom,set = <3>; |
||||
status = "disabled"; |
||||
}; |
||||
}; |
||||
|
||||
rpm-regulator-ldoa2 { |
||||
compatible = "qcom,rpm-smd-regulator-resource"; |
||||
qcom,resource-name = "ldoa"; |
||||
qcom,resource-id = <2>; |
||||
qcom,regulator-type = <0>; |
||||
qcom,regulator-hw-type = "pmic4-ldo"; |
||||
status = "disabled"; |
||||
|
||||
regulator-l2 { |
||||
compatible = "qcom,rpm-smd-regulator"; |
||||
regulator-name = "pm660_l2"; |
||||
qcom,set = <3>; |
||||
status = "disabled"; |
||||
}; |
||||
}; |
||||
|
||||
rpm-regulator-ldoa3 { |
||||
compatible = "qcom,rpm-smd-regulator-resource"; |
||||
qcom,resource-name = "ldoa"; |
||||
qcom,resource-id = <3>; |
||||
qcom,regulator-type = <0>; |
||||
qcom,regulator-hw-type = "pmic4-ldo"; |
||||
status = "disabled"; |
||||
|
||||
regulator-l3 { |
||||
compatible = "qcom,rpm-smd-regulator"; |
||||
regulator-name = "pm660_l3"; |
||||
qcom,set = <3>; |
||||
status = "disabled"; |
||||
}; |
||||
}; |
||||
|
||||
rpm-regulator-ldoa5 { |
||||
compatible = "qcom,rpm-smd-regulator-resource"; |
||||
qcom,resource-name = "ldoa"; |
||||
qcom,resource-id = <5>; |
||||
qcom,regulator-type = <0>; |
||||
qcom,regulator-hw-type = "pmic4-ldo"; |
||||
status = "disabled"; |
||||
|
||||
regulator-l5 { |
||||
compatible = "qcom,rpm-smd-regulator"; |
||||
regulator-name = "pm660_l5"; |
||||
qcom,set = <3>; |
||||
status = "disabled"; |
||||
}; |
||||
}; |
||||
|
||||
rpm-regulator-ldoa6 { |
||||
compatible = "qcom,rpm-smd-regulator-resource"; |
||||
qcom,resource-name = "ldoa"; |
||||
qcom,resource-id = <6>; |
||||
qcom,regulator-type = <0>; |
||||
qcom,regulator-hw-type = "pmic4-ldo"; |
||||
status = "disabled"; |
||||
|
||||
regulator-l6 { |
||||
compatible = "qcom,rpm-smd-regulator"; |
||||
regulator-name = "pm660_l6"; |
||||
qcom,set = <3>; |
||||
status = "disabled"; |
||||
}; |
||||
}; |
||||
|
||||
rpm-regulator-ldoa7 { |
||||
compatible = "qcom,rpm-smd-regulator-resource"; |
||||
qcom,resource-name = "ldoa"; |
||||
qcom,resource-id = <7>; |
||||
qcom,regulator-type = <0>; |
||||
qcom,regulator-hw-type = "pmic4-ldo"; |
||||
status = "disabled"; |
||||
|
||||
regulator-l7 { |
||||
compatible = "qcom,rpm-smd-regulator"; |
||||
regulator-name = "pm660_l7"; |
||||
qcom,set = <3>; |
||||
status = "disabled"; |
||||
}; |
||||
}; |
||||
|
||||
rpm-regulator-ldoa8 { |
||||
compatible = "qcom,rpm-smd-regulator-resource"; |
||||
qcom,resource-name = "ldoa"; |
||||
qcom,resource-id = <8>; |
||||
qcom,regulator-type = <0>; |
||||
qcom,regulator-hw-type = "pmic4-ldo"; |
||||
status = "disabled"; |
||||
|
||||
regulator-l8 { |
||||
compatible = "qcom,rpm-smd-regulator"; |
||||
regulator-name = "pm660_l8"; |
||||
qcom,set = <3>; |
||||
status = "disabled"; |
||||
}; |
||||
}; |
||||
|
||||
rpm-regulator-ldoa9 { |
||||
compatible = "qcom,rpm-smd-regulator-resource"; |
||||
qcom,resource-name = "ldoa"; |
||||
qcom,resource-id = <9>; |
||||
qcom,regulator-type = <0>; |
||||
qcom,regulator-hw-type = "pmic4-ldo"; |
||||
status = "disabled"; |
||||
|
||||
regulator-l9 { |
||||
compatible = "qcom,rpm-smd-regulator"; |
||||
regulator-name = "pm660_l9"; |
||||
qcom,set = <3>; |
||||
status = "disabled"; |
||||
}; |
||||
}; |
||||
|
||||
rpm-regulator-ldoa10 { |
||||
compatible = "qcom,rpm-smd-regulator-resource"; |
||||
qcom,resource-name = "ldoa"; |
||||
qcom,resource-id = <10>; |
||||
qcom,regulator-type = <0>; |
||||
qcom,regulator-hw-type = "pmic4-ldo"; |
||||
status = "disabled"; |
||||
|
||||
regulator-l10 { |
||||
compatible = "qcom,rpm-smd-regulator"; |
||||
regulator-name = "pm660_l10"; |
||||
qcom,set = <3>; |
||||
status = "disabled"; |
||||
}; |
||||
}; |
||||
|
||||
rpm-regulator-ldoa11 { |
||||
compatible = "qcom,rpm-smd-regulator-resource"; |
||||
qcom,resource-name = "ldoa"; |
||||
qcom,resource-id = <11>; |
||||
qcom,regulator-type = <0>; |
||||
qcom,regulator-hw-type = "pmic4-ldo"; |
||||
status = "disabled"; |
||||
|
||||
regulator-l11 { |
||||
compatible = "qcom,rpm-smd-regulator"; |
||||
regulator-name = "pm660_l11"; |
||||
qcom,set = <3>; |
||||
status = "disabled"; |
||||
}; |
||||
}; |
||||
|
||||
rpm-regulator-ldoa12 { |
||||
compatible = "qcom,rpm-smd-regulator-resource"; |
||||
qcom,resource-name = "ldoa"; |
||||
qcom,resource-id = <12>; |
||||
qcom,regulator-type = <0>; |
||||
qcom,regulator-hw-type = "pmic4-ldo"; |
||||
status = "disabled"; |
||||
|
||||
regulator-l12 { |
||||
compatible = "qcom,rpm-smd-regulator"; |
||||
regulator-name = "pm660_l12"; |
||||
qcom,set = <3>; |
||||
status = "disabled"; |
||||
}; |
||||
}; |
||||
|
||||
rpm-regulator-ldoa13 { |
||||
compatible = "qcom,rpm-smd-regulator-resource"; |
||||
qcom,resource-name = "ldoa"; |
||||
qcom,resource-id = <13>; |
||||
qcom,regulator-type = <0>; |
||||
qcom,regulator-hw-type = "pmic4-ldo"; |
||||
status = "disabled"; |
||||
|
||||
regulator-l13 { |
||||
compatible = "qcom,rpm-smd-regulator"; |
||||
regulator-name = "pm660_l13"; |
||||
qcom,set = <3>; |
||||
status = "disabled"; |
||||
}; |
||||
}; |
||||
|
||||
rpm-regulator-ldoa14 { |
||||
compatible = "qcom,rpm-smd-regulator-resource"; |
||||
qcom,resource-name = "ldoa"; |
||||
qcom,resource-id = <14>; |
||||
qcom,regulator-type = <0>; |
||||
qcom,regulator-hw-type = "pmic4-ldo"; |
||||
status = "disabled"; |
||||
|
||||
regulator-l14 { |
||||
compatible = "qcom,rpm-smd-regulator"; |
||||
regulator-name = "pm660_l14"; |
||||
qcom,set = <3>; |
||||
status = "disabled"; |
||||
}; |
||||
}; |
||||
|
||||
rpm-regulator-ldoa15 { |
||||
compatible = "qcom,rpm-smd-regulator-resource"; |
||||
qcom,resource-name = "ldoa"; |
||||
qcom,resource-id = <15>; |
||||
qcom,regulator-type = <0>; |
||||
qcom,regulator-hw-type = "pmic4-ldo"; |
||||
status = "disabled"; |
||||
|
||||
regulator-l15 { |
||||
compatible = "qcom,rpm-smd-regulator"; |
||||
regulator-name = "pm660_l15"; |
||||
qcom,set = <3>; |
||||
status = "disabled"; |
||||
}; |
||||
}; |
||||
|
||||
rpm-regulator-ldoa17 { |
||||
compatible = "qcom,rpm-smd-regulator-resource"; |
||||
qcom,resource-name = "ldoa"; |
||||
qcom,resource-id = <17>; |
||||
qcom,regulator-type = <0>; |
||||
qcom,regulator-hw-type = "pmic4-ldo"; |
||||
status = "disabled"; |
||||
|
||||
regulator-l17 { |
||||
compatible = "qcom,rpm-smd-regulator"; |
||||
regulator-name = "pm660_l17"; |
||||
qcom,set = <3>; |
||||
status = "disabled"; |
||||
}; |
||||
}; |
||||
|
||||
rpm-regulator-ldoa19 { |
||||
compatible = "qcom,rpm-smd-regulator-resource"; |
||||
qcom,resource-name = "ldoa"; |
||||
qcom,resource-id = <19>; |
||||
qcom,regulator-type = <0>; |
||||
qcom,regulator-hw-type = "pmic4-ldo"; |
||||
status = "disabled"; |
||||
|
||||
regulator-l19 { |
||||
compatible = "qcom,rpm-smd-regulator"; |
||||
regulator-name = "pm660_l19"; |
||||
qcom,set = <3>; |
||||
status = "disabled"; |
||||
}; |
||||
}; |
||||
}; |
@ -0,0 +1,249 @@ |
||||
/* Copyright (c) 2016-2017, 2019, The Linux Foundation. All rights reserved. |
||||
* |
||||
* This program is free software; you can redistribute it and/or modify |
||||
* it under the terms of the GNU General Public License version 2 and |
||||
* only version 2 as published by the Free Software Foundation. |
||||
* |
||||
* This program is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU General Public License for more details. |
||||
*/ |
||||
|
||||
&rpm_bus { |
||||
rpm-regulator-smpb1 { |
||||
compatible = "qcom,rpm-smd-regulator-resource"; |
||||
qcom,resource-name = "smpb"; |
||||
qcom,resource-id = <1>; |
||||
qcom,regulator-type = <1>; |
||||
status = "disabled"; |
||||
|
||||
regulator-s1 { |
||||
compatible = "qcom,rpm-smd-regulator"; |
||||
regulator-name = "pm660l_s1"; |
||||
qcom,set = <3>; |
||||
status = "disabled"; |
||||
}; |
||||
}; |
||||
|
||||
rpm-regulator-smpb2 { |
||||
compatible = "qcom,rpm-smd-regulator-resource"; |
||||
qcom,resource-name = "smpb"; |
||||
qcom,resource-id = <2>; |
||||
qcom,regulator-type = <1>; |
||||
status = "disabled"; |
||||
|
||||
regulator-s2 { |
||||
compatible = "qcom,rpm-smd-regulator"; |
||||
regulator-name = "pm660l_s2"; |
||||
qcom,set = <3>; |
||||
status = "disabled"; |
||||
}; |
||||
}; |
||||
|
||||
rpm-regulator-smpb3 { |
||||
compatible = "qcom,rpm-smd-regulator-resource"; |
||||
qcom,resource-name = "rwcx"; |
||||
qcom,resource-id = <0>; |
||||
qcom,regulator-type = <1>; |
||||
status = "disabled"; |
||||
|
||||
regulator-s3 { |
||||
compatible = "qcom,rpm-smd-regulator"; |
||||
regulator-name = "pm660l_s3"; |
||||
qcom,set = <3>; |
||||
status = "disabled"; |
||||
}; |
||||
}; |
||||
|
||||
rpm-regulator-smpb5 { |
||||
compatible = "qcom,rpm-smd-regulator-resource"; |
||||
qcom,resource-name = "rwmx"; |
||||
qcom,resource-id = <0>; |
||||
qcom,regulator-type = <1>; |
||||
status = "disabled"; |
||||
|
||||
regulator-s5 { |
||||
compatible = "qcom,rpm-smd-regulator"; |
||||
regulator-name = "pm660l_s5"; |
||||
qcom,set = <3>; |
||||
status = "disabled"; |
||||
}; |
||||
}; |
||||
|
||||
rpm-regulator-ldob1 { |
||||
compatible = "qcom,rpm-smd-regulator-resource"; |
||||
qcom,resource-name = "ldob"; |
||||
qcom,resource-id = <1>; |
||||
qcom,regulator-type = <0>; |
||||
qcom,regulator-hw-type = "pmic4-ldo"; |
||||
status = "disabled"; |
||||
|
||||
regulator-l1 { |
||||
compatible = "qcom,rpm-smd-regulator"; |
||||
regulator-name = "pm660l_l1"; |
||||
qcom,set = <3>; |
||||
status = "disabled"; |
||||
}; |
||||
}; |
||||
|
||||
rpm-regulator-ldob2 { |
||||
compatible = "qcom,rpm-smd-regulator-resource"; |
||||
qcom,resource-name = "ldob"; |
||||
qcom,resource-id = <2>; |
||||
qcom,regulator-type = <0>; |
||||
qcom,regulator-hw-type = "pmic4-ldo"; |
||||
status = "disabled"; |
||||
|
||||
regulator-l2 { |
||||
compatible = "qcom,rpm-smd-regulator"; |
||||
regulator-name = "pm660l_l2"; |
||||
qcom,set = <3>; |
||||
status = "disabled"; |
||||
}; |
||||
}; |
||||
|
||||
rpm-regulator-ldob3 { |
||||
compatible = "qcom,rpm-smd-regulator-resource"; |
||||
qcom,resource-name = "ldob"; |
||||
qcom,resource-id = <3>; |
||||
qcom,regulator-type = <0>; |
||||
qcom,regulator-hw-type = "pmic4-ldo"; |
||||
status = "disabled"; |
||||
|
||||
regulator-l3 { |
||||
compatible = "qcom,rpm-smd-regulator"; |
||||
regulator-name = "pm660l_l3"; |
||||
qcom,set = <3>; |
||||
status = "disabled"; |
||||
}; |
||||
}; |
||||
|
||||
rpm-regulator-ldob4 { |
||||
compatible = "qcom,rpm-smd-regulator-resource"; |
||||
qcom,resource-name = "ldob"; |
||||
qcom,resource-id = <4>; |
||||
qcom,regulator-type = <0>; |
||||
qcom,regulator-hw-type = "pmic4-ldo"; |
||||
status = "disabled"; |
||||
|
||||
regulator-l4 { |
||||
compatible = "qcom,rpm-smd-regulator"; |
||||
regulator-name = "pm660l_l4"; |
||||
qcom,set = <3>; |
||||
status = "disabled"; |
||||
}; |
||||
}; |
||||
|
||||
rpm-regulator-ldob5 { |
||||
compatible = "qcom,rpm-smd-regulator-resource"; |
||||
qcom,resource-name = "ldob"; |
||||
qcom,resource-id = <5>; |
||||
qcom,regulator-type = <0>; |
||||
qcom,regulator-hw-type = "pmic4-ldo"; |
||||
status = "disabled"; |
||||
|
||||
regulator-l5 { |
||||
compatible = "qcom,rpm-smd-regulator"; |
||||
regulator-name = "pm660l_l5"; |
||||
qcom,set = <3>; |
||||
status = "disabled"; |
||||
}; |
||||
}; |
||||
|
||||
rpm-regulator-ldob6 { |
||||
compatible = "qcom,rpm-smd-regulator-resource"; |
||||
qcom,resource-name = "ldob"; |
||||
qcom,resource-id = <6>; |
||||
qcom,regulator-type = <0>; |
||||
qcom,regulator-hw-type = "pmic4-ldo"; |
||||
status = "disabled"; |
||||
|
||||
regulator-l6 { |
||||
compatible = "qcom,rpm-smd-regulator"; |
||||
regulator-name = "pm660l_l6"; |
||||
qcom,set = <3>; |
||||
status = "disabled"; |
||||
}; |
||||
}; |
||||
|
||||
rpm-regulator-ldob7 { |
||||
compatible = "qcom,rpm-smd-regulator-resource"; |
||||
qcom,resource-name = "ldob"; |
||||
qcom,resource-id = <7>; |
||||
qcom,regulator-type = <0>; |
||||
qcom,regulator-hw-type = "pmic4-ldo"; |
||||
status = "disabled"; |
||||
|
||||
regulator-l7 { |
||||
compatible = "qcom,rpm-smd-regulator"; |
||||
regulator-name = "pm660l_l7"; |
||||
qcom,set = <3>; |
||||
status = "disabled"; |
||||
}; |
||||
}; |
||||
|
||||
rpm-regulator-ldob8 { |
||||
compatible = "qcom,rpm-smd-regulator-resource"; |
||||
qcom,resource-name = "ldob"; |
||||
qcom,resource-id = <8>; |
||||
qcom,regulator-type = <0>; |
||||
qcom,regulator-hw-type = "pmic4-ldo"; |
||||
status = "disabled"; |
||||
|
||||
regulator-l8 { |
||||
compatible = "qcom,rpm-smd-regulator"; |
||||
regulator-name = "pm660l_l8"; |
||||
qcom,set = <3>; |
||||
status = "disabled"; |
||||
}; |
||||
}; |
||||
|
||||
rpm-regulator-ldob9 { |
||||
compatible = "qcom,rpm-smd-regulator-resource"; |
||||
qcom,resource-name = "rwlc"; |
||||
qcom,resource-id = <0>; |
||||
qcom,regulator-type = <0>; |
||||
qcom,regulator-hw-type = "pmic4-ldo"; |
||||
status = "disabled"; |
||||
|
||||
regulator-l9 { |
||||
compatible = "qcom,rpm-smd-regulator"; |
||||
regulator-name = "pm660l_l9"; |
||||
qcom,set = <3>; |
||||
status = "disabled"; |
||||
}; |
||||
}; |
||||
|
||||
rpm-regulator-ldob10 { |
||||
compatible = "qcom,rpm-smd-regulator-resource"; |
||||
qcom,resource-name = "rwlm"; |
||||
qcom,resource-id = <0>; |
||||
qcom,regulator-type = <0>; |
||||
qcom,regulator-hw-type = "pmic4-ldo"; |
||||
status = "disabled"; |
||||
|
||||
regulator-l10 { |
||||
compatible = "qcom,rpm-smd-regulator"; |
||||
regulator-name = "pm660l_l10"; |
||||
qcom,set = <3>; |
||||
status = "disabled"; |
||||
}; |
||||
}; |
||||
|
||||
rpm-regulator-bobb { |
||||
compatible = "qcom,rpm-smd-regulator-resource"; |
||||
qcom,resource-name = "bobb"; |
||||
qcom,resource-id = <1>; |
||||
qcom,regulator-type = <4>; |
||||
qcom,regulator-hw-type = "pmic4-ldo"; |
||||
status = "disabled"; |
||||
|
||||
regulator-bob { |
||||
compatible = "qcom,rpm-smd-regulator"; |
||||
regulator-name = "pm660l_bob"; |
||||
qcom,set = <3>; |
||||
status = "disabled"; |
||||
}; |
||||
}; |
||||
}; |
Loading…
Reference in new issue