mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
sunxi-6.13: enable TVoutpt, orangepi-zero2w patches; re-export to v6.13.10
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
From 5591d18fda3fdc9ffbd20ed6e42374a27696758f Mon Sep 17 00:00:00 2001
|
||||
From 43a7177563683a1e7d192138f65073d687ed068b Mon Sep 17 00:00:00 2001
|
||||
From: Patrick Yavitz <pyavitz@armbian.com>
|
||||
Date: Tue, 7 Jan 2025 06:39:30 -0500
|
||||
Subject: Add BananaPi BPI-M4-Zero overlays
|
||||
@@ -35,10 +35,10 @@ Signed-off-by: Patrick Yavitz <pyavitz@armbian.com>
|
||||
create mode 100644 arch/arm64/boot/dts/allwinner/overlay/sun50i-h616-bananapi-m4-spi1-cs1-spidev.dtso
|
||||
|
||||
diff --git a/arch/arm64/boot/dts/allwinner/overlay/Makefile b/arch/arm64/boot/dts/allwinner/overlay/Makefile
|
||||
index 6f83b69f8525..f465c4e17673 100644
|
||||
index ccb89b5bf495..3e87d21c9d14 100644
|
||||
--- a/arch/arm64/boot/dts/allwinner/overlay/Makefile
|
||||
+++ b/arch/arm64/boot/dts/allwinner/overlay/Makefile
|
||||
@@ -48,6 +48,19 @@ dtb-$(CONFIG_ARCH_SUNXI) += \
|
||||
@@ -49,6 +49,19 @@ dtb-$(CONFIG_ARCH_SUNXI) += \
|
||||
sun50i-h6-uart2.dtbo \
|
||||
sun50i-h6-uart3.dtbo \
|
||||
sun50i-h6-w1-gpio.dtbo \
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From c54796ce751b78c6bdab7ee9622aaf6a3d5a9397 Mon Sep 17 00:00:00 2001
|
||||
From 4b2f43e4e23c5e6184568a6b0bf0e85fce4aefb3 Mon Sep 17 00:00:00 2001
|
||||
From: chraac <chraac@gmail.com>
|
||||
Date: Fri, 5 Apr 2024 10:57:18 +0800
|
||||
Subject: add dtb overlay for zero2w
|
||||
@@ -16,10 +16,10 @@ Subject: add dtb overlay for zero2w
|
||||
create mode 100644 arch/arm64/boot/dts/allwinner/overlay/sun50i-h616-i2c2-pi.dtso
|
||||
|
||||
diff --git a/arch/arm64/boot/dts/allwinner/overlay/Makefile b/arch/arm64/boot/dts/allwinner/overlay/Makefile
|
||||
index 775290d031bf..6f83b69f8525 100644
|
||||
index 718909b607a6..ccb89b5bf495 100644
|
||||
--- a/arch/arm64/boot/dts/allwinner/overlay/Makefile
|
||||
+++ b/arch/arm64/boot/dts/allwinner/overlay/Makefile
|
||||
@@ -48,6 +48,10 @@ dtb-$(CONFIG_ARCH_SUNXI) += \
|
||||
@@ -49,6 +49,10 @@ dtb-$(CONFIG_ARCH_SUNXI) += \
|
||||
sun50i-h6-uart2.dtbo \
|
||||
sun50i-h6-uart3.dtbo \
|
||||
sun50i-h6-w1-gpio.dtbo \
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From 082e234245612d251233ac4eb8804eaf41cc9a0a Mon Sep 17 00:00:00 2001
|
||||
From 2f8b8f221f69c044f5d8821025c60ae76cce2bfc Mon Sep 17 00:00:00 2001
|
||||
From: Your Name <you@example.com>
|
||||
Date: Fri, 10 Jan 2025 20:56:39 +0300
|
||||
Subject: arm: dts: sun8i-h2-plus-orangepi-zero: fix usb_otg dr_mode
|
||||
@@ -8,10 +8,10 @@ Subject: arm: dts: sun8i-h2-plus-orangepi-zero: fix usb_otg dr_mode
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/allwinner/sun8i-h2-plus-orangepi-zero.dts b/arch/arm/boot/dts/allwinner/sun8i-h2-plus-orangepi-zero.dts
|
||||
index c9e84ad69113..ca149f920fac 100644
|
||||
index 1bb54edb00ce..f5c0e103b748 100644
|
||||
--- a/arch/arm/boot/dts/allwinner/sun8i-h2-plus-orangepi-zero.dts
|
||||
+++ b/arch/arm/boot/dts/allwinner/sun8i-h2-plus-orangepi-zero.dts
|
||||
@@ -199,7 +199,7 @@ &uart2 {
|
||||
@@ -203,7 +203,7 @@ &uart2 {
|
||||
};
|
||||
|
||||
&usb_otg {
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
From 19643d4a52afccb60743c52906065adb29a7a27a Mon Sep 17 00:00:00 2001
|
||||
From 140794c4bcf8efd9551b88d5c7e7c79c83d97a70 Mon Sep 17 00:00:00 2001
|
||||
From: chraac <chraac@gmail.com>
|
||||
Date: Fri, 15 Mar 2024 12:30:26 +0800
|
||||
Subject: arm64: dts: sun50i-h618-orangepi-zero2w: Add missing nodes
|
||||
|
||||
---
|
||||
.../arm64/boot/dts/allwinner/sun50i-h616.dtsi | 25 +-
|
||||
.../allwinner/sun50i-h618-orangepi-zero2w.dts | 628 ++++++++++++++++--
|
||||
2 files changed, 586 insertions(+), 67 deletions(-)
|
||||
.../allwinner/sun50i-h618-orangepi-zero2w.dts | 269 ++++++++++++++++++
|
||||
2 files changed, 286 insertions(+), 8 deletions(-)
|
||||
|
||||
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi
|
||||
index 971b3fd80763..67d0621b6dbd 100644
|
||||
index 668ed3b9090a..e9bbd5441980 100644
|
||||
--- a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi
|
||||
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi
|
||||
@@ -240,7 +240,7 @@ video-codec@1c0e000 {
|
||||
@@ -241,7 +241,7 @@ video-codec@1c0e000 {
|
||||
|
||||
syscon: syscon@3000000 {
|
||||
compatible = "allwinner,sun50i-h616-system-control";
|
||||
@@ -21,7 +21,7 @@ index 971b3fd80763..67d0621b6dbd 100644
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
ranges;
|
||||
@@ -809,19 +809,28 @@ mdio0: mdio {
|
||||
@@ -816,19 +816,28 @@ mdio0: mdio {
|
||||
};
|
||||
|
||||
emac1: ethernet@5030000 {
|
||||
@@ -58,26 +58,10 @@ index 971b3fd80763..67d0621b6dbd 100644
|
||||
#size-cells = <0>;
|
||||
};
|
||||
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero2w.dts b/arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero2w.dts
|
||||
index 6a4f0da97233..5a550d904534 100644
|
||||
index a0fe7a9afb77..dcc3a0df5922 100644
|
||||
--- a/arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero2w.dts
|
||||
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero2w.dts
|
||||
@@ -7,10 +7,15 @@
|
||||
|
||||
#include "sun50i-h616.dtsi"
|
||||
#include "sun50i-h616-cpu-opp.dtsi"
|
||||
+#include "sun50i-h618-cpu-dvfs.dtsi"
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
||||
#include <dt-bindings/leds/common.h>
|
||||
+#include <dt-bindings/clock/sun8i-de2.h>
|
||||
+#include <dt-bindings/clock/sun8i-tcon-top.h>
|
||||
+#include <dt-bindings/reset/sun8i-de2.h>
|
||||
+
|
||||
|
||||
/ {
|
||||
model = "OrangePi Zero 2W";
|
||||
@@ -18,19 +23,48 @@ / {
|
||||
@@ -18,12 +18,27 @@ / {
|
||||
|
||||
aliases {
|
||||
serial0 = &uart0;
|
||||
@@ -105,10 +89,9 @@ index 6a4f0da97233..5a550d904534 100644
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led-0 {
|
||||
@@ -31,6 +46,19 @@ led-0 {
|
||||
function = LED_FUNCTION_STATUS;
|
||||
color = <LED_COLOR_ID_GREEN>;
|
||||
+ label = "green_led";
|
||||
gpios = <&pio 2 13 GPIO_ACTIVE_HIGH>; /* PC13 */
|
||||
+ linux,default-trigger = "heartbeat";
|
||||
+ };
|
||||
@@ -126,14 +109,11 @@ index 6a4f0da97233..5a550d904534 100644
|
||||
};
|
||||
};
|
||||
|
||||
@@ -52,91 +86,377 @@ reg_vcc3v3: vcc3v3 {
|
||||
@@ -52,6 +80,84 @@ reg_vcc3v3: vcc3v3 {
|
||||
vin-supply = <®_vcc5v>;
|
||||
regulator-always-on;
|
||||
};
|
||||
-};
|
||||
|
||||
-&cpu0 {
|
||||
- cpu-supply = <®_dcdc2>;
|
||||
+
|
||||
+ reg_vcc_wifi_io: vcc-wifi-io {
|
||||
+ /* Always on 1.8V/300mA regulator for WiFi and BT IO */
|
||||
+ compatible = "regulator-fixed";
|
||||
@@ -210,226 +190,54 @@ index 6a4f0da97233..5a550d904534 100644
|
||||
+ clk_bypass_output = <0x1>;
|
||||
+ status = "okay";
|
||||
+ };
|
||||
+
|
||||
+ bus@1000000 {
|
||||
+ compatible = "allwinner,sun50i-h616-de33",
|
||||
+ "allwinner,sun50i-a64-de2";
|
||||
+ reg = <0x1000000 0x400000>;
|
||||
+ allwinner,sram = <&de3_sram 1>;
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <1>;
|
||||
+ ranges = <0 0x1000000 0x400000>;
|
||||
+
|
||||
+ display_clocks: clock@8000 {
|
||||
+ compatible = "allwinner,sun50i-h616-de33-clk";
|
||||
+ reg = <0x8000 0x100>;
|
||||
+ clocks = <&ccu CLK_DE>, <&ccu CLK_BUS_DE>;
|
||||
+ clock-names = "mod", "bus";
|
||||
+ resets = <&ccu RST_BUS_DE>;
|
||||
+ #clock-cells = <1>;
|
||||
+ #reset-cells = <1>;
|
||||
+ };
|
||||
+
|
||||
+ mixer0: mixer@100000 {
|
||||
+ compatible = "allwinner,sun50i-h616-de33-mixer-0";
|
||||
+ reg = <0x100000 0x100000>,
|
||||
+ <0x8100 0x40>,
|
||||
+ <0x280000 0x20000>;
|
||||
+ clocks = <&display_clocks CLK_BUS_MIXER0>,
|
||||
+ <&display_clocks CLK_MIXER0>;
|
||||
+ clock-names = "bus", "mod";
|
||||
+ resets = <&display_clocks RST_MIXER0>;
|
||||
+
|
||||
+ ports {
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <0>;
|
||||
+
|
||||
+ mixer0_out: port@1 {
|
||||
+ reg = <1>;
|
||||
+
|
||||
+ mixer0_out_tcon_top_mixer0: endpoint {
|
||||
+ remote-endpoint = <&tcon_top_mixer0_in_mixer0>;
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ hdmi: hdmi@6000000 {
|
||||
+ #sound-dai-cells = <0>;
|
||||
+ compatible = "allwinner,sun50i-h616-dw-hdmi",
|
||||
+ "allwinner,sun50i-h6-dw-hdmi";
|
||||
+ reg = <0x06000000 0x10000>;
|
||||
+ reg-io-width = <1>;
|
||||
+ interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
|
||||
+ clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_SLOW>,
|
||||
+ <&ccu CLK_HDMI>, <&ccu CLK_HDMI_CEC>,
|
||||
+ <&ccu CLK_HDCP>, <&ccu CLK_BUS_HDCP>;
|
||||
+ clock-names = "iahb", "isfr", "tmds", "cec", "hdcp",
|
||||
+ "hdcp-bus";
|
||||
+ resets = <&ccu RST_BUS_HDMI>, <&ccu RST_BUS_HDCP>;
|
||||
+ reset-names = "ctrl", "hdcp";
|
||||
+ phys = <&hdmi_phy>;
|
||||
+ phy-names = "phy";
|
||||
+ status = "okay";
|
||||
+
|
||||
+ ports {
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <0>;
|
||||
+
|
||||
+ hdmi_in: port@0 {
|
||||
+ reg = <0>;
|
||||
+
|
||||
+ hdmi_in_tcon_top: endpoint {
|
||||
+ remote-endpoint = <&tcon_top_hdmi_out_hdmi>;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ hdmi_out: port@1 {
|
||||
+ reg = <1>;
|
||||
+ hdmi_out_con: endpoint {
|
||||
+ remote-endpoint = <&hdmi_con_in>;
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ hdmi_phy: hdmi-phy@6010000 {
|
||||
+ compatible = "allwinner,sun50i-h616-hdmi-phy";
|
||||
+ reg = <0x06010000 0x10000>;
|
||||
+ clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_SLOW>;
|
||||
+ clock-names = "bus", "mod";
|
||||
+ resets = <&ccu RST_BUS_HDMI_SUB>;
|
||||
+ reset-names = "phy";
|
||||
+ #phy-cells = <0>;
|
||||
+ };
|
||||
+
|
||||
+ tcon_top: tcon-top@6510000 {
|
||||
+ compatible = "allwinner,sun50i-h6-tcon-top";
|
||||
+ reg = <0x06510000 0x1000>;
|
||||
+ clocks = <&ccu CLK_BUS_TCON_TOP>,
|
||||
+ <&ccu CLK_TCON_TV0>;
|
||||
+ clock-names = "bus",
|
||||
+ "tcon-tv0";
|
||||
+ clock-output-names = "tcon-top-tv0";
|
||||
+ resets = <&ccu RST_BUS_TCON_TOP>;
|
||||
+ #clock-cells = <1>;
|
||||
+
|
||||
+ ports {
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <0>;
|
||||
+
|
||||
+ tcon_top_mixer0_in: port@0 {
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <0>;
|
||||
+ reg = <0>;
|
||||
+
|
||||
+ tcon_top_mixer0_in_mixer0: endpoint@0 {
|
||||
+ reg = <0>;
|
||||
+ remote-endpoint = <&mixer0_out_tcon_top_mixer0>;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ tcon_top_mixer0_out: port@1 {
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <0>;
|
||||
+ reg = <1>;
|
||||
+
|
||||
+ tcon_top_mixer0_out_tcon_tv: endpoint@2 {
|
||||
+ reg = <2>;
|
||||
+ remote-endpoint = <&tcon_tv_in_tcon_top_mixer0>;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ tcon_top_hdmi_in: port@4 {
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <0>;
|
||||
+ reg = <4>;
|
||||
+
|
||||
+ tcon_top_hdmi_in_tcon_tv: endpoint@0 {
|
||||
+ reg = <0>;
|
||||
+ remote-endpoint = <&tcon_tv_out_tcon_top>;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ tcon_top_hdmi_out: port@5 {
|
||||
+ reg = <5>;
|
||||
+
|
||||
+ tcon_top_hdmi_out_hdmi: endpoint {
|
||||
+ remote-endpoint = <&hdmi_in_tcon_top>;
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ tcon_tv: lcd-controller@6515000 {
|
||||
+ compatible = "allwinner,sun50i-h6-tcon-tv",
|
||||
+ "allwinner,sun8i-r40-tcon-tv";
|
||||
+ reg = <0x06515000 0x1000>;
|
||||
+ interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
|
||||
+ clocks = <&ccu CLK_BUS_TCON_TV0>,
|
||||
+ <&tcon_top CLK_TCON_TOP_TV0>;
|
||||
+ clock-names = "ahb",
|
||||
+ "tcon-ch1";
|
||||
+ resets = <&ccu RST_BUS_TCON_TV0>;
|
||||
+ reset-names = "lcd";
|
||||
+
|
||||
+ ports {
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <0>;
|
||||
+
|
||||
+ tcon_tv_in: port@0 {
|
||||
+ reg = <0>;
|
||||
+
|
||||
+ tcon_tv_in_tcon_top_mixer0: endpoint {
|
||||
+ remote-endpoint = <&tcon_top_mixer0_out_tcon_tv>;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ tcon_tv_out: port@1 {
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <0>;
|
||||
+ reg = <1>;
|
||||
+
|
||||
+ tcon_tv_out_tcon_top: endpoint@1 {
|
||||
+ reg = <1>;
|
||||
+ remote-endpoint = <&tcon_top_hdmi_in_tcon_tv>;
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ addr_mgt: addr-mgt {
|
||||
+ compatible = "allwinner,sunxi-addr_mgt";
|
||||
+ type_addr_wifi = <0x2>;
|
||||
+ type_addr_bt = <0x2>;
|
||||
+ type_addr_eth = <0x2>;
|
||||
+ status = "okay";
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ de: display-engine {
|
||||
+ compatible = "allwinner,sun50i-h6-display-engine";
|
||||
+ allwinner,pipelines = <&mixer0>;
|
||||
+ status = "okay";
|
||||
+ };
|
||||
};
|
||||
|
||||
-&ehci1 {
|
||||
- status = "okay";
|
||||
&codec {
|
||||
@@ -59,27 +165,103 @@ &codec {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
+&de {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&gpu {
|
||||
+ mali-supply = <®_dcdc1>;
|
||||
+ status = "disabled";
|
||||
};
|
||||
|
||||
-/* USB 2 & 3 are on the FPC connector (or the exansion board) */
|
||||
+&sram_c {
|
||||
+ de3_sram: sram-section@0 {
|
||||
+ compatible = "allwinner,sun50i-h616-sram-c",
|
||||
+ "allwinner,sun50i-a64-sram-c";
|
||||
+ reg = <0x0000 0x1e000>;
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&hdmi {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&hdmi_out {
|
||||
+ hdmi_out_con: endpoint {
|
||||
+ remote-endpoint = <&hdmi_con_in>;
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
&cpu0 {
|
||||
cpu-supply = <®_dcdc2>;
|
||||
};
|
||||
|
||||
+&ehci0 {
|
||||
+ status = "disabled";
|
||||
+};
|
||||
+
|
||||
&ehci1 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
+&ehci2 {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&ehci3 {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
/* USB 2 & 3 are on the FPC connector (or the exansion board) */
|
||||
|
||||
&mmc0 {
|
||||
cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
|
||||
@@ -446,10 +254,9 @@ index 6a4f0da97233..5a550d904534 100644
|
||||
+ bus-width = <4>;
|
||||
+ non-removable;
|
||||
+ mmc-ddr-1_8v;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
-&ohci1 {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&emac0 {
|
||||
+ status = "disabled";
|
||||
+};
|
||||
@@ -465,12 +272,6 @@ index 6a4f0da97233..5a550d904534 100644
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
-&pio {
|
||||
- vcc-pc-supply = <®_dldo1>;
|
||||
- vcc-pf-supply = <®_dldo1>; /* internally via VCC-IO */
|
||||
- vcc-pg-supply = <®_aldo1>;
|
||||
- vcc-ph-supply = <®_dldo1>; /* internally via VCC-IO */
|
||||
- vcc-pi-supply = <®_dldo1>;
|
||||
+&mdio1 {
|
||||
+ rmii_phy: ethernet-phy@1 {
|
||||
+ compatible = "ethernet-phy-ieee802.3-c22";
|
||||
@@ -478,92 +279,39 @@ index 6a4f0da97233..5a550d904534 100644
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&ehci0 {
|
||||
+ status = "disabled";
|
||||
};
|
||||
|
||||
-&r_i2c {
|
||||
+&ehci1 {
|
||||
status = "okay";
|
||||
+};
|
||||
|
||||
- axp313: pmic@36 {
|
||||
- compatible = "x-powers,axp313a";
|
||||
- reg = <0x36>;
|
||||
- #interrupt-cells = <1>;
|
||||
- interrupt-controller;
|
||||
- interrupt-parent = <&pio>;
|
||||
- interrupts = <2 9 IRQ_TYPE_LEVEL_LOW>; /* PC9 */
|
||||
+&ehci2 {
|
||||
+ status = "okay";
|
||||
+};
|
||||
|
||||
- vin1-supply = <®_vcc5v>;
|
||||
- vin2-supply = <®_vcc5v>;
|
||||
- vin3-supply = <®_vcc5v>;
|
||||
+&ehci3 {
|
||||
+ status = "okay";
|
||||
+};
|
||||
|
||||
- regulators {
|
||||
- /* Supplies VCC-PLL and DRAM */
|
||||
- reg_aldo1: aldo1 {
|
||||
- regulator-always-on;
|
||||
- regulator-min-microvolt = <1800000>;
|
||||
- regulator-max-microvolt = <1800000>;
|
||||
- regulator-name = "vcc1v8";
|
||||
- };
|
||||
+&ohci0 {
|
||||
+ status = "disabled";
|
||||
+};
|
||||
+
|
||||
&ohci1 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
- /* Supplies VCC-IO, so needs to be always on. */
|
||||
- reg_dldo1: dldo1 {
|
||||
- regulator-always-on;
|
||||
- regulator-min-microvolt = <3300000>;
|
||||
- regulator-max-microvolt = <3300000>;
|
||||
- regulator-name = "vcc3v3";
|
||||
- };
|
||||
+&ohci1 {
|
||||
+ status = "okay";
|
||||
+};
|
||||
|
||||
- reg_dcdc1: dcdc1 {
|
||||
- regulator-always-on;
|
||||
- regulator-min-microvolt = <810000>;
|
||||
- regulator-max-microvolt = <990000>;
|
||||
- regulator-name = "vdd-gpu-sys";
|
||||
- };
|
||||
+&ohci2 {
|
||||
+ status = "okay";
|
||||
+};
|
||||
|
||||
- reg_dcdc2: dcdc2 {
|
||||
- regulator-always-on;
|
||||
- regulator-min-microvolt = <810000>;
|
||||
- regulator-max-microvolt = <1100000>;
|
||||
- regulator-name = "vdd-cpu";
|
||||
- };
|
||||
+
|
||||
+&ohci3 {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
&pio {
|
||||
vcc-pc-supply = <®_dldo1>;
|
||||
vcc-pf-supply = <®_dldo1>; /* internally via VCC-IO */
|
||||
@@ -144,6 +326,12 @@ reg_dcdc3: dcdc3 {
|
||||
};
|
||||
};
|
||||
|
||||
- reg_dcdc3: dcdc3 {
|
||||
- regulator-always-on;
|
||||
- regulator-min-microvolt = <1100000>;
|
||||
- regulator-max-microvolt = <1100000>;
|
||||
- regulator-name = "vdd-dram";
|
||||
- };
|
||||
- };
|
||||
- };
|
||||
+&ir {
|
||||
+ pinctrl-names = "default";
|
||||
+ pinctrl-0 = <&ir_rx_pin>;
|
||||
+ status = "okay";
|
||||
};
|
||||
|
||||
+};
|
||||
+
|
||||
&spi0 {
|
||||
@@ -153,12 +473,77 @@ flash@0 {
|
||||
status = "okay";
|
||||
pinctrl-names = "default";
|
||||
@@ -158,12 +346,77 @@ flash@0 {
|
||||
};
|
||||
};
|
||||
|
||||
@@ -608,7 +356,7 @@ index 6a4f0da97233..5a550d904534 100644
|
||||
+
|
||||
+&uart5 {
|
||||
+ pinctrl-names = "default";
|
||||
+ pinctrl-0 = <&uart5_ph_pins>;
|
||||
+ pinctrl-0 = <&uart5_pins>;
|
||||
+ status = "disabled";
|
||||
+};
|
||||
+
|
||||
@@ -641,21 +389,11 @@ index 6a4f0da97233..5a550d904534 100644
|
||||
&usbotg {
|
||||
/*
|
||||
* PHY0 pins are connected to a USB-C socket, but a role switch
|
||||
@@ -179,3 +564,128 @@ &usbphy {
|
||||
@@ -184,3 +437,20 @@ &usbphy {
|
||||
usb1_vbus-supply = <®_vcc5v>;
|
||||
status = "okay";
|
||||
};
|
||||
+
|
||||
+&cpu0 {
|
||||
+ cpu-supply = <®_dcdc2>;
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&sid {
|
||||
+ ephy_calibration: ephy-calibration@2c {
|
||||
+ reg = <0x2c 0x2>;
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&cpu_critical {
|
||||
+ temperature = <100000>;
|
||||
@@ -672,104 +410,6 @@ index 6a4f0da97233..5a550d904534 100644
|
||||
+&ddr_temp_critical {
|
||||
+ temperature = <100000>;
|
||||
+};
|
||||
+
|
||||
+&pio {
|
||||
+ vcc-pc-supply = <®_dldo1>;
|
||||
+ vcc-pf-supply = <®_dldo1>;
|
||||
+ vcc-pg-supply = <®_aldo1>;
|
||||
+ vcc-ph-supply = <®_dldo1>;
|
||||
+ vcc-pi-supply = <®_dldo1>;
|
||||
+
|
||||
+ /omit-if-no-ref/
|
||||
+ i2c0_pi_pins: i2c0-pi-pins {
|
||||
+ pins = "PI5", "PI6";
|
||||
+ function = "i2c0";
|
||||
+ };
|
||||
+
|
||||
+ /omit-if-no-ref/
|
||||
+ i2c1_pi_pins: i2c1-pi-pins {
|
||||
+ pins = "PI7", "PI8";
|
||||
+ function = "i2c1";
|
||||
+ };
|
||||
+
|
||||
+ /omit-if-no-ref/
|
||||
+ i2c2_pi_pins: i2c2-pi-pins {
|
||||
+ pins = "PI9", "PI10";
|
||||
+ function = "i2c2";
|
||||
+ };
|
||||
+
|
||||
+ i2c3_pa_pins: i2c3-pa-pins {
|
||||
+ pins = "PA10", "PA11";
|
||||
+ function = "i2c3";
|
||||
+ bias-pull-up;
|
||||
+ };
|
||||
+
|
||||
+ /omit-if-no-ref/
|
||||
+ i2c4_ph_pins: i2c4-ph-pins {
|
||||
+ pins = "PH6", "PH7";
|
||||
+ function = "i2c4";
|
||||
+ };
|
||||
+
|
||||
+ /omit-if-no-ref/
|
||||
+ uart2_pi_pins: uart2-pi-pins {
|
||||
+ pins = "PI5", "PI6";
|
||||
+ function = "uart2";
|
||||
+ };
|
||||
+
|
||||
+ /omit-if-no-ref/
|
||||
+ uart3_pi_pins: uart3-pi-pins {
|
||||
+ pins = "PI9", "PI10";
|
||||
+ function = "uart3";
|
||||
+ };
|
||||
+
|
||||
+ /omit-if-no-ref/
|
||||
+ uart4_pi_pins: uart4-pi-pins {
|
||||
+ pins = "PI13", "PI14";
|
||||
+ function = "uart4";
|
||||
+ };
|
||||
+
|
||||
+ /omit-if-no-ref/
|
||||
+ uart5_ph_pins: uart5-ph-pins {
|
||||
+ pins = "PH2", "PH3";
|
||||
+ function = "uart5";
|
||||
+ };
|
||||
+
|
||||
+ /omit-if-no-ref/
|
||||
+ spi1_cs1_pin: spi1-cs1-pin {
|
||||
+ pins = "PH9";
|
||||
+ function = "spi1";
|
||||
+ };
|
||||
+
|
||||
+ /omit-if-no-ref/
|
||||
+ pwm1_ph_pin: pwm1-ph-pin {
|
||||
+ pins = "PH3";
|
||||
+ function = "pwm1";
|
||||
+ };
|
||||
+
|
||||
+ /omit-if-no-ref/
|
||||
+ pwm2_ph_pin: pwm2-ph-pin {
|
||||
+ pins = "PH2";
|
||||
+ function = "pwm2";
|
||||
+ };
|
||||
+
|
||||
+ /omit-if-no-ref/
|
||||
+ pwm3_ph_pin: pwm3-ph-pin {
|
||||
+ pins = "PH0";
|
||||
+ function = "pwm3";
|
||||
+ };
|
||||
+
|
||||
+ /omit-if-no-ref/
|
||||
+ pwm4_ph_pin: pwm4-ph-pin {
|
||||
+ pins = "PH1";
|
||||
+ function = "pwm4";
|
||||
+ };
|
||||
+
|
||||
+ /omit-if-no-ref/
|
||||
+ pwm5_pin: pwm5-pin {
|
||||
+ pins = "PA12";
|
||||
+ function = "pwm5";
|
||||
+ };
|
||||
+};
|
||||
--
|
||||
2.35.3
|
||||
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From bb7878b3cdbebd2e3c5975b65f92f59141bd76b9 Mon Sep 17 00:00:00 2001
|
||||
From: Jernej Skrabec <jernej.skrabec@gmail.com>
|
||||
Date: Fri, 15 Oct 2021 21:49:45 +0200
|
||||
Subject: drv:staging:media:sunxi:cedrus: add H616 variant
|
||||
|
||||
Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
|
||||
---
|
||||
drivers/staging/media/sunxi/cedrus/cedrus.c | 13 ++++++++++
|
||||
drivers/staging/media/sunxi/cedrus/cedrus.c | 13 +++++++++++++
|
||||
1 file changed, 13 insertions(+)
|
||||
|
||||
diff --git a/drivers/staging/media/sunxi/cedrus/cedrus.c b/drivers/staging/media/sunxi/cedrus/cedrus.c
|
||||
index 111111111111..222222222222 100644
|
||||
index 08f8d994c99c..191bb30ae1e8 100644
|
||||
--- a/drivers/staging/media/sunxi/cedrus/cedrus.c
|
||||
+++ b/drivers/staging/media/sunxi/cedrus/cedrus.c
|
||||
@@ -651,6 +651,15 @@ static const struct cedrus_variant sun50i_h6_cedrus_variant = {
|
||||
.mod_rate = 600000000,
|
||||
.mod_rate = 648000000,
|
||||
};
|
||||
|
||||
+static const struct cedrus_variant sun50i_h616_cedrus_variant = {
|
||||
@@ -40,5 +40,5 @@ index 111111111111..222222222222 100644
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, cedrus_dt_match);
|
||||
--
|
||||
Armbian
|
||||
2.35.3
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From 798259bd159149b069f7ce6bb2340f58bd872cd4 Mon Sep 17 00:00:00 2001
|
||||
From 6d80f39a376532c5d54fd72686534e2cd5d59652 Mon Sep 17 00:00:00 2001
|
||||
From: Radoslav <radoslavv@centrum.sk>
|
||||
Date: Sat, 15 Apr 2023 22:47:26 +0200
|
||||
Subject: enable TV Output on OrangePi Zero LTE
|
||||
@@ -31,9 +31,9 @@ Merged:
|
||||
drivers/clk/sunxi-ng/ccu-sun8i-h3.c | 14 ++-
|
||||
drivers/gpu/drm/sun4i/Makefile | 2 +-
|
||||
drivers/gpu/drm/sun4i/sun4i_tv.c | 35 ++++++-
|
||||
drivers/gpu/drm/sun4i/sun8i_mixer.c | 36 ++++++-
|
||||
drivers/gpu/drm/sun4i/sun8i_mixer.h | 5 +-
|
||||
16 files changed, 310 insertions(+), 14 deletions(-)
|
||||
drivers/gpu/drm/sun4i/sun8i_mixer.c | 30 +++++-
|
||||
drivers/gpu/drm/sun4i/sun8i_mixer.h | 2 +
|
||||
16 files changed, 305 insertions(+), 10 deletions(-)
|
||||
create mode 100644 arch/arm/boot/dts/allwinner/overlay/sun8i-h3-tve.dtso
|
||||
create mode 100644 arch/arm64/boot/dts/allwinner/overlay/sun50i-h5-tve.dtso
|
||||
|
||||
@@ -443,7 +443,7 @@ index c63e0871658e..fee2d680d2ca 100644
|
||||
+ remote-endpoint = <&tve_in_tcon1>;
|
||||
+};
|
||||
diff --git a/drivers/clk/sunxi-ng/ccu-sun8i-h3.c b/drivers/clk/sunxi-ng/ccu-sun8i-h3.c
|
||||
index eed11bb2d631..80650ec914fd 100644
|
||||
index 9bd05a0488ff..4a80c04c369b 100644
|
||||
--- a/drivers/clk/sunxi-ng/ccu-sun8i-h3.c
|
||||
+++ b/drivers/clk/sunxi-ng/ccu-sun8i-h3.c
|
||||
@@ -469,8 +469,18 @@ static SUNXI_CCU_M_WITH_MUX_GATE(tcon_clk, "tcon", tcon_parents,
|
||||
@@ -468,20 +468,20 @@ index eed11bb2d631..80650ec914fd 100644
|
||||
static const char * const deinterlace_parents[] = { "pll-periph0", "pll-periph1" };
|
||||
static SUNXI_CCU_M_WITH_MUX_GATE(deinterlace_clk, "deinterlace", deinterlace_parents,
|
||||
diff --git a/drivers/gpu/drm/sun4i/Makefile b/drivers/gpu/drm/sun4i/Makefile
|
||||
index 5e9dc9370584..3a7130623351 100644
|
||||
index 8ffddaa3e069..e557b9cd51ff 100644
|
||||
--- a/drivers/gpu/drm/sun4i/Makefile
|
||||
+++ b/drivers/gpu/drm/sun4i/Makefile
|
||||
@@ -19,7 +19,7 @@ sun8i-drm-hdmi-y += sun8i_hdmi_phy_clk.o
|
||||
|
||||
@@ -20,7 +20,7 @@ sun8i-drm-hdmi-y += sun8i_hdmi_phy_clk.o
|
||||
sun8i-mixer-y += sun8i_mixer.o sun8i_ui_layer.o \
|
||||
sun8i_vi_layer.o sun8i_ui_scaler.o \
|
||||
- sun8i_vi_scaler.o sun8i_csc.o
|
||||
+ sun8i_vi_scaler.o sun8i_csc.o sun4i_tv.o
|
||||
sun8i_vi_scaler.o sun8i_csc.o \
|
||||
- sun50i_fmt.o sun50i_afbc.o
|
||||
+ sun50i_fmt.o sun50i_afbc.o sun4i_tv.o
|
||||
|
||||
sun4i-tcon-y += sun4i_crtc.o
|
||||
sun4i-tcon-y += sun4i_tcon_dclk.o
|
||||
diff --git a/drivers/gpu/drm/sun4i/sun4i_tv.c b/drivers/gpu/drm/sun4i/sun4i_tv.c
|
||||
index ec65d9d59de7..d2235d5a7416 100644
|
||||
index cce4e38789b9..de3498ab2c58 100644
|
||||
--- a/drivers/gpu/drm/sun4i/sun4i_tv.c
|
||||
+++ b/drivers/gpu/drm/sun4i/sun4i_tv.c
|
||||
@@ -10,6 +10,7 @@
|
||||
@@ -570,12 +570,12 @@ index ec65d9d59de7..d2235d5a7416 100644
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, sun4i_tv_of_table);
|
||||
diff --git a/drivers/gpu/drm/sun4i/sun8i_mixer.c b/drivers/gpu/drm/sun4i/sun8i_mixer.c
|
||||
index c82adcb928b9..537a97599f93 100644
|
||||
index b8bd520a9292..b0f7df6fa883 100644
|
||||
--- a/drivers/gpu/drm/sun4i/sun8i_mixer.c
|
||||
+++ b/drivers/gpu/drm/sun4i/sun8i_mixer.c
|
||||
@@ -37,6 +37,12 @@ struct de2_fmt_info {
|
||||
|
||||
static bool hw_preconfigured;
|
||||
u32 de2_fmt;
|
||||
};
|
||||
|
||||
+static const u32 sun8i_rgb2yuv_coef[12] = {
|
||||
+ 0x00000107, 0x00000204, 0x00000064, 0x00004200,
|
||||
@@ -586,8 +586,8 @@ index c82adcb928b9..537a97599f93 100644
|
||||
static const struct de2_fmt_info de2_formats[] = {
|
||||
{
|
||||
.drm_fmt = DRM_FORMAT_ARGB8888,
|
||||
@@ -427,10 +433,29 @@ static void sun8i_mixer_mode_set(struct sunxi_engine *engine,
|
||||
interlaced ? "on" : "off");
|
||||
@@ -445,11 +451,30 @@ static u32 *sun8i_mixer_get_supported_fmts(struct sunxi_engine *engine, u32 *num
|
||||
return formats;
|
||||
}
|
||||
|
||||
+static void sun8i_mixer_apply_color_correction(struct sunxi_engine *engine)
|
||||
@@ -608,18 +608,16 @@ index c82adcb928b9..537a97599f93 100644
|
||||
+}
|
||||
+
|
||||
static const struct sunxi_engine_ops sun8i_engine_ops = {
|
||||
- .commit = sun8i_mixer_commit,
|
||||
- .layers_init = sun8i_layers_init,
|
||||
- .mode_set = sun8i_mixer_mode_set,
|
||||
+ .commit = sun8i_mixer_commit,
|
||||
+ .layers_init = sun8i_layers_init,
|
||||
+ .mode_set = sun8i_mixer_mode_set,
|
||||
.commit = sun8i_mixer_commit,
|
||||
.layers_init = sun8i_layers_init,
|
||||
.mode_set = sun8i_mixer_mode_set,
|
||||
.get_supported_fmts = sun8i_mixer_get_supported_fmts,
|
||||
+ .apply_color_correction = sun8i_mixer_apply_color_correction,
|
||||
+ .disable_color_correction = sun8i_mixer_disable_color_correction,
|
||||
};
|
||||
|
||||
static const struct regmap_config sun8i_mixer_regmap_config = {
|
||||
@@ -711,8 +736,9 @@ static const struct sun8i_mixer_cfg sun8i_h3_mixer0_cfg = {
|
||||
@@ -772,8 +797,9 @@ static const struct sun8i_mixer_cfg sun8i_h3_mixer0_cfg = {
|
||||
static const struct sun8i_mixer_cfg sun8i_h3_mixer1_cfg = {
|
||||
.ccsc = CCSC_MIXER1_LAYOUT,
|
||||
.mod_rate = 432000000,
|
||||
@@ -632,25 +630,15 @@ index c82adcb928b9..537a97599f93 100644
|
||||
};
|
||||
|
||||
diff --git a/drivers/gpu/drm/sun4i/sun8i_mixer.h b/drivers/gpu/drm/sun4i/sun8i_mixer.h
|
||||
index 68e2741b0962..7bc8efca6980 100644
|
||||
index 26b001164647..85e46e3c185b 100644
|
||||
--- a/drivers/gpu/drm/sun4i/sun8i_mixer.h
|
||||
+++ b/drivers/gpu/drm/sun4i/sun8i_mixer.h
|
||||
@@ -119,6 +119,10 @@
|
||||
/* format 20 is packed YVU444 10-bit */
|
||||
/* format 21 is packed YUV444 10-bit */
|
||||
|
||||
+/* The DCSC sub-engine is used to do color space conversation */
|
||||
+#define SUN8I_MIXER_DCSC_EN 0xb0000
|
||||
+#define SUN8I_MIXER_DCSC_COEF_REG(x) (0xb0010 + 0x4 * (x))
|
||||
+
|
||||
/*
|
||||
* Sub-engines listed bellow are unused for now. The EN registers are here only
|
||||
* to be used to disable these sub-engines.
|
||||
@@ -129,7 +133,6 @@
|
||||
#define SUN8I_MIXER_PEAK_EN 0xa6000
|
||||
@@ -134,6 +134,8 @@
|
||||
#define SUN8I_MIXER_ASE_EN 0xa8000
|
||||
#define SUN8I_MIXER_FCC_EN 0xaa000
|
||||
-#define SUN8I_MIXER_DCSC_EN 0xb0000
|
||||
#define SUN8I_MIXER_DCSC_EN 0xb0000
|
||||
+/* The DCSC sub-engine is used to do color space conversation */
|
||||
+#define SUN8I_MIXER_DCSC_COEF_REG(x) (0xb0010 + 0x4 * (x))
|
||||
|
||||
#define SUN50I_MIXER_FCE_EN 0x70000
|
||||
#define SUN50I_MIXER_PEAK_EN 0x70800
|
||||
|
||||
@@ -153,7 +153,7 @@
|
||||
patches.armbian/ARM-dts-sun8i-nanopiduo2-enable-ethernet.patch
|
||||
patches.armbian/arm-dts-sun8i-h3-reduce-opp-microvolt-to-prevent-not-supported-.patch
|
||||
patches.armbian/arm64-dts-sun50i-h5-enable-power-button-for-orangepi-prime.patch
|
||||
- patches.armbian/enable-TV-Output-on-OrangePi-Zero-LTE.patch
|
||||
patches.armbian/enable-TV-Output-on-OrangePi-Zero-LTE.patch
|
||||
patches.armbian/arm64-dts-allwinner-h6-Add-AC200-EPHY-nodes.patch
|
||||
patches.armbian/arm64-dts-allwinner-h6-tanix-enable-Ethernet.patch
|
||||
patches.armbian/arm64-dts-allwinner-h6-add-AC200-codec-nodes.patch
|
||||
@@ -166,7 +166,7 @@
|
||||
patches.armbian/arm64-dts-h616-add-hdmi-support-for-zero2-and-zero3.patch
|
||||
patches.armbian/arm64-sun50i-h616-Add-i2c-2-3-4-uart-2-5-pins.patch
|
||||
patches.armbian/arm64-dts-h616-8-Add-overlays-i2c-234-ph-pg-uart-25-ph-pg.patch
|
||||
- patches.armbian/arm64-dts-sun50i-h618-orangepi-zero2w-Add-missing-nodes.patch
|
||||
patches.armbian/arm64-dts-sun50i-h618-orangepi-zero2w-Add-missing-nodes.patch
|
||||
patches.armbian/add-dtb-overlay-for-zero2w.patch
|
||||
patches.armbian/Sound-for-H616-H618-Allwinner-SOCs.patch
|
||||
patches.armbian/ARM64-dts-sun50i-h616-BigTreeTech-CB1-Enable-HDMI.patch
|
||||
|
||||
@@ -459,7 +459,7 @@
|
||||
patches.armbian/ARM-dts-sun8i-nanopiduo2-enable-ethernet.patch
|
||||
patches.armbian/arm-dts-sun8i-h3-reduce-opp-microvolt-to-prevent-not-supported-.patch
|
||||
patches.armbian/arm64-dts-sun50i-h5-enable-power-button-for-orangepi-prime.patch
|
||||
- patches.armbian/enable-TV-Output-on-OrangePi-Zero-LTE.patch
|
||||
patches.armbian/enable-TV-Output-on-OrangePi-Zero-LTE.patch
|
||||
patches.armbian/arm64-dts-allwinner-h6-Add-AC200-EPHY-nodes.patch
|
||||
patches.armbian/arm64-dts-allwinner-h6-tanix-enable-Ethernet.patch
|
||||
patches.armbian/arm64-dts-allwinner-h6-add-AC200-codec-nodes.patch
|
||||
@@ -472,7 +472,7 @@
|
||||
patches.armbian/arm64-dts-h616-add-hdmi-support-for-zero2-and-zero3.patch
|
||||
patches.armbian/arm64-sun50i-h616-Add-i2c-2-3-4-uart-2-5-pins.patch
|
||||
patches.armbian/arm64-dts-h616-8-Add-overlays-i2c-234-ph-pg-uart-25-ph-pg.patch
|
||||
- patches.armbian/arm64-dts-sun50i-h618-orangepi-zero2w-Add-missing-nodes.patch
|
||||
patches.armbian/arm64-dts-sun50i-h618-orangepi-zero2w-Add-missing-nodes.patch
|
||||
patches.armbian/add-dtb-overlay-for-zero2w.patch
|
||||
patches.armbian/Sound-for-H616-H618-Allwinner-SOCs.patch
|
||||
patches.armbian/ARM64-dts-sun50i-h616-BigTreeTech-CB1-Enable-HDMI.patch
|
||||
|
||||
Reference in New Issue
Block a user