* [PATCH] pwm: meson: use generic compatibles
@ 2017-10-13 9:16 Jerome Brunet
2017-10-17 22:09 ` Rob Herring
0 siblings, 1 reply; 2+ messages in thread
From: Jerome Brunet @ 2017-10-13 9:16 UTC (permalink / raw)
To: Thierry Reding, Kevin Hilman, Carlo Caione
Cc: Jerome Brunet, linux-pwm, devicetree, linux-arm-kernel,
linux-amlogic, linux-kernel
The meson pwm driver seems to be compatible with more SoCs than
initially thought. Let's use the most generic compatibles he have in
DT instead of the gxbb specific ones
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
---
Documentation/devicetree/bindings/pwm/pwm-meson.txt | 6 +++---
drivers/pwm/pwm-meson.c | 12 ++++++------
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/Documentation/devicetree/bindings/pwm/pwm-meson.txt b/Documentation/devicetree/bindings/pwm/pwm-meson.txt
index 1ee81321c35e..439e05030553 100644
--- a/Documentation/devicetree/bindings/pwm/pwm-meson.txt
+++ b/Documentation/devicetree/bindings/pwm/pwm-meson.txt
@@ -3,8 +3,8 @@ Amlogic Meson PWM Controller
Required properties:
- compatible: Shall contain "amlogic,meson8b-pwm"
- or "amlogic,meson-gxbb-pwm"
- or "amlogic,meson-gxbb-ao-pwm"
+ or "amlogic,meson-gx-pwm"
+ or "amlogic,meson-gx-ao-pwm"
- #pwm-cells: Should be 3. See pwm.txt in this directory for a description of
the cells format.
@@ -16,7 +16,7 @@ Optional properties:
Example:
pwm_ab: pwm@8550 {
- compatible = "amlogic,meson-gxbb-pwm";
+ compatible = "amlogic,meson-gx-pwm";
reg = <0x0 0x08550 0x0 0x10>;
#pwm-cells = <3>;
clocks = <&xtal>, <&xtal>;
diff --git a/drivers/pwm/pwm-meson.c b/drivers/pwm/pwm-meson.c
index d589331d1884..ababcc5ca3f1 100644
--- a/drivers/pwm/pwm-meson.c
+++ b/drivers/pwm/pwm-meson.c
@@ -393,7 +393,7 @@ static const char * const pwm_gxbb_parent_names[] = {
"xtal", "hdmi_pll", "fclk_div4", "fclk_div3"
};
-static const struct meson_pwm_data pwm_gxbb_data = {
+static const struct meson_pwm_data pwm_gx_data = {
.parent_names = pwm_gxbb_parent_names,
.num_parents = ARRAY_SIZE(pwm_gxbb_parent_names),
};
@@ -406,7 +406,7 @@ static const char * const pwm_gxbb_ao_parent_names[] = {
"xtal", "clk81"
};
-static const struct meson_pwm_data pwm_gxbb_ao_data = {
+static const struct meson_pwm_data pwm_gx_ao_data = {
.parent_names = pwm_gxbb_ao_parent_names,
.num_parents = ARRAY_SIZE(pwm_gxbb_ao_parent_names),
};
@@ -417,12 +417,12 @@ static const struct of_device_id meson_pwm_matches[] = {
.data = &pwm_meson8b_data
},
{
- .compatible = "amlogic,meson-gxbb-pwm",
- .data = &pwm_gxbb_data
+ .compatible = "amlogic,meson-gx-pwm",
+ .data = &pwm_gx_data
},
{
- .compatible = "amlogic,meson-gxbb-ao-pwm",
- .data = &pwm_gxbb_ao_data
+ .compatible = "amlogic,meson-gx-ao-pwm",
+ .data = &pwm_gx_ao_data
},
{},
};
--
2.13.6
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] pwm: meson: use generic compatibles
2017-10-13 9:16 [PATCH] pwm: meson: use generic compatibles Jerome Brunet
@ 2017-10-17 22:09 ` Rob Herring
0 siblings, 0 replies; 2+ messages in thread
From: Rob Herring @ 2017-10-17 22:09 UTC (permalink / raw)
To: Jerome Brunet
Cc: Thierry Reding, Kevin Hilman, Carlo Caione, linux-pwm,
devicetree, linux-arm-kernel, linux-amlogic, linux-kernel
On Fri, Oct 13, 2017 at 11:16:42AM +0200, Jerome Brunet wrote:
> The meson pwm driver seems to be compatible with more SoCs than
> initially thought. Let's use the most generic compatibles he have in
> DT instead of the gxbb specific ones
>
> Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
> ---
> Documentation/devicetree/bindings/pwm/pwm-meson.txt | 6 +++---
> drivers/pwm/pwm-meson.c | 12 ++++++------
> 2 files changed, 9 insertions(+), 9 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/pwm/pwm-meson.txt b/Documentation/devicetree/bindings/pwm/pwm-meson.txt
> index 1ee81321c35e..439e05030553 100644
> --- a/Documentation/devicetree/bindings/pwm/pwm-meson.txt
> +++ b/Documentation/devicetree/bindings/pwm/pwm-meson.txt
> @@ -3,8 +3,8 @@ Amlogic Meson PWM Controller
>
> Required properties:
> - compatible: Shall contain "amlogic,meson8b-pwm"
> - or "amlogic,meson-gxbb-pwm"
> - or "amlogic,meson-gxbb-ao-pwm"
> + or "amlogic,meson-gx-pwm"
> + or "amlogic,meson-gx-ao-pwm"
I've already said the same on other patches, but so other
maintainers see it, this seems like pointless, non-backwards compatible
change.
Rob
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-10-17 22:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-13 9:16 [PATCH] pwm: meson: use generic compatibles Jerome Brunet
2017-10-17 22:09 ` Rob Herring
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®