Skip to contentSkip to conversation

dt-bindings: mfd: mediatek: Fix regulator description

PATCH In review [email protected] 5 participants 13 messages Mar 12, 2021 – Mar 24, 2021

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/7 dt-bindings: mfd: mediatek: Fix regulator description

From: Matthias Brugger <[email protected]>

Having a separate compatible for the regulator node is redundant and not needed. Delete the corresponding requierement.

---

 Documentation/devicetree/bindings/mfd/mt6397.txt | 3 ---
 1 file changed, 3 deletions(-)
Documentation/devicetree/bindings/mfd/mt6397.txt +0 -3
index 2661775a38251..28a69728e6fe2 100644
@@ -33,11 +33,8 @@ Optional subnodes:
 	For details, see ../rtc/rtc-mt6397.txt
 - regulators
 	Required properties:
-		- compatible: "mediatek,mt6323-regulator"
 	see ../regulator/mt6323-regulator.txt
-		- compatible: "mediatek,mt6358-regulator"
 	see ../regulator/mt6358-regulator.txt
-		- compatible: "mediatek,mt6397-regulator"
 	see ../regulator/mt6397-regulator.txt
 - codec
 	Required properties:
Signature · 7 lines
2.30.1


_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek
#1 lore raw

PATCH 2/7 dt-bindigns: regulator: mtk: Drop unneeded compatible

From: Matthias Brugger <[email protected]>

The regulator does not need to have a device tree compatible, if it's part of an MFD. We leave the node name to the SoC specific name (e.g. mt6323regulator) to allow older kernels to work with the new binding.

---
 .../bindings/regulator/mt6323-regulator.txt        |  2 +-
 .../bindings/regulator/mt6358-regulator.txt        |  4 +---
 .../bindings/regulator/mt6397-regulator.txt        | 14 +++++---------
 3 files changed, 7 insertions(+), 13 deletions(-)
Documentation/devicetree/bindings/regulator/mt6323-regulator.txt +1 -1
index a48749db4df36..69f32e1a6702e 100644
@@ -19,7 +19,7 @@ LDO:
 Example:
 
 	pmic: mt6323 {
-		mt6323regulator: regulators {
+		mt6323regulator {
 			mt6323_vproc_reg: buck_vproc{
 				regulator-name = "vproc";
 				regulator-min-microvolt = < 700000>;
Documentation/devicetree/bindings/regulator/mt6358-regulator.txt +1 -3
index 9a90a92f2d7e1..ba1214da5bf7c 100644
@@ -23,9 +23,7 @@ Example:
 	pmic {
 		compatible = "mediatek,mt6358";
 
-		mt6358regulator: mt6358regulator {
-			compatible = "mediatek,mt6358-regulator";
-
+		mt6358regulator {
 			mt6358_vdram1_reg: buck_vdram1 {
 				regulator-compatible = "buck_vdram1";
 				regulator-name = "vdram1";
Documentation/devicetree/bindings/regulator/mt6397-regulator.txt +5 -9
index c080086d3e629..2b14362ac56e1 100644
@@ -1,11 +1,9 @@
 Mediatek MT6397 Regulator
 
-Required properties:
-- compatible: "mediatek,mt6397-regulator"
-- mt6397regulator: List of regulators provided by this controller. It is named
-  according to its regulator type, buck_<name> and ldo_<name>.
-  The definition for each of these nodes is defined using the standard binding
-  for regulators at Documentation/devicetree/bindings/regulator/regulator.txt.
+List of regulators provided by this controller. It is named
+according to its regulator type, buck_<name> and ldo_<name>.
+The definition for each of these nodes is defined using the standard binding
+for regulators at Documentation/devicetree/bindings/regulator/regulator.txt.
 
 The valid names for regulators are::
 BUCK:
@@ -23,9 +21,7 @@ Example:
 	pmic {
 		compatible = "mediatek,mt6397";
 
-		mt6397regulator: mt6397regulator {
-			compatible = "mediatek,mt6397-regulator";
-
+		mt6397regulator {
 			mt6397_vpca15_reg: buck_vpca15 {
 				regulator-compatible = "buck_vpca15";
 				regulator-name = "vpca15";
Signature · 7 lines
2.30.1


_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek
#2 lore raw

Re: [PATCH 2/7] dt-bindigns: regulator: mtk: Drop unneeded compatible

Hi Matthias,

Thank you for your patch. There is a typo in the subject line s/dt-bindigns/dt-bindings/ Rob might miss this patch as he filters the patches by subject I guess.

Missatge de l'adreça <[email protected]> del dia dv., 12 de març 2021 a les 15:57:

Quoted 19 lines

From: Matthias Brugger <[email protected]>

The regulator does not need to have a device tree compatible, if it's part of an MFD. We leave the node name to the SoC specific name (e.g. mt6323regulator) to allow older kernels to work with the new binding.

---
 .../bindings/regulator/mt6323-regulator.txt        |  2 +-
 .../bindings/regulator/mt6358-regulator.txt        |  4 +---
 .../bindings/regulator/mt6397-regulator.txt        | 14 +++++---------
 3 files changed, 7 insertions(+), 13 deletions(-)
Documentation/devicetree/bindings/regulator/mt6323-regulator.txt +0 -0
index a48749db4df36..69f32e1a6702e 100644

Documentation/devicetree/bindings/regulator/mt6323-regulator.txt LDO: · line 22

Quoted 5 lines
Documentation/devicetree/bindings/regulator/mt6323-regulator.txt +1 -1
@@ -19,7 +19,7 @@ LDO:
 Example:
 
        pmic: mt6323 {
-               mt6323regulator: regulators {
+               mt6323regulator {

If you convert this binding to YAML, you'll probably get a review that the node name must be just 'regulators' here. And then, looking at the other patches something will break I guess ...

Quoted 53 lines
Documentation/devicetree/bindings/regulator/mt6323-regulator.txt +0 -0
                        mt6323_vproc_reg: buck_vproc{
                                regulator-name = "vproc";
                                regulator-min-microvolt = < 700000>;
Documentation/devicetree/bindings/regulator/mt6358-regulator.txt +1 -3
index 9a90a92f2d7e1..ba1214da5bf7c 100644
@@ -23,9 +23,7 @@ Example:
        pmic {
                compatible = "mediatek,mt6358";
 
-               mt6358regulator: mt6358regulator {
-                       compatible = "mediatek,mt6358-regulator";
-
+               mt6358regulator {
                        mt6358_vdram1_reg: buck_vdram1 {
                                regulator-compatible = "buck_vdram1";
                                regulator-name = "vdram1";
Documentation/devicetree/bindings/regulator/mt6397-regulator.txt +5 -10
index c080086d3e629..2b14362ac56e1 100644
@@ -1,11 +1,9 @@
 Mediatek MT6397 Regulator
 
-Required properties:
-- compatible: "mediatek,mt6397-regulator"
-- mt6397regulator: List of regulators provided by this controller. It is named
-  according to its regulator type, buck_<name> and ldo_<name>.
-  The definition for each of these nodes is defined using the standard binding
-  for regulators at Documentation/devicetree/bindings/regulator/regulator.txt.
+List of regulators provided by this controller. It is named
+according to its regulator type, buck_<name> and ldo_<name>.
+The definition for each of these nodes is defined using the standard binding
+for regulators at Documentation/devicetree/bindings/regulator/regulator.txt.
 
 The valid names for regulators are::
 BUCK:
@@ -23,9 +21,7 @@ Example:
        pmic {
                compatible = "mediatek,mt6397";
 
-               mt6397regulator: mt6397regulator {
-                       compatible = "mediatek,mt6397-regulator";
-
+               mt6397regulator {
                        mt6397_vpca15_reg: buck_vpca15 {
                                regulator-compatible = "buck_vpca15";
                                regulator-name = "vpca15";
--

2.30.1

Quoted 4 lines

_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek

_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek

maintainer
#3 lore raw

Re: [PATCH 2/7] dt-bindigns: regulator: mtk: Drop unneeded compatible

Quoted 5 lines · Enric Balletbo Serra

Hi Matthias,

Thank you for your patch. There is a typo in the subject line s/dt-bindigns/dt-bindings/ Rob might miss this patch as he filters the patches by subject I guess.

I should, then I'd have a lot less to review...

Quoted 17 lines

Missatge de l'adreça <[email protected]> del dia dv., 12 de març 2021 a les 15:57:

Quoted 14 lines

From: Matthias Brugger <[email protected]>

The regulator does not need to have a device tree compatible, if it's part of an MFD. We leave the node name to the SoC specific name (e.g. mt6323regulator) to allow older kernels to work with the new binding.

---
 .../bindings/regulator/mt6323-regulator.txt        |  2 +-
 .../bindings/regulator/mt6358-regulator.txt        |  4 +---
 .../bindings/regulator/mt6397-regulator.txt        | 14 +++++---------
 3 files changed, 7 insertions(+), 13 deletions(-)
Quoted 8 lines

Documentation/devicetree/bindings/regulator/mt6323-regulator.txt LDO: · line 21

Quoted 8 lines
Documentation/devicetree/bindings/regulator/mt6323-regulator.txt +0 -0
index a48749db4df36..69f32e1a6702e 100644
@@ -19,7 +19,7 @@ LDO:
 Example:
 
        pmic: mt6323 {

This one is wrong...

Quoted 2 lines

Documentation/devicetree/bindings/regulator/mt6323-regulator.txt LDO: · line 22

Quoted 2 lines
Documentation/devicetree/bindings/regulator/mt6323-regulator.txt +1 -1
-               mt6323regulator: regulators {
+               mt6323regulator {

And this was right.

Quoted 58 lines

If you convert this binding to YAML, you'll probably get a review that the node name must be just 'regulators' here. And then, looking at the other patches something will break I guess ...

Quoted 53 lines
Documentation/devicetree/bindings/regulator/mt6323-regulator.txt +0 -0
                        mt6323_vproc_reg: buck_vproc{
                                regulator-name = "vproc";
                                regulator-min-microvolt = < 700000>;
Documentation/devicetree/bindings/regulator/mt6358-regulator.txt +1 -3
index 9a90a92f2d7e1..ba1214da5bf7c 100644
@@ -23,9 +23,7 @@ Example:
        pmic {
                compatible = "mediatek,mt6358";
 
-               mt6358regulator: mt6358regulator {
-                       compatible = "mediatek,mt6358-regulator";
-
+               mt6358regulator {
                        mt6358_vdram1_reg: buck_vdram1 {
                                regulator-compatible = "buck_vdram1";
                                regulator-name = "vdram1";
Documentation/devicetree/bindings/regulator/mt6397-regulator.txt +5 -10
index c080086d3e629..2b14362ac56e1 100644
@@ -1,11 +1,9 @@
 Mediatek MT6397 Regulator
 
-Required properties:
-- compatible: "mediatek,mt6397-regulator"
-- mt6397regulator: List of regulators provided by this controller. It is named
-  according to its regulator type, buck_<name> and ldo_<name>.
-  The definition for each of these nodes is defined using the standard binding
-  for regulators at Documentation/devicetree/bindings/regulator/regulator.txt.
+List of regulators provided by this controller. It is named
+according to its regulator type, buck_<name> and ldo_<name>.
+The definition for each of these nodes is defined using the standard binding
+for regulators at Documentation/devicetree/bindings/regulator/regulator.txt.
 
 The valid names for regulators are::
 BUCK:
@@ -23,9 +21,7 @@ Example:
        pmic {
                compatible = "mediatek,mt6397";
 
-               mt6397regulator: mt6397regulator {
-                       compatible = "mediatek,mt6397-regulator";
-
+               mt6397regulator {
                        mt6397_vpca15_reg: buck_vpca15 {
                                regulator-compatible = "buck_vpca15";
                                regulator-name = "vpca15";
--

2.30.1

Quoted 4 lines
Quoted 4 lines

_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek

_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek

#4 lore raw

PATCH 3/7 mfd: mt6397: Drop of_compatible for regulator

In reply to [email protected]

From: Matthias Brugger <[email protected]>

For regulators a compatible string is superfluous. Drop the string.

---
 drivers/mfd/mt6397-core.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/mfd/mt6397-core.c +0 -3
index 7518d74c3b4c3..13037f4bc54e7 100644
@@ -67,7 +67,6 @@ static const struct mfd_cell mt6323_devs[] = {
 		.of_compatible = "mediatek,mt6323-rtc",
 	}, {
 		.name = "mt6323-regulator",
-		.of_compatible = "mediatek,mt6323-regulator"
 	}, {
 		.name = "mt6323-led",
 		.of_compatible = "mediatek,mt6323-led"
@@ -87,7 +86,6 @@ static const struct mfd_cell mt6323_devs[] = {
 static const struct mfd_cell mt6358_devs[] = {
 	{
 		.name = "mt6358-regulator",
-		.of_compatible = "mediatek,mt6358-regulator"
 	}, {
 		.name = "mt6358-rtc",
 		.num_resources = ARRAY_SIZE(mt6358_rtc_resources),
@@ -107,7 +105,6 @@ static const struct mfd_cell mt6397_devs[] = {
 		.of_compatible = "mediatek,mt6397-rtc",
 	}, {
 		.name = "mt6397-regulator",
-		.of_compatible = "mediatek,mt6397-regulator",
 	}, {
 		.name = "mt6397-codec",
 		.of_compatible = "mediatek,mt6397-codec",
Signature · 7 lines
2.30.1


_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek
Acked-by on v1 3/7
#5 lore raw

Re: [PATCH 3/7] mfd: mt6397: Drop of_compatible for regulator

Quoted 8 lines · On Fri, 12 Mar 2021, [email protected] wrote:

From: Matthias Brugger <[email protected]>

For regulators a compatible string is superfluous. Drop the string.

---
 drivers/mfd/mt6397-core.c | 3 ---
 1 file changed, 3 deletions(-)
Signature · 9 lines
Lee Jones [李琼斯]
Senior Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog

_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek
#6 lore raw

PATCH 4/7 regulator: mediatek: Add regulators_node to description

In reply to [email protected]

From: Matthias Brugger <[email protected]>

Define the regulator node under which the regulators are described.

---
 drivers/regulator/mt6323-regulator.c |  3 +++
 drivers/regulator/mt6358-regulator.c |  4 ++++
 drivers/regulator/mt6397-regulator.c | 10 +++-------
 3 files changed, 10 insertions(+), 7 deletions(-)
drivers/regulator/mt6323-regulator.c +3 -0
index ff9016170db37..8b22ded43ab8a 100644
@@ -42,6 +42,7 @@ struct mt6323_regulator_info {
 	.desc = {							\
 		.name = #vreg,						\
 		.of_match = of_match_ptr(match),			\
+		.regulators_node = of_match_ptr("mt6323regulator"),	\
 		.ops = &mt6323_volt_range_ops,				\
 		.type = REGULATOR_VOLTAGE,				\
 		.id = MT6323_ID_##vreg,					\
@@ -66,6 +67,7 @@ struct mt6323_regulator_info {
 	.desc = {							\
 		.name = #vreg,						\
 		.of_match = of_match_ptr(match),			\
+		.regulators_node = of_match_ptr("mt6323regulator"),	\
 		.ops = &mt6323_volt_table_ops,				\
 		.type = REGULATOR_VOLTAGE,				\
 		.id = MT6323_ID_##vreg,					\
@@ -88,6 +90,7 @@ struct mt6323_regulator_info {
 	.desc = {							\
 		.name = #vreg,						\
 		.of_match = of_match_ptr(match),			\
+		.regulators_node = of_match_ptr("mt6323regulator"),	\
 		.ops = &mt6323_volt_fixed_ops,				\
 		.type = REGULATOR_VOLTAGE,				\
 		.id = MT6323_ID_##vreg,					\
drivers/regulator/mt6358-regulator.c +4 -0
index 13cb6ac9a8929..f5c478d7baaf2 100644
@@ -44,6 +44,7 @@ struct mt6358_regulator_info {
 	.desc = {	\
 		.name = #vreg,	\
 		.of_match = of_match_ptr(match),	\
+		.regulators_node = of_match_ptr("mt6358regulator"),	\
 		.ops = &mt6358_volt_range_ops,	\
 		.type = REGULATOR_VOLTAGE,	\
 		.id = MT6358_ID_##vreg,		\
@@ -74,6 +75,7 @@ struct mt6358_regulator_info {
 	.desc = {	\
 		.name = #vreg,	\
 		.of_match = of_match_ptr(match),	\
+		.regulators_node = of_match_ptr("mt6358regulator"),	\
 		.ops = &mt6358_volt_table_ops,	\
 		.type = REGULATOR_VOLTAGE,	\
 		.id = MT6358_ID_##vreg,	\
@@ -99,6 +101,7 @@ struct mt6358_regulator_info {
 	.desc = {	\
 		.name = #vreg,	\
 		.of_match = of_match_ptr(match),	\
+		.regulators_node = of_match_ptr("mt6358regulator"),	\
 		.ops = &mt6358_volt_range_ops,	\
 		.type = REGULATOR_VOLTAGE,	\
 		.id = MT6358_ID_##vreg,	\
@@ -124,6 +127,7 @@ struct mt6358_regulator_info {
 	.desc = {	\
 		.name = #vreg,	\
 		.of_match = of_match_ptr(match),	\
+		.regulators_node = of_match_ptr("mt6358regulator"),	\
 		.ops = &mt6358_volt_fixed_ops,	\
 		.type = REGULATOR_VOLTAGE,	\
 		.id = MT6358_ID_##vreg,	\
drivers/regulator/mt6397-regulator.c +3 -7
index 0a30df5e414fc..9e8589f773eaa 100644
@@ -42,6 +42,7 @@ struct mt6397_regulator_info {
 	.desc = {							\
 		.name = #vreg,						\
 		.of_match = of_match_ptr(match),			\
+		.regulators_node = of_match_ptr("mt6397regulator"),	\
 		.ops = &mt6397_volt_range_ops,				\
 		.type = REGULATOR_VOLTAGE,				\
 		.id = MT6397_ID_##vreg,					\
@@ -70,6 +71,7 @@ struct mt6397_regulator_info {
 	.desc = {							\
 		.name = #vreg,						\
 		.of_match = of_match_ptr(match),			\
+		.regulators_node = of_match_ptr("mt6397regulator"),	\
 		.ops = &mt6397_volt_table_ops,				\
 		.type = REGULATOR_VOLTAGE,				\
 		.id = MT6397_ID_##vreg,					\
@@ -89,6 +91,7 @@ struct mt6397_regulator_info {
 	.desc = {							\
 		.name = #vreg,						\
 		.of_match = of_match_ptr(match),			\
+		.regulators_node = of_match_ptr("mt6397regulator"),	\
 		.ops = &mt6397_volt_fixed_ops,				\
 		.type = REGULATOR_VOLTAGE,				\
 		.id = MT6397_ID_##vreg,					\
@@ -396,16 +399,9 @@ static const struct platform_device_id mt6397_platform_ids[] = {
 };
 MODULE_DEVICE_TABLE(platform, mt6397_platform_ids);
 
-static const struct of_device_id mt6397_of_match[] = {
-	{ .compatible = "mediatek,mt6397-regulator", },
-	{ /* sentinel */ },
-};
-MODULE_DEVICE_TABLE(of, mt6397_of_match);
-
 static struct platform_driver mt6397_regulator_driver = {
 	.driver = {
 		.name = "mt6397-regulator",
-		.of_match_table = of_match_ptr(mt6397_of_match),
 	},
 	.probe = mt6397_regulator_probe,
 	.id_table = mt6397_platform_ids,
Signature · 1 line
2.30.1
maintainer Acked-by on v1 4/7
#7 lore raw

Re: [PATCH 4/7] regulator: mediatek: Add regulators_node to description

Quoted 3 lines · On Fri, Mar 12, 2021 at 03:55:42PM +0100, [email protected] wrote:

From: Matthias Brugger <[email protected]>

Define the regulator node under which the regulators are described.

_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek

#8 lore raw

PATCH 5/7 arm: dts: mt6323: Drop OF compatible

In reply to [email protected]

From: Matthias Brugger <[email protected]>

The regulator framework does not need compatible, it's acutall superfluous. Drop it from the DT.

---
 arch/arm/boot/dts/mt6323.dtsi | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
arch/arm/boot/dts/mt6323.dtsi +1 -3
index 7fda40ab5fe83..d37f118a663a9 100644
@@ -21,9 +21,7 @@ mt6323_leds: leds {
 			status = "disabled";
 		};
 
-		mt6323regulator: mt6323regulator{
-			compatible = "mediatek,mt6323-regulator";
-
+		mt6323regulator {
 			mt6323_vproc_reg: buck_vproc{
 				regulator-name = "vproc";
 				regulator-min-microvolt = < 700000>;
Signature · 1 line
2.30.1
#9 lore raw

PATCH 6/7 arm64: dts: mt6358: Drop compatible for regulators

In reply to [email protected]

From: Matthias Brugger <[email protected]>

The regulator framework does not need compatible, it's actually superfluous. Drop it from the DT.

---
 arch/arm64/boot/dts/mediatek/mt6358.dtsi | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
arch/arm64/boot/dts/mediatek/mt6358.dtsi +1 -3
index fa159b20379e4..e423feac0bc2e 100644
@@ -15,9 +15,7 @@ mt6358codec: mt6358codec {
 			compatible = "mediatek,mt6358-sound";
 		};
 
-		mt6358regulator: mt6358regulator {
-			compatible = "mediatek,mt6358-regulator";
-
+		mt6358regulator {
 			mt6358_vdram1_reg: buck_vdram1 {
 				regulator-name = "vdram1";
 				regulator-min-microvolt = <500000>;
Signature · 1 line
2.30.1
#10 lore raw

PATCH 7/7 arm64: dts: mt8173: Drop compatible for mt6397

In reply to [email protected]

From: Matthias Brugger <[email protected]>

The regulator framework does not need compatible, it's actually superfluous. Drop it from the DT.

Series-to: [email protected]
Series-to: [email protected]
Series-to: [email protected]
Series-to: [email protected]
Series-to: [email protected]
Series-cc: [email protected]
Series-cc: [email protected]
Series-cc: [email protected]
Series-cc: [email protected]

---
 arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi | 4 +---
 arch/arm64/boot/dts/mediatek/mt8173-evb.dts  | 4 +---
 2 files changed, 2 insertions(+), 6 deletions(-)
arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi +1 -3
index 21452c51a20a8..db06a986f763e 100644
@@ -916,9 +916,7 @@ pio6397: pinctrl {
 			#gpio-cells = <2>;
 		};
 
-		regulator: mt6397regulator {
-			compatible = "mediatek,mt6397-regulator";
-
+		mt6397regulator {
 			mt6397_vpca15_reg: buck_vpca15 {
 				regulator-compatible = "buck_vpca15";
 				regulator-name = "vpca15";
arch/arm64/boot/dts/mediatek/mt8173-evb.dts +1 -3
index 6dffada2e66b4..c3f2a85d55fe7 100644
@@ -303,9 +303,7 @@ pmic: mt6397 {
 		interrupt-controller;
 		#interrupt-cells = <2>;
 
-		mt6397regulator: mt6397regulator {
-			compatible = "mediatek,mt6397-regulator";
-
+		mt6397regulator {
 			mt6397_vpca15_reg: buck_vpca15 {
 				regulator-compatible = "buck_vpca15";
 				regulator-name = "vpca15";
Signature · 1 line
2.30.1
#11 lore raw

Re: [PATCH 7/7] arm64: dts: mt8173: Drop compatible for mt6397

Hi Matthias,

Thank you for your patch.

Missatge de l'adreça <[email protected]> del dia dv., 12 de març 2021 a les 15:57:

Quoted 27 lines

From: Matthias Brugger <[email protected]>

The regulator framework does not need compatible, it's actually superfluous. Drop it from the DT.

Series-to: [email protected]
Series-to: [email protected]
Series-to: [email protected]
Series-to: [email protected]
Series-to: [email protected]
Series-cc: [email protected]
Series-cc: [email protected]
Series-cc: [email protected]
Series-cc: [email protected]

---
 arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi | 4 +---
 arch/arm64/boot/dts/mediatek/mt8173-evb.dts  | 4 +---
 2 files changed, 2 insertions(+), 6 deletions(-)
arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi +0 -0
index 21452c51a20a8..db06a986f763e 100644

arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi pio6397: pinctrl { · line 919

Quoted 7 lines
arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi +1 -3
@@ -916,9 +916,7 @@ pio6397: pinctrl {
                        #gpio-cells = <2>;
                };
 
-               regulator: mt6397regulator {
-                       compatible = "mediatek,mt6397-regulator";
-
+               mt6397regulator {

The same happens here, it is not checked because the mt6397 is not in YAML format yet, but once we do this it'll trigger an error as the node name should be 'regulators'

Quoted 22 lines
arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi +0 -0
                        mt6397_vpca15_reg: buck_vpca15 {
                                regulator-compatible = "buck_vpca15";
                                regulator-name = "vpca15";
arch/arm64/boot/dts/mediatek/mt8173-evb.dts +1 -4
index 6dffada2e66b4..c3f2a85d55fe7 100644
@@ -303,9 +303,7 @@ pmic: mt6397 {
                interrupt-controller;
                #interrupt-cells = <2>;
 
-               mt6397regulator: mt6397regulator {
-                       compatible = "mediatek,mt6397-regulator";
-
+               mt6397regulator {
                        mt6397_vpca15_reg: buck_vpca15 {
                                regulator-compatible = "buck_vpca15";
                                regulator-name = "vpca15";
--

2.30.1

Quoted 4 lines

_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek

_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek

maintainer Acked-by on v1 1/7
#12 lore raw
In reply to [email protected]
Quoted 11 lines · On Fri, 12 Mar 2021 15:55:39 +0100, [email protected] wrote:

From: Matthias Brugger <[email protected]>

Having a separate compatible for the regulator node is redundant and not needed. Delete the corresponding requierement.

---

 Documentation/devicetree/bindings/mfd/mt6397.txt | 3 ---
 1 file changed, 3 deletions(-)

_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek