devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: sun7i: Add Iteaduino Plus A20
@ 2023-06-17 17:27 Julian Ribbeck
  2023-06-17 17:41 ` Krzysztof Kozlowski
  0 siblings, 1 reply; 18+ messages in thread
From: Julian Ribbeck @ 2023-06-17 17:27 UTC (permalink / raw)
  To: devicetree
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, linux-kernel,
	Julian Ribbeck

Iteaduino Plus A20 is very similar to Iteaduino Plus A10. In fact it
shares the same breakout board and the Itead Core A20 on top of it, is
only adapted to support the dual-core A20.

This commits enables the following hardware:

* HDMI Video output
* USB
* SATA (untested due to lack of hardware I could attach)
* Ethernet
* MMC storage
* UART
* USB OTG (untested, because I don't own an USB OTG cable/device)

Signed-off-by: Julian Ribbeck <julian.ribbeck@gmx.de>
---
 arch/arm/boot/dts/Makefile                    |   1 +
 .../dts/sun7i-a20-itead-iteaduino-plus.dts    | 109 ++++++++++++++++++
 2 files changed, 110 insertions(+)
 create mode 100644 arch/arm/boot/dts/sun7i-a20-itead-iteaduino-plus.dts

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 59829fc90315..1d5ab086f8de 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -1334,6 +1334,7 @@ dtb-$(CONFIG_MACH_SUN7I) += \
 	sun7i-a20-haoyu-marsboard.dtb \
 	sun7i-a20-hummingbird.dtb \
 	sun7i-a20-itead-ibox.dtb \
+	sun7i-a20-itead-iteaduino-plus.dts \
 	sun7i-a20-i12-tvbox.dtb \
 	sun7i-a20-icnova-swac.dtb \
 	sun7i-a20-lamobo-r1.dtb \
diff --git a/arch/arm/boot/dts/sun7i-a20-itead-iteaduino-plus.dts b/arch/arm/boot/dts/sun7i-a20-itead-iteaduino-plus.dts
new file mode 100644
index 000000000000..8d94db5520af
--- /dev/null
+++ b/arch/arm/boot/dts/sun7i-a20-itead-iteaduino-plus.dts
@@ -0,0 +1,109 @@
+// SPDX-License-Identifier: (GPL-2.0+ or MIT)
+
+/dts-v1/;
+#include "sun7i-a20.dtsi"
+#include "sunxi-itead-core-common.dtsi"
+#include "axp209.dtsi"
+
+/ {
+	model = "Itead Iteaduino Plus A20";
+	compatible = "itead,iteaduino-plus-a20", "allwinner,sun7i-a20";
+
+	hdmi-connector {
+		compatible = "hdmi-connector";
+		type = "a";
+
+		port {
+			hdmi_con_in: endpoint {
+				remote-endpoint = <&hdmi_out_con>;
+			};
+		};
+	};
+};
+
+&ac_power_supply {
+	status = "okay";
+};
+
+&ahci {
+	target-supply = <&reg_ahci_5v>;
+	status = "okay";
+};
+
+&axp209 {
+	interrupts = <0>;
+};
+
+&battery_power_supply {
+	status = "okay";
+};
+
+
+&de {
+	status = "okay";
+};
+
+&emac {
+	pinctrl-names = "default";
+	pinctrl-0 = <&emac_pa_pins>;
+	phy-handle = <&phy1>;
+	status = "okay";
+};
+
+&emac_sram {
+	status = "okay";
+};
+
+&hdmi {
+	status = "okay";
+};
+
+&hdmi_out {
+	hdmi_out_con: endpoint {
+		remote-endpoint = <&hdmi_con_in>;
+	};
+};
+
+&mdio {
+	status = "okay";
+
+	phy1: ethernet-phy@1 {
+		reg = <1>;
+	};
+};
+
+&mmc0 {
+	vmmc-supply = <&reg_vcc3v3>;
+	bus-width = <4>;
+	cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */
+	status = "okay";
+};
+
+
+&otg_sram {
+	status = "okay";
+};
+
+&reg_ahci_5v {
+	status = "okay";
+};
+
+
+&reg_usb0_vbus {
+	status = "okay";
+};
+
+&usb_otg {
+	status = "otg";
+};
+
+&usb_power_supply {
+	status = "okay";
+};
+
+&usbphy {
+	usb0_id_det-gpios = <&pio 7 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; /* PH4 */
+	usb0_vbus_det-gpios = <&pio 7 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; /* PH5 */
+	usb0_vbus_power-supply = <&usb_power_supply>;
+	usb0_vbus-supply = <&reg_usb0_vbus>;
+};
--
2.41.0


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

end of thread, other threads:[~2023-10-13 19:21 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-17 17:27 [PATCH] ARM: dts: sun7i: Add Iteaduino Plus A20 Julian Ribbeck
2023-06-17 17:41 ` Krzysztof Kozlowski
2023-06-17 20:51   ` Julian Ribbeck
2023-06-17 20:55   ` [PATCH v2 1/2] " Julian Ribbeck
2023-06-17 20:55     ` [PATCH v2 2/2] dt-bindings: arm: sunxi: Add itead,iteaduino-plus-a20 Julian Ribbeck
2023-06-18  8:00       ` Krzysztof Kozlowski
2023-09-27  9:38         ` Julian Ribbeck
2023-09-27 15:02           ` Conor Dooley
2023-09-28  4:41           ` Krzysztof Kozlowski
2023-09-27 20:44       ` Samuel Holland
2023-09-27 21:19     ` [PATCH v2 1/2] ARM: dts: sun7i: Add Iteaduino Plus A20 Samuel Holland
2023-09-28 16:57       ` [PATCH v3 " Julian Ribbeck
2023-09-28 16:57         ` [PATCH v3 2/2] dt-bindings: arm: sunxi: Add itead,iteaduino-plus-a20 Julian Ribbeck
2023-09-29 14:20           ` Conor Dooley
2023-10-06  9:01             ` [PATCH v4 1/2] ARM: dts: sun7i: Add Iteaduino Plus A20 Julian Ribbeck
2023-10-06  9:01               ` [PATCH v4 2/2] dt-bindings: arm: sunxi: Add itead,iteaduino-plus-a20 Julian Ribbeck
2023-10-13 19:18               ` [PATCH v4 1/2] ARM: dts: sun7i: Add Iteaduino Plus A20 Jernej Škrabec
2023-10-13 19:21                 ` Jernej Škrabec

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).