Re: [PATCH v4 3/3] arm64: dts: mt8192: add mt6315 regulator nodes

2021-02-07 Thread kernel test robot
Hi Hsin-Hsiung,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on regulator/for-next]
[also build test ERROR on robh/for-next v5.11-rc6 next-20210125]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Hsin-Hsiung-Wang/Add-support-for-MT6315-regulator/20210207-141936
base:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git 
for-next
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# 
https://github.com/0day-ci/linux/commit/5aee905781d6cc30a55e1a34a224f1194660b2d0
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review 
Hsin-Hsiung-Wang/Add-support-for-MT6315-regulator/20210207-141936
git checkout 5aee905781d6cc30a55e1a34a224f1194660b2d0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross 
ARCH=arm64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot 

All errors (new ones prefixed by >>):

>> Error: arch/arm64/boot/dts/mediatek/mt8192-evb.dts:27.1-6 Label or path spmi 
>> not found
   FATAL ERROR: Syntax error parsing input tree

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.config.gz
Description: application/gzip


[PATCH v4 3/3] arm64: dts: mt8192: add mt6315 regulator nodes

2021-02-06 Thread Hsin-Hsiung Wang
Add MT6315 regulator nodes to MT8192 evaluation board.

Signed-off-by: Hsin-Hsiung Wang 
---
changes since v3:
- update the dts node.
---
 arch/arm64/boot/dts/mediatek/mt8192-evb.dts | 46 +
 1 file changed, 46 insertions(+)

diff --git a/arch/arm64/boot/dts/mediatek/mt8192-evb.dts 
b/arch/arm64/boot/dts/mediatek/mt8192-evb.dts
index 0205837fa698..83f26cd5f693 100644
--- a/arch/arm64/boot/dts/mediatek/mt8192-evb.dts
+++ b/arch/arm64/boot/dts/mediatek/mt8192-evb.dts
@@ -24,6 +24,52 @@
};
 };
 
+&spmi {
+   grpid = <11>;
+   mt6315_6: pmic@6 {
+   compatible = "mediatek,mt6315-regulator";
+   reg = <0x6 0>;
+
+   regulators {
+   mt6315_6_vbuck1: vbuck1 {
+   regulator-compatible = "vbuck1";
+   regulator-name = "Vbcpu";
+   regulator-min-microvolt = <30>;
+   regulator-max-microvolt = <1193750>;
+   regulator-enable-ramp-delay = <256>;
+   regulator-allowed-modes = <0 1 2 4>;
+   regulator-always-on;
+   };
+
+   mt6315_6_vbuck3: vbuck3 {
+   regulator-compatible = "vbuck3";
+   regulator-name = "Vlcpu";
+   regulator-min-microvolt = <30>;
+   regulator-max-microvolt = <1193750>;
+   regulator-enable-ramp-delay = <256>;
+   regulator-allowed-modes = <0 1 2 4>;
+   regulator-always-on;
+   };
+   };
+   };
+
+   mt6315_7: pmic@7 {
+   compatible = "mediatek,mt6315-regulator";
+   reg = <0x7 0>;
+
+   regulators {
+   mt6315_7_vbuck1: vbuck1 {
+   regulator-compatible = "vbuck1";
+   regulator-name = "Vgpu";
+   regulator-min-microvolt = <30>;
+   regulator-max-microvolt = <1193750>;
+   regulator-enable-ramp-delay = <256>;
+   regulator-allowed-modes = <0 1 2 4>;
+   };
+   };
+   };
+};
+
 &uart0 {
status = "okay";
 };
-- 
2.18.0