MLK-17159 dts: imx8qm-mek: fix can regulator name
authorDong Aisheng <aisheng.dong@nxp.com>
Tue, 12 Dec 2017 10:05:51 +0000 (18:05 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:51:46 +0000 (14:51 -0500)
Fix can regulator names which may cause the debugfs creation fail
due to the duplicated regulator-name of can0/1.
No functions affect.

root@imx8qmmek:~# dmesg | grep Fail
[    3.276839] can01-en: Failed to create debugfs directory
[    3.292414] can01-stby: Failed to create debugfs directory

Fixes: 90cd72423ed5 ("MLK-16606-4 arm64: dts: imx8qm-mek: add flexcan support")
Reported-by: Jason Liu <jason.hui.liu@nxp.com>
Reviewed-by: Jason Liu <jason.hui.liu@nxp.com>
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
arch/arm64/boot/dts/freescale/fsl-imx8qm-mek.dts

index a8e2a7d..dd3b67f 100644 (file)
 
                reg_can2_en: regulator-can2-gen {
                        compatible = "regulator-fixed";
-                       regulator-name = "can01-en";
+                       regulator-name = "can2-en";
                        regulator-min-microvolt = <3300000>;
                        regulator-max-microvolt = <3300000>;
                        gpio = <&pca6416 4 GPIO_ACTIVE_HIGH>;
                        enable-active-high;
                };
 
-
                reg_can01_stby: regulator-can01-stby {
                        compatible = "regulator-fixed";
                        regulator-name = "can01-stby";
@@ -69,7 +68,7 @@
 
                reg_can2_stby: regulator-can2-stby {
                        compatible = "regulator-fixed";
-                       regulator-name = "can01-stby";
+                       regulator-name = "can2-stby";
                        regulator-min-microvolt = <3300000>;
                        regulator-max-microvolt = <3300000>;
                        gpio = <&pca6416 6 GPIO_ACTIVE_HIGH>;