* [PATCH 1/3] wdt: sunxi: Introduce a new compatible for the A10 and A31 @ 2014-02-02 13:55 Maxime Ripard 2014-02-02 13:55 ` [PATCH 2/3] ARM: sunxi: Add the new watchog compatibles to the reboot code Maxime Ripard ` (2 more replies) 0 siblings, 3 replies; 5+ messages in thread From: Maxime Ripard @ 2014-02-02 13:55 UTC (permalink / raw) To: linux-arm-kernel For historical reasons, the Allwinner A10 compatibles are not following the patterns used for this other Allwinner SoCs. Introduce a new compatible following the usual pattern, and deprecate the olders. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> --- Documentation/devicetree/bindings/watchdog/sunxi-wdt.txt | 7 ++++--- drivers/watchdog/sunxi_wdt.c | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/watchdog/sunxi-wdt.txt b/Documentation/devicetree/bindings/watchdog/sunxi-wdt.txt index e39cb26..6e8c937 100644 --- a/Documentation/devicetree/bindings/watchdog/sunxi-wdt.txt +++ b/Documentation/devicetree/bindings/watchdog/sunxi-wdt.txt @@ -2,13 +2,14 @@ Allwinner SoCs Watchdog timer Required properties: -- compatible : should be "allwinner,<soc-family>-wdt", the currently supported - SoC families being sun4i and sun6i +- compatible : should be either "allwinner,sun4i-a10-wdt" or + "allwinner,sun6i-a31-wdt" (deprecated: + "allwinner,sun4i-wdt", "allwinner,sun6i-wdt") - reg : Specifies base physical address and size of the registers. Example: wdt: watchdog at 01c20c90 { - compatible = "allwinner,sun4i-wdt"; + compatible = "allwinner,sun4i-a10-wdt"; reg = <0x01c20c90 0x10>; }; diff --git a/drivers/watchdog/sunxi_wdt.c b/drivers/watchdog/sunxi_wdt.c index 76332d8..7c8923d 100644 --- a/drivers/watchdog/sunxi_wdt.c +++ b/drivers/watchdog/sunxi_wdt.c @@ -206,6 +206,7 @@ static void sunxi_wdt_shutdown(struct platform_device *pdev) static const struct of_device_id sunxi_wdt_dt_ids[] = { { .compatible = "allwinner,sun4i-wdt" }, + { .compatible = "allwinner,sun4i-a10-wdt" }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, sunxi_wdt_dt_ids); -- 1.8.4.2 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/3] ARM: sunxi: Add the new watchog compatibles to the reboot code 2014-02-02 13:55 [PATCH 1/3] wdt: sunxi: Introduce a new compatible for the A10 and A31 Maxime Ripard @ 2014-02-02 13:55 ` Maxime Ripard 2014-02-02 13:55 ` [PATCH 3/3] ARM: sunxi: dt: Update the watchdog compatibles Maxime Ripard 2014-02-06 11:14 ` [PATCH 1/3] wdt: sunxi: Introduce a new compatible for the A10 and A31 Hans de Goede 2 siblings, 0 replies; 5+ messages in thread From: Maxime Ripard @ 2014-02-02 13:55 UTC (permalink / raw) To: linux-arm-kernel Now that the watchdog driver has new compatibles, we need to support them in the machine reboot code too. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> --- arch/arm/mach-sunxi/sunxi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-sunxi/sunxi.c b/arch/arm/mach-sunxi/sunxi.c index aeea6ce..c310df6 100644 --- a/arch/arm/mach-sunxi/sunxi.c +++ b/arch/arm/mach-sunxi/sunxi.c @@ -95,7 +95,9 @@ static void sun6i_restart(enum reboot_mode mode, const char *cmd) static struct of_device_id sunxi_restart_ids[] = { { .compatible = "allwinner,sun4i-wdt" }, + { .compatible = "allwinner,sun4i-a10-wdt" }, { .compatible = "allwinner,sun6i-wdt" }, + { .compatible = "allwinner,sun6i-a31-wdt" }, { /*sentinel*/ } }; -- 1.8.4.2 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 3/3] ARM: sunxi: dt: Update the watchdog compatibles 2014-02-02 13:55 [PATCH 1/3] wdt: sunxi: Introduce a new compatible for the A10 and A31 Maxime Ripard 2014-02-02 13:55 ` [PATCH 2/3] ARM: sunxi: Add the new watchog compatibles to the reboot code Maxime Ripard @ 2014-02-02 13:55 ` Maxime Ripard 2014-02-06 11:14 ` [PATCH 1/3] wdt: sunxi: Introduce a new compatible for the A10 and A31 Hans de Goede 2 siblings, 0 replies; 5+ messages in thread From: Maxime Ripard @ 2014-02-02 13:55 UTC (permalink / raw) To: linux-arm-kernel The watchdog compatibles were following a different pattern than the one found in the other devices. Now that the driver supports the right pattern, switch to it in the DT. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> --- arch/arm/boot/dts/sun4i-a10.dtsi | 2 +- arch/arm/boot/dts/sun5i-a10s.dtsi | 2 +- arch/arm/boot/dts/sun5i-a13.dtsi | 2 +- arch/arm/boot/dts/sun6i-a31.dtsi | 2 +- arch/arm/boot/dts/sun7i-a20.dtsi | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi b/arch/arm/boot/dts/sun4i-a10.dtsi index 040bb0e..f1eb8718 100644 --- a/arch/arm/boot/dts/sun4i-a10.dtsi +++ b/arch/arm/boot/dts/sun4i-a10.dtsi @@ -410,7 +410,7 @@ }; wdt: watchdog at 01c20c90 { - compatible = "allwinner,sun4i-wdt"; + compatible = "allwinner,sun4i-a10-wdt"; reg = <0x01c20c90 0x10>; }; diff --git a/arch/arm/boot/dts/sun5i-a10s.dtsi b/arch/arm/boot/dts/sun5i-a10s.dtsi index ea16054..c4a4b23 100644 --- a/arch/arm/boot/dts/sun5i-a10s.dtsi +++ b/arch/arm/boot/dts/sun5i-a10s.dtsi @@ -373,7 +373,7 @@ }; wdt: watchdog at 01c20c90 { - compatible = "allwinner,sun4i-wdt"; + compatible = "allwinner,sun4i-a10-wdt"; reg = <0x01c20c90 0x10>; }; diff --git a/arch/arm/boot/dts/sun5i-a13.dtsi b/arch/arm/boot/dts/sun5i-a13.dtsi index 320335a..143656b 100644 --- a/arch/arm/boot/dts/sun5i-a13.dtsi +++ b/arch/arm/boot/dts/sun5i-a13.dtsi @@ -336,7 +336,7 @@ }; wdt: watchdog at 01c20c90 { - compatible = "allwinner,sun4i-wdt"; + compatible = "allwinner,sun4i-a10-wdt"; reg = <0x01c20c90 0x10>; }; diff --git a/arch/arm/boot/dts/sun6i-a31.dtsi b/arch/arm/boot/dts/sun6i-a31.dtsi index 5256ad9..cc691d1 100644 --- a/arch/arm/boot/dts/sun6i-a31.dtsi +++ b/arch/arm/boot/dts/sun6i-a31.dtsi @@ -242,7 +242,7 @@ }; wdt1: watchdog at 01c20ca0 { - compatible = "allwinner,sun6i-wdt"; + compatible = "allwinner,sun6i-a31-wdt"; reg = <0x01c20ca0 0x20>; }; diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi index 119f066..aaa7b3d 100644 --- a/arch/arm/boot/dts/sun7i-a20.dtsi +++ b/arch/arm/boot/dts/sun7i-a20.dtsi @@ -447,7 +447,7 @@ }; wdt: watchdog at 01c20c90 { - compatible = "allwinner,sun4i-wdt"; + compatible = "allwinner,sun4i-a10-wdt"; reg = <0x01c20c90 0x10>; }; -- 1.8.4.2 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 1/3] wdt: sunxi: Introduce a new compatible for the A10 and A31 2014-02-02 13:55 [PATCH 1/3] wdt: sunxi: Introduce a new compatible for the A10 and A31 Maxime Ripard 2014-02-02 13:55 ` [PATCH 2/3] ARM: sunxi: Add the new watchog compatibles to the reboot code Maxime Ripard 2014-02-02 13:55 ` [PATCH 3/3] ARM: sunxi: dt: Update the watchdog compatibles Maxime Ripard @ 2014-02-06 11:14 ` Hans de Goede 2014-02-07 13:19 ` Maxime Ripard 2 siblings, 1 reply; 5+ messages in thread From: Hans de Goede @ 2014-02-06 11:14 UTC (permalink / raw) To: linux-arm-kernel Hi, On 02/02/2014 02:55 PM, Maxime Ripard wrote: > For historical reasons, the Allwinner A10 compatibles are not following the > patterns used for this other Allwinner SoCs. > > Introduce a new compatible following the usual pattern, and deprecate the olders. > > Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> > --- > Documentation/devicetree/bindings/watchdog/sunxi-wdt.txt | 7 ++++--- > drivers/watchdog/sunxi_wdt.c | 1 + > 2 files changed, 5 insertions(+), 3 deletions(-) > > diff --git a/Documentation/devicetree/bindings/watchdog/sunxi-wdt.txt b/Documentation/devicetree/bindings/watchdog/sunxi-wdt.txt > index e39cb26..6e8c937 100644 > --- a/Documentation/devicetree/bindings/watchdog/sunxi-wdt.txt > +++ b/Documentation/devicetree/bindings/watchdog/sunxi-wdt.txt > @@ -2,13 +2,14 @@ Allwinner SoCs Watchdog timer > > Required properties: > > -- compatible : should be "allwinner,<soc-family>-wdt", the currently supported > - SoC families being sun4i and sun6i > +- compatible : should be either "allwinner,sun4i-a10-wdt" or > + "allwinner,sun6i-a31-wdt" (deprecated: > + "allwinner,sun4i-wdt", "allwinner,sun6i-wdt") > - reg : Specifies base physical address and size of the registers. > > Example: > > wdt: watchdog at 01c20c90 { > - compatible = "allwinner,sun4i-wdt"; > + compatible = "allwinner,sun4i-a10-wdt"; > reg = <0x01c20c90 0x10>; > }; You talk about deprecating the old compat strings in the commit message, but here you outright replace them, which will break things with old dtb files ? Other 2 patches in the series look good and are: Reviewed-by: Hans de Goede <hdegoede@redhat.com> > diff --git a/drivers/watchdog/sunxi_wdt.c b/drivers/watchdog/sunxi_wdt.c > index 76332d8..7c8923d 100644 > --- a/drivers/watchdog/sunxi_wdt.c > +++ b/drivers/watchdog/sunxi_wdt.c > @@ -206,6 +206,7 @@ static void sunxi_wdt_shutdown(struct platform_device *pdev) > > static const struct of_device_id sunxi_wdt_dt_ids[] = { > { .compatible = "allwinner,sun4i-wdt" }, > + { .compatible = "allwinner,sun4i-a10-wdt" }, > { /* sentinel */ } > }; > MODULE_DEVICE_TABLE(of, sunxi_wdt_dt_ids); > Regards, Hans ^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/3] wdt: sunxi: Introduce a new compatible for the A10 and A31 2014-02-06 11:14 ` [PATCH 1/3] wdt: sunxi: Introduce a new compatible for the A10 and A31 Hans de Goede @ 2014-02-07 13:19 ` Maxime Ripard 0 siblings, 0 replies; 5+ messages in thread From: Maxime Ripard @ 2014-02-07 13:19 UTC (permalink / raw) To: linux-arm-kernel Hi Hans, On Thu, Feb 06, 2014 at 12:14:21PM +0100, Hans de Goede wrote: > On 02/02/2014 02:55 PM, Maxime Ripard wrote: > >For historical reasons, the Allwinner A10 compatibles are not following the > >patterns used for this other Allwinner SoCs. > > > >Introduce a new compatible following the usual pattern, and deprecate the olders. > > > >Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> > >--- > > Documentation/devicetree/bindings/watchdog/sunxi-wdt.txt | 7 ++++--- > > drivers/watchdog/sunxi_wdt.c | 1 + > > 2 files changed, 5 insertions(+), 3 deletions(-) > > > >diff --git a/Documentation/devicetree/bindings/watchdog/sunxi-wdt.txt b/Documentation/devicetree/bindings/watchdog/sunxi-wdt.txt > >index e39cb26..6e8c937 100644 > >--- a/Documentation/devicetree/bindings/watchdog/sunxi-wdt.txt > >+++ b/Documentation/devicetree/bindings/watchdog/sunxi-wdt.txt > >@@ -2,13 +2,14 @@ Allwinner SoCs Watchdog timer > > > > Required properties: > > > >-- compatible : should be "allwinner,<soc-family>-wdt", the currently supported > >- SoC families being sun4i and sun6i > >+- compatible : should be either "allwinner,sun4i-a10-wdt" or > >+ "allwinner,sun6i-a31-wdt" (deprecated: > >+ "allwinner,sun4i-wdt", "allwinner,sun6i-wdt") > > - reg : Specifies base physical address and size of the registers. > > > > Example: > > > > wdt: watchdog at 01c20c90 { > >- compatible = "allwinner,sun4i-wdt"; > >+ compatible = "allwinner,sun4i-a10-wdt"; > > reg = <0x01c20c90 0x10>; > > }; > > You talk about deprecating the old compat strings in the commit message, but > here you outright replace them, which will break things with old dtb files ? I'm replacing them only in the Documentation here. I only add it to the driver after that, which means that the driver will be probed with both the new and the old compatibles. However, the DT maintainers said it was ok to remove them entirely, so I'll send a v2. Maxime > > Other 2 patches in the series look good and are: > > Reviewed-by: Hans de Goede <hdegoede@redhat.com> > > > >diff --git a/drivers/watchdog/sunxi_wdt.c b/drivers/watchdog/sunxi_wdt.c > >index 76332d8..7c8923d 100644 > >--- a/drivers/watchdog/sunxi_wdt.c > >+++ b/drivers/watchdog/sunxi_wdt.c > >@@ -206,6 +206,7 @@ static void sunxi_wdt_shutdown(struct platform_device *pdev) > > > > static const struct of_device_id sunxi_wdt_dt_ids[] = { > > { .compatible = "allwinner,sun4i-wdt" }, > >+ { .compatible = "allwinner,sun4i-a10-wdt" }, > > { /* sentinel */ } > > }; > > MODULE_DEVICE_TABLE(of, sunxi_wdt_dt_ids); > > > > Regards, > > Hans -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140207/f1d6c888/attachment.sig> ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-02-07 13:19 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-02-02 13:55 [PATCH 1/3] wdt: sunxi: Introduce a new compatible for the A10 and A31 Maxime Ripard 2014-02-02 13:55 ` [PATCH 2/3] ARM: sunxi: Add the new watchog compatibles to the reboot code Maxime Ripard 2014-02-02 13:55 ` [PATCH 3/3] ARM: sunxi: dt: Update the watchdog compatibles Maxime Ripard 2014-02-06 11:14 ` [PATCH 1/3] wdt: sunxi: Introduce a new compatible for the A10 and A31 Hans de Goede 2014-02-07 13:19 ` Maxime Ripard
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).