linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] ARM: sun8i: a83t: device tree cleanup
@ 2017-05-01  3:14 Chen-Yu Tsai
  2017-05-01  3:14 ` [PATCH v2 1/2] ARM: sun8i: a83t: Drop leading zeroes from device node addresses Chen-Yu Tsai
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Chen-Yu Tsai @ 2017-05-01  3:14 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Maxime,

Here's v2 of the A83T device tree cleanup patches. I dropped the change
to the uart device node name for now.

Also added a second patch changing the underscores in device node names
I just added to hyphens. AFAIK that is the preferred naming scheme.
Please squash it into "ARM: sun8i: a83t: Rename pinmux setting names".


Regards
ChenYu

Chen-Yu Tsai (2):
  ARM: sun8i: a83t: Drop leading zeroes from device node addresses
  ARM: sun8i: a83t: Replace underscores with hyphens in pinmux node
    names

 arch/arm/boot/dts/sun8i-a83t.dtsi | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

-- 
2.11.0

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH v2 1/2] ARM: sun8i: a83t: Drop leading zeroes from device node addresses
  2017-05-01  3:14 [PATCH v2 0/2] ARM: sun8i: a83t: device tree cleanup Chen-Yu Tsai
@ 2017-05-01  3:14 ` Chen-Yu Tsai
  2017-05-01  3:14 ` [PATCH v2 2/2] ARM: sun8i: a83t: Replace underscores with hyphens in pinmux node names Chen-Yu Tsai
  2017-05-01 17:31 ` [PATCH v2 0/2] ARM: sun8i: a83t: device tree cleanup Maxime Ripard
  2 siblings, 0 replies; 4+ messages in thread
From: Chen-Yu Tsai @ 2017-05-01  3:14 UTC (permalink / raw)
  To: linux-arm-kernel

Kbuild now complains about leading zeroes in the address portion of
device node names.

Get rid of them all, except for the uart device node. U-boot currently
hard codes the device node path. We can remove the leading zero for
the uart once we teach U-boot to use the aliases or stdout-path
property.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
---
 arch/arm/boot/dts/sun8i-a83t.dtsi | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi
index 5f5c10c04dd3..aecde8be53bc 100644
--- a/arch/arm/boot/dts/sun8i-a83t.dtsi
+++ b/arch/arm/boot/dts/sun8i-a83t.dtsi
@@ -162,7 +162,7 @@
 		#size-cells = <1>;
 		ranges;
 
-		pio: pinctrl at 01c20800 {
+		pio: pinctrl at 1c20800 {
 			compatible = "allwinner,sun8i-a83t-pinctrl";
 			interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,
 				     <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>,
@@ -193,7 +193,7 @@
 			};
 		};
 
-		timer at 01c20c00 {
+		timer at 1c20c00 {
 			compatible = "allwinner,sun4i-a10-timer";
 			reg = <0x01c20c00 0xa0>;
 			interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>,
@@ -201,7 +201,7 @@
 			clocks = <&osc24M>;
 		};
 
-		watchdog at 01c20ca0 {
+		watchdog at 1c20ca0 {
 			compatible = "allwinner,sun6i-a31-wdt";
 			reg = <0x01c20ca0 0x20>;
 			interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
@@ -218,7 +218,7 @@
 			status = "disabled";
 		};
 
-		gic: interrupt-controller at 01c81000 {
+		gic: interrupt-controller at 1c81000 {
 			compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
 			reg = <0x01c81000 0x1000>,
 			      <0x01c82000 0x2000>,
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH v2 2/2] ARM: sun8i: a83t: Replace underscores with hyphens in pinmux node names
  2017-05-01  3:14 [PATCH v2 0/2] ARM: sun8i: a83t: device tree cleanup Chen-Yu Tsai
  2017-05-01  3:14 ` [PATCH v2 1/2] ARM: sun8i: a83t: Drop leading zeroes from device node addresses Chen-Yu Tsai
@ 2017-05-01  3:14 ` Chen-Yu Tsai
  2017-05-01 17:31 ` [PATCH v2 0/2] ARM: sun8i: a83t: device tree cleanup Maxime Ripard
  2 siblings, 0 replies; 4+ messages in thread
From: Chen-Yu Tsai @ 2017-05-01  3:14 UTC (permalink / raw)
  To: linux-arm-kernel

We should use hyphens and not underscores in device node names.

Replace the ones that were just added.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
---
 arch/arm/boot/dts/sun8i-a83t.dtsi | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi
index aecde8be53bc..c0a1e4f74b89 100644
--- a/arch/arm/boot/dts/sun8i-a83t.dtsi
+++ b/arch/arm/boot/dts/sun8i-a83t.dtsi
@@ -174,7 +174,7 @@
 			#interrupt-cells = <3>;
 			#gpio-cells = <3>;
 
-			mmc0_pins: mmc0_pins {
+			mmc0_pins: mmc0-pins {
 				pins = "PF0", "PF1", "PF2",
 				       "PF3", "PF4", "PF5";
 				function = "mmc0";
@@ -182,12 +182,12 @@
 				bias-pull-up;
 			};
 
-			uart0_pb_pins: uart0_pb_pins {
+			uart0_pb_pins: uart0-pb-pins {
 				pins = "PB9", "PB10";
 				function = "uart0";
 			};
 
-			uart0_pf_pins: uart0_pf_pins {
+			uart0_pf_pins: uart0-pf-pins {
 				pins = "PF2", "PF4";
 				function = "uart0";
 			};
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH v2 0/2] ARM: sun8i: a83t: device tree cleanup
  2017-05-01  3:14 [PATCH v2 0/2] ARM: sun8i: a83t: device tree cleanup Chen-Yu Tsai
  2017-05-01  3:14 ` [PATCH v2 1/2] ARM: sun8i: a83t: Drop leading zeroes from device node addresses Chen-Yu Tsai
  2017-05-01  3:14 ` [PATCH v2 2/2] ARM: sun8i: a83t: Replace underscores with hyphens in pinmux node names Chen-Yu Tsai
@ 2017-05-01 17:31 ` Maxime Ripard
  2 siblings, 0 replies; 4+ messages in thread
From: Maxime Ripard @ 2017-05-01 17:31 UTC (permalink / raw)
  To: linux-arm-kernel

On Mon, May 01, 2017 at 11:14:06AM +0800, Chen-Yu Tsai wrote:
> Hi Maxime,
> 
> Here's v2 of the A83T device tree cleanup patches. I dropped the change
> to the uart device node name for now.
> 
> Also added a second patch changing the underscores in device node names
> I just added to hyphens. AFAIK that is the preferred naming scheme.
> Please squash it into "ARM: sun8i: a83t: Rename pinmux setting names".

Applied both, thanks!
Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170501/c9f9feaa/attachment.sig>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-05-01 17:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-01  3:14 [PATCH v2 0/2] ARM: sun8i: a83t: device tree cleanup Chen-Yu Tsai
2017-05-01  3:14 ` [PATCH v2 1/2] ARM: sun8i: a83t: Drop leading zeroes from device node addresses Chen-Yu Tsai
2017-05-01  3:14 ` [PATCH v2 2/2] ARM: sun8i: a83t: Replace underscores with hyphens in pinmux node names Chen-Yu Tsai
2017-05-01 17:31 ` [PATCH v2 0/2] ARM: sun8i: a83t: device tree cleanup 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).