ARM: dts: sun8i: enable UART1 for iNet D978 Rev2 board
Subsystems (2)
PATCH 1/1 ARM: dts: sun8i: enable UART1 for iNet D978 Rev2 board
UART1 is connected to the bluetooth part of RTL8723BS WiFi/BT combo card on iNet D978 Rev2 board.
Enable the UART1 to make it possible to use the modified hciattach by Realtek to drive the BT part of RTL8723BS.
On the board no r_uart pins are found now (the onboard RX/TX pins are wired to PF2/PF4, which is muxed with mmc0), so also disabled it.
--- arch/arm/boot/dts/sun8i-a23-a33.dtsi | 14 ++++++++++++++ arch/arm/boot/dts/sun8i-a33-inet-d978-rev2.dts | 20 ++++++++++++++++++++ 2 files changed, 34 insertions(+)
arch/arm/boot/dts/sun8i-a23-a33.dtsi +14 -0
@@ -361,6 +361,20 @@ allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; }; + uart1_pins_a: uart1 at 0 { + allwinner,pins = "PG6", "PG7"; + allwinner,function = "uart1"; + allwinner,drive = <SUN4I_PINCTRL_10_MA>; + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; + }; + + uart1_pins_cts_rts_a: uart1-cts-rts at 0 { + allwinner,pins = "PG8", "PG9"; + allwinner,function = "uart1"; + allwinner,drive = <SUN4I_PINCTRL_10_MA>; + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; + }; + mmc0_pins_a: mmc0 at 0 { allwinner,pins = "PF0", "PF1", "PF2", "PF3", "PF4", "PF5";
arch/arm/boot/dts/sun8i-a33-inet-d978-rev2.dts +20 -0
@@ -49,6 +49,15 @@ 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";
@@ -86,3 +95,14 @@ allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; }; }; + +&r_uart { + status = "disabled"; +}; + +&uart1 { + pinctrl-names = "default"; + pinctrl-0 = <&uart1_pins_a>, + <&uart1_pins_cts_rts_a>; + status = "okay"; +};
Signature · 1 line
2.9.3
PATCH 1/1 ARM: dts: sun8i: enable UART1 for iNet D978 Rev2 board
15.09.2016, 10:15, "Icenowy Zheng" <[email protected]>:
Quoted 10 lines
UART1 is connected to the bluetooth part of RTL8723BS WiFi/BT combo card on iNet D978 Rev2 board.
Enable the UART1 to make it possible to use the modified hciattach by Realtek to drive the BT part of RTL8723BS.
On the board no
r_uartpins are found now (the onboard RX/TX pins are wired to PF2/PF4, which is muxed with mmc0), so also disabled it.Signed-off-by Icenowy Zheng <[email protected]>
Oh I forgot to add a patch version number...
It's PATCH v3.
(But it seems that I should send a v4 to split the dtsi change and dts change.)
Quoted 67 lines
---
?arch/arm/boot/dts/sun8i-a23-a33.dtsi | 14 ++++++++++++++ ?arch/arm/boot/dts/sun8i-a33-inet-d978-rev2.dts | 20 ++++++++++++++++++++ ?2 files changed, 34 insertions(+)arch/arm/boot/dts/sun8i-a23-a33.dtsi +14
-0@@ -361,6 +361,20 @@ ?????????????????????????????????allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; ?????????????????????????}; + uart1_pins_a: uart1 at 0 { + allwinner,pins = "PG6", "PG7"; + allwinner,function = "uart1"; + allwinner,drive = <SUN4I_PINCTRL_10_MA>; + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; + }; + + uart1_pins_cts_rts_a: uart1-cts-rts at 0 { + allwinner,pins = "PG8", "PG9"; + allwinner,function = "uart1"; + allwinner,drive = <SUN4I_PINCTRL_10_MA>; + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; + }; + ?????????????????????????mmc0_pins_a: mmc0 at 0 { ?????????????????????????????????allwinner,pins = "PF0", "PF1", "PF2", ??????????????????????????????????????????????????"PF3", "PF4", "PF5";arch/arm/boot/dts/sun8i-a33-inet-d978-rev2.dts +20
-1@@ -49,6 +49,15 @@ ?????????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";@@ -86,3 +95,14 @@ ?????????????????allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; ?????????}; ?}; + +&r_uart { + status = "disabled"; +}; + +&uart1 { + pinctrl-names = "default"; + pinctrl-0 = <&uart1_pins_a>, + <&uart1_pins_cts_rts_a>; + status = "okay"; +}; --2.9.3
Quoted 12 lines · Icenowy Zheng
15.09.2016, 10:15, "Icenowy Zheng" <[email protected]>:
Quoted 9 lines
UART1 is connected to the bluetooth part of RTL8723BS WiFi/BT combo card on iNet D978 Rev2 board.
Enable the UART1 to make it possible to use the modified hciattach by Realtek to drive the BT part of RTL8723BS.
On the board no
r_uartpins are found now (the onboard RX/TX pins are wired to PF2/PF4, which is muxed with mmc0), so also disabled it.
Quoted 6 lines
Quoted 1 line
Signed-off-by Icenowy Zheng <[email protected]>Oh I forgot to add a patch version number...
It's PATCH v3.(But it seems that I should send a v4 to split the dtsi change and dts change.)
Indeed :)
Thanks!
Maxime
Signature · 10 lines
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: 819 bytes Desc: not available URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20160915/792e2739/attachment.sig>