From 82965e1bc66a18ab9ca2433dde30fb2ce6ee4b76 Mon Sep 17 00:00:00 2001 From: Marek Belisko Date: Tue, 24 Oct 2023 11:58:02 +0200 Subject: [PATCH] linux-mainline: Add version 6.5.8 Refresh patches with new allwinner prefix. Signed-off-by: Marek Belisko --- ...1-dts-orangepi-zero-Add-wifi-support.patch | 100 ++++++++++++++++ ...ts-nanopi-neo-air-Add-camera-support.patch | 113 ++++++++++++++++++ ...nanapi-m2-zero-Enforce-consistent-MM.patch | 30 +++++ ...m64-Consistent-nodes-for-mmc-devices.patch | 27 +++++ recipes-kernel/linux/linux-mainline_6.5.8.bb | 8 ++ 5 files changed, 278 insertions(+) create mode 100644 recipes-kernel/linux/linux-mainline/6.5/0001-dts-orangepi-zero-Add-wifi-support.patch create mode 100644 recipes-kernel/linux/linux-mainline/6.5/0002-dts-nanopi-neo-air-Add-camera-support.patch create mode 100644 recipes-kernel/linux/linux-mainline/6.5/0003-dts-allwinner-bananapi-m2-zero-Enforce-consistent-MM.patch create mode 100644 recipes-kernel/linux/linux-mainline/6.5/0004-dts-allwinner-bananapi-m64-Consistent-nodes-for-mmc-devices.patch create mode 100644 recipes-kernel/linux/linux-mainline_6.5.8.bb diff --git a/recipes-kernel/linux/linux-mainline/6.5/0001-dts-orangepi-zero-Add-wifi-support.patch b/recipes-kernel/linux/linux-mainline/6.5/0001-dts-orangepi-zero-Add-wifi-support.patch new file mode 100644 index 0000000..6544ecf --- /dev/null +++ b/recipes-kernel/linux/linux-mainline/6.5/0001-dts-orangepi-zero-Add-wifi-support.patch @@ -0,0 +1,100 @@ +From a9bad790ae9a9e9befbe8e8938b6baca84ee5138 Mon Sep 17 00:00:00 2001 +From: Marek Belisko +Date: Tue, 24 Oct 2023 10:40:52 +0200 +Subject: [PATCH] dts: orangepi-zero: Add wifi support + +Signed-off-by: Marek Belisko +--- + .../allwinner/sun8i-h2-plus-orangepi-zero.dts | 46 +++++++++++++++---- + 1 file changed, 37 insertions(+), 9 deletions(-) + +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 3706216ff..ca94e313f 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 +@@ -80,13 +80,15 @@ status_led { + }; + }; + +- reg_vcc_wifi: reg_vcc_wifi { ++ vdd_wifi: vdd_wifi { + compatible = "regulator-fixed"; +- regulator-min-microvolt = <3300000>; +- regulator-max-microvolt = <3300000>; +- regulator-name = "vcc-wifi"; +- enable-active-high; ++ regulator-name = "wifi"; ++ regulator-min-microvolt = <1800000>; ++ regulator-max-microvolt = <1800000>; + gpio = <&pio 0 20 GPIO_ACTIVE_HIGH>; ++ startup-delay-us = <70000>; ++ enable-active-high; ++ + }; + + reg_vdd_cpux: vdd-cpux-regulator { +@@ -105,10 +107,12 @@ reg_vdd_cpux: vdd-cpux-regulator { + states = <1100000 0>, <1300000 1>; + }; + +- wifi_pwrseq: wifi_pwrseq { ++ pwrseq_wifi: pwrseq_wifi { + compatible = "mmc-pwrseq-simple"; ++ pinctrl-names = "default"; ++ pinctrl-0 = <&wifi_rst>; + reset-gpios = <&r_pio 0 7 GPIO_ACTIVE_LOW>; +- post-power-on-delay-ms = <200>; ++ post-power-on-delay-ms = <50>; + }; + }; + +@@ -139,9 +143,11 @@ &mmc0 { + }; + + &mmc1 { +- vmmc-supply = <®_vcc_wifi>; +- mmc-pwrseq = <&wifi_pwrseq>; ++ vmmc-supply = <®_vcc3v3>; ++ vqmmc-supply = <&vdd_wifi>; ++ mmc-pwrseq = <&pwrseq_wifi>; + bus-width = <4>; ++ max-frequency = <16000000>; + non-removable; + status = "okay"; + +@@ -151,6 +157,13 @@ &mmc1 { + */ + xr819: sdio_wifi@1 { + reg = <1>; ++ compatible = "xradio,xr819"; ++ pinctrl-names = "default"; ++ pinctrl-0 = <&wifi_wake>; ++ interrupt-parent = <&pio>; ++ interrupts = <6 10 IRQ_TYPE_EDGE_RISING>; ++ interrupt-names = "host-wake"; ++ local-mac-address = [dc 44 6d c0 ff ee]; + }; + }; + +@@ -207,3 +220,18 @@ &usbphy { + status = "okay"; + usb0_id_det-gpios = <&pio 6 12 GPIO_ACTIVE_HIGH>; /* PG12 */ + }; ++ ++&pio { ++ wifi_wake: wifi_wake { ++ pins = "PG10"; ++ function = "gpio_in"; ++ }; ++}; ++ ++&r_pio { ++ wifi_rst: wifi_rst { ++ pins = "PL7"; ++ function = "gpio_out"; ++ }; ++}; ++ +-- +2.25.1 + diff --git a/recipes-kernel/linux/linux-mainline/6.5/0002-dts-nanopi-neo-air-Add-camera-support.patch b/recipes-kernel/linux/linux-mainline/6.5/0002-dts-nanopi-neo-air-Add-camera-support.patch new file mode 100644 index 0000000..62b2f58 --- /dev/null +++ b/recipes-kernel/linux/linux-mainline/6.5/0002-dts-nanopi-neo-air-Add-camera-support.patch @@ -0,0 +1,113 @@ +From e0d786f5465d2e2d977696cf0d02c70b78402291 Mon Sep 17 00:00:00 2001 +From: Marek Belisko +Date: Tue, 24 Oct 2023 10:42:36 +0200 +Subject: [PATCH] dts:nanopi-neo-air: Add camera support + +Signed-off-by: Marek Belisko +--- + .../dts/allwinner/sun8i-h3-nanopi-neo-air.dts | 85 +++++++++++++++++++ + 1 file changed, 85 insertions(+) + +diff --git a/arch/arm/boot/dts/allwinner/sun8i-h3-nanopi-neo-air.dts b/arch/arm/boot/dts/allwinner/sun8i-h3-nanopi-neo-air.dts +index 9e1a33f94..7a05eff33 100644 +--- a/arch/arm/boot/dts/allwinner/sun8i-h3-nanopi-neo-air.dts ++++ b/arch/arm/boot/dts/allwinner/sun8i-h3-nanopi-neo-air.dts +@@ -77,6 +77,39 @@ wifi_pwrseq: wifi_pwrseq { + compatible = "mmc-pwrseq-simple"; + reset-gpios = <&r_pio 0 7 GPIO_ACTIVE_LOW>; /* PL7 */ + }; ++ ++ cam_xclk: cam-xclk { ++ #clock-cells = <0>; ++ compatible = "fixed-clock"; ++ clock-frequency = <24000000>; ++ clock-output-names = "cam-xclk"; ++ }; ++ ++ reg_cam_avdd: cam-avdd { ++ compatible = "regulator-fixed"; ++ regulator-name = "cam-avdd"; ++ regulator-min-microvolt = <2800000>; ++ regulator-max-microvolt = <2800000>; ++ vin-supply = <®_vcc3v3>; ++ }; ++ ++ reg_cam_dovdd: cam-dovdd { ++ compatible = "regulator-fixed"; ++ regulator-name = "cam-dovdd"; ++ regulator-min-microvolt = <1800000>; ++ regulator-max-microvolt = <1800000>; ++ vin-supply = <®_vcc3v3>; ++ }; ++ ++ reg_cam_dvdd: cam-dvdd { ++ compatible = "regulator-fixed"; ++ regulator-name = "cam-dvdd"; ++ regulator-min-microvolt = <1500000>; ++ regulator-max-microvolt = <1500000>; ++ vin-supply = <®_vcc3v3>; ++ }; ++ ++ + }; + + &mmc0 { +@@ -141,3 +174,55 @@ &usbphy { + /* USB VBUS is always on */ + status = "okay"; + }; ++ ++&csi { ++ status = "okay"; ++ ++ port { ++ #address-cells = <1>; ++ #size-cells = <0>; ++ ++ /* Parallel bus endpoint */ ++ csi_from_ov5640: endpoint { ++ remote-endpoint = <&ov5640_to_csi>; ++ bus-width = <8>; ++ data-shift = <2>; ++ hsync-active = <1>; /* Active high */ ++ vsync-active = <0>; /* Active low */ ++ data-active = <1>; /* Active high */ ++ pclk-sample = <1>; /* Rising */ ++ }; ++ }; ++}; ++ ++&i2c2 { ++ status = "okay"; ++ ++ ov5640: camera@3c { ++ compatible = "ovti,ov5640"; ++ reg = <0x3c>; ++ clocks = <&cam_xclk>; ++ clock-names = "xclk"; ++ ++ reset-gpios = <&pio 4 14 GPIO_ACTIVE_LOW>; ++ powerdown-gpios = <&pio 4 15 GPIO_ACTIVE_HIGH>; ++ AVDD-supply = <®_cam_avdd>; ++ DOVDD-supply = <®_cam_dovdd>; ++ DVDD-supply = <®_cam_dvdd>; ++ ++ port { ++ ov5640_to_csi: endpoint { ++ remote-endpoint = <&csi_from_ov5640>; ++ bus-width = <8>; ++ data-shift = <2>; ++ hsync-active = <1>; /* Active high */ ++ vsync-active = <0>; /* Active low */ ++ data-active = <1>; /* Active high */ ++ pclk-sample = <1>; /* Rising */ ++ }; ++ }; ++ }; ++}; ++&i2c2_pins { ++ bias-pull-up; ++}; +-- +2.25.1 + diff --git a/recipes-kernel/linux/linux-mainline/6.5/0003-dts-allwinner-bananapi-m2-zero-Enforce-consistent-MM.patch b/recipes-kernel/linux/linux-mainline/6.5/0003-dts-allwinner-bananapi-m2-zero-Enforce-consistent-MM.patch new file mode 100644 index 0000000..d8d2b05 --- /dev/null +++ b/recipes-kernel/linux/linux-mainline/6.5/0003-dts-allwinner-bananapi-m2-zero-Enforce-consistent-MM.patch @@ -0,0 +1,30 @@ +From 7d7f32460702e99cab48909bb85ed84b67e65062 Mon Sep 17 00:00:00 2001 +From: Marek Belisko +Date: Tue, 24 Oct 2023 10:43:55 +0200 +Subject: [PATCH] dts: allwinner: bananapi-m2-zero: Enforce consistent MMC + numbering + +Enforce MMC number (sometimes the order was wrong and the device does not boot). + +Signed-off-by: Marek Belisko +--- + arch/arm/boot/dts/allwinner/sun8i-h2-plus-bananapi-m2-zero.dts | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/arch/arm/boot/dts/allwinner/sun8i-h2-plus-bananapi-m2-zero.dts b/arch/arm/boot/dts/allwinner/sun8i-h2-plus-bananapi-m2-zero.dts +index d729b7c70..410a79487 100644 +--- a/arch/arm/boot/dts/allwinner/sun8i-h2-plus-bananapi-m2-zero.dts ++++ b/arch/arm/boot/dts/allwinner/sun8i-h2-plus-bananapi-m2-zero.dts +@@ -20,6 +20,9 @@ / { + aliases { + serial0 = &uart0; + serial1 = &uart1; ++ mmc0 = &mmc0; ++ mmc1 = &mmc1; ++ mmc2 = &mmc2; + }; + + chosen { +-- +2.25.1 + diff --git a/recipes-kernel/linux/linux-mainline/6.5/0004-dts-allwinner-bananapi-m64-Consistent-nodes-for-mmc-devices.patch b/recipes-kernel/linux/linux-mainline/6.5/0004-dts-allwinner-bananapi-m64-Consistent-nodes-for-mmc-devices.patch new file mode 100644 index 0000000..7b37762 --- /dev/null +++ b/recipes-kernel/linux/linux-mainline/6.5/0004-dts-allwinner-bananapi-m64-Consistent-nodes-for-mmc-devices.patch @@ -0,0 +1,27 @@ +From f487f62babb11d014da7a0b58a0fcdf6d217a812 Mon Sep 17 00:00:00 2001 +From: Marek Belisko +Date: Thu, 11 May 2023 11:18:33 +0200 +Subject: [PATCH] bananapi-m64: Consistent nodes for mmc devices + +Signed-off-by: Marek Belisko +--- + arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts +index e6d5bc0f7..39a28aad8 100644 +--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts ++++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts +@@ -16,6 +16,9 @@ aliases { + ethernet0 = &emac; + serial0 = &uart0; + serial1 = &uart1; ++ mmc0 = &mmc0; ++ mmc1 = &mmc1; ++ mmc2 = &mmc2; + }; + + chosen { +-- +2.25.1 + diff --git a/recipes-kernel/linux/linux-mainline_6.5.8.bb b/recipes-kernel/linux/linux-mainline_6.5.8.bb new file mode 100644 index 0000000..cb24170 --- /dev/null +++ b/recipes-kernel/linux/linux-mainline_6.5.8.bb @@ -0,0 +1,8 @@ +require linux-mainline.inc + +DESCRIPTION = "Mainline Longterm Linux kernel" + +LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" + +SRC_URI[sha256sum] = "299cca897d90deaa176eebec42f0a80eeb7516afed330a45c14da9de086cf717" +