Skip to content

Commit

Permalink
Add support for Inovato Quadra
Browse files Browse the repository at this point in the history
  • Loading branch information
viraniac authored and igorpecovnik committed Sep 21, 2023
1 parent 032da34 commit 3dd634a
Show file tree
Hide file tree
Showing 7 changed files with 194 additions and 0 deletions.
14 changes: 14 additions & 0 deletions config/boards/inovato-quadra.csc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Allwinner H6 quad core 2GB SoC WiFi eMMC
BOARD_NAME="Inovato Quadra"
BOARDFAMILY="sun50iw6"
BOARD_MAINTAINER=""
BOOTCONFIG="tanix_tx6_defconfig"
CRUSTCONFIG="tanix_tx6_defconfig"
BOOT_FDT_FILE="allwinner/sun50i-h6-inovato-quadra.dtb"
KERNEL_TARGET="current,edge"
KERNEL_TEST_TARGET="current,edge"
BOOT_LOGO="desktop"
FULL_DESKTOP="yes"
SRC_EXTLINUX="yes"
SRC_CMDLINE="console=ttyS0,115200 console=tty0 mem=2048M video=HDMI-A-1:e"
OFFSET=16
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
From 40ec552ecc7efdd9056dde65fa7429e917ff6c5b Mon Sep 17 00:00:00 2001
From: Gunjan Gupta <[email protected]>
Date: Tue, 19 Sep 2023 11:06:01 +0000
Subject: [PATCH] Add wifi nodes for Inovato Quadra

---
arch/arm64/boot/dts/allwinner/Makefile | 1 +
.../allwinner/sun50i-h6-inovato-quadra.dts | 56 +++++++++++++++++++
2 files changed, 57 insertions(+)
create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-h6-innovato-quadra.dts

diff --git a/arch/arm64/boot/dts/allwinner/Makefile b/arch/arm64/boot/dts/allwinner/Makefile
index 4d0c4843b21c..0275884b73e1 100644
--- a/arch/arm64/boot/dts/allwinner/Makefile
+++ b/arch/arm64/boot/dts/allwinner/Makefile
@@ -52,6 +52,7 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-orangepi-one-plus.dtb
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-pine-h64.dtb
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-pine-h64-model-b.dtb
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-tanix-tx6.dtb
+dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-inovato-quadra.dtb
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-tanix-tx6-mini.dtb
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-orangepi-zero2.dtb
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-x96-mate.dtb
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-inovato-quadra.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-inovato-quadra.dts
new file mode 100644
index 000000000000..1036e9896ff9
--- /dev/null
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-inovato-quadra.dts
@@ -0,0 +1,56 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+// Copyright (c) 2023 Gunjan Gupta <[email protected]>
+
+/dts-v1/;
+
+#include "sun50i-h6-tanix.dtsi"
+
+/ {
+ model = "Inovato Quadra";
+ compatible = "oranth,inovato-quadra", "allwinner,sun50i-h6";
+
+ aliases {
+ ethernet1 = &xr819;
+ };
+
+ leds {
+ compatible = "gpio-leds";
+
+ led-0 {
+ label = "red";
+ gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */
+ };
+
+ led-1 {
+ label = "blue";
+ gpios = <&r_pio 0 7 GPIO_ACTIVE_HIGH>; /* PL7 */
+ default-state = "on";
+ };
+ };
+};
+
+&i2s1 {
+ status = "okay";
+};
+
+&mmc1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&mmc1_pins>;
+
+ xr819: sdio_wifi@1 {
+ compatible = "xradio,xr819";
+ interrupt-names = "host-wake";
+ interrupt-parent = <&r_pio>;
+ interrupts = <1 0 IRQ_TYPE_EDGE_RISING>;
+ local-mac-address = [dc 44 6d c0 ff ee];
+ reg = <1>;
+ };
+};
+
+&sound_hdmi {
+ status = "okay";
+};
+
+&wifi_pwrseq {
+ post-power-on-delay-ms = <0xc8>;
+};
--
2.34.1

1 change: 1 addition & 0 deletions patch/kernel/archive/sunxi-6.1/series.armbian
Original file line number Diff line number Diff line change
Expand Up @@ -186,3 +186,4 @@
patches.armbian/add-nodes-for-sunxi-info-addr-dump-reg.patch
patches.armbian/add-initial-support-for-orangepi3-lts.patch
patches.armbian/drivers-input-axp20x-pek-allow-wakeup-after-shutdown.patch
patches.armbian/arm64-dts-add-wifi-nodes-for-Inovato-Quadra.patch
1 change: 1 addition & 0 deletions patch/kernel/archive/sunxi-6.1/series.conf
Original file line number Diff line number Diff line change
Expand Up @@ -590,3 +590,4 @@
patches.armbian/add-nodes-for-sunxi-info-addr-dump-reg.patch
patches.armbian/add-initial-support-for-orangepi3-lts.patch
patches.armbian/drivers-input-axp20x-pek-allow-wakeup-after-shutdown.patch
patches.armbian/arm64-dts-add-wifi-nodes-for-Inovato-Quadra.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
From 40ec552ecc7efdd9056dde65fa7429e917ff6c5b Mon Sep 17 00:00:00 2001
From: Gunjan Gupta <[email protected]>
Date: Tue, 19 Sep 2023 11:06:01 +0000
Subject: [PATCH] Add wifi nodes for Inovato Quadra

---
arch/arm64/boot/dts/allwinner/Makefile | 1 +
.../allwinner/sun50i-h6-inovato-quadra.dts | 56 +++++++++++++++++++
2 files changed, 57 insertions(+)
create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-h6-innovato-quadra.dts

diff --git a/arch/arm64/boot/dts/allwinner/Makefile b/arch/arm64/boot/dts/allwinner/Makefile
index 4d0c4843b21c..0275884b73e1 100644
--- a/arch/arm64/boot/dts/allwinner/Makefile
+++ b/arch/arm64/boot/dts/allwinner/Makefile
@@ -52,6 +52,7 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-orangepi-one-plus.dtb
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-pine-h64.dtb
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-pine-h64-model-b.dtb
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-tanix-tx6.dtb
+dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-inovato-quadra.dtb
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-tanix-tx6-mini.dtb
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-orangepi-zero2.dtb
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-x96-mate.dtb
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-inovato-quadra.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-inovato-quadra.dts
new file mode 100644
index 000000000000..1036e9896ff9
--- /dev/null
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-inovato-quadra.dts
@@ -0,0 +1,56 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+// Copyright (c) 2023 Gunjan Gupta <[email protected]>
+
+/dts-v1/;
+
+#include "sun50i-h6-tanix.dtsi"
+
+/ {
+ model = "Inovato Quadra";
+ compatible = "oranth,inovato-quadra", "allwinner,sun50i-h6";
+
+ aliases {
+ ethernet1 = &xr819;
+ };
+
+ leds {
+ compatible = "gpio-leds";
+
+ led-0 {
+ label = "red";
+ gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */
+ };
+
+ led-1 {
+ label = "blue";
+ gpios = <&r_pio 0 7 GPIO_ACTIVE_HIGH>; /* PL7 */
+ default-state = "on";
+ };
+ };
+};
+
+&i2s1 {
+ status = "okay";
+};
+
+&mmc1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&mmc1_pins>;
+
+ xr819: sdio_wifi@1 {
+ compatible = "xradio,xr819";
+ interrupt-names = "host-wake";
+ interrupt-parent = <&r_pio>;
+ interrupts = <1 0 IRQ_TYPE_EDGE_RISING>;
+ local-mac-address = [dc 44 6d c0 ff ee];
+ reg = <1>;
+ };
+};
+
+&sound_hdmi {
+ status = "okay";
+};
+
+&wifi_pwrseq {
+ post-power-on-delay-ms = <0xc8>;
+};
--
2.34.1

1 change: 1 addition & 0 deletions patch/kernel/archive/sunxi-6.5/series.armbian
Original file line number Diff line number Diff line change
Expand Up @@ -190,3 +190,4 @@
patches.armbian/add-nodes-for-sunxi-info-addr-dump-reg.patch
patches.armbian/add-initial-support-for-orangepi3-lts.patch
patches.armbian/drivers-input-axp20x-pek-allow-wakeup-after-shutdown.patch
patches.armbian/arm64-dts-add-wifi-nodes-for-Inovato-Quadra.patch
1 change: 1 addition & 0 deletions patch/kernel/archive/sunxi-6.5/series.conf
Original file line number Diff line number Diff line change
Expand Up @@ -668,3 +668,4 @@
patches.armbian/add-nodes-for-sunxi-info-addr-dump-reg.patch
patches.armbian/add-initial-support-for-orangepi3-lts.patch
patches.armbian/drivers-input-axp20x-pek-allow-wakeup-after-shutdown.patch
patches.armbian/arm64-dts-add-wifi-nodes-for-Inovato-Quadra.patch

0 comments on commit 3dd634a

Please sign in to comment.