From a5b16897c114082ff81dd312157345cb1db8d356 Mon Sep 17 00:00:00 2001
From: Bobby The Builder <bob@najdan.com>
Date: Wed, 27 Apr 2022 10:19:16 -0400
Subject: [PATCH] linux-postmarketos-allwinner: upgrade to 5.17.4_git20220427
 (MR 3097)

Disable options
-CONFIG_NET_VENDOR_ENGLEDER
-CONFIG_NET_VENDOR_VERTEXCOM
-CONFIG_SURFACE_PLATFORM

Enable options
+CONFIG_KEYBOARD_PINEPHONE

Note by ollieparanoid: this fixes the suspend to ram issue, pma 1478
[ci:skip-build]: already built successfully in CI
---
 ...dts-pinephone-drop-modem-power-node.patch} |   0
 ...006-media-ov5640-Implement-autofocus.patch | 409 ------------------
 ...el-simple-Add-Hannstar-TQTM070CB501.patch} |   0
 ...sun6i-Add-GoClever-Orion-70L-tablet.patch} |   0
 ...el-simple-Add-Hannstar-HSD070IDW1-A.patch} |   0
 ...-sun6i-Add-Lark-FreeMe-70.2S-tablet.patch} |   0
 ...-fix.patch => 0011-sunxi-mmc-h6-fix.patch} |   0
 ...s-allwinner-orangepi-3-fix-ethernet.patch} |   0
 .../linux-postmarketos-allwinner/APKBUILD     |  44 +-
 .../config-postmarketos-allwinner.aarch64     | 124 ++++--
 .../config-postmarketos-allwinner.armv7       | 129 ++++--
 .../cve-2022-0847-dirty-pipe.patch            |   1 -
 12 files changed, 198 insertions(+), 509 deletions(-)
 rename device/main/linux-postmarketos-allwinner/{0007-dts-pinephone-drop-modem-power-node.patch => 0006-dts-pinephone-drop-modem-power-node.patch} (100%)
 delete mode 100644 device/main/linux-postmarketos-allwinner/0006-media-ov5640-Implement-autofocus.patch
 rename device/main/linux-postmarketos-allwinner/{0008-drm-panel-simple-Add-Hannstar-TQTM070CB501.patch => 0007-drm-panel-simple-Add-Hannstar-TQTM070CB501.patch} (100%)
 rename device/main/linux-postmarketos-allwinner/{0009-ARM-dts-sun6i-Add-GoClever-Orion-70L-tablet.patch => 0008-ARM-dts-sun6i-Add-GoClever-Orion-70L-tablet.patch} (100%)
 rename device/main/linux-postmarketos-allwinner/{0010-drm-panel-simple-Add-Hannstar-HSD070IDW1-A.patch => 0009-drm-panel-simple-Add-Hannstar-HSD070IDW1-A.patch} (100%)
 rename device/main/linux-postmarketos-allwinner/{0011-ARM-dts-sun6i-Add-Lark-FreeMe-70.2S-tablet.patch => 0010-ARM-dts-sun6i-Add-Lark-FreeMe-70.2S-tablet.patch} (100%)
 rename device/main/linux-postmarketos-allwinner/{0012-sunxi-mmc-h6-fix.patch => 0011-sunxi-mmc-h6-fix.patch} (100%)
 rename device/main/linux-postmarketos-allwinner/{0013-arm64-dts-allwinner-orangepi-3-fix-ethernet.patch => 0012-arm64-dts-allwinner-orangepi-3-fix-ethernet.patch} (100%)
 delete mode 120000 device/main/linux-postmarketos-allwinner/cve-2022-0847-dirty-pipe.patch

diff --git a/device/main/linux-postmarketos-allwinner/0007-dts-pinephone-drop-modem-power-node.patch b/device/main/linux-postmarketos-allwinner/0006-dts-pinephone-drop-modem-power-node.patch
similarity index 100%
rename from device/main/linux-postmarketos-allwinner/0007-dts-pinephone-drop-modem-power-node.patch
rename to device/main/linux-postmarketos-allwinner/0006-dts-pinephone-drop-modem-power-node.patch
diff --git a/device/main/linux-postmarketos-allwinner/0006-media-ov5640-Implement-autofocus.patch b/device/main/linux-postmarketos-allwinner/0006-media-ov5640-Implement-autofocus.patch
deleted file mode 100644
index cb8aa558eee..00000000000
--- a/device/main/linux-postmarketos-allwinner/0006-media-ov5640-Implement-autofocus.patch
+++ /dev/null
@@ -1,409 +0,0 @@
-From 628f3a4895037660bc34c0d818b41b0712548af1 Mon Sep 17 00:00:00 2001
-From: Martijn Braam <martijn@brixit.nl>
-Date: Mon, 28 Sep 2020 14:26:11 +0200
-Subject: [PATCH] media: ov5640: Implement autofocus
-
-The autofocus functionality needs a firmware blob loaded into the
-internal microcontroller.
-
-V4L2 doesn't have an api to control all autofocus functionality, but
-this at least makes it possible to focus on the center of the sensor.
-
-Signed-off-by: Martijn Braam <martijn@brixit.nl>
----
- drivers/media/i2c/ov5640.c | 273 +++++++++++++++++++++++++++++++++++++
- 1 file changed, 273 insertions(+)
-
-diff --git a/drivers/media/i2c/ov5640.c b/drivers/media/i2c/ov5640.c
-index 7764e755bd05..65ab69f6b71a 100644
---- a/drivers/media/i2c/ov5640.c
-+++ b/drivers/media/i2c/ov5640.c
-@@ -9,6 +9,7 @@
- #include <linux/clkdev.h>
- #include <linux/ctype.h>
- #include <linux/delay.h>
-+#include <linux/firmware.h>
- #include <linux/device.h>
- #include <linux/gpio/consumer.h>
- #include <linux/i2c.h>
-@@ -31,7 +32,11 @@
- 
- #define OV5640_DEFAULT_SLAVE_ID 0x3c
- 
-+#define OV5640_REG_SYS_RESET00		0x3000
-+#define OV5640_REG_SYS_RESET01		0x3001
- #define OV5640_REG_SYS_RESET02		0x3002
-+#define OV5640_REG_SYS_CLOCK_ENABLE00	0x3004
-+#define OV5640_REG_SYS_CLOCK_ENABLE01	0x3005
- #define OV5640_REG_SYS_CLOCK_ENABLE02	0x3006
- #define OV5640_REG_SYS_CTRL0		0x3008
- #define OV5640_REG_SYS_CTRL0_SW_PWDN	0x42
-@@ -41,6 +46,14 @@
- #define OV5640_REG_PAD_OUTPUT_ENABLE01	0x3017
- #define OV5640_REG_PAD_OUTPUT_ENABLE02	0x3018
- #define OV5640_REG_PAD_OUTPUT00		0x3019
-+#define OV5640_REG_FW_CMD_MAIN		0x3022
-+#define OV5640_REG_FW_CMD_ACK		0x3023
-+#define OV5640_REG_FW_CMD_PARA0		0x3024
-+#define OV5640_REG_FW_CMD_PARA1		0x3025
-+#define OV5640_REG_FW_CMD_PARA2		0x3026
-+#define OV5640_REG_FW_CMD_PARA3		0x3027
-+#define OV5640_REG_FW_CMD_PARA4		0x3028
-+#define OV5640_REG_FW_STATUS		0x3029
- #define OV5640_REG_SYSTEM_CONTROL1	0x302e
- #define OV5640_REG_SC_PLL_CTRL0		0x3034
- #define OV5640_REG_SC_PLL_CTRL1		0x3035
-@@ -59,6 +72,7 @@
- #define OV5640_REG_AEC_PK_MANUAL	0x3503
- #define OV5640_REG_AEC_PK_REAL_GAIN	0x350a
- #define OV5640_REG_AEC_PK_VTS		0x350c
-+#define OV5640_REG_VCM_CONTROL4		0x3606
- #define OV5640_REG_TIMING_DVPHO		0x3808
- #define OV5640_REG_TIMING_DVPVO		0x380a
- #define OV5640_REG_TIMING_HTS		0x380c
-@@ -96,6 +110,20 @@
- #define OV5640_REG_SDE_CTRL4		0x5584
- #define OV5640_REG_SDE_CTRL5		0x5585
- #define OV5640_REG_AVG_READOUT		0x56a1
-+#define OV5640_REG_FIRMWARE_BASE	0x8000
-+
-+#define OV5640_FW_STATUS_S_FIRMWARE	0x7f
-+#define OV5640_FW_STATUS_S_STARTUP	0x7e
-+#define OV5640_FW_STATUS_S_IDLE		0x70
-+#define OV5640_FW_STATUS_S_FOCUSING	0x00
-+#define OV5640_FW_STATUS_S_FOCUSED	0x10
-+
-+#define OV5640_FW_CMD_TRIGGER_FOCUS	0x03
-+#define OV5640_FW_CMD_CONTINUOUS_FOCUS	0x04
-+#define OV5640_FW_CMD_GET_FOCUS_RESULT	0x07
-+#define OV5640_FW_CMD_RELEASE_FOCUS	0x08
-+#define OV5640_FW_CMD_ZONE_CONFIG	0x12
-+#define OV5640_FW_CMD_DEFAULT_ZONES	0x80
- 
- enum ov5640_mode_id {
- 	OV5640_MODE_QQVGA_160_120 = 0,
-@@ -220,6 +248,12 @@ struct ov5640_ctrls {
- 		struct v4l2_ctrl *auto_gain;
- 		struct v4l2_ctrl *gain;
- 	};
-+	struct {
-+		struct v4l2_ctrl *focus_auto;
-+		struct v4l2_ctrl *af_start;
-+		struct v4l2_ctrl *af_stop;
-+		struct v4l2_ctrl *af_status;
-+	};
- 	struct v4l2_ctrl *brightness;
- 	struct v4l2_ctrl *light_freq;
- 	struct v4l2_ctrl *saturation;
-@@ -263,6 +297,8 @@ struct ov5640_dev {
- 
- 	bool pending_mode_change;
- 	bool streaming;
-+
-+	bool af_initialized;
- };
- 
- static inline struct ov5640_dev *to_ov5640_dev(struct v4l2_subdev *sd)
-@@ -1927,6 +1963,118 @@ static void ov5640_reset(struct ov5640_dev *sensor)
- 	usleep_range(20000, 25000);
- }
- 
-+static int ov5640_copy_fw_to_device(struct ov5640_dev *sensor,
-+					const struct firmware *fw)
-+{
-+	struct i2c_client *client = sensor->i2c_client;
-+	const u8 *data = (const u8 *)fw->data;
-+	u8 fw_status;
-+	int i;
-+	int ret;
-+
-+	// Putting MCU in reset state
-+	ret = ov5640_write_reg(sensor, OV5640_REG_SYS_RESET00, 0x20);
-+	if (ret)
-+		return ret;
-+
-+	// Write firmware
-+	for (i = 0; i < fw->size / sizeof(u8); i++)
-+		ov5640_write_reg(sensor,
-+				OV5640_REG_FIRMWARE_BASE + i, 
-+				data[i]);
-+
-+	// Reset MCU state
-+	ov5640_write_reg(sensor, OV5640_REG_FW_CMD_MAIN, 0x00);
-+	ov5640_write_reg(sensor, OV5640_REG_FW_CMD_ACK, 0x00);
-+	ov5640_write_reg(sensor, OV5640_REG_FW_CMD_PARA0, 0x00);
-+	ov5640_write_reg(sensor, OV5640_REG_FW_CMD_PARA1, 0x00);
-+	ov5640_write_reg(sensor, OV5640_REG_FW_CMD_PARA2, 0x00);
-+	ov5640_write_reg(sensor, OV5640_REG_FW_CMD_PARA3, 0x00);
-+	ov5640_write_reg(sensor, OV5640_REG_FW_CMD_PARA4, 0x00);
-+	ov5640_write_reg(sensor, OV5640_REG_FW_STATUS, 0x7f);
-+
-+	// Start AF MCU
-+	ret = ov5640_write_reg(sensor, OV5640_REG_SYS_RESET00, 0x00);
-+	if (ret)
-+		return ret;
-+
-+	dev_info(&client->dev, "firmware upload success\n");
-+
-+	// Wait for firmware to be ready
-+	for (i = 0; i < 5; i++) {
-+		ret = ov5640_read_reg(sensor, OV5640_REG_FW_STATUS, &fw_status);
-+		if (fw_status == OV5640_FW_STATUS_S_IDLE) {
-+			dev_info(&client->dev, "fw started after %d ms\n", i * 50);
-+			return ret;
-+		}
-+		msleep(50);
-+	}
-+	dev_err(&client->dev, "uploaded firmware didn't start, got to 0x%x, retrying...\n", fw_status);
-+
-+	// Putting MCU in reset state
-+	ret = ov5640_write_reg(sensor, OV5640_REG_SYS_RESET00, 0x20);
-+	if (ret)
-+		return ret;
-+	// Start AF MCU
-+	ret = ov5640_write_reg(sensor, OV5640_REG_SYS_RESET00, 0x00);
-+	if (ret)
-+		return ret;
-+	// Wait for firmware to be ready
-+	for (i = 0; i < 5; i++) {
-+		ret = ov5640_read_reg(sensor, OV5640_REG_FW_STATUS, &fw_status);
-+		if (fw_status == OV5640_FW_STATUS_S_IDLE) {
-+			dev_info(&client->dev, "fw started after %d ms\n", i * 50);
-+			return ret;
-+		}
-+		msleep(50);
-+	}
-+	dev_err(&client->dev, "uploaded firmware didn't start, got to 0x%x\n", fw_status);
-+	return -ETIMEDOUT;
-+}
-+
-+static int ov5640_af_init(struct ov5640_dev *sensor)
-+{
-+	struct i2c_client *client = sensor->i2c_client;
-+	const char* fwname = "ov5640_af.bin";
-+	const struct firmware *fw;
-+	int ret;
-+
-+	if (sensor->af_initialized) {
-+		return 0;
-+	}
-+
-+	if (firmware_request_nowarn(&fw, fwname, &client->dev) == 0) {
-+		ret = ov5640_copy_fw_to_device(sensor, fw);
-+		if (ret == 0)
-+			sensor->af_initialized = 1;
-+	} else {
-+		dev_warn(&client->dev, "%s: no autofocus firmware available (%s)\n",
-+			__func__, fwname);
-+		ret = -1;
-+	}
-+	release_firmware(fw);
-+
-+	if (ret)
-+		return ret;
-+
-+	// Enable AF systems
-+	ret = ov5640_mod_reg(sensor, OV5640_REG_SYS_CLOCK_ENABLE00,
-+			     (BIT(6) | BIT(5)), (BIT(6) | BIT(5)));
-+	if (ret)
-+		return ret;
-+	ret = ov5640_mod_reg(sensor, OV5640_REG_SYS_CLOCK_ENABLE01,
-+			     BIT(6), BIT(6));
-+	if (ret)
-+		return ret;
-+
-+	// Set lens focus driver on
-+	ov5640_write_reg(sensor, OV5640_REG_VCM_CONTROL4, 0x3f);
-+	if (ret)
-+		return ret;
-+
-+	return ret;
-+}
-+
- static int ov5640_set_power_on(struct ov5640_dev *sensor)
- {
- 	struct i2c_client *client = sensor->i2c_client;
-@@ -1948,6 +2096,8 @@ static int ov5640_set_power_on(struct ov5640_dev *sensor)
- 		goto xclk_off;
- 	}
- 
-+	sensor->af_initialized = 0;
-+
- 	ov5640_reset(sensor);
- 	ov5640_power(sensor, true);
- 
-@@ -2463,6 +2613,35 @@ static int ov5640_set_framefmt(struct ov5640_dev *sensor,
- 			      is_jpeg ? (BIT(5) | BIT(3)) : 0);
- }
- 
-+static int ov5640_fw_command(struct ov5640_dev *sensor, int command)
-+{
-+	u8 fw_ack;
-+	int i;
-+	int ret;
-+
-+	ret = ov5640_write_reg(sensor, OV5640_REG_FW_CMD_ACK, 0x01);
-+	if(ret)
-+		return ret;
-+	
-+	ret = ov5640_write_reg(sensor, OV5640_REG_FW_CMD_MAIN, command);
-+	if(ret)
-+		return ret;
-+
-+	for (i = 0; i < 100; i++) {
-+		ret = ov5640_read_reg(sensor, OV5640_REG_FW_CMD_ACK, &fw_ack);
-+		if (ret)
-+			return ret;
-+
-+		if (fw_ack == 0){
-+			return ret;
-+		}
-+
-+		msleep(50);
-+	}
-+	return -ETIMEDOUT;
-+}
-+
-+
- /*
-  * Sensor Controls.
-  */
-@@ -2579,6 +2758,41 @@ static int ov5640_set_ctrl_exposure(struct ov5640_dev *sensor,
- 	return ret;
- }
- 
-+static int ov5640_set_ctrl_focus(struct ov5640_dev *sensor, int command)
-+{
-+	struct i2c_client *client = sensor->i2c_client;
-+	int ret;
-+
-+	ret = ov5640_af_init(sensor);
-+	if (ret) {
-+		dev_err(&client->dev, "%s: no autofocus firmware loaded\n",
-+			__func__);
-+		return 0;
-+	}
-+
-+	if (command == OV5640_FW_CMD_RELEASE_FOCUS) {
-+		dev_dbg(&client->dev, "%s: Releasing autofocus\n",
-+			__func__);
-+		return ov5640_fw_command(sensor, OV5640_FW_CMD_RELEASE_FOCUS);
-+	}
-+	
-+	// Restart zone config
-+	ret = ov5640_fw_command(sensor, OV5640_FW_CMD_ZONE_CONFIG);
-+	if (ret)
-+		return ret;
-+
-+	// Set default focus zones
-+	ret = ov5640_fw_command(sensor, OV5640_FW_CMD_DEFAULT_ZONES);
-+	if (ret)
-+		return ret;
-+
-+	dev_dbg(&client->dev, "%s: Triggering autofocus\n",
-+		__func__);
-+
-+	// Start focussing
-+	return ov5640_fw_command(sensor, command);
-+}
-+
- static int ov5640_set_ctrl_gain(struct ov5640_dev *sensor, bool auto_gain)
- {
- 	struct ov5640_ctrls *ctrls = &sensor->ctrls;
-@@ -2685,6 +2899,32 @@ static int ov5640_set_ctrl_vflip(struct ov5640_dev *sensor, int value)
- 			      (BIT(2) | BIT(1)) : 0);
- }
- 
-+static int ov5640_get_af_status(struct ov5640_dev *sensor)
-+{
-+	u8 fw_status;
-+	int ret;
-+
-+	ret = ov5640_read_reg(sensor, OV5640_REG_FW_STATUS, &fw_status);
-+	if (ret)
-+		return ret;
-+
-+	switch (fw_status) {
-+		case OV5640_FW_STATUS_S_FIRMWARE:
-+		case OV5640_FW_STATUS_S_STARTUP:
-+			return V4L2_AUTO_FOCUS_STATUS_FAILED;
-+			break;
-+		case OV5640_FW_STATUS_S_IDLE:
-+			return V4L2_AUTO_FOCUS_STATUS_IDLE;
-+			break;
-+		case OV5640_FW_STATUS_S_FOCUSED:
-+			return V4L2_AUTO_FOCUS_STATUS_REACHED;
-+			break;
-+		default:
-+			return V4L2_AUTO_FOCUS_STATUS_BUSY;
-+			break;
-+	}
-+}
-+
- static int ov5640_g_volatile_ctrl(struct v4l2_ctrl *ctrl)
- {
- 	struct v4l2_subdev *sd = ctrl_to_sd(ctrl);
-@@ -2706,6 +2946,12 @@ static int ov5640_g_volatile_ctrl(struct v4l2_ctrl *ctrl)
- 			return val;
- 		sensor->ctrls.exposure->val = val;
- 		break;
-+	case V4L2_CID_FOCUS_AUTO:
-+		val = ov5640_get_af_status(sensor);
-+		if (val < 0)
-+			return val;
-+		sensor->ctrls.af_status->val = val;
-+		break;
- 	}
- 
- 	return 0;
-@@ -2737,6 +2983,18 @@ static int ov5640_s_ctrl(struct v4l2_ctrl *ctrl)
- 	case V4L2_CID_AUTO_WHITE_BALANCE:
- 		ret = ov5640_set_ctrl_white_balance(sensor, ctrl->val);
- 		break;
-+	case V4L2_CID_FOCUS_AUTO:
-+		if (ctrl->val)
-+			ret = ov5640_set_ctrl_focus(sensor, OV5640_FW_CMD_CONTINUOUS_FOCUS);
-+		else
-+			ret = ov5640_set_ctrl_focus(sensor, OV5640_FW_CMD_RELEASE_FOCUS);
-+		break;
-+	case V4L2_CID_AUTO_FOCUS_START:
-+		ret = ov5640_set_ctrl_focus(sensor, OV5640_FW_CMD_TRIGGER_FOCUS);
-+		break;
-+	case V4L2_CID_AUTO_FOCUS_STOP:
-+		ret = ov5640_set_ctrl_focus(sensor, OV5640_FW_CMD_RELEASE_FOCUS);
-+		break;
- 	case V4L2_CID_HUE:
- 		ret = ov5640_set_ctrl_hue(sensor, ctrl->val);
- 		break;
-@@ -2809,6 +3067,20 @@ static int ov5640_init_controls(struct ov5640_dev *sensor)
- 	ctrls->gain = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_GAIN,
- 					0, 1023, 1, 0);
- 
-+	/* Autofocus */
-+	ctrls->focus_auto = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_FOCUS_AUTO,
-+					    0, 1, 1, 0);
-+	ctrls->af_start = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_AUTO_FOCUS_START,
-+					    0, 1, 1, 0);
-+	ctrls->af_stop = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_AUTO_FOCUS_STOP,
-+					   0, 1, 1, 0);
-+	ctrls->af_status = v4l2_ctrl_new_std(hdl, ops,
-+					     V4L2_CID_AUTO_FOCUS_STATUS, 0,
-+					     (V4L2_AUTO_FOCUS_STATUS_BUSY |
-+					      V4L2_AUTO_FOCUS_STATUS_REACHED |
-+					      V4L2_AUTO_FOCUS_STATUS_FAILED),
-+					     0, V4L2_AUTO_FOCUS_STATUS_IDLE);
-+
- 	ctrls->saturation = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_SATURATION,
- 					      0, 255, 1, 64);
- 	ctrls->hue = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_HUE,
-@@ -2842,6 +3114,7 @@ static int ov5640_init_controls(struct ov5640_dev *sensor)
- 	v4l2_ctrl_auto_cluster(3, &ctrls->auto_wb, 0, false);
- 	v4l2_ctrl_auto_cluster(2, &ctrls->auto_gain, 0, true);
- 	v4l2_ctrl_auto_cluster(2, &ctrls->auto_exp, 1, true);
-+	v4l2_ctrl_cluster(4, &ctrls->focus_auto);
- 
- 	sensor->sd.ctrl_handler = hdl;
- 	return 0;
--- 
-2.31.1
-
diff --git a/device/main/linux-postmarketos-allwinner/0008-drm-panel-simple-Add-Hannstar-TQTM070CB501.patch b/device/main/linux-postmarketos-allwinner/0007-drm-panel-simple-Add-Hannstar-TQTM070CB501.patch
similarity index 100%
rename from device/main/linux-postmarketos-allwinner/0008-drm-panel-simple-Add-Hannstar-TQTM070CB501.patch
rename to device/main/linux-postmarketos-allwinner/0007-drm-panel-simple-Add-Hannstar-TQTM070CB501.patch
diff --git a/device/main/linux-postmarketos-allwinner/0009-ARM-dts-sun6i-Add-GoClever-Orion-70L-tablet.patch b/device/main/linux-postmarketos-allwinner/0008-ARM-dts-sun6i-Add-GoClever-Orion-70L-tablet.patch
similarity index 100%
rename from device/main/linux-postmarketos-allwinner/0009-ARM-dts-sun6i-Add-GoClever-Orion-70L-tablet.patch
rename to device/main/linux-postmarketos-allwinner/0008-ARM-dts-sun6i-Add-GoClever-Orion-70L-tablet.patch
diff --git a/device/main/linux-postmarketos-allwinner/0010-drm-panel-simple-Add-Hannstar-HSD070IDW1-A.patch b/device/main/linux-postmarketos-allwinner/0009-drm-panel-simple-Add-Hannstar-HSD070IDW1-A.patch
similarity index 100%
rename from device/main/linux-postmarketos-allwinner/0010-drm-panel-simple-Add-Hannstar-HSD070IDW1-A.patch
rename to device/main/linux-postmarketos-allwinner/0009-drm-panel-simple-Add-Hannstar-HSD070IDW1-A.patch
diff --git a/device/main/linux-postmarketos-allwinner/0011-ARM-dts-sun6i-Add-Lark-FreeMe-70.2S-tablet.patch b/device/main/linux-postmarketos-allwinner/0010-ARM-dts-sun6i-Add-Lark-FreeMe-70.2S-tablet.patch
similarity index 100%
rename from device/main/linux-postmarketos-allwinner/0011-ARM-dts-sun6i-Add-Lark-FreeMe-70.2S-tablet.patch
rename to device/main/linux-postmarketos-allwinner/0010-ARM-dts-sun6i-Add-Lark-FreeMe-70.2S-tablet.patch
diff --git a/device/main/linux-postmarketos-allwinner/0012-sunxi-mmc-h6-fix.patch b/device/main/linux-postmarketos-allwinner/0011-sunxi-mmc-h6-fix.patch
similarity index 100%
rename from device/main/linux-postmarketos-allwinner/0012-sunxi-mmc-h6-fix.patch
rename to device/main/linux-postmarketos-allwinner/0011-sunxi-mmc-h6-fix.patch
diff --git a/device/main/linux-postmarketos-allwinner/0013-arm64-dts-allwinner-orangepi-3-fix-ethernet.patch b/device/main/linux-postmarketos-allwinner/0012-arm64-dts-allwinner-orangepi-3-fix-ethernet.patch
similarity index 100%
rename from device/main/linux-postmarketos-allwinner/0013-arm64-dts-allwinner-orangepi-3-fix-ethernet.patch
rename to device/main/linux-postmarketos-allwinner/0012-arm64-dts-allwinner-orangepi-3-fix-ethernet.patch
diff --git a/device/main/linux-postmarketos-allwinner/APKBUILD b/device/main/linux-postmarketos-allwinner/APKBUILD
index 9adef61c09c..9be8be121eb 100644
--- a/device/main/linux-postmarketos-allwinner/APKBUILD
+++ b/device/main/linux-postmarketos-allwinner/APKBUILD
@@ -6,9 +6,9 @@
 _flavor=postmarketos-allwinner
 _config="config-$_flavor.$CARCH"
 pkgname=linux-$_flavor
-pkgver=5.16.4_git20220131
-pkgrel=4
-_tag="orange-pi-5.16-20220131-0002"
+pkgver=5.17.4_git20220427
+pkgrel=0
+_tag="orange-pi-5.17-20220427-0710"
 pkgdesc="Kernel fork with Pine64 patches (megi's tree, slightly patched)"
 arch="aarch64 armv7"
 url="https://megous.com/git/linux/"
@@ -43,15 +43,13 @@ source="$pkgname-$_tag.tar.gz::https://github.com/megous/linux/archive/$_tag.tar
 	0003-dts-pinetab-add-missing-bma223-ohci1.patch
 	0004-arm64-dts-allwinner-Add-bluetooth-node-to-the-PineTa.patch
 	0005-dts-pinetab-make-audio-routing-consistent-with-pinep.patch
-	0006-media-ov5640-Implement-autofocus.patch
-	0007-dts-pinephone-drop-modem-power-node.patch
-	0008-drm-panel-simple-Add-Hannstar-TQTM070CB501.patch
-	0009-ARM-dts-sun6i-Add-GoClever-Orion-70L-tablet.patch
-	0010-drm-panel-simple-Add-Hannstar-HSD070IDW1-A.patch
-	0011-ARM-dts-sun6i-Add-Lark-FreeMe-70.2S-tablet.patch
-	0012-sunxi-mmc-h6-fix.patch
-	0013-arm64-dts-allwinner-orangepi-3-fix-ethernet.patch
-	cve-2022-0847-dirty-pipe.patch
+	0006-dts-pinephone-drop-modem-power-node.patch
+	0007-drm-panel-simple-Add-Hannstar-TQTM070CB501.patch
+	0008-ARM-dts-sun6i-Add-GoClever-Orion-70L-tablet.patch
+	0009-drm-panel-simple-Add-Hannstar-HSD070IDW1-A.patch
+	0010-ARM-dts-sun6i-Add-Lark-FreeMe-70.2S-tablet.patch
+	0011-sunxi-mmc-h6-fix.patch
+	0012-arm64-dts-allwinner-orangepi-3-fix-ethernet.patch
 	"
 subpackages="$pkgname-dev"
 builddir="$srcdir/linux-$_tag"
@@ -99,21 +97,19 @@ dev() {
 		INSTALL_HDR_PATH="$subpkgdir"/usr
 }
 sha512sums="
-7ed825eb7311838cd14661192e80149c0a1cd24541eb50808c7261ecb866cf39028c3c7dda0410aeb913670aac63af23d764f98af9e563bf5165cac7f0e51026  linux-postmarketos-allwinner-orange-pi-5.16-20220131-0002.tar.gz
-39b56661ca165da611d33fcdab4001ccdd0199f41c8db8478415f7eb752a879c0c41a3c98a2919c1ee1eeb420110acd3b5842d7ac9c4fc626a91f020e8f709a9  config-postmarketos-allwinner.aarch64
-18738214275280f45375de9ccff83df7c9f37eb66dfd0834780e6b155d95a7d39c55f00fd66be4dde4a8b85accd285b6ef10285b41f75618ad7f44ddcdd0b9a9  config-postmarketos-allwinner.armv7
+12365723ddc09fb0e290d22b853825ce3349a487a5d26e08f18262e9ef166d9520a327bb2c7809e7d20eabecb9a81064f2dbb8b988307ba45f7e31da507709ad  linux-postmarketos-allwinner-orange-pi-5.17-20220427-0710.tar.gz
+a96358d53a3d5faa84c8074d92250d4da86f72349654d5ea97acedf2d1bb10d5851786a8f96e121798b882c0e9c812ed2404e030e6b7f220b2d045a55aa840ae  config-postmarketos-allwinner.aarch64
+118aa19b612fe313ee5b8e5e2032bed257db9fa6495ebde9420aa6572475fe81386031d016554909278fd7e40ae816186b44552fe8f421b2148db7ed0844d2f9  config-postmarketos-allwinner.armv7
 126e0a65e04f22f14eac1281a69000d9d5b107ed8fd1b52f37e812751f55e6c45b0240ceac61c9d95ae7f0543aaf9d96b85a8532baf59283c077b9945e615367  0001-dts-add-dontbeevil-pinephone-devkit.patch
 1dc710f5abacdd5698169d5e985efeca8114986c774c3d65e89812d08ceb3db5ebdc6dd64dd76a262c761f3bfc3ffb6bc237fd5236bd1f89c5975d12e42eda04  0002-dts-add-pinetab-dev-old-display-panel.patch
 96849f40f6defc4ad7646256814bea5ac353c4e0479fd069365ff27456d63da801541ec616f6db736d60f3134384321a9eeb5bfbd555363bf1259c8de63d17fa  0003-dts-pinetab-add-missing-bma223-ohci1.patch
 925bd630f3694d118b24f2f5a838ba105e4ca9ed8dd4294b6632310d8d6b1f421cdd673e2013758f9de7159050aa54e0f76e04edcff65f755842b1c95b6637e7  0004-arm64-dts-allwinner-Add-bluetooth-node-to-the-PineTa.patch
 9bc6c2afadae8d367471f901b86a94be7fa70daf7a4bdde5bc6d4b1458b5ddd0e063a7765d962c68231c8f022d1c660d422124c31a2c899de768985d91d377ea  0005-dts-pinetab-make-audio-routing-consistent-with-pinep.patch
-5e0566074fcb18b95c8ea079178f5d6716eb1ea325a25176e67f80eff1e5b10f90e282c8059a0a3315606546c61f05bd9ebad06adb67086cd123f0276cccbdc8  0006-media-ov5640-Implement-autofocus.patch
-62809ac84db9d684b02d56dfc543451a1a13f319287466cfe913a847b945584ec60f7f556b1259ad3e26a44259a3fe587eeabeef6333f73a77204c3d3573f2ab  0007-dts-pinephone-drop-modem-power-node.patch
-c61d4f86eddecca99df1ea1323f988e575f9c49130b64a0c50d61028ff96e24aaa3131fb3731e62e9b07db67019104d98933e31457891a5ce1e6010e06232875  0008-drm-panel-simple-Add-Hannstar-TQTM070CB501.patch
-7f57e4ebc0b0cebb624f340c568f22e93116f2753b634d9bc75eea1a1bc013b8f9375e1efd24a20bff79c3725166df210a3a30bb7643a4525e3d40b63b91c536  0009-ARM-dts-sun6i-Add-GoClever-Orion-70L-tablet.patch
-71fad7ecff66a2cb692f3dd3d02301c4b419873f27693de81f50226b8ab93c229299e7dc663fdd07a7e8f03a6541527f3bb449626f865fcfde6a780ef1b91976  0010-drm-panel-simple-Add-Hannstar-HSD070IDW1-A.patch
-902708a5a8dd8a815d3d1793933d307c551e3c10368d1805431b70691ee5d4438b7146c466549f457468e365f94073a35ae3304928af7581e5dc91ba5c8fa682  0011-ARM-dts-sun6i-Add-Lark-FreeMe-70.2S-tablet.patch
-2feeab0a6c3db46e514d45c9708f351c6d7dfb0bf951a5cb6f2dc01b4bdc8d4c46931000758a819a6d7317b16cb1933bb3946e6a78cbf448cc77f57a56c503bf  0012-sunxi-mmc-h6-fix.patch
-22af33264090dac027ee054b4345a07f0b2ee077e2ae1620e83960bfeea096169aec710973fdd50531ed4f1db6cfd59b5796cd235316cb3512aee034f741a694  0013-arm64-dts-allwinner-orangepi-3-fix-ethernet.patch
-bfba2e4a4ac9639dc1a3aa0d4779748b62c8efaf8a533e30a4431571115d4356e6e54e00d2508928405ce3607e63aba61a9bad7a0f1712b46ff5706589ccbbfa  cve-2022-0847-dirty-pipe.patch
+62809ac84db9d684b02d56dfc543451a1a13f319287466cfe913a847b945584ec60f7f556b1259ad3e26a44259a3fe587eeabeef6333f73a77204c3d3573f2ab  0006-dts-pinephone-drop-modem-power-node.patch
+c61d4f86eddecca99df1ea1323f988e575f9c49130b64a0c50d61028ff96e24aaa3131fb3731e62e9b07db67019104d98933e31457891a5ce1e6010e06232875  0007-drm-panel-simple-Add-Hannstar-TQTM070CB501.patch
+7f57e4ebc0b0cebb624f340c568f22e93116f2753b634d9bc75eea1a1bc013b8f9375e1efd24a20bff79c3725166df210a3a30bb7643a4525e3d40b63b91c536  0008-ARM-dts-sun6i-Add-GoClever-Orion-70L-tablet.patch
+71fad7ecff66a2cb692f3dd3d02301c4b419873f27693de81f50226b8ab93c229299e7dc663fdd07a7e8f03a6541527f3bb449626f865fcfde6a780ef1b91976  0009-drm-panel-simple-Add-Hannstar-HSD070IDW1-A.patch
+902708a5a8dd8a815d3d1793933d307c551e3c10368d1805431b70691ee5d4438b7146c466549f457468e365f94073a35ae3304928af7581e5dc91ba5c8fa682  0010-ARM-dts-sun6i-Add-Lark-FreeMe-70.2S-tablet.patch
+2feeab0a6c3db46e514d45c9708f351c6d7dfb0bf951a5cb6f2dc01b4bdc8d4c46931000758a819a6d7317b16cb1933bb3946e6a78cbf448cc77f57a56c503bf  0011-sunxi-mmc-h6-fix.patch
+22af33264090dac027ee054b4345a07f0b2ee077e2ae1620e83960bfeea096169aec710973fdd50531ed4f1db6cfd59b5796cd235316cb3512aee034f741a694  0012-arm64-dts-allwinner-orangepi-3-fix-ethernet.patch
 "
diff --git a/device/main/linux-postmarketos-allwinner/config-postmarketos-allwinner.aarch64 b/device/main/linux-postmarketos-allwinner/config-postmarketos-allwinner.aarch64
index f5502c285f5..3533f47eaf3 100644
--- a/device/main/linux-postmarketos-allwinner/config-postmarketos-allwinner.aarch64
+++ b/device/main/linux-postmarketos-allwinner/config-postmarketos-allwinner.aarch64
@@ -1,15 +1,15 @@
 #
 # Automatically generated file; DO NOT EDIT.
-# Linux/arm64 5.16.4 Kernel Configuration
+# Linux/arm64 5.17.4 Kernel Configuration
 #
-CONFIG_CC_VERSION_TEXT="aarch64-alpine-linux-musl-gcc (Alpine 11.2.1_git20220117) 11.2.1 20220117"
+CONFIG_CC_VERSION_TEXT="aarch64-alpine-linux-musl-gcc (Alpine 11.2.1_git20220219) 11.2.1 20220219"
 CONFIG_CC_IS_GCC=y
 CONFIG_GCC_VERSION=110201
 CONFIG_CLANG_VERSION=0
 CONFIG_AS_IS_GNU=y
-CONFIG_AS_VERSION=23700
+CONFIG_AS_VERSION=23800
 CONFIG_LD_IS_BFD=y
-CONFIG_LD_VERSION=23700
+CONFIG_LD_VERSION=23800
 CONFIG_LLD_VERSION=0
 CONFIG_CC_HAS_ASM_GOTO=y
 CONFIG_CC_HAS_ASM_GOTO_OUTPUT=y
@@ -214,7 +214,6 @@ CONFIG_ELF_CORE=y
 CONFIG_BASE_FULL=y
 CONFIG_FUTEX=y
 CONFIG_FUTEX_PI=y
-CONFIG_HAVE_FUTEX_CMPXCHG=y
 CONFIG_EPOLL=y
 CONFIG_SIGNALFD=y
 CONFIG_TIMERFD=y
@@ -350,6 +349,8 @@ CONFIG_ARM64_ERRATUM_1286807=y
 CONFIG_ARM64_ERRATUM_1463225=y
 CONFIG_ARM64_ERRATUM_1542419=y
 CONFIG_ARM64_ERRATUM_1508412=y
+CONFIG_ARM64_ERRATUM_2051678=y
+CONFIG_ARM64_ERRATUM_2077057=y
 CONFIG_ARM64_WORKAROUND_TSB_FLUSH_FAILURE=y
 CONFIG_ARM64_ERRATUM_2054223=y
 CONFIG_ARM64_ERRATUM_2067961=y
@@ -392,7 +393,6 @@ CONFIG_HZ=250
 CONFIG_SCHED_HRTICK=y
 CONFIG_ARCH_SPARSEMEM_ENABLE=y
 CONFIG_HW_PERF_EVENTS=y
-CONFIG_ARCH_HAS_FILTER_PGPROT=y
 # CONFIG_PARAVIRT is not set
 # CONFIG_PARAVIRT_TIME_ACCOUNTING is not set
 CONFIG_KEXEC=y
@@ -402,6 +402,7 @@ CONFIG_TRANS_TABLE=y
 # CONFIG_XEN is not set
 CONFIG_FORCE_MAX_ZONEORDER=11
 CONFIG_UNMAP_KERNEL_AT_EL0=y
+CONFIG_MITIGATE_SPECTRE_BRANCH_HISTORY=y
 CONFIG_RODATA_FULL_DEFAULT_ENABLED=y
 # CONFIG_ARM64_SW_TTBR0_PAN is not set
 CONFIG_ARM64_TAGGED_ADDR_ABI=y
@@ -423,6 +424,8 @@ CONFIG_ARM64_USE_LSE_ATOMICS=y
 #
 # ARMv8.2 architectural features
 #
+CONFIG_AS_HAS_ARMV8_2=y
+CONFIG_AS_HAS_SHA3=y
 # CONFIG_ARM64_PMEM is not set
 CONFIG_ARM64_RAS_EXTN=y
 CONFIG_ARM64_CNP=y
@@ -660,6 +663,7 @@ CONFIG_ARCH_MMAP_RND_BITS=18
 CONFIG_HAVE_ARCH_MMAP_RND_COMPAT_BITS=y
 CONFIG_ARCH_MMAP_RND_COMPAT_BITS=11
 CONFIG_PAGE_SIZE_LESS_THAN_64KB=y
+CONFIG_PAGE_SIZE_LESS_THAN_256KB=y
 CONFIG_ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT=y
 CONFIG_CLONE_BACKWARDS=y
 CONFIG_OLD_SIGSUSPEND3=y
@@ -706,6 +710,7 @@ CONFIG_MODULE_UNLOAD=y
 # CONFIG_MODULE_COMPRESS_GZIP is not set
 CONFIG_MODULE_COMPRESS_XZ=y
 # CONFIG_MODULE_COMPRESS_ZSTD is not set
+# CONFIG_MODULE_DECOMPRESS is not set
 # CONFIG_MODULE_ALLOW_MISSING_NAMESPACE_IMPORTS is not set
 CONFIG_MODPROBE_PATH="/sbin/modprobe"
 CONFIG_MODULES_TREE_LOOKUP=y
@@ -803,12 +808,11 @@ CONFIG_MEMORY_FAILURE=y
 CONFIG_TRANSPARENT_HUGEPAGE=y
 CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS=y
 # CONFIG_TRANSPARENT_HUGEPAGE_MADVISE is not set
-# CONFIG_CLEANCACHE is not set
-# CONFIG_FRONTSWAP is not set
 CONFIG_CMA=y
 # CONFIG_CMA_DEBUGFS is not set
 # CONFIG_CMA_SYSFS is not set
 CONFIG_CMA_AREAS=7
+# CONFIG_ZSWAP is not set
 # CONFIG_ZPOOL is not set
 CONFIG_ZSMALLOC=y
 CONFIG_ZSMALLOC_STAT=y
@@ -825,6 +829,7 @@ CONFIG_ARCH_USES_HIGH_VMA_FLAGS=y
 # CONFIG_READ_ONLY_THP_FOR_FS is not set
 CONFIG_ARCH_HAS_PTE_SPECIAL=y
 CONFIG_SECRETMEM=y
+# CONFIG_ANON_VMA_NAME is not set
 
 #
 # Data Access Monitoring
@@ -982,7 +987,6 @@ CONFIG_NF_TABLES_INET=y
 CONFIG_NF_TABLES_NETDEV=y
 CONFIG_NFT_NUMGEN=m
 CONFIG_NFT_CT=m
-CONFIG_NFT_COUNTER=m
 CONFIG_NFT_CONNLIMIT=m
 CONFIG_NFT_LOG=m
 CONFIG_NFT_LIMIT=m
@@ -1427,6 +1431,7 @@ CONFIG_UEVENT_HELPER=y
 CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
 CONFIG_DEVTMPFS=y
 CONFIG_DEVTMPFS_MOUNT=y
+# CONFIG_DEVTMPFS_SAFE is not set
 CONFIG_STANDALONE=y
 CONFIG_PREVENT_FIRMWARE_BUILD=y
 
@@ -1707,6 +1712,7 @@ CONFIG_SUN4I_EMAC=y
 # CONFIG_NET_VENDOR_CAVIUM is not set
 # CONFIG_NET_VENDOR_CORTINA is not set
 # CONFIG_DNET is not set
+# CONFIG_NET_VENDOR_ENGLEDER is not set
 # CONFIG_NET_VENDOR_EZCHIP is not set
 # CONFIG_NET_VENDOR_GOOGLE is not set
 # CONFIG_NET_VENDOR_HISILICON is not set
@@ -1745,6 +1751,7 @@ CONFIG_DWMAC_SUNXI=y
 CONFIG_DWMAC_SUN8I=y
 # CONFIG_DWMAC_INTEL_PLAT is not set
 # CONFIG_NET_VENDOR_SYNOPSYS is not set
+# CONFIG_NET_VENDOR_VERTEXCOM is not set
 # CONFIG_NET_VENDOR_VIA is not set
 # CONFIG_NET_VENDOR_WIZNET is not set
 # CONFIG_NET_VENDOR_XILINX is not set
@@ -1996,7 +2003,6 @@ CONFIG_KEYBOARD_GPIO=y
 # CONFIG_KEYBOARD_TCA6416 is not set
 # CONFIG_KEYBOARD_TCA8418 is not set
 CONFIG_KEYBOARD_MATRIX=y
-CONFIG_KEYBOARD_KB151=m
 # CONFIG_KEYBOARD_LM8323 is not set
 # CONFIG_KEYBOARD_LM8333 is not set
 # CONFIG_KEYBOARD_MAX7359 is not set
@@ -2004,6 +2010,7 @@ CONFIG_KEYBOARD_KB151=m
 # CONFIG_KEYBOARD_MPR121 is not set
 # CONFIG_KEYBOARD_NEWTON is not set
 # CONFIG_KEYBOARD_OPENCORES is not set
+CONFIG_KEYBOARD_PINEPHONE=y
 # CONFIG_KEYBOARD_SAMSUNG is not set
 # CONFIG_KEYBOARD_STOWAWAY is not set
 # CONFIG_KEYBOARD_SUNKBD is not set
@@ -2343,11 +2350,11 @@ CONFIG_PINCONF=y
 CONFIG_GENERIC_PINCONF=y
 # CONFIG_PINCTRL_AXP209 is not set
 # CONFIG_PINCTRL_MCP23S08 is not set
+# CONFIG_PINCTRL_MICROCHIP_SGPIO is not set
+# CONFIG_PINCTRL_OCELOT is not set
 CONFIG_PINCTRL_SINGLE=y
-# CONFIG_PINCTRL_SX150X is not set
 # CONFIG_PINCTRL_STMFX is not set
-# CONFIG_PINCTRL_OCELOT is not set
-# CONFIG_PINCTRL_MICROCHIP_SGPIO is not set
+# CONFIG_PINCTRL_SX150X is not set
 
 #
 # Renesas pinctrl drivers
@@ -2438,6 +2445,7 @@ CONFIG_GPIO_PCA953X_IRQ=y
 #
 # CONFIG_GPIO_AGGREGATOR is not set
 # CONFIG_GPIO_MOCKUP is not set
+# CONFIG_GPIO_SIM is not set
 # end of Virtual GPIO drivers
 
 # CONFIG_W1 is not set
@@ -2485,6 +2493,7 @@ CONFIG_AXP20X_POWER=y
 # CONFIG_CHARGER_LT3651 is not set
 # CONFIG_CHARGER_LTC4162L is not set
 # CONFIG_CHARGER_DETECTOR_MAX14656 is not set
+# CONFIG_CHARGER_MAX77976 is not set
 # CONFIG_CHARGER_BQ2415X is not set
 # CONFIG_CHARGER_BQ24190 is not set
 # CONFIG_CHARGER_BQ24257 is not set
@@ -2598,6 +2607,7 @@ CONFIG_SENSORS_ARM_SCPI=y
 # CONFIG_SENSORS_NCT7904 is not set
 # CONFIG_SENSORS_NPCM7XX is not set
 # CONFIG_SENSORS_NZXT_KRAKEN2 is not set
+# CONFIG_SENSORS_NZXT_SMART2 is not set
 # CONFIG_SENSORS_OCC_P8_I2C is not set
 # CONFIG_SENSORS_PCF8591 is not set
 # CONFIG_PMBUS is not set
@@ -2625,6 +2635,7 @@ CONFIG_SENSORS_ARM_SCPI=y
 # CONFIG_SENSORS_AMC6821 is not set
 # CONFIG_SENSORS_INA209 is not set
 # CONFIG_SENSORS_INA2XX is not set
+# CONFIG_SENSORS_INA238 is not set
 # CONFIG_SENSORS_INA3221 is not set
 # CONFIG_SENSORS_TC74 is not set
 # CONFIG_SENSORS_THMC50 is not set
@@ -2803,7 +2814,6 @@ CONFIG_MFD_SYSCON=y
 # CONFIG_MFD_WM8350_I2C is not set
 # CONFIG_MFD_WM8994 is not set
 # CONFIG_MFD_ROHM_BD718XX is not set
-# CONFIG_MFD_ROHM_BD70528 is not set
 # CONFIG_MFD_ROHM_BD71828 is not set
 # CONFIG_MFD_ROHM_BD957XMUF is not set
 # CONFIG_MFD_STPMIC1 is not set
@@ -2844,6 +2854,7 @@ CONFIG_REGULATOR_GPIO=y
 # CONFIG_REGULATOR_MAX8893 is not set
 # CONFIG_REGULATOR_MAX8952 is not set
 # CONFIG_REGULATOR_MAX8973 is not set
+# CONFIG_REGULATOR_MAX20086 is not set
 # CONFIG_REGULATOR_MAX77826 is not set
 # CONFIG_REGULATOR_MCP16502 is not set
 # CONFIG_REGULATOR_MP5416 is not set
@@ -3154,6 +3165,7 @@ CONFIG_VIDEO_OV5640=m
 # CONFIG_VIDEO_OV6650 is not set
 # CONFIG_VIDEO_OV5670 is not set
 # CONFIG_VIDEO_OV5675 is not set
+# CONFIG_VIDEO_OV5693 is not set
 # CONFIG_VIDEO_OV5695 is not set
 # CONFIG_VIDEO_OV7251 is not set
 # CONFIG_VIDEO_OV772X is not set
@@ -3230,7 +3242,6 @@ CONFIG_DRM_FBDEV_OVERALLOC=100
 # CONFIG_DRM_LOAD_EDID_FIRMWARE is not set
 # CONFIG_DRM_DP_CEC is not set
 CONFIG_DRM_GEM_CMA_HELPER=y
-CONFIG_DRM_KMS_CMA_HELPER=y
 CONFIG_DRM_GEM_SHMEM_HELPER=y
 CONFIG_DRM_SCHED=y
 
@@ -3255,7 +3266,8 @@ CONFIG_DRM_MALI_DISPLAY=m
 # CONFIG_DRM_VKMS is not set
 CONFIG_DRM_UDL=m
 # CONFIG_DRM_RCAR_DW_HDMI is not set
-# CONFIG_DRM_RCAR_LVDS is not set
+# CONFIG_DRM_RCAR_USE_LVDS is not set
+# CONFIG_DRM_RCAR_MIPI_DSI is not set
 CONFIG_DRM_SUN4I=y
 CONFIG_DRM_SUN4I_HDMI=y
 # CONFIG_DRM_SUN4I_HDMI_CEC is not set
@@ -3271,6 +3283,7 @@ CONFIG_DRM_PANEL=y
 #
 # CONFIG_DRM_PANEL_ARM_VERSATILE is not set
 # CONFIG_DRM_PANEL_ASUS_Z00T_TM5P5_NT35596 is not set
+# CONFIG_DRM_PANEL_BOE_BF060Y8M_AJ0 is not set
 # CONFIG_DRM_PANEL_BOE_HIMAX8279D is not set
 # CONFIG_DRM_PANEL_BOE_TV101WUM_NL6 is not set
 # CONFIG_DRM_PANEL_DSI_CM is not set
@@ -3284,11 +3297,13 @@ CONFIG_DRM_PANEL_FEIYANG_FY07024DI26A30D=y
 CONFIG_DRM_PANEL_ILITEK_ILI9881C=y
 # CONFIG_DRM_PANEL_INNOLUX_P079ZCA is not set
 # CONFIG_DRM_PANEL_JDI_LT070ME05000 is not set
+# CONFIG_DRM_PANEL_JDI_R63452 is not set
 # CONFIG_DRM_PANEL_KHADAS_TS050 is not set
 # CONFIG_DRM_PANEL_KINGDISPLAY_KD097D04 is not set
 # CONFIG_DRM_PANEL_LEADTEK_LTK050H3146W is not set
 # CONFIG_DRM_PANEL_LEADTEK_LTK500HD1829 is not set
 # CONFIG_DRM_PANEL_NOVATEK_NT35510 is not set
+# CONFIG_DRM_PANEL_NOVATEK_NT35950 is not set
 # CONFIG_DRM_PANEL_NOVATEK_NT36672A is not set
 # CONFIG_DRM_PANEL_MANTIX_MLAF057WE51 is not set
 # CONFIG_DRM_PANEL_OLIMEX_LCD_OLINUXINO is not set
@@ -3315,6 +3330,7 @@ CONFIG_DRM_PANEL_ILITEK_ILI9881C=y
 # CONFIG_DRM_PANEL_SITRONIX_ST7701 is not set
 CONFIG_DRM_PANEL_SITRONIX_ST7703=y
 # CONFIG_DRM_PANEL_SONY_ACX424AKP is not set
+# CONFIG_DRM_PANEL_SONY_TULIP_TRULY_NT35521 is not set
 # CONFIG_DRM_PANEL_TDO_TL070WSH30 is not set
 # CONFIG_DRM_PANEL_TRULY_NT35597_WQXGA is not set
 # CONFIG_DRM_PANEL_VISIONOX_RM69299 is not set
@@ -3379,6 +3395,7 @@ CONFIG_DRM_PANFROST=y
 # CONFIG_DRM_GUD is not set
 # CONFIG_DRM_LEGACY is not set
 CONFIG_DRM_PANEL_ORIENTATION_QUIRKS=y
+CONFIG_DRM_NOMODESET=y
 
 #
 # Frame buffer Devices
@@ -3446,6 +3463,7 @@ CONFIG_DUMMY_CONSOLE=y
 CONFIG_DUMMY_CONSOLE_COLUMNS=80
 CONFIG_DUMMY_CONSOLE_ROWS=25
 CONFIG_FRAMEBUFFER_CONSOLE=y
+# CONFIG_FRAMEBUFFER_CONSOLE_LEGACY_ACCELERATION is not set
 CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
 CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y
 # CONFIG_FRAMEBUFFER_CONSOLE_DEFERRED_TAKEOVER is not set
@@ -3507,6 +3525,7 @@ CONFIG_SND_SOC=m
 CONFIG_SND_SOC_GENERIC_DMAENGINE_PCM=y
 # CONFIG_SND_SOC_ADI is not set
 # CONFIG_SND_SOC_AMD_ACP is not set
+# CONFIG_SND_AMD_ACP_CONFIG is not set
 # CONFIG_SND_ATMEL_SOC is not set
 # CONFIG_SND_BCM63XX_I2S_WHISTLER is not set
 # CONFIG_SND_DESIGNWARE_I2S is not set
@@ -3569,6 +3588,7 @@ CONFIG_SND_SOC_I2C_AND_SPI=m
 # CONFIG_SND_SOC_ADAU7118_HW is not set
 # CONFIG_SND_SOC_ADAU7118_I2C is not set
 # CONFIG_SND_SOC_AK4118 is not set
+# CONFIG_SND_SOC_AK4375 is not set
 # CONFIG_SND_SOC_AK4458 is not set
 # CONFIG_SND_SOC_AK4554 is not set
 CONFIG_SND_SOC_AK4613=m
@@ -3657,6 +3677,7 @@ CONFIG_SND_SOC_SIMPLE_AMPLIFIER=m
 # CONFIG_SND_SOC_TDA7419 is not set
 # CONFIG_SND_SOC_TFA9879 is not set
 # CONFIG_SND_SOC_TFA989X is not set
+# CONFIG_SND_SOC_TLV320ADC3XXX is not set
 # CONFIG_SND_SOC_TLV320AIC23_I2C is not set
 # CONFIG_SND_SOC_TLV320AIC31XX is not set
 # CONFIG_SND_SOC_TLV320AIC32X4_I2C is not set
@@ -3770,6 +3791,7 @@ CONFIG_HID_KENSINGTON=y
 # CONFIG_HID_LCPOWER is not set
 # CONFIG_HID_LED is not set
 # CONFIG_HID_LENOVO is not set
+# CONFIG_HID_LETSKETCH is not set
 CONFIG_HID_LOGITECH=y
 CONFIG_HID_LOGITECH_DJ=y
 CONFIG_HID_LOGITECH_HIDPP=y
@@ -4297,6 +4319,10 @@ CONFIG_LEDS_TRIGGER_PANIC=y
 CONFIG_LEDS_TRIGGER_PATTERN=y
 # CONFIG_LEDS_TRIGGER_AUDIO is not set
 # CONFIG_LEDS_TRIGGER_TTY is not set
+
+#
+# Simple LED drivers
+#
 # CONFIG_ACCESSIBILITY is not set
 # CONFIG_INFINIBAND is not set
 CONFIG_EDAC_SUPPORT=y
@@ -4531,6 +4557,8 @@ CONFIG_RTL8723BS=m
 # end of IIO staging drivers
 
 CONFIG_STAGING_MEDIA=y
+# CONFIG_VIDEO_HANTRO is not set
+# CONFIG_VIDEO_MAX96712 is not set
 CONFIG_VIDEO_SUNXI=y
 CONFIG_VIDEO_SUNXI_CEDRUS=y
 
@@ -4553,6 +4581,7 @@ CONFIG_RTL8723CS=m
 # CONFIG_GOLDFISH is not set
 # CONFIG_CHROME_PLATFORMS is not set
 # CONFIG_MELLANOX_PLATFORM is not set
+# CONFIG_SURFACE_PLATFORMS is not set
 CONFIG_HAVE_CLK=y
 CONFIG_HAVE_CLK_PREPARE=y
 CONFIG_COMMON_CLK=y
@@ -4574,6 +4603,7 @@ CONFIG_COMMON_CLK_SCPI=y
 # CONFIG_COMMON_CLK_CDCE706 is not set
 # CONFIG_COMMON_CLK_CDCE925 is not set
 CONFIG_COMMON_CLK_CS2000_CP=y
+# CONFIG_COMMON_CLK_LAN966X is not set
 # CONFIG_COMMON_CLK_AXI_CLKGEN is not set
 CONFIG_COMMON_CLK_XGENE=y
 CONFIG_COMMON_CLK_PWM=y
@@ -4726,7 +4756,7 @@ CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND=y
 #
 # DEVFREQ Drivers
 #
-# CONFIG_ARM_SUN8I_MBUS_DEVFREQ is not set
+# CONFIG_ARM_SUN8I_A33_MBUS_DEVFREQ is not set
 # CONFIG_PM_DEVFREQ_EVENT is not set
 CONFIG_EXTCON=y
 
@@ -4822,6 +4852,11 @@ CONFIG_AXP20X_ADC=y
 # CONFIG_XILINX_XADC is not set
 # end of Analog to digital converters
 
+#
+# Analog to digital and digital to analog converters
+#
+# end of Analog to digital and digital to analog converters
+
 #
 # Analog Front Ends
 #
@@ -4900,6 +4935,11 @@ CONFIG_IIO_ST_SENSORS_CORE=m
 #
 # end of IIO dummy driver
 
+#
+# Filters
+#
+# end of Filters
+
 #
 # Frequency Synthesizers DDS/PLL
 #
@@ -5018,6 +5058,7 @@ CONFIG_STK3310=m
 #
 # Magnetometer sensors
 #
+# CONFIG_AF8133J is not set
 # CONFIG_AK8974 is not set
 # CONFIG_AK8975 is not set
 # CONFIG_AK09911 is not set
@@ -5179,8 +5220,10 @@ CONFIG_PHY_SUN50I_USB3=y
 # CONFIG_PHY_CADENCE_SALVO is not set
 # CONFIG_PHY_FSL_IMX8MQ_USB is not set
 # CONFIG_PHY_MIXEL_MIPI_DPHY is not set
+# CONFIG_PHY_FSL_IMX8M_PCIE is not set
 # CONFIG_PHY_PXA_28NM_HSIC is not set
 # CONFIG_PHY_PXA_28NM_USB2 is not set
+# CONFIG_PHY_LAN966X_SERDES is not set
 # CONFIG_PHY_CPCAP_USB is not set
 # CONFIG_PHY_MAPPHONE_MDM6600 is not set
 # CONFIG_PHY_OCELOT_SERDES is not set
@@ -5702,6 +5745,7 @@ CONFIG_CRYPTO_DRBG_HMAC=y
 # CONFIG_CRYPTO_DRBG_CTR is not set
 CONFIG_CRYPTO_DRBG=y
 CONFIG_CRYPTO_JITTERENTROPY=y
+CONFIG_CRYPTO_KDF800108_CTR=y
 CONFIG_CRYPTO_USER_API=m
 CONFIG_CRYPTO_USER_API_HASH=m
 CONFIG_CRYPTO_USER_API_SKCIPHER=m
@@ -5710,25 +5754,6 @@ CONFIG_CRYPTO_USER_API_SKCIPHER=m
 # CONFIG_CRYPTO_USER_API_ENABLE_OBSOLETE is not set
 # CONFIG_CRYPTO_STATS is not set
 CONFIG_CRYPTO_HASH_INFO=y
-
-#
-# Crypto library routines
-#
-CONFIG_CRYPTO_LIB_AES=y
-CONFIG_CRYPTO_LIB_ARC4=y
-CONFIG_CRYPTO_LIB_BLAKE2S_GENERIC=m
-CONFIG_CRYPTO_LIB_BLAKE2S=m
-CONFIG_CRYPTO_ARCH_HAVE_LIB_CHACHA=m
-CONFIG_CRYPTO_LIB_CHACHA_GENERIC=m
-CONFIG_CRYPTO_LIB_CHACHA=m
-CONFIG_CRYPTO_LIB_CURVE25519_GENERIC=m
-CONFIG_CRYPTO_LIB_CURVE25519=m
-CONFIG_CRYPTO_LIB_DES=m
-CONFIG_CRYPTO_LIB_POLY1305_RSIZE=9
-CONFIG_CRYPTO_ARCH_HAVE_LIB_POLY1305=m
-CONFIG_CRYPTO_LIB_POLY1305=m
-CONFIG_CRYPTO_LIB_CHACHA20POLY1305=m
-CONFIG_CRYPTO_LIB_SHA256=y
 CONFIG_CRYPTO_HW=y
 CONFIG_CRYPTO_DEV_ALLWINNER=y
 # CONFIG_CRYPTO_DEV_SUN4I_SS is not set
@@ -5771,7 +5796,6 @@ CONFIG_HAVE_ARCH_BITREVERSE=y
 CONFIG_GENERIC_STRNCPY_FROM_USER=y
 CONFIG_GENERIC_STRNLEN_USER=y
 CONFIG_GENERIC_NET_UTILS=y
-CONFIG_GENERIC_FIND_FIRST_BIT=y
 # CONFIG_CORDIC is not set
 # CONFIG_PRIME_NUMBERS is not set
 CONFIG_RATIONAL=y
@@ -5780,6 +5804,26 @@ CONFIG_ARCH_USE_CMPXCHG_LOCKREF=y
 CONFIG_ARCH_HAS_FAST_MULTIPLIER=y
 CONFIG_ARCH_USE_SYM_ANNOTATIONS=y
 CONFIG_INDIRECT_PIO=y
+
+#
+# Crypto library routines
+#
+CONFIG_CRYPTO_LIB_AES=y
+CONFIG_CRYPTO_LIB_ARC4=y
+CONFIG_CRYPTO_LIB_BLAKE2S_GENERIC=y
+CONFIG_CRYPTO_ARCH_HAVE_LIB_CHACHA=m
+CONFIG_CRYPTO_LIB_CHACHA_GENERIC=m
+CONFIG_CRYPTO_LIB_CHACHA=m
+CONFIG_CRYPTO_LIB_CURVE25519_GENERIC=m
+CONFIG_CRYPTO_LIB_CURVE25519=m
+CONFIG_CRYPTO_LIB_DES=m
+CONFIG_CRYPTO_LIB_POLY1305_RSIZE=9
+CONFIG_CRYPTO_ARCH_HAVE_LIB_POLY1305=m
+CONFIG_CRYPTO_LIB_POLY1305=m
+CONFIG_CRYPTO_LIB_CHACHA20POLY1305=m
+CONFIG_CRYPTO_LIB_SHA256=y
+# end of Crypto library routines
+
 CONFIG_CRC_CCITT=y
 CONFIG_CRC16=y
 CONFIG_CRC_T10DIF=y
@@ -5935,6 +5979,11 @@ CONFIG_HAVE_KCSAN_COMPILER=y
 
 # CONFIG_DEBUG_KERNEL is not set
 
+#
+# Networking Debugging
+#
+# end of Networking Debugging
+
 #
 # Memory Debugging
 #
@@ -6030,7 +6079,6 @@ CONFIG_STRICT_DEVMEM=y
 # CONFIG_KUNIT is not set
 CONFIG_ARCH_HAS_KCOV=y
 CONFIG_CC_HAS_SANCOV_TRACE_PC=y
-# CONFIG_KCOV is not set
 # CONFIG_RUNTIME_TESTING_MENU is not set
 CONFIG_ARCH_USE_MEMTEST=y
 # CONFIG_MEMTEST is not set
diff --git a/device/main/linux-postmarketos-allwinner/config-postmarketos-allwinner.armv7 b/device/main/linux-postmarketos-allwinner/config-postmarketos-allwinner.armv7
index b836661e2c9..cf338b0d34d 100644
--- a/device/main/linux-postmarketos-allwinner/config-postmarketos-allwinner.armv7
+++ b/device/main/linux-postmarketos-allwinner/config-postmarketos-allwinner.armv7
@@ -1,15 +1,15 @@
 #
 # Automatically generated file; DO NOT EDIT.
-# Linux/arm 5.16.4 Kernel Configuration
+# Linux/arm 5.17.4 Kernel Configuration
 #
-CONFIG_CC_VERSION_TEXT="armv7-alpine-linux-musleabihf-gcc (Alpine 11.2.1_git20220117) 11.2.1 20220117"
+CONFIG_CC_VERSION_TEXT="armv7-alpine-linux-musleabihf-gcc (Alpine 11.2.1_git20220219) 11.2.1 20220219"
 CONFIG_CC_IS_GCC=y
 CONFIG_GCC_VERSION=110201
 CONFIG_CLANG_VERSION=0
 CONFIG_AS_IS_GNU=y
-CONFIG_AS_VERSION=23700
+CONFIG_AS_VERSION=23800
 CONFIG_LD_IS_BFD=y
-CONFIG_LD_VERSION=23700
+CONFIG_LD_VERSION=23800
 CONFIG_LLD_VERSION=0
 CONFIG_CC_HAS_ASM_GOTO=y
 CONFIG_CC_HAS_ASM_GOTO_OUTPUT=y
@@ -198,7 +198,6 @@ CONFIG_ELF_CORE=y
 CONFIG_BASE_FULL=y
 CONFIG_FUTEX=y
 CONFIG_FUTEX_PI=y
-CONFIG_HAVE_FUTEX_CMPXCHG=y
 CONFIG_EPOLL=y
 CONFIG_SIGNALFD=y
 CONFIG_TIMERFD=y
@@ -371,6 +370,7 @@ CONFIG_SWP_EMULATE=y
 # CONFIG_CPU_BPREDICT_DISABLE is not set
 CONFIG_CPU_SPECTRE=y
 CONFIG_HARDEN_BRANCH_PREDICTOR=y
+CONFIG_HARDEN_BRANCH_HISTORY=y
 CONFIG_KUSER_HELPERS=y
 CONFIG_VDSO=y
 CONFIG_OUTER_CACHE=y
@@ -626,6 +626,7 @@ CONFIG_HAVE_ARCH_MMAP_RND_BITS=y
 CONFIG_HAVE_EXIT_THREAD=y
 CONFIG_ARCH_MMAP_RND_BITS=8
 CONFIG_PAGE_SIZE_LESS_THAN_64KB=y
+CONFIG_PAGE_SIZE_LESS_THAN_256KB=y
 CONFIG_ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT=y
 CONFIG_CLONE_BACKWARDS=y
 CONFIG_OLD_SIGSUSPEND3=y
@@ -743,12 +744,11 @@ CONFIG_CONTIG_ALLOC=y
 CONFIG_BOUNCE=y
 # CONFIG_KSM is not set
 CONFIG_DEFAULT_MMAP_MIN_ADDR=4096
-# CONFIG_CLEANCACHE is not set
-# CONFIG_FRONTSWAP is not set
 CONFIG_CMA=y
 # CONFIG_CMA_DEBUGFS is not set
 # CONFIG_CMA_SYSFS is not set
 CONFIG_CMA_AREAS=7
+# CONFIG_ZSWAP is not set
 # CONFIG_ZPOOL is not set
 CONFIG_ZSMALLOC=y
 CONFIG_ZSMALLOC_STAT=y
@@ -758,6 +758,7 @@ CONFIG_GENERIC_EARLY_IOREMAP=y
 # CONFIG_GUP_TEST is not set
 CONFIG_KMAP_LOCAL=y
 CONFIG_KMAP_LOCAL_NON_LINEAR_PTE_ARRAY=y
+# CONFIG_ANON_VMA_NAME is not set
 
 #
 # Data Access Monitoring
@@ -883,7 +884,6 @@ CONFIG_NF_TABLES_INET=y
 CONFIG_NF_TABLES_NETDEV=y
 CONFIG_NFT_NUMGEN=m
 CONFIG_NFT_CT=m
-CONFIG_NFT_COUNTER=m
 CONFIG_NFT_CONNLIMIT=m
 CONFIG_NFT_LOG=m
 CONFIG_NFT_LIMIT=m
@@ -1239,6 +1239,7 @@ CONFIG_UEVENT_HELPER=y
 CONFIG_UEVENT_HELPER_PATH=""
 CONFIG_DEVTMPFS=y
 CONFIG_DEVTMPFS_MOUNT=y
+# CONFIG_DEVTMPFS_SAFE is not set
 CONFIG_STANDALONE=y
 CONFIG_PREVENT_FIRMWARE_BUILD=y
 
@@ -1257,6 +1258,7 @@ CONFIG_ALLOW_DEV_COREDUMP=y
 CONFIG_DEV_COREDUMP=y
 # CONFIG_TEST_ASYNC_DRIVER_PROBE is not set
 CONFIG_GENERIC_CPU_AUTOPROBE=y
+CONFIG_GENERIC_CPU_VULNERABILITIES=y
 CONFIG_SOC_BUS=y
 CONFIG_REGMAP=y
 CONFIG_REGMAP_I2C=y
@@ -1436,7 +1438,6 @@ CONFIG_SCSI_LOWLEVEL=y
 # CONFIG_ISCSI_TCP is not set
 # CONFIG_ISCSI_BOOT_SYSFS is not set
 # CONFIG_SCSI_UFSHCD is not set
-# CONFIG_SCSI_UFS_HWMON is not set
 # CONFIG_SCSI_DEBUG is not set
 # CONFIG_SCSI_DH is not set
 # end of SCSI device support
@@ -1550,6 +1551,8 @@ CONFIG_NET_VENDOR_CORTINA=y
 # CONFIG_GEMINI_ETHERNET is not set
 # CONFIG_DM9000 is not set
 # CONFIG_DNET is not set
+CONFIG_NET_VENDOR_ENGLEDER=y
+# CONFIG_TSNEP is not set
 CONFIG_NET_VENDOR_EZCHIP=y
 # CONFIG_EZCHIP_NPS_MANAGEMENT_ENET is not set
 # CONFIG_NET_VENDOR_FARADAY is not set
@@ -1599,6 +1602,8 @@ CONFIG_DWMAC_SUN8I=y
 # CONFIG_DWMAC_INTEL_PLAT is not set
 CONFIG_NET_VENDOR_SYNOPSYS=y
 # CONFIG_DWC_XLGMAC is not set
+CONFIG_NET_VENDOR_VERTEXCOM=y
+# CONFIG_MSE102X is not set
 # CONFIG_NET_VENDOR_VIA is not set
 # CONFIG_NET_VENDOR_WIZNET is not set
 CONFIG_NET_VENDOR_XILINX=y
@@ -1941,7 +1946,6 @@ CONFIG_KEYBOARD_ATKBD=y
 # CONFIG_KEYBOARD_TCA6416 is not set
 # CONFIG_KEYBOARD_TCA8418 is not set
 # CONFIG_KEYBOARD_MATRIX is not set
-# CONFIG_KEYBOARD_KB151 is not set
 # CONFIG_KEYBOARD_LM8323 is not set
 # CONFIG_KEYBOARD_LM8333 is not set
 # CONFIG_KEYBOARD_MAX7359 is not set
@@ -1949,6 +1953,7 @@ CONFIG_KEYBOARD_ATKBD=y
 # CONFIG_KEYBOARD_MPR121 is not set
 # CONFIG_KEYBOARD_NEWTON is not set
 # CONFIG_KEYBOARD_OPENCORES is not set
+# CONFIG_KEYBOARD_PINEPHONE is not set
 # CONFIG_KEYBOARD_SAMSUNG is not set
 # CONFIG_KEYBOARD_STOWAWAY is not set
 # CONFIG_KEYBOARD_SUNKBD is not set
@@ -2303,11 +2308,11 @@ CONFIG_PINCONF=y
 CONFIG_GENERIC_PINCONF=y
 CONFIG_PINCTRL_AXP209=y
 # CONFIG_PINCTRL_MCP23S08 is not set
+# CONFIG_PINCTRL_MICROCHIP_SGPIO is not set
+# CONFIG_PINCTRL_OCELOT is not set
 # CONFIG_PINCTRL_SINGLE is not set
-# CONFIG_PINCTRL_SX150X is not set
 # CONFIG_PINCTRL_STMFX is not set
-# CONFIG_PINCTRL_OCELOT is not set
-# CONFIG_PINCTRL_MICROCHIP_SGPIO is not set
+# CONFIG_PINCTRL_SX150X is not set
 
 #
 # Renesas pinctrl drivers
@@ -2408,6 +2413,7 @@ CONFIG_GPIO_CDEV_V1=y
 #
 # CONFIG_GPIO_AGGREGATOR is not set
 # CONFIG_GPIO_MOCKUP is not set
+# CONFIG_GPIO_SIM is not set
 # end of Virtual GPIO drivers
 
 # CONFIG_W1 is not set
@@ -2441,6 +2447,7 @@ CONFIG_AXP20X_POWER=y
 # CONFIG_CHARGER_LT3651 is not set
 # CONFIG_CHARGER_LTC4162L is not set
 # CONFIG_CHARGER_DETECTOR_MAX14656 is not set
+# CONFIG_CHARGER_MAX77976 is not set
 # CONFIG_CHARGER_BQ2415X is not set
 # CONFIG_CHARGER_BQ24190 is not set
 # CONFIG_CHARGER_BQ24257 is not set
@@ -2561,6 +2568,7 @@ CONFIG_HWMON=y
 # CONFIG_SENSORS_NCT7904 is not set
 # CONFIG_SENSORS_NPCM7XX is not set
 # CONFIG_SENSORS_NZXT_KRAKEN2 is not set
+# CONFIG_SENSORS_NZXT_SMART2 is not set
 # CONFIG_SENSORS_OCC_P8_I2C is not set
 # CONFIG_SENSORS_PCF8591 is not set
 # CONFIG_PMBUS is not set
@@ -2589,6 +2597,7 @@ CONFIG_HWMON=y
 # CONFIG_SENSORS_AMC6821 is not set
 # CONFIG_SENSORS_INA209 is not set
 # CONFIG_SENSORS_INA2XX is not set
+# CONFIG_SENSORS_INA238 is not set
 # CONFIG_SENSORS_INA3221 is not set
 # CONFIG_SENSORS_TC74 is not set
 # CONFIG_SENSORS_THMC50 is not set
@@ -2783,7 +2792,6 @@ CONFIG_MFD_SYSCON=y
 # CONFIG_MFD_WM8350_I2C is not set
 # CONFIG_MFD_WM8994 is not set
 # CONFIG_MFD_ROHM_BD718XX is not set
-# CONFIG_MFD_ROHM_BD70528 is not set
 # CONFIG_MFD_ROHM_BD71828 is not set
 # CONFIG_MFD_ROHM_BD957XMUF is not set
 # CONFIG_MFD_STPMIC1 is not set
@@ -2825,6 +2833,7 @@ CONFIG_REGULATOR_GPIO=y
 # CONFIG_REGULATOR_MAX8893 is not set
 # CONFIG_REGULATOR_MAX8952 is not set
 # CONFIG_REGULATOR_MAX8973 is not set
+# CONFIG_REGULATOR_MAX20086 is not set
 # CONFIG_REGULATOR_MAX77826 is not set
 # CONFIG_REGULATOR_MCP16502 is not set
 # CONFIG_REGULATOR_MP5416 is not set
@@ -2998,7 +3007,6 @@ CONFIG_DRM_FBDEV_OVERALLOC=100
 # CONFIG_DRM_LOAD_EDID_FIRMWARE is not set
 # CONFIG_DRM_DP_CEC is not set
 CONFIG_DRM_GEM_CMA_HELPER=y
-CONFIG_DRM_KMS_CMA_HELPER=y
 CONFIG_DRM_GEM_SHMEM_HELPER=y
 CONFIG_DRM_SCHED=y
 
@@ -3025,7 +3033,8 @@ CONFIG_DRM_SCHED=y
 CONFIG_DRM_UDL=m
 # CONFIG_DRM_ARMADA is not set
 # CONFIG_DRM_RCAR_DW_HDMI is not set
-# CONFIG_DRM_RCAR_LVDS is not set
+# CONFIG_DRM_RCAR_USE_LVDS is not set
+# CONFIG_DRM_RCAR_MIPI_DSI is not set
 CONFIG_DRM_SUN4I=y
 CONFIG_DRM_SUN4I_HDMI=y
 CONFIG_DRM_SUN4I_HDMI_CEC=y
@@ -3047,6 +3056,7 @@ CONFIG_DRM_PANEL=y
 # CONFIG_DRM_PANEL_ABT_Y030XX067A is not set
 # CONFIG_DRM_PANEL_ARM_VERSATILE is not set
 # CONFIG_DRM_PANEL_ASUS_Z00T_TM5P5_NT35596 is not set
+# CONFIG_DRM_PANEL_BOE_BF060Y8M_AJ0 is not set
 # CONFIG_DRM_PANEL_BOE_HIMAX8279D is not set
 # CONFIG_DRM_PANEL_BOE_TV101WUM_NL6 is not set
 # CONFIG_DRM_PANEL_DSI_CM is not set
@@ -3063,6 +3073,7 @@ CONFIG_DRM_PANEL_SIMPLE=y
 # CONFIG_DRM_PANEL_INNOLUX_EJ030NA is not set
 # CONFIG_DRM_PANEL_INNOLUX_P079ZCA is not set
 # CONFIG_DRM_PANEL_JDI_LT070ME05000 is not set
+# CONFIG_DRM_PANEL_JDI_R63452 is not set
 # CONFIG_DRM_PANEL_KHADAS_TS050 is not set
 # CONFIG_DRM_PANEL_KINGDISPLAY_KD097D04 is not set
 # CONFIG_DRM_PANEL_LEADTEK_LTK050H3146W is not set
@@ -3072,6 +3083,7 @@ CONFIG_DRM_PANEL_SIMPLE=y
 # CONFIG_DRM_PANEL_LG_LG4573 is not set
 # CONFIG_DRM_PANEL_NEC_NL8048HL11 is not set
 # CONFIG_DRM_PANEL_NOVATEK_NT35510 is not set
+# CONFIG_DRM_PANEL_NOVATEK_NT35950 is not set
 # CONFIG_DRM_PANEL_NOVATEK_NT36672A is not set
 # CONFIG_DRM_PANEL_NOVATEK_NT39016 is not set
 # CONFIG_DRM_PANEL_MANTIX_MLAF057WE51 is not set
@@ -3103,6 +3115,7 @@ CONFIG_DRM_PANEL_SIMPLE=y
 # CONFIG_DRM_PANEL_SITRONIX_ST7789V is not set
 # CONFIG_DRM_PANEL_SONY_ACX424AKP is not set
 # CONFIG_DRM_PANEL_SONY_ACX565AKM is not set
+# CONFIG_DRM_PANEL_SONY_TULIP_TRULY_NT35521 is not set
 # CONFIG_DRM_PANEL_TDO_TL070WSH30 is not set
 # CONFIG_DRM_PANEL_TPO_TD028TTEC1 is not set
 # CONFIG_DRM_PANEL_TPO_TD043MTEA1 is not set
@@ -3165,6 +3178,7 @@ CONFIG_DRM_DW_HDMI=y
 # CONFIG_DRM_GM12U320 is not set
 # CONFIG_DRM_SIMPLEDRM is not set
 # CONFIG_TINYDRM_HX8357D is not set
+# CONFIG_TINYDRM_ILI9163 is not set
 # CONFIG_TINYDRM_ILI9225 is not set
 # CONFIG_TINYDRM_ILI9341 is not set
 # CONFIG_TINYDRM_ILI9486 is not set
@@ -3181,6 +3195,7 @@ CONFIG_DRM_LIMA=y
 # CONFIG_DRM_GUD is not set
 # CONFIG_DRM_LEGACY is not set
 CONFIG_DRM_PANEL_ORIENTATION_QUIRKS=y
+CONFIG_DRM_NOMODESET=y
 
 #
 # Frame buffer Devices
@@ -3244,6 +3259,7 @@ CONFIG_HDMI=y
 #
 CONFIG_DUMMY_CONSOLE=y
 CONFIG_FRAMEBUFFER_CONSOLE=y
+# CONFIG_FRAMEBUFFER_CONSOLE_LEGACY_ACCELERATION is not set
 CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
 # CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set
 # CONFIG_FRAMEBUFFER_CONSOLE_DEFERRED_TAKEOVER is not set
@@ -3300,6 +3316,7 @@ CONFIG_SND_SOC=y
 CONFIG_SND_SOC_GENERIC_DMAENGINE_PCM=y
 # CONFIG_SND_SOC_ADI is not set
 # CONFIG_SND_SOC_AMD_ACP is not set
+# CONFIG_SND_AMD_ACP_CONFIG is not set
 # CONFIG_SND_ATMEL_SOC is not set
 # CONFIG_SND_BCM63XX_I2S_WHISTLER is not set
 # CONFIG_SND_DESIGNWARE_I2S is not set
@@ -3365,6 +3382,7 @@ CONFIG_SND_SOC_I2C_AND_SPI=y
 # CONFIG_SND_SOC_ADAU7118_I2C is not set
 # CONFIG_SND_SOC_AK4104 is not set
 # CONFIG_SND_SOC_AK4118 is not set
+# CONFIG_SND_SOC_AK4375 is not set
 # CONFIG_SND_SOC_AK4458 is not set
 # CONFIG_SND_SOC_AK4554 is not set
 # CONFIG_SND_SOC_AK4613 is not set
@@ -3460,6 +3478,7 @@ CONFIG_SND_SOC_I2C_AND_SPI=y
 # CONFIG_SND_SOC_TDA7419 is not set
 # CONFIG_SND_SOC_TFA9879 is not set
 # CONFIG_SND_SOC_TFA989X is not set
+# CONFIG_SND_SOC_TLV320ADC3XXX is not set
 # CONFIG_SND_SOC_TLV320AIC23_I2C is not set
 # CONFIG_SND_SOC_TLV320AIC23_SPI is not set
 # CONFIG_SND_SOC_TLV320AIC31XX is not set
@@ -3576,6 +3595,7 @@ CONFIG_HID_KENSINGTON=y
 # CONFIG_HID_LCPOWER is not set
 # CONFIG_HID_LED is not set
 # CONFIG_HID_LENOVO is not set
+# CONFIG_HID_LETSKETCH is not set
 CONFIG_HID_LOGITECH=y
 # CONFIG_HID_LOGITECH_HIDPP is not set
 # CONFIG_LOGITECH_FF is not set
@@ -4035,6 +4055,10 @@ CONFIG_LEDS_TRIGGER_DEFAULT_ON=y
 # CONFIG_LEDS_TRIGGER_PATTERN is not set
 # CONFIG_LEDS_TRIGGER_AUDIO is not set
 # CONFIG_LEDS_TRIGGER_TTY is not set
+
+#
+# Simple LED drivers
+#
 # CONFIG_ACCESSIBILITY is not set
 # CONFIG_INFINIBAND is not set
 CONFIG_EDAC_ATOMIC_SCRUB=y
@@ -4284,6 +4308,8 @@ CONFIG_R8188EU=m
 # end of IIO staging drivers
 
 CONFIG_STAGING_MEDIA=y
+# CONFIG_VIDEO_HANTRO is not set
+# CONFIG_VIDEO_MAX96712 is not set
 CONFIG_VIDEO_SUNXI=y
 CONFIG_VIDEO_SUNXI_CEDRUS=y
 
@@ -4329,6 +4355,7 @@ CONFIG_COMMON_CLK=y
 # CONFIG_COMMON_CLK_CDCE706 is not set
 # CONFIG_COMMON_CLK_CDCE925 is not set
 # CONFIG_COMMON_CLK_CS2000_CP is not set
+# CONFIG_COMMON_CLK_LAN966X is not set
 # CONFIG_COMMON_CLK_AXI_CLKGEN is not set
 # CONFIG_COMMON_CLK_PWM is not set
 # CONFIG_COMMON_CLK_VC5 is not set
@@ -4451,7 +4478,7 @@ CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND=y
 #
 # DEVFREQ Drivers
 #
-# CONFIG_ARM_SUN8I_MBUS_DEVFREQ is not set
+# CONFIG_ARM_SUN8I_A33_MBUS_DEVFREQ is not set
 # CONFIG_PM_DEVFREQ_EVENT is not set
 CONFIG_EXTCON=y
 
@@ -4584,6 +4611,12 @@ CONFIG_AXP20X_ADC=y
 # CONFIG_XILINX_XADC is not set
 # end of Analog to digital converters
 
+#
+# Analog to digital and digital to analog converters
+#
+# CONFIG_AD74413R is not set
+# end of Analog to digital and digital to analog converters
+
 #
 # Analog Front Ends
 #
@@ -4639,6 +4672,7 @@ CONFIG_AXP20X_ADC=y
 #
 # Digital to analog converters
 #
+# CONFIG_AD3552R is not set
 # CONFIG_AD5064 is not set
 # CONFIG_AD5360 is not set
 # CONFIG_AD5380 is not set
@@ -4658,6 +4692,7 @@ CONFIG_AXP20X_ADC=y
 # CONFIG_AD5766 is not set
 # CONFIG_AD5770R is not set
 # CONFIG_AD5791 is not set
+# CONFIG_AD7293 is not set
 # CONFIG_AD7303 is not set
 # CONFIG_AD8801 is not set
 # CONFIG_DPOT_DAC is not set
@@ -4681,6 +4716,11 @@ CONFIG_AXP20X_ADC=y
 #
 # end of IIO dummy driver
 
+#
+# Filters
+#
+# end of Filters
+
 #
 # Frequency Synthesizers DDS/PLL
 #
@@ -4696,6 +4736,7 @@ CONFIG_AXP20X_ADC=y
 #
 # CONFIG_ADF4350 is not set
 # CONFIG_ADF4371 is not set
+# CONFIG_ADMV1013 is not set
 # CONFIG_ADRF6780 is not set
 # end of Phase-Locked Loop (PLL) frequency synthesizers
 # end of Frequency Synthesizers DDS/PLL
@@ -4817,6 +4858,7 @@ CONFIG_AXP20X_ADC=y
 #
 # Magnetometer sensors
 #
+# CONFIG_AF8133J is not set
 # CONFIG_AK8974 is not set
 # CONFIG_AK8975 is not set
 # CONFIG_AK09911 is not set
@@ -4981,8 +5023,10 @@ CONFIG_PHY_SUN50I_USB3=y
 # CONFIG_PHY_CADENCE_SALVO is not set
 # CONFIG_PHY_FSL_IMX8MQ_USB is not set
 # CONFIG_PHY_MIXEL_MIPI_DPHY is not set
+# CONFIG_PHY_FSL_IMX8M_PCIE is not set
 # CONFIG_PHY_PXA_28NM_HSIC is not set
 # CONFIG_PHY_PXA_28NM_USB2 is not set
+# CONFIG_PHY_LAN966X_SERDES is not set
 # CONFIG_PHY_CPCAP_USB is not set
 # CONFIG_PHY_MAPPHONE_MDM6600 is not set
 # CONFIG_PHY_OCELOT_SERDES is not set
@@ -5353,7 +5397,7 @@ CONFIG_CRYPTO_ESSIV=y
 # Hash modes
 #
 CONFIG_CRYPTO_CMAC=m
-CONFIG_CRYPTO_HMAC=m
+CONFIG_CRYPTO_HMAC=y
 # CONFIG_CRYPTO_XCBC is not set
 # CONFIG_CRYPTO_VMAC is not set
 
@@ -5373,7 +5417,7 @@ CONFIG_CRYPTO_MD5=y
 CONFIG_CRYPTO_MICHAEL_MIC=m
 # CONFIG_CRYPTO_RMD160 is not set
 CONFIG_CRYPTO_SHA1=y
-CONFIG_CRYPTO_SHA256=m
+CONFIG_CRYPTO_SHA256=y
 CONFIG_CRYPTO_SHA512=m
 # CONFIG_CRYPTO_SHA3 is not set
 # CONFIG_CRYPTO_SM3 is not set
@@ -5412,6 +5456,7 @@ CONFIG_CRYPTO_ZSTD=m
 # CONFIG_CRYPTO_ANSI_CPRNG is not set
 # CONFIG_CRYPTO_DRBG_MENU is not set
 # CONFIG_CRYPTO_JITTERENTROPY is not set
+CONFIG_CRYPTO_KDF800108_CTR=y
 CONFIG_CRYPTO_USER_API=m
 CONFIG_CRYPTO_USER_API_HASH=m
 CONFIG_CRYPTO_USER_API_SKCIPHER=m
@@ -5420,24 +5465,6 @@ CONFIG_CRYPTO_USER_API_SKCIPHER=m
 # CONFIG_CRYPTO_USER_API_ENABLE_OBSOLETE is not set
 # CONFIG_CRYPTO_STATS is not set
 CONFIG_CRYPTO_HASH_INFO=y
-
-#
-# Crypto library routines
-#
-CONFIG_CRYPTO_LIB_AES=y
-CONFIG_CRYPTO_LIB_ARC4=m
-# CONFIG_CRYPTO_LIB_BLAKE2S is not set
-CONFIG_CRYPTO_ARCH_HAVE_LIB_CHACHA=m
-# CONFIG_CRYPTO_LIB_CHACHA is not set
-CONFIG_CRYPTO_ARCH_HAVE_LIB_CURVE25519=m
-CONFIG_CRYPTO_LIB_CURVE25519_GENERIC=m
-# CONFIG_CRYPTO_LIB_CURVE25519 is not set
-CONFIG_CRYPTO_LIB_DES=y
-CONFIG_CRYPTO_LIB_POLY1305_RSIZE=9
-CONFIG_CRYPTO_ARCH_HAVE_LIB_POLY1305=m
-# CONFIG_CRYPTO_LIB_POLY1305 is not set
-# CONFIG_CRYPTO_LIB_CHACHA20POLY1305 is not set
-CONFIG_CRYPTO_LIB_SHA256=m
 CONFIG_CRYPTO_HW=y
 CONFIG_CRYPTO_DEV_ALLWINNER=y
 CONFIG_CRYPTO_DEV_SUN4I_SS=y
@@ -5490,6 +5517,26 @@ CONFIG_CORDIC=m
 CONFIG_RATIONAL=y
 CONFIG_GENERIC_PCI_IOMAP=y
 CONFIG_ARCH_USE_CMPXCHG_LOCKREF=y
+
+#
+# Crypto library routines
+#
+CONFIG_CRYPTO_LIB_AES=y
+CONFIG_CRYPTO_LIB_ARC4=m
+CONFIG_CRYPTO_LIB_BLAKE2S_GENERIC=y
+CONFIG_CRYPTO_ARCH_HAVE_LIB_CHACHA=m
+# CONFIG_CRYPTO_LIB_CHACHA is not set
+CONFIG_CRYPTO_ARCH_HAVE_LIB_CURVE25519=m
+CONFIG_CRYPTO_LIB_CURVE25519_GENERIC=m
+# CONFIG_CRYPTO_LIB_CURVE25519 is not set
+CONFIG_CRYPTO_LIB_DES=y
+CONFIG_CRYPTO_LIB_POLY1305_RSIZE=9
+CONFIG_CRYPTO_ARCH_HAVE_LIB_POLY1305=m
+# CONFIG_CRYPTO_LIB_POLY1305 is not set
+# CONFIG_CRYPTO_LIB_CHACHA20POLY1305 is not set
+CONFIG_CRYPTO_LIB_SHA256=y
+# end of Crypto library routines
+
 CONFIG_CRC_CCITT=y
 CONFIG_CRC16=y
 CONFIG_CRC_T10DIF=y
@@ -5626,6 +5673,11 @@ CONFIG_HAVE_KCSAN_COMPILER=y
 
 # CONFIG_DEBUG_KERNEL is not set
 
+#
+# Networking Debugging
+#
+# end of Networking Debugging
+
 #
 # Memory Debugging
 #
@@ -5642,6 +5694,8 @@ CONFIG_HAVE_ARCH_KASAN=y
 CONFIG_CC_HAS_KASAN_GENERIC=y
 CONFIG_CC_HAS_WORKING_NOSANITIZE_ADDRESS=y
 # CONFIG_KASAN is not set
+CONFIG_HAVE_ARCH_KFENCE=y
+# CONFIG_KFENCE is not set
 # end of Memory Debugging
 
 #
@@ -5690,6 +5744,7 @@ CONFIG_HAVE_DYNAMIC_FTRACE_WITH_REGS=y
 CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y
 CONFIG_HAVE_SYSCALL_TRACEPOINTS=y
 CONFIG_HAVE_C_RECORDMCOUNT=y
+CONFIG_HAVE_BUILDTIME_MCOUNT_SORT=y
 CONFIG_TRACING_SUPPORT=y
 # CONFIG_FTRACE is not set
 # CONFIG_SAMPLES is not set
diff --git a/device/main/linux-postmarketos-allwinner/cve-2022-0847-dirty-pipe.patch b/device/main/linux-postmarketos-allwinner/cve-2022-0847-dirty-pipe.patch
deleted file mode 120000
index 5b8aa700715..00000000000
--- a/device/main/linux-postmarketos-allwinner/cve-2022-0847-dirty-pipe.patch
+++ /dev/null
@@ -1 +0,0 @@
-../../.shared-patches/linux/cve-2022-0847-dirty-pipe.patch
\ No newline at end of file
-- 
GitLab