Skip to contentSkip to conversation

arm64: dts: ti: k3-am642-evm-nand: Rename pinctrl node and gpio-hog names

PATCH Superseded Nishanth Menon 2 participants 2 messages Aug 30, 2024

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Nishanth Menon

author maintainer
#0 lore raw

PATCH 1/1 arm64: dts: ti: k3-am642-evm-nand: Rename pinctrl node and gpio-hog names

Rename the pin mux and gpio-hog node names to match up with binding
rules. This fixes dtbs_check warnings:
'gpmc0-pins-default' does not match any of the regexes: '-pins(-[0-9]+)?$|-pin$', 'pinctrl-[0-9]+' 'gpio0-36' does not match '^(hog-[0-9]+|.+-hog(-[0-9]+)?)$'

---
Cc: Roger Quadros <[email protected]>

This is a trivial fix, so applying Fixes seemed over-board.

 arch/arm64/boot/dts/ti/k3-am642-evm-nand.dtso | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/ti/k3-am642-evm-nand.dtso +2 -2
index f08c0e272b53..f91589818e32 100644
@@ -12,7 +12,7 @@
 #include "k3-pinctrl.h"
 
 &main_pmx0 {
-	gpmc0_pins_default: gpmc0-pins-default {
+	gpmc0_pins_default: gpmc0-default-pins {
 		bootph-all;
 		pinctrl-single,pins = <
 			AM64X_IOPAD(0x0094, PIN_INPUT, 7) /* (T19) GPMC0_BE1n.GPIO0_36 */
@@ -50,7 +50,7 @@ AM64X_IOPAD(0x00a4, PIN_OUTPUT, 0) /* (N17) GPMC0_DIR */
 };
 
 &main_gpio0 {
-	gpio0-36 {
+	gpmc0-hog {
 		bootph-all;
 		gpio-hog;
 		gpios = <36 0>;

base-commit: d2bafcf224f3911b183113b2fcb536c9e90684a3
prerequisite-patch-id: a9c45d98345ca492c945cd5050191ad605de242b

Signature · 1 line
2.46.0
Reviewed-by on v1 1/1
#1 lore raw

Hi,

Quoted 19 lines · Nishanth Menon

Rename the pin mux and gpio-hog node names to match up with binding
rules. This fixes dtbs_check warnings:
'gpmc0-pins-default' does not match any of the regexes: '-pins(-[0-9]+)?$|-pin$', 'pinctrl-[0-9]+' 'gpio0-36' does not match '^(hog-[0-9]+|.+-hog(-[0-9]+)?)$'

---
Cc: Roger Quadros <[email protected]>

This is a trivial fix, so applying Fixes seemed over-board.

 arch/arm64/boot/dts/ti/k3-am642-evm-nand.dtso | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/ti/k3-am642-evm-nand.dtso +0 -0
index f08c0e272b53..f91589818e32 100644

arch/arm64/boot/dts/ti/k3-am642-evm-nand.dtso line 15

Quoted 5 lines
arch/arm64/boot/dts/ti/k3-am642-evm-nand.dtso +1 -1
@@ -12,7 +12,7 @@
 #include "k3-pinctrl.h"
 
 &main_pmx0 {
-	gpmc0_pins_default: gpmc0-pins-default {
+	gpmc0_pins_default: gpmc0-default-pins {

I mean, if you are anyway renaming,
s/gpmc0_pins_default/gpmc0_default_pins

arch/arm64/boot/dts/ti/k3-am642-evm-nand.dtso AM64X_IOPAD(0x00a4, PIN_OUTPUT, 0) /* (N17) GPMC0_DIR */ · line 56

Quoted 12 lines
arch/arm64/boot/dts/ti/k3-am642-evm-nand.dtso +1 -1
 		bootph-all;
 		pinctrl-single,pins = <
 			AM64X_IOPAD(0x0094, PIN_INPUT, 7) /* (T19) GPMC0_BE1n.GPIO0_36 */
@@ -50,7 +50,7 @@ AM64X_IOPAD(0x00a4, PIN_OUTPUT, 0) /* (N17) GPMC0_DIR */
 };
 
 &main_gpio0 {
-	gpio0-36 {
+	gpmc0-hog {
 		bootph-all;
 		gpio-hog;
 		gpios = <36 0>;

With the change,

Signature · 3 lines
Best regards,
Dhruva Gole
Texas Instruments Incorporated