diff --git a/buildroot-external/board/jethome/patches/kernel/arm-64-current/0005-jethome-jethub-j80-dts-arm64-add-dts-files.patch b/buildroot-external/board/jethome/patches/kernel/arm-64-current/0005-jethome-jethub-j80-dts-arm64-add-dts-files.patch index 5de89b0a076..c3b9900599d 100644 --- a/buildroot-external/board/jethome/patches/kernel/arm-64-current/0005-jethome-jethub-j80-dts-arm64-add-dts-files.patch +++ b/buildroot-external/board/jethome/patches/kernel/arm-64-current/0005-jethome-jethub-j80-dts-arm64-add-dts-files.patch @@ -3,12 +3,11 @@ new file mode 100644 index 000000000..cf0e6e742 --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905w-jethome-jethub-j80.dts -@@ -0,0 +1,381 @@ +@@ -0,0 +1,373 @@ + +/dts-v1/; + -+#include "meson-gxl-s905x.dtsi" -+#include "meson-gx-p23x-q20x.dtsi" ++#include "meson-gxl.dtsi" + +/ { + compatible = "amlogic,p281", "amlogic,s905w", "amlogic,meson-gxl"; @@ -142,10 +141,6 @@ index 000000000..cf0e6e742 + clock-names = "ext_clock"; + }; + -+ sound { -+ status = "disabled"; -+ } -+ + efusekey: efusekey { + keynum = <5>; + key0 = <&key_0>; @@ -376,12 +371,9 @@ index 000000000..cf0e6e742 + }; +}; + -+&acodec { -+ status = "disabled"; -+}; -+&hdmi_tx { -+ status = "disabled"; -+}; -+&ir { -+ status = "disabled"; ++ ++/* S905X only has access to its internal PHY */ ++ðmac { ++ phy-mode = "rmii"; ++ phy-handle = <&internal_phy>; +}; diff --git a/buildroot-external/board/jethome/patches/kernel/arm-64-current/0005-jethome-jethub-j80-dts-arm64-add-dts-files.patch_enabled_ir_audio_hdmi b/buildroot-external/board/jethome/patches/kernel/arm-64-current/0005-jethome-jethub-j80-dts-arm64-add-dts-files.patch_enabled_ir_audio_hdmi deleted file mode 100644 index 00ba701be90..00000000000 --- a/buildroot-external/board/jethome/patches/kernel/arm-64-current/0005-jethome-jethub-j80-dts-arm64-add-dts-files.patch_enabled_ir_audio_hdmi +++ /dev/null @@ -1,374 +0,0 @@ -diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905w-jethome-jethub-j80.dts b/arch/arm64/boot/dts/amlogic/meson-gxl-s905w-jethome-jethub-j80.dts -new file mode 100644 -index 000000000..cf0e6e742 ---- /dev/null -+++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905w-jethome-jethub-j80.dts -@@ -0,0 +1,368 @@ -+ -+/dts-v1/; -+ -+#include "meson-gxl-s905x.dtsi" -+#include "meson-gx-p23x-q20x.dtsi" -+ -+/ { -+ compatible = "amlogic,p281", "amlogic,s905w", "amlogic,meson-gxl"; -+ model = "JetHome JetHub J80"; -+ amlogic-dt-id = "gxl_j80_1g"; -+ -+ /* 1G RAM */ -+ memory@0 { -+ device_type = "memory"; -+ reg = <0x0 0x0 0x0 0x40000000>; -+ }; -+ partitions: partitions{ -+ parts = <8>; -+ part-0 = <&boot>; -+ part-1 = <&bootstate>; -+ part-2 = <&kernela>; -+ part-3 = <&systema>; -+ part-4 = <&kernelb>; -+ part-5 = <&systemb>; -+ part-6 = <&overlay>; -+ part-7 = <&data>; -+ -+ boot:boot { -+ pname = "boot"; -+ size = <0x0 0x4000000>; -+ mask = <1>; -+ }; -+ bootstate:bootstate { -+ pname = "bootstate"; -+ size = <0x0 0x800000>; -+ mask = <4>; -+ }; -+ kernela:kernela { -+ pname = "kernela"; -+ size = <0x0 0x4000000>; -+ mask = <4>; -+ }; -+ systema:systema { -+ pname = "systema"; -+ size = <0x0 0x10000000>; -+ mask = <4>; -+ }; -+ kernelb:kernelb { -+ pname = "kernelb"; -+ size = <0x0 0x4000000>; -+ mask = <4>; -+ }; -+ systemb:systemb { -+ pname = "systemb"; -+ size = <0x0 0x10000000>; -+ mask = <4>; -+ }; -+ overlay:overlay { -+ pname = "overlay"; -+ size = <0x0 0x8000000>; -+ mask = <4>; -+ }; -+ data:data { -+ pname = "data"; -+ size = <0xffffffff 0xffffffff>; -+ mask = <4>; -+ }; -+ }; -+ reserved-memory { -+ #address-cells = <2>; -+ #size-cells = <2>; -+ ranges; -+ linux,cma { -+ compatible = "shared-dma-pool"; -+ reusable; size = <0x0 0x400000>; -+ alignment = <0x0 0x400000>; -+ linux,cma-default; -+ }; -+ }; -+ aliases { -+ serial0 = &uart_AO; /* Console */ -+ serial1 = &uart_A; /* Bluetooth */ -+ serial2 = &uart_AO_B; /* Wireless module 1 */ -+ serial3 = &uart_C; /* Wireless module 2 */ -+ ethernet0 = ðmac; -+ }; -+ -+ chosen { -+ stdout-path = "serial0:115200n8"; -+ }; -+ -+ vddio_ao18: regulator-vddio_ao18 { -+ compatible = "regulator-fixed"; -+ regulator-name = "VDDIO_AO18"; -+ regulator-min-microvolt = <1800000>; -+ regulator-max-microvolt = <1800000>; -+ }; -+ -+ vddio_boot: regulator-vddio_boot { -+ compatible = "regulator-fixed"; -+ regulator-name = "VDDIO_BOOT"; -+ regulator-min-microvolt = <1800000>; -+ regulator-max-microvolt = <1800000>; -+ }; -+ -+ vddao_3v3: regulator-vddao_3v3 { -+ compatible = "regulator-fixed"; -+ regulator-name = "VDDAO_3V3"; -+ regulator-min-microvolt = <3300000>; -+ regulator-max-microvolt = <3300000>; -+ }; -+ -+ vcc_3v3: regulator-vcc_3v3 { -+ compatible = "regulator-fixed"; -+ regulator-name = "VCC_3V3"; -+ regulator-min-microvolt = <3300000>; -+ regulator-max-microvolt = <3300000>; -+ }; -+ -+ emmc_pwrseq: emmc-pwrseq { -+ compatible = "mmc-pwrseq-emmc"; -+ reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>; -+ }; -+ -+ wifi32k: wifi32k { -+ compatible = "pwm-clock"; -+ #clock-cells = <0>; -+ clock-frequency = <32768>; -+ pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */ -+ }; -+ -+ sdio_pwrseq: sdio-pwrseq { -+ compatible = "mmc-pwrseq-simple"; -+ reset-gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>; -+ clocks = <&wifi32k>; -+ clock-names = "ext_clock"; -+ }; -+ -+ efusekey: efusekey { -+ keynum = <5>; -+ key0 = <&key_0>; -+ key1 = <&key_1>; -+ key2 = <&key_2>; -+ key3 = <&key_3>; -+ key4 = <&key_4>; -+ -+ key_0: key_0 { -+ keyname = "mac"; -+ offset = <0>; -+ size = <6>; -+ }; -+ key_1: key_1 { -+ keyname = "mac_bt"; -+ offset = <6>; -+ size = <6>; -+ }; -+ key_2: key_2 { -+ keyname = "mac_wifi"; -+ offset = <12>; -+ size = <6>; -+ }; -+ key_3: key_3 { -+ keyname = "usid"; -+ offset = <18>; -+ size = <32>; -+ }; -+ key_4: key_4 { -+ keyname = "serial"; -+ offset = <50>; -+ size = <32>; -+ }; -+ }; //End efusekey -+ -+ unifykey { -+ compatible = "amlogic, unifykey"; -+ status = "ok"; -+ unifykey-num = <6>; -+ unifykey-index-0 = <&keysn_0>; -+ unifykey-index-1 = <&keysn_1>; -+ unifykey-index-2 = <&keysn_2>; -+ unifykey-index-3 = <&keysn_3>; -+ unifykey-index-4 = <&keysn_4>; -+ unifykey-index-5 = <&keysn_5>; -+ -+ keysn_0: key_0 { -+ key-name = "usid"; -+ key-device = "efuse"; -+ key-permit = "read","write"; -+ }; -+ keysn_1: key_1 { -+ key-name = "mac"; -+ key-device = "efuse"; -+ key-permit = "read","write"; -+ }; -+ keysn_2: key_2 { -+ key-name = "mac_bt"; -+ key-device = "normal"; -+ key-permit = "read","write","del"; -+ key-type = "mac"; -+ }; -+ keysn_3: key_3 { -+ key-name = "mac_wifi"; -+ key-device = "normal"; -+ key-permit = "read","write","del"; -+ key-type = "mac"; -+ }; -+ keysn_4: key_4 { -+ key-name = "serial"; -+ key-device = "efuse"; -+ key-permit = "read","write"; -+ }; -+ keysn_5:key_5 { -+ key-name = "deviceid"; -+ key-device = "normal"; -+ key-permit = "read","write","del"; -+ }; -+ }; //End unifykey -+}; -+ -+&efuse { -+ status = "okay"; -+ compatible = "amlogic,meson-gxbb-efuse", "amlogic, efuse"; -+ read_cmd = <0x82000030>; -+ write_cmd = <0x82000031>; -+ get_max_cmd = <0x82000033>; -+ key = <&efusekey>; -+ clock-names = "efuse_clk"; -+}; -+ -+&pwm_ef { -+ status = "okay"; -+ pinctrl-0 = <&pwm_e_pins>; -+ pinctrl-names = "default"; -+ clocks = <&clkc CLKID_FCLK_DIV4>; -+ clock-names = "clkin0"; -+}; -+ -+&saradc { -+ status = "okay"; -+ vref-supply = <&vddio_ao18>; -+}; -+ -+/* Wireless SDIO Module */ -+&sd_emmc_a { -+ status = "okay"; -+ pinctrl-0 = <&sdio_pins>; -+ pinctrl-1 = <&sdio_clk_gate_pins>; -+ pinctrl-names = "default", "clk-gate"; -+ #address-cells = <1>; -+ #size-cells = <0>; -+ -+ bus-width = <4>; -+ cap-sd-highspeed; -+ max-frequency = <50000000>; -+ -+ non-removable; -+ disable-wp; -+ -+ /* WiFi firmware requires power to be kept while in suspend */ -+ keep-power-in-suspend; -+ -+ mmc-pwrseq = <&sdio_pwrseq>; -+ -+ vmmc-supply = <&vddao_3v3>; -+ vqmmc-supply = <&vddio_boot>; -+}; -+ -+/* SD card */ -+&sd_emmc_b { -+ status = "okay"; -+ pinctrl-0 = <&sdcard_pins>; -+ pinctrl-1 = <&sdcard_clk_gate_pins>; -+ pinctrl-names = "default", "clk-gate"; -+ -+ bus-width = <4>; -+ cap-sd-highspeed; -+ max-frequency = <50000000>; -+ disable-wp; -+ -+ cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>; -+ -+ vmmc-supply = <&vddao_3v3>; -+ vqmmc-supply = <&vddio_boot>; -+}; -+ -+/* eMMC */ -+&sd_emmc_c { -+ status = "okay"; -+ pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>; -+ pinctrl-1 = <&emmc_clk_gate_pins>; -+ pinctrl-names = "default", "clk-gate"; -+ -+ bus-width = <8>; -+ cap-mmc-highspeed; -+ max-frequency = <200000000>; -+ non-removable; -+ disable-wp; -+ mmc-ddr-1_8v; -+ mmc-hs200-1_8v; -+ -+ mmc-pwrseq = <&emmc_pwrseq>; -+ vmmc-supply = <&vcc_3v3>; -+ vqmmc-supply = <&vddio_boot>; -+}; -+ -+/* Console UART */ -+&uart_AO { -+ status = "okay"; -+ pinctrl-0 = <&uart_ao_a_pins>; -+ pinctrl-names = "default"; -+}; -+ -+&usb0 { -+ status = "okay"; -+}; -+ -+/* S905X only has access to its internal PHY */ -+ðmac { -+ status = "okay"; -+ phy-mode = "rmii"; -+ phy-handle = <&internal_phy>; -+}; -+ -+&internal_phy { -+ status = "okay"; -+ pinctrl-0 = <ð_link_led_pins>, <ð_act_led_pins>; -+ pinctrl-names = "default"; -+}; -+ -+&uart_A { -+ status = "okay"; -+ pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>; -+ pinctrl-names = "default"; -+ // uart-has-rtscts; -+ -+ /* -+ bluetooth { -+ compatible = "realtek,rtl8822cs-bt"; -+ enable-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>; -+ }; -+ */ -+}; -+ -+&uart_C { -+ status = "okay"; -+ pinctrl-0 = <&uart_c_pins>; -+ pinctrl-names = "default"; -+}; -+ -+&uart_AO_B { -+ status = "okay"; -+ pinctrl-0 = <&uart_ao_b_pins>, <&uart_ao_b_cts_rts_pins>; -+ pinctrl-names = "default"; -+ uart-has-rtscts; -+}; -+ -+&i2c_B { -+ status = "okay"; -+ pinctrl-names="default"; -+ pinctrl-0=<&i2c_b_pins>; -+ -+ pcf8563: pcf8563@51 { -+ compatible = "nxp,pcf8563"; -+ reg = <0x51>; -+ status = "okay"; -+ }; -+}; -+ diff --git a/buildroot-external/board/jethome/patches/kernel/arm-64-current/0007-Fix-cma.patch b/buildroot-external/board/jethome/patches/kernel/arm-64-current/0007-Fix-cma.patch new file mode 100644 index 00000000000..2a9764114a8 --- /dev/null +++ b/buildroot-external/board/jethome/patches/kernel/arm-64-current/0007-Fix-cma.patch @@ -0,0 +1,25 @@ +From c3b53a1f97d2ac88b6ec060c15759b8da4bbb652 Mon Sep 17 00:00:00 2001 +From: Vyacheslav Bocharov +Date: Sun, 31 Jan 2021 15:28:20 +0300 +Subject: [PATCH] Fix cma + +--- + arch/arm64/boot/dts/amlogic/meson-gx.dtsi | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/arch/arm64/boot/dts/amlogic/meson-gx.dtsi b/arch/arm64/boot/dts/amlogic/meson-gx.dtsi +index 5c6770b4dd..9c72e8c42d 100644 +--- a/arch/arm64/boot/dts/amlogic/meson-gx.dtsi ++++ b/arch/arm64/boot/dts/amlogic/meson-gx.dtsi +@@ -51,7 +51,7 @@ secmon_reserved_bl32: secmon@5300000 { + linux,cma { + compatible = "shared-dma-pool"; + reusable; +- size = <0x0 0x10000000>; ++ size = <0x0 0x400000>; + alignment = <0x0 0x400000>; + linux,cma-default; + }; +-- +2.25.1 + diff --git a/buildroot-external/package/rtl8822cs/rtl8822cs.mk b/buildroot-external/package/rtl8822cs/rtl8822cs.mk index 346dbe55e2a..4285ace77e1 100644 --- a/buildroot-external/package/rtl8822cs/rtl8822cs.mk +++ b/buildroot-external/package/rtl8822cs/rtl8822cs.mk @@ -4,7 +4,7 @@ # ################################################################################ -RTL8822CS_VERSION = 65af8fc4a72aa6ebcb02fbe3a5ea6f6886eeaebe +RTL8822CS_VERSION = 010b40a050bbf9164c914169e79d506888839e98 RTL8822CS_SITE = $(call github,adeepn,rtl88x2cs,$(RTL8822CS_VERSION)) RTL8822CS_LICENSE = Unknown #RTL8822CS_LICENSE_FILES = COPYING