arm64: allwinner: sun50i-a64: Remove duplicate ethernet@1c30000
Subsystems (2)
PATCH 1/1 arm64: allwinner: sun50i-a64: Remove duplicate ethernet@1c30000
From: Jagan Teki <[email protected]>
Remove duplicate ethernet at 1c30000 from allwinner/sun50i-a64.dtsi
Build error:arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dtb:
ERROR (duplicate_node_names): Duplicate node name /soc/ethernet at 1c30000
ERROR: Input tree has errors, aborting (use -f to force output)
--- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 20 -------------------- 1 file changed, 20 deletions(-)
arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +0 -20
@@ -469,26 +469,6 @@ }; }; - emac: ethernet at 1c30000 { - compatible = "allwinner,sun50i-a64-emac"; - syscon = <&syscon>; - reg = <0x01c30000 0x100>; - interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>; - interrupt-names = "macirq"; - resets = <&ccu RST_BUS_EMAC>; - reset-names = "stmmaceth"; - clocks = <&ccu CLK_BUS_EMAC>; - clock-names = "stmmaceth"; - status = "disabled"; - #address-cells = <1>; - #size-cells = <0>; - - mdio: mdio { - #address-cells = <1>; - #size-cells = <0>; - }; - }; - gic: interrupt-controller at 1c81000 { compatible = "arm,gic-400"; reg = <0x01c81000 0x1000>,
Signature · 1 line
1.9.1
PATCH v2 1/1 arm64: allwinner: a64: Add initial NanoPi A64 support
From: Jagan Teki <[email protected]>
NanoPi A64 is a new board of high performance with low cost designed by FriendlyElec., using the Allwinner A64 SOC.
Nanopi A64 features
- Allwinner A64, 64-bit Quad-core Cortex-A53 at 648MHz to 1.152GHz, DVFS
- 1GB DDR3 RAM
- MicroSD
- Gigabit Ethernet (RTL8211E)
- Wi-Fi 802.11b/g/n
- IR receiver
- Audio In/Out
- Video In/Out
- Serial Debug Port
- microUSB 5V 2A DC power-supply
---
Changes for v2:
- Added ohci0, ehci0, ohic1, ehci1, usbphy.
- Tested on A64
arch/arm64/boot/dts/allwinner/Makefile | 1 + .../boot/dts/allwinner/sun50i-a64-nanopi-a64.dts | 131 +++++++++++++++++++++ 2 files changed, 132 insertions(+) create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts
arch/arm64/boot/dts/allwinner/Makefile +1 -0
@@ -1,4 +1,5 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-bananapi-m64.dtb +dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-nanopi-a64.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pine64-plus.dtb sun50i-a64-pine64.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-sopine-baseboard.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-orangepi-pc2.dtb
arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts new file +131 -0
131 lines not on this page · raw message
Signature · 1 line
1.9.1
Hi,
Quoted 3 lines · Jagan Teki
From: Jagan Teki <[email protected]>
Remove duplicate ethernet@1c30000 from
allwinner/sun50i-a64.dtsi
I think this is an artefact of the sun8i-dwmac merging, where both David and Maxime merged the DT patches in their trees (compare e53f67e9 and 103aefa0). I think both of them are in the process of sorting this out (as this effects more than this hunk, I believe).
Cheers,
Andre.
Quoted 43 lines
Build error:
arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dtb:
ERROR (duplicate_node_names): Duplicate node name /soc/ethernet@1c30000
ERROR: Input tree has errors, aborting (use -f to force output)Signed-off-by Jagan Teki <[email protected]>--- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 20 -------------------- 1 file changed, 20 deletions(-)arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +0
-20@@ -469,26 +469,6 @@ }; }; - emac: ethernet@1c30000 { - compatible = "allwinner,sun50i-a64-emac"; - syscon = <&syscon>; - reg = <0x01c30000 0x100>; - interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>; - interrupt-names = "macirq"; - resets = <&ccu RST_BUS_EMAC>; - reset-names = "stmmaceth"; - clocks = <&ccu CLK_BUS_EMAC>; - clock-names = "stmmaceth"; - status = "disabled"; - #address-cells = <1>; - #size-cells = <0>; - - mdio: mdio { - #address-cells = <1>; - #size-cells = <0>; - }; - }; - gic: interrupt-controller@1c81000 { compatible = "arm,gic-400"; reg = <0x01c81000 0x1000>,
Quoted 11 lines · Andre Przywara
Hi,
Quoted 3 lines · Jagan Teki
From: Jagan Teki <[email protected]>
Remove duplicate ethernet at 1c30000 from
allwinner/sun50i-a64.dtsiI think this is an artefact of the sun8i-dwmac merging, where both David and Maxime merged the DT patches in their trees (compare
e53f67e9and103aefa0). I think both of them are in the process of sorting this out (as this effects more than this hunk, I believe).
Yeah, hopefully we'll manage to fix this.
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: 801 bytes Desc: not available URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170609/f19d7f79/attachment.sig>
Re: [PATCH v2] arm64: allwinner: a64: Add initial NanoPi A64 support
In reply to Jagan TekiHi Jagan,
arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts line 86
Quoted 9 lines · Jagan Teki
+&i2c1 {
arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts new file +8
-0+ pinctrl-names = "default"; + pinctrl-0 = <&i2c1_pins>; + status = "okay"; +}; + +&i2c1_pins { + bias-pull-up; +};
What is connected on that bus?
arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts line 127
Quoted 5 lines
+&uart1 {
arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts new file +4
-0+ pinctrl-names = "default"; + pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>; + status = "okay"; +};
And on that UART?
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: 801 bytes Desc: not available URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170609/625c79ba/attachment.sig>
Re: [linux-sunxi] Re: [PATCH v2] arm64: allwinner: a64: Add initial NanoPi A64 support
Quoted 14 lines · Maxime Ripard
Hi Jagan,
arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts line 86
Quoted 9 lines · Jagan Teki
+&i2c1 {
arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts new file +8
-0+ pinctrl-names = "default"; + pinctrl-0 = <&i2c1_pins>; + status = "okay"; +}; + +&i2c1_pins { + bias-pull-up; +};What is connected on that bus?
i2c1 connected with gpio/i2s
Quoted 8 lines
arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts line 127
Quoted 6 lines
+&uart1 {
arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts new file +4
-0+ pinctrl-names = "default"; + pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>; + status = "okay"; +};And on that UART?
uart1 for SDIO (Wifi connector, with RTS/CTS), this along with mmc1
Jagan.
Re: [linux-sunxi] Re: [PATCH v2] arm64: allwinner: a64: Add initial NanoPi A64 support
Hi,
Quoted 16 lines · Jagan Teki
Quoted 14 lines · Maxime Ripard
Hi Jagan,
arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts line 86
Quoted 9 lines · Jagan Teki
+&i2c1 {
arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts new file +8
-0+ pinctrl-names = "default"; + pinctrl-0 = <&i2c1_pins>; + status = "okay"; +}; + +&i2c1_pins { + bias-pull-up; +};What is connected on that bus?
Quoted 1 line
i2c1 connected with gpio/i2s
Those are the I2C pins connected to the headers. We have them in the other A64 DTs as well (Pine64, BananaPi).
If that is not the right approach, we should discuss this and keep it consistent at least across the A64 boards.
Quoted 10 lines
Quoted 8 lines
arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts line 127
Quoted 6 lines
+&uart1 {
arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts new file +4
-0+ pinctrl-names = "default"; + pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>; + status = "okay"; +};And on that UART?
uart1 for SDIO (Wifi connector, with RTS/CTS), this along with mmc1
To be precise, UART1 (with h/w handshake) is connected to the Bluetooth part of the WiFi/BT chip, which is soldered on that board. Regardless of the actual *WiFi* support state BT should work already - at least it did when I tried this a few months ago on the Pine64 (although this involved some userland heavy lifting).
Not sure what the approach here is in regard to the power supply and wake-up GPIOs, shall they be described in this node as well or is that up for userspace to control?
Cheers,
Andre.
Re: [linux-sunxi] Re: [PATCH v2] arm64: allwinner: a64: Add initial NanoPi A64 support
Hi,
Am 09.06.2017 um 17:36 schrieb Andre Przywara:
Quoted 13 lines · Jagan Teki
Quoted 11 lines · Maxime Ripard
Quoted 8 lines · Jagan Teki
arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts line 127
Quoted 5 lines
+&uart1 {
arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts new file +4
-0+ pinctrl-names = "default"; + pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>; + status = "okay"; +};And [what is connected] on that UART?
uart1 for SDIO (Wifi connector, with RTS/CTS), this along with mmc1
Quoted 8 lines
To be precise, UART1 (with h/w handshake) is connected to the Bluetooth part of the WiFi/BT chip, which is soldered on that board. Regardless of the actual *WiFi* support state BT should work already - at least it did when I tried this a few months ago on the Pine64 (although this involved some userland heavy lifting).
Not sure what the approach here is in regard to the power supply and wake-up GPIOs, shall they be described in this node as well or is that up for userspace to control?
You should use a serdev based Bluetooth driver by adding a sub-node, and it should take care of any reset GPIOs etc. for you. Question is which driver is needed here and what state it is in.
Regards,
Andreas
Signature · 3 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany GF: Felix Imend?rffer, Jane Smithard, Graham Norton HRB 21284 (AG N?rnberg)
Re: [linux-sunxi] Re: [PATCH v2] arm64: allwinner: a64: Add initial NanoPi A64 support
In reply to Andre PrzywaraQuoted 19 lines · Andre Przywara
Hi,
Quoted 16 lines · Jagan Teki
Quoted 14 lines · Maxime Ripard
Hi Jagan,
arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts line 86
Quoted 9 lines · Jagan Teki
+&i2c1 {
arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts new file +8
-0+ pinctrl-names = "default"; + pinctrl-0 = <&i2c1_pins>; + status = "okay"; +}; + +&i2c1_pins { + bias-pull-up; +};What is connected on that bus?
Quoted 4 lines
Quoted 1 line
i2c1 connected with gpio/i2s
Those are the I2C pins connected to the headers. We have them in the other A64 DTs as well (Pine64, BananaPi).
We've always had the policy of not enabling anything outside of the board has been there from the very start, arm64 or not.
Quoted 2 lines
If that is not the right approach, we should discuss this and keep it consistent at least across the A64 boards.
If some boards slipped through, then that would be on me I guess, but it's (unfortunate) exceptions.
If you want to ease that for the users, you can have that node with the pinctrl nodes pre-set, but leave it disabled. We have that on a number of boards already.
Quoted 10 lines
Quoted 9 lines
Quoted 7 lines
arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts line 127
Quoted 5 lines
+&uart1 {
arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts new file +4
-0+ pinctrl-names = "default"; + pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>; + status = "okay"; +};And on that UART?
uart1 for SDIO (Wifi connector, with RTS/CTS), this along with mmc1
Quoted 8 lines
To be precise, UART1 (with h/w handshake) is connected to the Bluetooth part of the WiFi/BT chip, which is soldered on that board. Regardless of the actual *WiFi* support state BT should work already - at least it did when I tried this a few months ago on the Pine64 (although this involved some userland heavy lifting).
Not sure what the approach here is in regard to the power supply and wake-up GPIOs, shall they be described in this node as well or is that up for userspace to control?
There's probably more to it though. Most BT chips require regulators and clocks to be enabled. Ideally, this would even be a full DT node for the bluetooth chip.
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: 801 bytes Desc: not available URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170610/50069cd4/attachment.sig>