2022-06-13 08:27:32

by Lukas Bulwahn

[permalink] [raw]
Subject: [PATCH 0/2] Move headers from dt-bindings/clk to clock

Michael, Stephen,

I was investigating the state of ownership of the files in
include/dt-bindings/ according to the MAINTAINERS file and noticed that
there are two directories, clk and clock, that contain the include files
for clock drivers mentioned in dt-bindings.

It seems that by mistake, files were added to include/dt-bindings/clk/
instead of include/dt-bindings/clock/ where the majority of files are
located.

In the past, others already took care of moving some files from
clk to clock in the commit 8e28918a85a0 ("dt-bindings: clock: Move
ti-dra7-atl.h to dt-bindings/clock") and commit 35d35aae8177
("dt-bindings: clock: Move at91.h to dt-bindigs/clock").

This patch series repeats this activity of moving files from clk to clock
for the latest state of the kernel repository.

Michael, Stephen, please pick this minor clean-up patches into your common
clock tree.

The references that needed to be adapted was identified with git grep;
I have not compile-tested these patches and I am relying that the
specific compile-test builds for these drivers will detect any potential
issues with this refactoring.


Joe, I was also considering to create a rule in checkpatch.pl to check if a
patch creates some file in and warn about it. What do you think? You think
this is worth a rule in checkpatch? If so, I will create a first RFC patch
for such a rule.


Best regards,

Lukas


Lukas Bulwahn (2):
dt-bindings: clock: Move lochnagar.h to dt-bindings/clock
dt-bindings: clock: Move versaclock.h to dt-bindings/clock

Documentation/devicetree/bindings/clock/idt,versaclock5.yaml | 4 ++--
Documentation/devicetree/bindings/mfd/cirrus,lochnagar.yaml | 2 +-
MAINTAINERS | 2 +-
arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi | 2 +-
arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi | 2 +-
drivers/clk/clk-lochnagar.c | 2 +-
drivers/clk/clk-versaclock5.c | 2 +-
include/dt-bindings/{clk => clock}/lochnagar.h | 0
include/dt-bindings/{clk => clock}/versaclock.h | 0
9 files changed, 8 insertions(+), 8 deletions(-)
rename include/dt-bindings/{clk => clock}/lochnagar.h (100%)
rename include/dt-bindings/{clk => clock}/versaclock.h (100%)

--
2.17.1


2022-06-13 08:36:34

by Lukas Bulwahn

[permalink] [raw]
Subject: [PATCH 2/2] dt-bindings: clock: Move versaclock.h to dt-bindings/clock

Most of the clock related dt-binding header files are located in
dt-bindings/clock folder. It would be good to keep all the similar
header files at a single location.

This was discovered while investigating the state of ownership of the
files in include/dt-bindings/ according to the MAINTAINERS file.

This change here is similar to commit 8e28918a85a0 ("dt-bindings: clock:
Move ti-dra7-atl.h to dt-bindings/clock") and commit 35d35aae8177
("dt-bindings: clock: Move at91.h to dt-bindigs/clock").

Signed-off-by: Lukas Bulwahn <[email protected]>
---
Documentation/devicetree/bindings/clock/idt,versaclock5.yaml | 4 ++--
arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi | 2 +-
arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi | 2 +-
drivers/clk/clk-versaclock5.c | 2 +-
include/dt-bindings/{clk => clock}/versaclock.h | 0
5 files changed, 5 insertions(+), 5 deletions(-)
rename include/dt-bindings/{clk => clock}/versaclock.h (100%)

diff --git a/Documentation/devicetree/bindings/clock/idt,versaclock5.yaml b/Documentation/devicetree/bindings/clock/idt,versaclock5.yaml
index 7c331bfbe370..c1b838524064 100644
--- a/Documentation/devicetree/bindings/clock/idt,versaclock5.yaml
+++ b/Documentation/devicetree/bindings/clock/idt,versaclock5.yaml
@@ -108,7 +108,7 @@ patternProperties:
properties:
idt,mode:
description:
- The output drive mode. Values defined in dt-bindings/clk/versaclock.h
+ The output drive mode. Values defined in dt-bindings/clock/versaclock.h
$ref: /schemas/types.yaml#/definitions/uint32
minimum: 0
maximum: 6
@@ -151,7 +151,7 @@ additionalProperties: false

examples:
- |
- #include <dt-bindings/clk/versaclock.h>
+ #include <dt-bindings/clock/versaclock.h>

/* 25MHz reference crystal */
ref25: ref25m {
diff --git a/arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi b/arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi
index 63e7a39e100e..8166e3c1ff4e 100644
--- a/arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi
+++ b/arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi
@@ -5,7 +5,7 @@

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
-#include <dt-bindings/clk/versaclock.h>
+#include <dt-bindings/clock/versaclock.h>

/ {
backlight_lvds: backlight-lvds {
diff --git a/arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi b/arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi
index f5c1d74b738b..d3fc8ffd5b4c 100644
--- a/arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi
+++ b/arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi
@@ -4,7 +4,7 @@
*/

#include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/clk/versaclock.h>
+#include <dt-bindings/clock/versaclock.h>

/ {
memory@48000000 {
diff --git a/drivers/clk/clk-versaclock5.c b/drivers/clk/clk-versaclock5.c
index e7be3e54b9be..b8c556dbeba0 100644
--- a/drivers/clk/clk-versaclock5.c
+++ b/drivers/clk/clk-versaclock5.c
@@ -24,7 +24,7 @@
#include <linux/regmap.h>
#include <linux/slab.h>

-#include <dt-bindings/clk/versaclock.h>
+#include <dt-bindings/clock/versaclock.h>

/* VersaClock5 registers */
#define VC5_OTP_CONTROL 0x00
diff --git a/include/dt-bindings/clk/versaclock.h b/include/dt-bindings/clock/versaclock.h
similarity index 100%
rename from include/dt-bindings/clk/versaclock.h
rename to include/dt-bindings/clock/versaclock.h
--
2.17.1

2022-06-13 21:31:21

by Luca Ceresoli

[permalink] [raw]
Subject: Re: [PATCH 2/2] dt-bindings: clock: Move versaclock.h to dt-bindings/clock

Hi Lukas,

On 13/06/22 10:16, Lukas Bulwahn wrote:
> Most of the clock related dt-binding header files are located in
> dt-bindings/clock folder. It would be good to keep all the similar
> header files at a single location.
>
> This was discovered while investigating the state of ownership of the
> files in include/dt-bindings/ according to the MAINTAINERS file.
>
> This change here is similar to commit 8e28918a85a0 ("dt-bindings: clock:
> Move ti-dra7-atl.h to dt-bindings/clock") and commit 35d35aae8177
> ("dt-bindings: clock: Move at91.h to dt-bindigs/clock").
>
> Signed-off-by: Lukas Bulwahn <[email protected]>

Reviewed-by: Luca Ceresoli <[email protected]>
Reviewed-by: Luca Ceresoli <[email protected]>

(I'm switching to the Bootlin address, patches are out but the
MAINTAINERS one is not yet on master(

--
Luca

2022-06-16 15:28:49

by Rob Herring

[permalink] [raw]
Subject: Re: [PATCH 2/2] dt-bindings: clock: Move versaclock.h to dt-bindings/clock

On Mon, 13 Jun 2022 10:16:32 +0200, Lukas Bulwahn wrote:
> Most of the clock related dt-binding header files are located in
> dt-bindings/clock folder. It would be good to keep all the similar
> header files at a single location.
>
> This was discovered while investigating the state of ownership of the
> files in include/dt-bindings/ according to the MAINTAINERS file.
>
> This change here is similar to commit 8e28918a85a0 ("dt-bindings: clock:
> Move ti-dra7-atl.h to dt-bindings/clock") and commit 35d35aae8177
> ("dt-bindings: clock: Move at91.h to dt-bindigs/clock").
>
> Signed-off-by: Lukas Bulwahn <[email protected]>
> ---
> Documentation/devicetree/bindings/clock/idt,versaclock5.yaml | 4 ++--
> arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi | 2 +-
> arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi | 2 +-
> drivers/clk/clk-versaclock5.c | 2 +-
> include/dt-bindings/{clk => clock}/versaclock.h | 0
> 5 files changed, 5 insertions(+), 5 deletions(-)
> rename include/dt-bindings/{clk => clock}/versaclock.h (100%)
>

Acked-by: Rob Herring <[email protected]>

2022-08-22 23:17:33

by Stephen Boyd

[permalink] [raw]
Subject: Re: [PATCH 2/2] dt-bindings: clock: Move versaclock.h to dt-bindings/clock

Quoting Lukas Bulwahn (2022-06-13 01:16:32)
> Most of the clock related dt-binding header files are located in
> dt-bindings/clock folder. It would be good to keep all the similar
> header files at a single location.
>
> This was discovered while investigating the state of ownership of the
> files in include/dt-bindings/ according to the MAINTAINERS file.
>
> This change here is similar to commit 8e28918a85a0 ("dt-bindings: clock:
> Move ti-dra7-atl.h to dt-bindings/clock") and commit 35d35aae8177
> ("dt-bindings: clock: Move at91.h to dt-bindigs/clock").
>
> Signed-off-by: Lukas Bulwahn <[email protected]>
> ---

Applied to clk-next