build/patch/kernel/archive/sunxi-5.10/board-a64-nanopi-a64-add-wifi-led-audio-usb.patch

84 lines
1.5 KiB
Diff
Raw Normal View History

diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts
index e58db8a6c..0cf3d2e61 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts
@@ -47,6 +47,20 @@ wifi_pwrseq: wifi_pwrseq {
clock-names = "ext_clock";
reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */
};
+
+ leds {
+ compatible = "gpio-leds";
+
+ blue {
+ label = "nanopi-a64:blue:status";
+ gpios = <&pio 3 24 GPIO_ACTIVE_LOW>; /* PD24 */
+ };
+ };
+
+ wifi_pwrseq: wifi_pwrseq {
+ compatible = "mmc-pwrseq-simple";
+ reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */
+ };
};
&cpu0 {
@@ -137,6 +151,24 @@ rtl8189etv: wifi@1 {
};
};
+&mmc1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&mmc1_pins>;
+ vmmc-supply = <&reg_dcdc1>;
+ vqmmc-supply = <&reg_dldo4>;
+ mmc-pwrseq = <&wifi_pwrseq>;
+ bus-width = <4>;
+ non-removable;
+ status = "okay";
+
+ rtl8189etv: wifi@1 {
+ reg = <1>;
+ interrupt-parent = <&r_pio>;
+ interrupts = <0 3 IRQ_TYPE_LEVEL_LOW>; /* PL3 */
+ interrupt-names = "host-wake";
+ };
+};
+
&ohci0 {
status = "okay";
};
@@ -261,3 +293,32 @@ &uart0 {
&usbphy {
status = "okay";
};
+
+&sound {
+status = "okay";
+};
+
+&hdmi_sound {
+status = "okay";
+};
+
+&usb_otg {
+dr_mode = "host";
+status = "okay";
+};
+
+&i2s2 {
+status = "okay";
+};
+
+&dai {
+status = "okay";
+};
+
+&codec {
+status = "okay";
+};
+
+&codec_analog {
+status = "okay";
+};