dt-bindings: pinctrl: ti-k3: Move k3.h to arch specific
Subsystems (6)
Nishanth Menon
maintainercover dt-bindings: pinctrl: ti-k3: Move k3.h to arch specific
Hi,
As discussed in [1], lets do some basic cleanups and move pin ctrl definitions to arch folder.
Base: next-20230310
Nishanth Menon (2):
dt-bindings: net: ti: k3-am654-cpsw-nuss: Drop pinmux header
dt-bindings: pinctrl: Move k3.h to arch
.../devicetree/bindings/net/ti,k3-am654-cpsw-nuss.yaml | 1 - MAINTAINERS | 1 - arch/arm64/boot/dts/ti/k3-am62.dtsi | 3 ++- arch/arm64/boot/dts/ti/k3-am62a.dtsi | 3 ++- arch/arm64/boot/dts/ti/k3-am64.dtsi | 3 ++- arch/arm64/boot/dts/ti/k3-am65.dtsi | 3 ++- arch/arm64/boot/dts/ti/k3-j7200.dtsi | 3 ++- arch/arm64/boot/dts/ti/k3-j721e.dtsi | 3 ++- arch/arm64/boot/dts/ti/k3-j721s2.dtsi | 3 ++- arch/arm64/boot/dts/ti/k3-j784s4.dtsi | 3 ++- .../pinctrl/k3.h => arch/arm64/boot/dts/ti/k3-pinctrl.h | 6 +++--- 11 files changed, 19 insertions(+), 13 deletions(-) rename include/dt-bindings/pinctrl/k3.h => arch/arm64/boot/dts/ti/k3-pinctrl.h (94%)
[1] https://lore.kernel.org/all/[email protected]/
Signature · 1 line
2.37.2
Nishanth Menon
maintainerPATCH 1/2 dt-bindings: net: ti: k3-am654-cpsw-nuss: Drop pinmux header
Drop the pinmux header reference. Examples should just show the node definition.
---
Looks like there are regressions in this yaml file already when checked with dt_bindings_check, but that is a seperate activity of it's own.
If net maintainers are OK, I'd like to pick this up as part of the pinctrl fixes series for next..
Documentation/devicetree/bindings/net/ti,k3-am654-cpsw-nuss.yaml | 1 - 1 file changed, 1 deletion(-)
Documentation/devicetree/bindings/net/ti,k3-am654-cpsw-nuss.yaml +0 -1
@@ -222,7 +222,6 @@ additionalProperties: false examples: - | - #include <dt-bindings/pinctrl/k3.h> #include <dt-bindings/soc/ti,sci_pm_domain.h> #include <dt-bindings/net/ti-dp83867.h> #include <dt-bindings/interrupt-controller/irq.h>
Signature · 1 line
2.37.2
Re: [PATCH 1/2] dt-bindings: net: ti: k3-am654-cpsw-nuss: Drop pinmux header
Quoted 2 lines · Nishanth Menon
Drop the pinmux header reference. Examples should just show the node definition.
You could mention that it is not used.
Best regards,
Krzysztof
Nishanth Menon
maintainerRe: [PATCH 1/2] dt-bindings: net: ti: k3-am654-cpsw-nuss: Drop pinmux header
Quoted 8 lines · Krzysztof Kozlowski
Quoted 2 lines · Nishanth Menon
Drop the pinmux header reference. Examples should just show the node definition.
You could mention that it is not used.
Yup. will update the series. Thanks for reviewing.
Signature · 3 lines
Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D
Nishanth Menon
maintainerPATCH 2/2 dt-bindings: pinctrl: Move k3.h to arch
In reply to Nishanth MenonMove the k3 pinctrl definition to arch dts folder.
While at this, fixup MAINTAINERS and header guard macro to better reflect the changes.
---
There is no specific case I can think of at the moment to create a pinctrl.dtsi for the SoCs.. So, unlike other SoCs, I had not done that in the series, if folks have a better opinion about this, please let us discuss.
MAINTAINERS | 1 - arch/arm64/boot/dts/ti/k3-am62.dtsi | 3 ++- arch/arm64/boot/dts/ti/k3-am62a.dtsi | 3 ++- arch/arm64/boot/dts/ti/k3-am64.dtsi | 3 ++- arch/arm64/boot/dts/ti/k3-am65.dtsi | 3 ++- arch/arm64/boot/dts/ti/k3-j7200.dtsi | 3 ++- arch/arm64/boot/dts/ti/k3-j721e.dtsi | 3 ++- arch/arm64/boot/dts/ti/k3-j721s2.dtsi | 3 ++- arch/arm64/boot/dts/ti/k3-j784s4.dtsi | 3 ++- .../pinctrl/k3.h => arch/arm64/boot/dts/ti/k3-pinctrl.h | 6 +++--- 10 files changed, 19 insertions(+), 12 deletions(-) rename include/dt-bindings/pinctrl/k3.h => arch/arm64/boot/dts/ti/k3-pinctrl.h (94%)
MAINTAINERS +0 -1
@@ -2933,7 +2933,6 @@ F: Documentation/devicetree/bindings/arm/ti/k3.yaml F: Documentation/devicetree/bindings/hwinfo/ti,k3-socinfo.yaml F: arch/arm64/boot/dts/ti/Makefile F: arch/arm64/boot/dts/ti/k3-* -F: include/dt-bindings/pinctrl/k3.h ARM/TOSHIBA VISCONTI ARCHITECTURE M: Nobuhiro Iwamatsu <[email protected]>
arch/arm64/boot/dts/ti/k3-am62.dtsi +2 -1
@@ -8,9 +8,10 @@ #include <dt-bindings/gpio/gpio.h> #include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/interrupt-controller/arm-gic.h> -#include <dt-bindings/pinctrl/k3.h> #include <dt-bindings/soc/ti,sci_pm_domain.h> +#include "k3-pinctrl.h" + / { model = "Texas Instruments K3 AM625 SoC"; compatible = "ti,am625";
arch/arm64/boot/dts/ti/k3-am62a.dtsi +2 -1
@@ -8,9 +8,10 @@ #include <dt-bindings/gpio/gpio.h> #include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/interrupt-controller/arm-gic.h> -#include <dt-bindings/pinctrl/k3.h> #include <dt-bindings/soc/ti,sci_pm_domain.h> +#include "k3-pinctrl.h" + / { model = "Texas Instruments K3 AM62A SoC"; compatible = "ti,am62a7";
arch/arm64/boot/dts/ti/k3-am64.dtsi +2 -1
@@ -8,9 +8,10 @@ #include <dt-bindings/gpio/gpio.h> #include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/interrupt-controller/arm-gic.h> -#include <dt-bindings/pinctrl/k3.h> #include <dt-bindings/soc/ti,sci_pm_domain.h> +#include "k3-pinctrl.h" + / { model = "Texas Instruments K3 AM642 SoC"; compatible = "ti,am642";
arch/arm64/boot/dts/ti/k3-am65.dtsi +2 -1
@@ -8,9 +8,10 @@ #include <dt-bindings/gpio/gpio.h> #include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/interrupt-controller/arm-gic.h> -#include <dt-bindings/pinctrl/k3.h> #include <dt-bindings/soc/ti,sci_pm_domain.h> +#include "k3-pinctrl.h" + / { model = "Texas Instruments K3 AM654 SoC"; compatible = "ti,am654";
arch/arm64/boot/dts/ti/k3-j7200.dtsi +2 -1
@@ -7,9 +7,10 @@ #include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/interrupt-controller/arm-gic.h> -#include <dt-bindings/pinctrl/k3.h> #include <dt-bindings/soc/ti,sci_pm_domain.h> +#include "k3-pinctrl.h" + / { model = "Texas Instruments K3 J7200 SoC"; compatible = "ti,j7200";
arch/arm64/boot/dts/ti/k3-j721e.dtsi +2 -1
@@ -7,9 +7,10 @@ #include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/interrupt-controller/arm-gic.h> -#include <dt-bindings/pinctrl/k3.h> #include <dt-bindings/soc/ti,sci_pm_domain.h> +#include "k3-pinctrl.h" + / { model = "Texas Instruments K3 J721E SoC"; compatible = "ti,j721e";
arch/arm64/boot/dts/ti/k3-j721s2.dtsi +2 -1
@@ -10,9 +10,10 @@ #include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/interrupt-controller/arm-gic.h> -#include <dt-bindings/pinctrl/k3.h> #include <dt-bindings/soc/ti,sci_pm_domain.h> +#include "k3-pinctrl.h" + / { model = "Texas Instruments K3 J721S2 SoC";
arch/arm64/boot/dts/ti/k3-j784s4.dtsi +2 -1
@@ -10,9 +10,10 @@ #include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/interrupt-controller/arm-gic.h> -#include <dt-bindings/pinctrl/k3.h> #include <dt-bindings/soc/ti,sci_pm_domain.h> +#include "k3-pinctrl.h" + / { model = "Texas Instruments K3 J784S4 SoC"; compatible = "ti,j784s4";
arch/arm64/boot/dts/ti/k3-pinctrl.h renamed from include/dt-bindings/pinctrl/k3.h +3 -3
@@ -3,10 +3,10 @@* This header provides constants for pinctrl bindings for TI's K3 SoC * family. * -* Copyright (C) 2018-2021 Texas Instruments Incorporated - https://www.ti.com/ +* Copyright (C) 2018-2023 Texas Instruments Incorporated - https://www.ti.com/ */ -#ifndef _DT_BINDINGS_PINCTRL_TI_K3_H -#define _DT_BINDINGS_PINCTRL_TI_K3_H +#ifndef DTS_ARM64_TI_K3_PINCTRL_H +#define DTS_ARM64_TI_K3_PINCTRL_H #define PULLUDEN_SHIFT (16)#define PULLTYPESEL_SHIFT (17)
Signature · 1 line
2.37.2
Re: [PATCH 2/2] dt-bindings: pinctrl: Move k3.h to arch
Quoted 16 lines · Nishanth Menon
Move the k3 pinctrl definition to arch dts folder.
While at this, fixup
MAINTAINERSand header guard macro to better reflect the changes.Suggested-by Krzysztof Kozlowski <[email protected]>Suggested-by Linus Walleij <[email protected]>Signed-off-by Nishanth Menon <[email protected]>---
There is no specific case I can think of at the moment to create a
pinctrl.dtsifor the SoCs.. So, unlike other SoCs, I had not done that in the series, if folks have a better opinion about this, please let us discuss.
Quoted 10 lines
MAINTAINERS | 1 - arch/arm64/boot/dts/ti/k3-am62.dtsi | 3 ++- arch/arm64/boot/dts/ti/k3-am62a.dtsi | 3 ++- arch/arm64/boot/dts/ti/k3-am64.dtsi | 3 ++- arch/arm64/boot/dts/ti/k3-am65.dtsi | 3 ++- arch/arm64/boot/dts/ti/k3-j7200.dtsi | 3 ++- arch/arm64/boot/dts/ti/k3-j721e.dtsi | 3 ++- arch/arm64/boot/dts/ti/k3-j721s2.dtsi | 3 ++- arch/arm64/boot/dts/ti/k3-j784s4.dtsi | 3 ++- .../pinctrl/k3.h => arch/arm64/boot/dts/ti/k3-pinctrl.h | 6 +++---
Bindings are separate from other changes (also DTS). Split the patches.
(...)
arch/arm64/boot/dts/ti/k3-pinctrl.h
Quoted 10 lines
/ {
arch/arm64/boot/dts/ti/k3-j784s4.dtsi +0
-0model = "Texas Instruments K3 J784S4 SoC"; compatible = "ti,j784s4";arch/arm64/boot/dts/ti/k3-pinctrl.h renamed from include/dt-bindings/pinctrl/k3.h +0
-0
Dropping this file is going to break existing code and I would say is also a break of the ABI. You need to keep the header for at least one cycle, you can add there a warning for coming deprecation.
See for example:
https://lore.kernel.org/all/[email protected]/
Best regards,
Krzysztof
Nishanth Menon
maintainerRe: [PATCH 2/2] dt-bindings: pinctrl: Move k3.h to arch
Quoted 47 lines · Krzysztof Kozlowski
Quoted 16 lines · Nishanth Menon
Move the k3 pinctrl definition to arch dts folder.
While at this, fixup
MAINTAINERSand header guard macro to better reflect the changes.Suggested-by Krzysztof Kozlowski <[email protected]>Suggested-by Linus Walleij <[email protected]>Signed-off-by Nishanth Menon <[email protected]>---
There is no specific case I can think of at the moment to create a
pinctrl.dtsifor the SoCs.. So, unlike other SoCs, I had not done that in the series, if folks have a better opinion about this, please let us discuss.Quoted 10 lines
MAINTAINERS | 1 - arch/arm64/boot/dts/ti/k3-am62.dtsi | 3 ++- arch/arm64/boot/dts/ti/k3-am62a.dtsi | 3 ++- arch/arm64/boot/dts/ti/k3-am64.dtsi | 3 ++- arch/arm64/boot/dts/ti/k3-am65.dtsi | 3 ++- arch/arm64/boot/dts/ti/k3-j7200.dtsi | 3 ++- arch/arm64/boot/dts/ti/k3-j721e.dtsi | 3 ++- arch/arm64/boot/dts/ti/k3-j721s2.dtsi | 3 ++- arch/arm64/boot/dts/ti/k3-j784s4.dtsi | 3 ++- .../pinctrl/k3.h => arch/arm64/boot/dts/ti/k3-pinctrl.h | 6 +++---Bindings are separate from other changes (also DTS). Split the patches.
(...)
arch/arm64/boot/dts/ti/k3-pinctrl.h
Quoted 10 lines
/ {
arch/arm64/boot/dts/ti/k3-j784s4.dtsi +0
-0model = "Texas Instruments K3 J784S4 SoC"; compatible = "ti,j784s4";arch/arm64/boot/dts/ti/k3-pinctrl.h renamed from include/dt-bindings/pinctrl/k3.h +0
-0Dropping this file is going to break existing code and I would say is also a break of the ABI. You need to keep the header for at least one cycle, you can add there a warning for coming deprecation.
Quoted 2 lines
See for example:
https://lore.kernel.org/all/[email protected]/
Makes complete sense. Thanks. will follow the lead and redo the series.
Signature · 3 lines
Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D