* Re: [PATCH 2/2] arm: dts: sun8i: reuse the uart1 node of iNet D978 rev2 board
@ 2016-12-05 9:03 Icenowy Zheng
[not found] ` <20161205184745.lfW8ji5w-3YhIAYTWRJA0PDqKvflMoHmW9unr2Ajn@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Icenowy Zheng @ 2016-12-05 9:03 UTC (permalink / raw)
To: Maxime Ripard
Cc: Hans de Goede, linux-kernel,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-sunxi-/JYPxA39Uh5TLH3MbocFFw,
devicetree-u79uwXL29TY76Z2rM5mHXA, Chen-Yu Tsai
2016年12月5日 16:50于 Maxime Ripard <maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>写道:
>
> On Fri, Dec 02, 2016 at 11:19:13PM +0800, Icenowy Zheng wrote:
> > As a uart1 node is added into sun8i-reference-design-tablet.dtsi, simply
> > use it in iNet D978 rev2 device tree.
> >
> > Signed-off-by: Icenowy Zheng <icenowy-ymACFijhrKM@public.gmane.org>
>
> I'd like to see more consolidation before that change is needed. If we
> find more boards using that, it will make sense, but for a single
> board it's not worth it.
At least 2~3 Q8 A33 tablets in #linux-sunxi are found to have rtl8703as, which contains UART bluetooth. (including mine)
In fact, what I want to do is to get the node ready-to-be-okay in Q8 dts, so it can be enabled by either u-boot command or (theortically) Hans de Goede's q8-hardwaremgr, just like what is done at touchscreen node.
>
> Maxime
>
> --
> Maxime Ripard, Free Electrons
> Embedded Linux and Kernel engineering
> http://free-electrons.com
--
You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
^ permalink raw reply [flat|nested] 4+ messages in thread[parent not found: <20161205184745.lfW8ji5w-3YhIAYTWRJA0PDqKvflMoHmW9unr2Ajn@public.gmane.org>]
* Re: [PATCH 2/2] arm: dts: sun8i: reuse the uart1 node of iNet D978 rev2 board [not found] ` <20161205184745.lfW8ji5w-3YhIAYTWRJA0PDqKvflMoHmW9unr2Ajn@public.gmane.org> @ 2016-12-09 8:11 ` Maxime Ripard 0 siblings, 0 replies; 4+ messages in thread From: Maxime Ripard @ 2016-12-09 8:11 UTC (permalink / raw) To: Icenowy Zheng Cc: Hans de Goede, linux-kernel, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw, devicetree-u79uwXL29TY76Z2rM5mHXA, Chen-Yu Tsai [-- Attachment #1: Type: text/plain, Size: 1787 bytes --] On Mon, Dec 05, 2016 at 05:03:35PM +0800, Icenowy Zheng wrote: > > 2016年12月5日 16:50于 Maxime Ripard <maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>写道: > > > > On Fri, Dec 02, 2016 at 11:19:13PM +0800, Icenowy Zheng wrote: > > > As a uart1 node is added into sun8i-reference-design-tablet.dtsi, simply > > > use it in iNet D978 rev2 device tree. > > > > > > Signed-off-by: Icenowy Zheng <icenowy-ymACFijhrKM@public.gmane.org> > > > > I'd like to see more consolidation before that change is needed. If we > > find more boards using that, it will make sense, but for a single > > board it's not worth it. > > At least 2~3 Q8 A33 tablets in #linux-sunxi are found to have > rtl8703as, which contains UART bluetooth. (including mine) Still, I'm not fond of creating a default on such a low count sample of (out-of-tree) DTs. Support and enable the bluetooth on more boards, and then consolidate. > In fact, what I want to do is to get the node ready-to-be-okay in Q8 > dts, so it can be enabled by either u-boot command or (theortically) > Hans de Goede's q8-hardwaremgr, just like what is done at > touchscreen node. If your plan is to enable all the combinations possible accross the Q8 tablets and let the bootloader/user figure it all out, then it's not going to happen, sorry. Maxime -- Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/d/optout. [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 801 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] arm: dts: sun8i: add uart1 node to reference design tablet
@ 2016-12-02 15:19 Icenowy Zheng
[not found] ` <20161202151913.38892-1-icenowy-ymACFijhrKM@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Icenowy Zheng @ 2016-12-02 15:19 UTC (permalink / raw)
To: Maxime Ripard, Chen-Yu Tsai, Hans de Goede
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
linux-sunxi-/JYPxA39Uh5TLH3MbocFFw, Icenowy Zheng
In the A23/A33 tablet reference design, the UART1 at PG is used to
connect to the UART-connected bluetooth.
Add a disabled uart1 node for it in the reference design tablet dtsi,
contains the pinctrl info.
If a tablet uses the UART bluetooth, simply set the status of this node
to "okay".
Signed-off-by: Icenowy Zheng <icenowy-ymACFijhrKM@public.gmane.org>
---
arch/arm/boot/dts/sun8i-reference-design-tablet.dtsi | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm/boot/dts/sun8i-reference-design-tablet.dtsi b/arch/arm/boot/dts/sun8i-reference-design-tablet.dtsi
index 08cd001..2d9cf0d 100644
--- a/arch/arm/boot/dts/sun8i-reference-design-tablet.dtsi
+++ b/arch/arm/boot/dts/sun8i-reference-design-tablet.dtsi
@@ -46,6 +46,7 @@
/ {
aliases {
serial0 = &r_uart;
+ serial1 = &uart1;
};
backlight: backlight {
@@ -223,6 +224,13 @@
vcc-lcd-supply = <®_dc1sw>;
};
+&uart1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&uart1_pins_a>,
+ <&uart1_pins_cts_rts_a>;
+ status = "disabled";
+};
+
&usb_otg {
dr_mode = "otg";
status = "okay";
--
2.10.2
^ permalink raw reply related [flat|nested] 4+ messages in thread[parent not found: <20161202151913.38892-1-icenowy-ymACFijhrKM@public.gmane.org>]
* [PATCH 2/2] arm: dts: sun8i: reuse the uart1 node of iNet D978 rev2 board [not found] ` <20161202151913.38892-1-icenowy-ymACFijhrKM@public.gmane.org> @ 2016-12-02 15:19 ` Icenowy Zheng [not found] ` <20161202151913.38892-2-icenowy-ymACFijhrKM@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Icenowy Zheng @ 2016-12-02 15:19 UTC (permalink / raw) To: Maxime Ripard, Chen-Yu Tsai, Hans de Goede Cc: devicetree-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw, Icenowy Zheng As a uart1 node is added into sun8i-reference-design-tablet.dtsi, simply use it in iNet D978 rev2 device tree. Signed-off-by: Icenowy Zheng <icenowy-ymACFijhrKM@public.gmane.org> --- arch/arm/boot/dts/sun8i-a33-inet-d978-rev2.dts | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/arch/arm/boot/dts/sun8i-a33-inet-d978-rev2.dts b/arch/arm/boot/dts/sun8i-a33-inet-d978-rev2.dts index fb46655..7335461 100644 --- a/arch/arm/boot/dts/sun8i-a33-inet-d978-rev2.dts +++ b/arch/arm/boot/dts/sun8i-a33-inet-d978-rev2.dts @@ -49,15 +49,6 @@ model = "INet-D978 Rev 02"; compatible = "primux,inet-d978-rev2", "allwinner,sun8i-a33"; - aliases { - serial0 = &uart1; - }; - - chosen { - /* Delete debug UART as serial0 is the UART for bluetooth */ - /delete-property/stdout-path; - }; - leds { compatible = "gpio-leds"; pinctrl-names = "default"; @@ -96,13 +87,6 @@ }; }; -&r_uart { - status = "disabled"; -}; - &uart1 { - pinctrl-names = "default"; - pinctrl-0 = <&uart1_pins_a>, - <&uart1_pins_cts_rts_a>; status = "okay"; }; -- 2.10.2 ^ permalink raw reply related [flat|nested] 4+ messages in thread
[parent not found: <20161202151913.38892-2-icenowy-ymACFijhrKM@public.gmane.org>]
* Re: [PATCH 2/2] arm: dts: sun8i: reuse the uart1 node of iNet D978 rev2 board [not found] ` <20161202151913.38892-2-icenowy-ymACFijhrKM@public.gmane.org> @ 2016-12-05 8:50 ` Maxime Ripard 0 siblings, 0 replies; 4+ messages in thread From: Maxime Ripard @ 2016-12-05 8:50 UTC (permalink / raw) To: Icenowy Zheng Cc: Chen-Yu Tsai, Hans de Goede, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1: Type: text/plain, Size: 520 bytes --] On Fri, Dec 02, 2016 at 11:19:13PM +0800, Icenowy Zheng wrote: > As a uart1 node is added into sun8i-reference-design-tablet.dtsi, simply > use it in iNet D978 rev2 device tree. > > Signed-off-by: Icenowy Zheng <icenowy-ymACFijhrKM@public.gmane.org> I'd like to see more consolidation before that change is needed. If we find more boards using that, it will make sense, but for a single board it's not worth it. Maxime -- Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-12-09 8:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-05 9:03 [PATCH 2/2] arm: dts: sun8i: reuse the uart1 node of iNet D978 rev2 board Icenowy Zheng
[not found] ` <20161205184745.lfW8ji5w-3YhIAYTWRJA0PDqKvflMoHmW9unr2Ajn@public.gmane.org>
2016-12-09 8:11 ` Maxime Ripard
-- strict thread matches above, loose matches on Subject: below --
2016-12-02 15:19 [PATCH 1/2] arm: dts: sun8i: add uart1 node to reference design tablet Icenowy Zheng
[not found] ` <20161202151913.38892-1-icenowy-ymACFijhrKM@public.gmane.org>
2016-12-02 15:19 ` [PATCH 2/2] arm: dts: sun8i: reuse the uart1 node of iNet D978 rev2 board Icenowy Zheng
[not found] ` <20161202151913.38892-2-icenowy-ymACFijhrKM@public.gmane.org>
2016-12-05 8:50 ` Maxime Ripard
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox