mfd: tps65217: add compatible string for subdevices
Subsystems (4)
PATCH 1/1 mfd: tps65217: add compatible string for subdevices
The TPS65217 is missing of_compatible string in the mfd_cell for its subdevices. This compatible string is necessary to use functions like of_find_backlight_by_node in backlight.c.
--- Documentation/devicetree/bindings/regulator/tps65217.txt | 5 ++++- .../devicetree/bindings/video/backlight/tps65217-backlight.txt | 6 +++--- drivers/mfd/tps65217.c | 2 ++ 3 files changed, 9 insertions(+), 4 deletions(-)
Documentation/devicetree/bindings/regulator/tps65217.txt +4 -1
@@ -5,6 +5,7 @@ Required properties: - reg: I2C slave address - regulators: list of regulators provided by this controller, must be named after their hardware counterparts: dcdc[1-3] and ldo[1-4] +- compatible: "ti,tps65217-pmic" - regulators: This is the list of child nodes that specify the regulator initialization data for defined regulators. Not all regulators for the given device need to be present. The definition for each of these nodes is defined
@@ -23,9 +24,11 @@ Example: tps: tps@24 { compatible = "ti,tps65217"; + reg = <0x24>; ti,pmic-shutdown-controller; - regulators { + tps_pmic: regulators { + compatible = "ti,tps65217-pmic"; dcdc1_reg: dcdc1 { regulator-min-microvolt = <900000>; regulator-max-microvolt = <1800000>;
Documentation/devicetree/bindings/video/backlight/tps65217-backlight.txt +3 -3
@@ -7,18 +7,18 @@ Required properties: - compatible: "ti,tps65217" - reg: I2C slave address - backlight: node for specifying WLED1 and WLED2 lines in TPS65217 +- compatible: "ti,tps65217-bl" - isel: selection bit, valid values: 1 for ISEL1 (low-level) and 2 for ISEL2 (high-level) - fdim: PWM dimming frequency, valid values: 100, 200, 500, 1000 - default-brightness: valid values: 0-100 -Each regulator is defined using the standard binding for regulators. - Example: tps: tps@24 { reg = <0x24>; compatible = "ti,tps65217"; - backlight { + tps_bl: backlight { + compatible = "ti,tps65217-bl"; isel = <1>; /* 1 - ISET1, 2 ISET2 */ fdim = <100>; /* TPS65217_BL_FDIM_100HZ */ default-brightness = <50>;
drivers/mfd/tps65217.c +2 -0
@@ -33,9 +33,11 @@static const struct mfd_cell tps65217s[] = { { .name ="tps65217-pmic" , + .of_compatible ="ti,tps65217-pmic" , }, { .name ="tps65217-bl" , + .of_compatible ="ti,tps65217-bl" , }, };
Signature · 1 line
2.1.0
Quoted 10 lines · Johannes Pointner
The TPS65217 is missing
of_compatiblestring in themfd_cellfor its subdevices. This compatible string is necessary to use functions likeof_find_backlight_by_nodeinbacklight.c.Signed-off-by Johannes Pointner <[email protected]>--- Documentation/devicetree/bindings/regulator/tps65217.txt | 5 ++++- .../devicetree/bindings/video/backlight/tps65217-backlight.txt | 6 +++--- drivers/mfd/tps65217.c | 2 ++ 3 files changed, 9 insertions(+), 4 deletions(-)
[...]
Documentation/devicetree/bindings/video/backlight/tps65217-backlight.txt Required properties: · line 10
Quoted 9 lines
Documentation/devicetree/bindings/video/backlight/tps65217-backlight.txt +1
-0@@ -7,18 +7,18 @@ Required properties: - compatible: "ti,tps65217" - reg: I2C slave address - backlight: node for specifying WLED1 and WLED2 lines in TPS65217 +- compatible: "ti,tps65217-bl"
This is now confusing. Please make it clear that this part of the documentation is now referencing the sub-node.
drivers/mfd/tps65217.c
Quoted 18 lines
Documentation/devicetree/bindings/video/backlight/tps65217-backlight.txt +2
-3- isel: selection bit, valid values: 1 for ISEL1 (low-level) and 2 for ISEL2 (high-level) - fdim: PWM dimming frequency, valid values: 100, 200, 500, 1000 - default-brightness: valid values: 0-100 -Each regulator is defined using the standard binding for regulators. - Example: tps: tps@24 { reg = <0x24>; compatible = "ti,tps65217"; - backlight { + tps_bl: backlight { + compatible = "ti,tps65217-bl"; isel = <1>; /* 1 - ISET1, 2 ISET2 */ fdim = <100>; /* TPS65217_BL_FDIM_100HZ */ default-brightness = <50>;drivers/mfd/tps65217.c +0
-0
This shouldn't be in this patch.
Please adhere to: Documentation/devicetree/bindings/submitting-patches.txt
Quoted 15 lines
index 3cc4c70..77708f9 100644
drivers/mfd/tps65217.c +2
-0@@ -33,9 +33,11 @@static const struct mfd_cell tps65217s[] = { { .name ="tps65217-pmic" , + .of_compatible ="ti,tps65217-pmic" , }, { .name ="tps65217-bl" , + .of_compatible ="ti,tps65217-bl" , }, };
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
2014-09-24 13:06 GMT+02:00 Lee Jones <[email protected]>:
Quoted 15 lines · Johannes Pointner
Quoted 11 lines
The TPS65217 is missing
of_compatiblestring in themfd_cellfor its subdevices. This compatible string is necessary to use functions likeof_find_backlight_by_nodeinbacklight.c.Signed-off-by Johannes Pointner <[email protected]>--- Documentation/devicetree/bindings/regulator/tps65217.txt | 5 ++++- .../devicetree/bindings/video/backlight/tps65217-backlight.txt | 6 +++--- drivers/mfd/tps65217.c | 2 ++ 3 files changed, 9 insertions(+), 4 deletions(-)[...]
Quoted 12 lines
Documentation/devicetree/bindings/video/backlight/tps65217-backlight.txt Required properties: · line 10
Quoted 9 lines
Documentation/devicetree/bindings/video/backlight/tps65217-backlight.txt +1
-0@@ -7,18 +7,18 @@ Required properties: - compatible: "ti,tps65217" - reg: I2C slave address - backlight: node for specifying WLED1 and WLED2 lines in TPS65217 +- compatible: "ti,tps65217-bl"This is now confusing. Please make it clear that this part of the documentation is now referencing the sub-node.
I will add a Subnode properties label, to make it clearer.
Quoted 22 lines
drivers/mfd/tps65217.c
Quoted 19 lines
Documentation/devicetree/bindings/video/backlight/tps65217-backlight.txt +2
-3- isel: selection bit, valid values: 1 for ISEL1 (low-level) and 2 for ISEL2 (high-level) - fdim: PWM dimming frequency, valid values: 100, 200, 500, 1000 - default-brightness: valid values: 0-100 -Each regulator is defined using the standard binding for regulators. - Example: tps: tps@24 { reg = <0x24>; compatible = "ti,tps65217"; - backlight { + tps_bl: backlight { + compatible = "ti,tps65217-bl"; isel = <1>; /* 1 - ISET1, 2 ISET2 */ fdim = <100>; /* TPS65217_BL_FDIM_100HZ */ default-brightness = <50>;drivers/mfd/tps65217.c +0
-0This shouldn't be in this patch.
Quoted 1 line
Please adhere to:
Documentation/devicetree/bindings/submitting-patches.txt
I will split the patch.
Quoted 20 lines
Quoted 6 lines
index 3cc4c70..77708f9 100644
drivers/mfd/tps65217.c +0
-0@@ -33,9 +33,11 @@static const struct mfd_cell tps65217s[] = {drivers/mfd/tps65217.c line 43
Quoted 10 lines
drivers/mfd/tps65217.c +2
-0{ .name = "tps65217-pmic", + .of_compatible = "ti,tps65217-pmic", }, { .name = "tps65217-bl", + .of_compatible = "ti,tps65217-bl", }, };--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Quoted 2 lines
Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Thank you for your feedback. I'll resend the patches with the modifications.