* [PATCH] ARM: BCM5301X: Enable UART0 for SmartRG SR-400AC
@ 2015-06-23 23:51 Florian Fainelli
[not found] ` <1435103504-28592-1-git-send-email-f.fainelli-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
0 siblings, 1 reply; 7+ messages in thread
From: Florian Fainelli @ 2015-06-23 23:51 UTC (permalink / raw)
To: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
Cc: hauke-5/S+JYg5SzeELgA04lAiVw, zajec5-Re5JQEeQqe8AvxtiuMwx3w,
bcm-kernel-feedback-list-dY08KVG/lbpWk0Htik3J/w,
devicetree-u79uwXL29TY76Z2rM5mHXA, Florian Fainelli
Enable the use of UART0 by overriding its default status property.
Signed-off-by: Florian Fainelli <f.fainelli-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts b/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts
index d6a033b97c70..64a5e8ab65e0 100644
--- a/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts
+++ b/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts
@@ -118,3 +118,7 @@
};
};
};
+
+&uart0 {
+ status = "okay";
+};
--
2.1.0
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 7+ messages in thread[parent not found: <1435103504-28592-1-git-send-email-f.fainelli-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: [PATCH] ARM: BCM5301X: Enable UART0 for SmartRG SR-400AC [not found] ` <1435103504-28592-1-git-send-email-f.fainelli-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2015-06-24 21:48 ` Tyler Baker 2015-06-24 21:56 ` Rafał Miłecki 2015-06-27 22:08 ` Rafał Miłecki 2 siblings, 0 replies; 7+ messages in thread From: Tyler Baker @ 2015-06-24 21:48 UTC (permalink / raw) To: Florian Fainelli Cc: linux-arm-kernel, hauke-5/S+JYg5SzeELgA04lAiVw, zajec5-Re5JQEeQqe8AvxtiuMwx3w, bcm-kernel-feedback-list-dY08KVG/lbpWk0Htik3J/w, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On 23 June 2015 at 16:51, Florian Fainelli <f.fainelli-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > Enable the use of UART0 by overriding its default status property. > > Signed-off-by: Florian Fainelli <f.fainelli-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Thanks Florian! I've tested this patch atop next-20150624 on the smartrg-sr400ac, and confirmed UART0 is working properly. Tested-by: Tyler Baker <tyler.baker-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> Cheers, Tyler -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] ARM: BCM5301X: Enable UART0 for SmartRG SR-400AC [not found] ` <1435103504-28592-1-git-send-email-f.fainelli-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2015-06-24 21:48 ` Tyler Baker @ 2015-06-24 21:56 ` Rafał Miłecki 2015-06-27 22:08 ` Rafał Miłecki 2 siblings, 0 replies; 7+ messages in thread From: Rafał Miłecki @ 2015-06-24 21:56 UTC (permalink / raw) To: Florian Fainelli Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, Hauke Mehrtens, bcm-kernel-feedback-list, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On 24 June 2015 at 01:51, Florian Fainelli <f.fainelli-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > Enable the use of UART0 by overriding its default status property. Give me 2-3 days to look at this, please. -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] ARM: BCM5301X: Enable UART0 for SmartRG SR-400AC [not found] ` <1435103504-28592-1-git-send-email-f.fainelli-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2015-06-24 21:48 ` Tyler Baker 2015-06-24 21:56 ` Rafał Miłecki @ 2015-06-27 22:08 ` Rafał Miłecki [not found] ` <CACna6rzJE8Gzrwvj+nCw=qCRho=6nZ+k1h_tFQLhNZvf5zWTDg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2 siblings, 1 reply; 7+ messages in thread From: Rafał Miłecki @ 2015-06-27 22:08 UTC (permalink / raw) To: Florian Fainelli Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, Hauke Mehrtens, bcm-kernel-feedback-list, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On 24 June 2015 at 01:51, Florian Fainelli <f.fainelli-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > Enable the use of UART0 by overriding its default status property. > > Signed-off-by: Florian Fainelli <f.fainelli-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > --- > arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts b/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts > index d6a033b97c70..64a5e8ab65e0 100644 > --- a/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts > +++ b/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts > @@ -118,3 +118,7 @@ > }; > }; > }; > + > +&uart0 { > + status = "okay"; > +}; We have many more changes like this in OpenWrt, I just didn't upstream them because of current chipcommonA state. It was added before we got "brcm,bus-axi" and I believe Hauke wanted move it to the "correct" place at some point. Since UART is part of ChipCommon device and ChipCommon is part of "brcm,bus-axi",.I guess we should add UARTs as a ChipCommon device subnodes. We already have chipcommon: chipcommon@0 { reg = <0x00000000 0x1000>; gpio-controller; #gpio-cells = <2>; }; , is it possible to move UARTs there? I'm not sure if this UART cleanup should block your change. I guess it depends on the way it'll finally look like. I'm also wondering: is there any preference between overwriting status with something like &uart0 { }; and chipcommonA { uart0: serial@0300 { }; }; ? I don't know DT that well, just asking. -- Rafał -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <CACna6rzJE8Gzrwvj+nCw=qCRho=6nZ+k1h_tFQLhNZvf5zWTDg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH] ARM: BCM5301X: Enable UART0 for SmartRG SR-400AC [not found] ` <CACna6rzJE8Gzrwvj+nCw=qCRho=6nZ+k1h_tFQLhNZvf5zWTDg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2015-06-28 1:38 ` Florian Fainelli [not found] ` <558F500C.6040004-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 0 siblings, 1 reply; 7+ messages in thread From: Florian Fainelli @ 2015-06-28 1:38 UTC (permalink / raw) To: Rafał Miłecki Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, Hauke Mehrtens, bcm-kernel-feedback-list, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Le 06/27/15 15:08, Rafał Miłecki a écrit : > On 24 June 2015 at 01:51, Florian Fainelli <f.fainelli-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> Enable the use of UART0 by overriding its default status property. >> >> Signed-off-by: Florian Fainelli <f.fainelli-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >> --- >> arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts | 4 ++++ >> 1 file changed, 4 insertions(+) >> >> diff --git a/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts b/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts >> index d6a033b97c70..64a5e8ab65e0 100644 >> --- a/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts >> +++ b/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts >> @@ -118,3 +118,7 @@ >> }; >> }; >> }; >> + >> +&uart0 { >> + status = "okay"; >> +}; > > We have many more changes like this in OpenWrt, I just didn't upstream > them because of current chipcommonA state. > > It was added before we got "brcm,bus-axi" and I believe Hauke wanted > move it to the "correct" place at some point. Since UART is part of > ChipCommon device and ChipCommon is part of "brcm,bus-axi",.I guess we > should add UARTs as a ChipCommon device subnodes. We already have > chipcommon: chipcommon@0 { > reg = <0x00000000 0x1000>; > > gpio-controller; > #gpio-cells = <2>; > }; > , is it possible to move UARTs there? > > I'm not sure if this UART cleanup should block your change. I guess it > depends on the way it'll finally look like. I do not think it will, see below: > > I'm also wondering: is there any preference between overwriting status > with something like > &uart0 { }; > and > chipcommonA { > uart0: serial@0300 { }; > }; > ? I don't know DT that well, just asking. An alias can be located pretty much anywhere in the DTS as long as the name is unique, which is why I took this approach, because I do not have to do something like this and need to know the full depth of the tree: foo0 { bar0 { baz0 { status = "okay"; }; }; }; This is both more compact, and more robust to re-parenting the UART0 node in case you ever wanted to do it in the future. I will happily fix the other DTSes to use that convention if we agree this is the route to take. Thanks! -- Florian -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <558F500C.6040004-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: [PATCH] ARM: BCM5301X: Enable UART0 for SmartRG SR-400AC [not found] ` <558F500C.6040004-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2015-06-28 7:17 ` Rafał Miłecki 2015-06-30 22:04 ` Hauke Mehrtens 1 sibling, 0 replies; 7+ messages in thread From: Rafał Miłecki @ 2015-06-28 7:17 UTC (permalink / raw) To: Florian Fainelli Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, Hauke Mehrtens, bcm-kernel-feedback-list, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On 28 June 2015 at 03:38, Florian Fainelli <f.fainelli-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > Le 06/27/15 15:08, Rafał Miłecki a écrit : >> On 24 June 2015 at 01:51, Florian Fainelli <f.fainelli-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >>> Enable the use of UART0 by overriding its default status property. >>> >>> Signed-off-by: Florian Fainelli <f.fainelli-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >>> --- >>> arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts | 4 ++++ >>> 1 file changed, 4 insertions(+) >>> >>> diff --git a/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts b/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts >>> index d6a033b97c70..64a5e8ab65e0 100644 >>> --- a/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts >>> +++ b/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts >>> @@ -118,3 +118,7 @@ >>> }; >>> }; >>> }; >>> + >>> +&uart0 { >>> + status = "okay"; >>> +}; >> >> We have many more changes like this in OpenWrt, I just didn't upstream >> them because of current chipcommonA state. >> >> It was added before we got "brcm,bus-axi" and I believe Hauke wanted >> move it to the "correct" place at some point. Since UART is part of >> ChipCommon device and ChipCommon is part of "brcm,bus-axi",.I guess we >> should add UARTs as a ChipCommon device subnodes. We already have >> chipcommon: chipcommon@0 { >> reg = <0x00000000 0x1000>; >> >> gpio-controller; >> #gpio-cells = <2>; >> }; >> , is it possible to move UARTs there? >> >> I'm not sure if this UART cleanup should block your change. I guess it >> depends on the way it'll finally look like. > > I do not think it will, see below: You answered about using &uart0 instead a whole path and it sounds OK. What about moving this whole chipcommonA node into "chipcommon: chipcommon@0"? Hauke did you try that? -- Rafał -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] ARM: BCM5301X: Enable UART0 for SmartRG SR-400AC [not found] ` <558F500C.6040004-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2015-06-28 7:17 ` Rafał Miłecki @ 2015-06-30 22:04 ` Hauke Mehrtens 1 sibling, 0 replies; 7+ messages in thread From: Hauke Mehrtens @ 2015-06-30 22:04 UTC (permalink / raw) To: Florian Fainelli, Rafał Miłecki Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, bcm-kernel-feedback-list, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On 06/28/2015 03:38 AM, Florian Fainelli wrote: > Le 06/27/15 15:08, Rafał Miłecki a écrit : >> On 24 June 2015 at 01:51, Florian Fainelli <f.fainelli-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >>> Enable the use of UART0 by overriding its default status property. >>> >>> Signed-off-by: Florian Fainelli <f.fainelli-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >>> --- >>> arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts | 4 ++++ >>> 1 file changed, 4 insertions(+) >>> >>> diff --git a/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts b/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts >>> index d6a033b97c70..64a5e8ab65e0 100644 >>> --- a/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts >>> +++ b/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts >>> @@ -118,3 +118,7 @@ >>> }; >>> }; >>> }; >>> + >>> +&uart0 { >>> + status = "okay"; >>> +}; >> >> We have many more changes like this in OpenWrt, I just didn't upstream >> them because of current chipcommonA state. >> >> It was added before we got "brcm,bus-axi" and I believe Hauke wanted >> move it to the "correct" place at some point. Since UART is part of >> ChipCommon device and ChipCommon is part of "brcm,bus-axi",.I guess we >> should add UARTs as a ChipCommon device subnodes. We already have >> chipcommon: chipcommon@0 { >> reg = <0x00000000 0x1000>; >> >> gpio-controller; >> #gpio-cells = <2>; >> }; >> , is it possible to move UARTs there? I added it at the beginning of the port so I have serial, even without adding support for bcma. I haven't look at that part later, but it should go into the chipcommon part. Thats for the patches. >> >> I'm not sure if this UART cleanup should block your change. I guess it >> depends on the way it'll finally look like. > > I do not think it will, see below: > >> >> I'm also wondering: is there any preference between overwriting status >> with something like >> &uart0 { }; >> and >> chipcommonA { >> uart0: serial@0300 { }; >> }; >> ? I don't know DT that well, just asking. > > An alias can be located pretty much anywhere in the DTS as long as the > name is unique, which is why I took this approach, because I do not have > to do something like this and need to know the full depth of the tree: > > foo0 { > bar0 { > baz0 { > status = "okay"; > }; > }; > }; > > This is both more compact, and more robust to re-parenting the UART0 > node in case you ever wanted to do it in the future. > > I will happily fix the other DTSes to use that convention if we agree > this is the route to take. I haven't used that earlier because I did not know of this feature. I think Rafał already did or is currently doing this steps. Hauke -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2015-06-30 22:04 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-23 23:51 [PATCH] ARM: BCM5301X: Enable UART0 for SmartRG SR-400AC Florian Fainelli
[not found] ` <1435103504-28592-1-git-send-email-f.fainelli-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-06-24 21:48 ` Tyler Baker
2015-06-24 21:56 ` Rafał Miłecki
2015-06-27 22:08 ` Rafał Miłecki
[not found] ` <CACna6rzJE8Gzrwvj+nCw=qCRho=6nZ+k1h_tFQLhNZvf5zWTDg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-06-28 1:38 ` Florian Fainelli
[not found] ` <558F500C.6040004-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-06-28 7:17 ` Rafał Miłecki
2015-06-30 22:04 ` Hauke Mehrtens
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox