Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sunxi-6.1: switch to tag:v6.1.97, re-extracting the corrected ones #6893

Merged
merged 4 commits into from
Jul 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/sources/families/include/sunxi64_common.inc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ case $BRANCH in

legacy)
declare -g KERNEL_MAJOR_MINOR="6.1" # Major and minor versions of this kernel.
declare -g KERNELBRANCH="tag:v6.1.96"
declare -g KERNELBRANCH="tag:v6.1.97"
;;

current)
Expand Down
2 changes: 1 addition & 1 deletion config/sources/families/include/sunxi_common.inc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ case $BRANCH in

legacy)
declare -g KERNEL_MAJOR_MINOR="6.1" # Major and minor versions of this kernel.
declare -g KERNELBRANCH="tag:v6.1.96"
declare -g KERNELBRANCH="tag:v6.1.97"
;;

current)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/
index 80d7f4854..160fe50bd 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi
@@ -319,6 +319,17 @@ msgbox: mailbox@3003000 {
@@ -309,6 +309,17 @@ msgbox: mailbox@3003000 {
#mbox-cells = <1>;
};

Expand All @@ -29,23 +29,23 @@ index 80d7f4854..160fe50bd 100644
sid: efuse@3006000 {
compatible = "allwinner,sun50i-h6-sid";
reg = <0x03006000 0x400>;
@@ -382,6 +393,7 @@ pio: pinctrl@300b000 {
@@ -368,6 +379,7 @@ pio: pinctrl@300b000 {
interrupt-controller;
#interrupt-cells = <3>;

+ /omit-if-no-ref/
ext_rgmii_pins: rgmii-pins {
pins = "PD0", "PD1", "PD2", "PD3", "PD4",
"PD5", "PD7", "PD8", "PD9", "PD10",
@@ -445,6 +457,7 @@ pwm1_pin: pwm1-pin {
function = "pwm1";
@@ -413,6 +425,7 @@ mmc1_pins: mmc1-pins {
bias-pull-up;
};

+ /omit-if-no-ref/
mmc2_pins: mmc2-pins {
pins = "PC1", "PC4", "PC5", "PC6",
"PC7", "PC8", "PC9", "PC10",
@@ -498,17 +511,26 @@ uart1_rts_cts_pins: uart1-rts-cts-pins {
@@ -467,17 +480,26 @@ uart1_rts_cts_pins: uart1-rts-cts-pins {
pins = "PG8", "PG9";
function = "uart1";
};
Expand Down Expand Up @@ -82,7 +82,7 @@ index 80d7f4854..160fe50bd 100644
};

iommu: iommu@30f0000 {
@@ -1026,6 +1048,19 @@ tcon_tv_out_tcon_top: endpoint@1 {
@@ -962,6 +984,19 @@ tcon_tv_out_tcon_top: endpoint@1 {
};
};

Expand All @@ -102,7 +102,7 @@ index 80d7f4854..160fe50bd 100644
rtc: rtc@7000000 {
compatible = "allwinner,sun50i-h6-rtc";
reg = <0x07000000 0x400>;
@@ -1091,6 +1126,11 @@ r_rsb_pins: r-rsb-pins {
@@ -1027,6 +1062,11 @@ r_rsb_pins: r-rsb-pins {
pins = "PL0", "PL1";
function = "s_rsb";
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From 897ce7f9ba84e76d169511b34acace2d8c5707d7 Mon Sep 17 00:00:00 2001
From 6a040d7333daad91cbcf44e4e777ff4050ccf30e Mon Sep 17 00:00:00 2001
From: orangepi-xunlong <[email protected]>
Date: Mon, 5 Jun 2023 14:16:04 +0800
Subject: [PATCH] drivers: hack for h616 hdmi video output
Expand All @@ -22,22 +22,22 @@ Subject: [PATCH] drivers: hack for h616 hdmi video output
create mode 100644 drivers/clk/sunxi-ng/ccu-sun8i-de33.h

diff --git a/drivers/clk/sunxi-ng/Kconfig b/drivers/clk/sunxi-ng/Kconfig
index b547198a2c65..01d2f8c4d73e 100644
index 461537679..2ca069af4 100644
--- a/drivers/clk/sunxi-ng/Kconfig
+++ b/drivers/clk/sunxi-ng/Kconfig
@@ -103,6 +103,10 @@ config SUN8I_DE2_CCU
default y
depends on MACH_SUN8I || ARM64 || RISCV || COMPILE_TEST
tristate "Support for the Allwinner SoCs DE2 CCU"
default MACH_SUN8I || (ARM64 && ARCH_SUNXI)

+config SUN8I_DE33_CCU
+ tristate "Support for the Allwinner SoCs DE3.3 CCU"
+ default MACH_SUN8I || (ARM64 && ARCH_SUNXI)
+
config SUN8I_R40_CCU
tristate "Support for the Allwinner R40 CCU"
default y
default MACH_SUN8I
diff --git a/drivers/clk/sunxi-ng/Makefile b/drivers/clk/sunxi-ng/Makefile
index 6b3ae2b620db..cd20050cd9f1 100644
index 6b3ae2b62..cd20050cd 100644
--- a/drivers/clk/sunxi-ng/Makefile
+++ b/drivers/clk/sunxi-ng/Makefile
@@ -44,6 +44,7 @@ obj-$(CONFIG_SUN8I_H3_CCU) += sun8i-h3-ccu.o
Expand All @@ -58,7 +58,7 @@ index 6b3ae2b620db..cd20050cd9f1 100644
sun9i-a80-de-ccu-y += ccu-sun9i-a80-de.o
diff --git a/drivers/clk/sunxi-ng/ccu-sun8i-de33.c b/drivers/clk/sunxi-ng/ccu-sun8i-de33.c
new file mode 100644
index 000000000000..fa5b1cf62444
index 000000000..fa5b1cf62
--- /dev/null
+++ b/drivers/clk/sunxi-ng/ccu-sun8i-de33.c
@@ -0,0 +1,181 @@
Expand Down Expand Up @@ -245,7 +245,7 @@ index 000000000000..fa5b1cf62444
+builtin_platform_driver(sunxi_de33_clk_driver);
diff --git a/drivers/clk/sunxi-ng/ccu-sun8i-de33.h b/drivers/clk/sunxi-ng/ccu-sun8i-de33.h
new file mode 100644
index 000000000000..83cbef5a3f76
index 000000000..83cbef5a3
--- /dev/null
+++ b/drivers/clk/sunxi-ng/ccu-sun8i-de33.h
@@ -0,0 +1,19 @@
Expand All @@ -269,11 +269,11 @@ index 000000000000..83cbef5a3f76
+
+#endif /* _CCU_SUN8I_DE2_H_ */
diff --git a/drivers/gpu/drm/sun4i/sun4i_tcon.c b/drivers/gpu/drm/sun4i/sun4i_tcon.c
index 19875219fe3d..a005dcaaf788 100644
index 972f44e13..3bf7bbbf1 100644
--- a/drivers/gpu/drm/sun4i/sun4i_tcon.c
+++ b/drivers/gpu/drm/sun4i/sun4i_tcon.c
@@ -1313,6 +1313,10 @@ static int sun4i_tcon_bind(struct device *dev, struct device *master,
goto err_free_dclk;
goto err_free_dotclock;
}

+ regmap_update_bits(tcon->regs, SUN4I_TCON_GCTL_REG,
Expand All @@ -284,7 +284,7 @@ index 19875219fe3d..a005dcaaf788 100644
/*
* We assume there is no dynamic muxing of backends
diff --git a/drivers/gpu/drm/sun4i/sun4i_tcon.h b/drivers/gpu/drm/sun4i/sun4i_tcon.h
index 7ba3df9e27df..e8687a696d2a 100644
index 7ba3df9e2..e8687a696 100644
--- a/drivers/gpu/drm/sun4i/sun4i_tcon.h
+++ b/drivers/gpu/drm/sun4i/sun4i_tcon.h
@@ -20,6 +20,7 @@
Expand All @@ -296,7 +296,7 @@ index 7ba3df9e27df..e8687a696d2a 100644
#define SUN4I_TCON_GCTL_IOMAP_TCON1 (1 << 0)
#define SUN4I_TCON_GCTL_IOMAP_TCON0 (0 << 0)
diff --git a/drivers/gpu/drm/sun4i/sun8i_csc.c b/drivers/gpu/drm/sun4i/sun8i_csc.c
index 58480d8e4f70..703c55ba788b 100644
index 58480d8e4..703c55ba7 100644
--- a/drivers/gpu/drm/sun4i/sun8i_csc.c
+++ b/drivers/gpu/drm/sun4i/sun8i_csc.c
@@ -107,6 +107,14 @@ static const u32 yuv2rgb_de3[2][3][12] = {
Expand Down Expand Up @@ -379,10 +379,10 @@ index 58480d8e4f70..703c55ba788b 100644
sun8i_csc_enable(mixer->engine.regs, base, enable);
}
diff --git a/drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c b/drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c
index 4fa69c463dc4..5915326b2699 100644
index ca53b5e9f..856b5ab5b 100644
--- a/drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c
+++ b/drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c
@@ -124,6 +124,76 @@ static const struct dw_hdmi_phy_config sun50i_h6_phy_config[] = {
@@ -123,6 +123,76 @@ static const struct dw_hdmi_phy_config sun50i_h6_phy_config[] = {
{ ~0UL, 0x0000, 0x0000, 0x0000}
};

Expand Down Expand Up @@ -459,7 +459,7 @@ index 4fa69c463dc4..5915326b2699 100644
static void sun8i_hdmi_phy_set_polarity(struct sun8i_hdmi_phy *phy,
const struct drm_display_mode *mode)
{
@@ -626,6 +696,13 @@ static const struct sun8i_hdmi_phy_variant sun50i_h6_hdmi_phy = {
@@ -625,6 +695,13 @@ static const struct sun8i_hdmi_phy_variant sun50i_h6_hdmi_phy = {
.phy_init = &sun50i_hdmi_phy_init_h6,
};

Expand All @@ -473,7 +473,7 @@ index 4fa69c463dc4..5915326b2699 100644
static const struct of_device_id sun8i_hdmi_phy_of_table[] = {
{
.compatible = "allwinner,sun8i-a83t-hdmi-phy",
@@ -647,6 +724,10 @@ static const struct of_device_id sun8i_hdmi_phy_of_table[] = {
@@ -646,6 +723,10 @@ static const struct of_device_id sun8i_hdmi_phy_of_table[] = {
.compatible = "allwinner,sun50i-h6-hdmi-phy",
.data = &sun50i_h6_hdmi_phy,
},
Expand All @@ -485,10 +485,10 @@ index 4fa69c463dc4..5915326b2699 100644
};

diff --git a/drivers/gpu/drm/sun4i/sun8i_mixer.c b/drivers/gpu/drm/sun4i/sun8i_mixer.c
index 8316ef1547b6..85147617124c 100644
index 9aae44e33..cf620cca2 100644
--- a/drivers/gpu/drm/sun4i/sun8i_mixer.c
+++ b/drivers/gpu/drm/sun4i/sun8i_mixer.c
@@ -286,6 +286,9 @@ static void sun8i_mixer_commit(struct sunxi_engine *engine,
@@ -278,6 +278,9 @@ static void sun8i_mixer_commit(struct sunxi_engine *engine,
struct drm_plane_state *plane_state;
struct drm_plane *plane;
u32 route = 0, pipe_en = 0;
Expand All @@ -498,7 +498,7 @@ index 8316ef1547b6..85147617124c 100644

if (mixer->hw_preconfigured && engine->id == 0) {
struct sun4i_tcon* tcon;
@@ -347,7 +350,7 @@ static void sun8i_mixer_commit(struct sunxi_engine *engine,
@@ -339,7 +342,7 @@ static void sun8i_mixer_commit(struct sunxi_engine *engine,
pipe_en |= SUN8I_MIXER_BLEND_PIPE_CTL_EN(zpos);
}

Expand All @@ -507,7 +507,7 @@ index 8316ef1547b6..85147617124c 100644
SUN8I_MIXER_BLEND_ROUTE(bld_base),
SUN8I_MIXER_BLEND_ROUTE_PIPE_MSK(0) |
SUN8I_MIXER_BLEND_ROUTE_PIPE_MSK(1) |
@@ -355,7 +358,7 @@ static void sun8i_mixer_commit(struct sunxi_engine *engine,
@@ -347,7 +350,7 @@ static void sun8i_mixer_commit(struct sunxi_engine *engine,
SUN8I_MIXER_BLEND_ROUTE_PIPE_MSK(3),
route);

Expand All @@ -516,7 +516,7 @@ index 8316ef1547b6..85147617124c 100644
SUN8I_MIXER_BLEND_PIPE_CTL(bld_base),
SUN8I_MIXER_BLEND_PIPE_CTL_EN(0) |
SUN8I_MIXER_BLEND_PIPE_CTL_EN(1) |
@@ -363,8 +366,12 @@ static void sun8i_mixer_commit(struct sunxi_engine *engine,
@@ -355,8 +358,12 @@ static void sun8i_mixer_commit(struct sunxi_engine *engine,
SUN8I_MIXER_BLEND_PIPE_CTL_EN(3),
pipe_en);

Expand All @@ -531,7 +531,7 @@ index 8316ef1547b6..85147617124c 100644
}

static struct drm_plane **sun8i_layers_init(struct drm_device *drm,
@@ -418,25 +425,31 @@ static void sun8i_mixer_mode_set(struct sunxi_engine *engine,
@@ -405,25 +412,31 @@ static void sun8i_mixer_mode_set(struct sunxi_engine *engine,
const struct drm_display_mode *mode)
{
struct sun8i_mixer *mixer = engine_to_sun8i_mixer(engine);
Expand Down Expand Up @@ -566,7 +566,7 @@ index 8316ef1547b6..85147617124c 100644
SUN8I_MIXER_BLEND_OUTCTL_INTERLACED, val);

DRM_DEBUG_DRIVER("Switching display mixer interlaced mode %s\n",
@@ -475,6 +488,20 @@ static const struct regmap_config sun8i_mixer_regmap_config = {
@@ -443,6 +456,20 @@ static const struct regmap_config sun8i_mixer_regmap_config = {
.max_register = 0xffffc, /* guessed */
};

Expand All @@ -587,7 +587,7 @@ index 8316ef1547b6..85147617124c 100644
static int sun8i_mixer_of_get_id(struct device_node *node)
{
struct device_node *ep, *remote;
@@ -495,6 +522,84 @@ static int sun8i_mixer_of_get_id(struct device_node *node)
@@ -463,6 +490,84 @@ static int sun8i_mixer_of_get_id(struct device_node *node)
return of_ep.id;
}

Expand Down Expand Up @@ -672,7 +672,7 @@ index 8316ef1547b6..85147617124c 100644
static int sun8i_mixer_bind(struct device *dev, struct device *master,
void *data)
{
@@ -571,6 +676,30 @@ static int sun8i_mixer_bind(struct device *dev, struct device *master,
@@ -539,6 +644,30 @@ static int sun8i_mixer_bind(struct device *dev, struct device *master,
return PTR_ERR(mixer->engine.regs);
}

Expand Down Expand Up @@ -703,7 +703,7 @@ index 8316ef1547b6..85147617124c 100644
mixer->reset = devm_reset_control_get(dev, NULL);
if (IS_ERR(mixer->reset)) {
dev_err(dev, "Couldn't get our reset line\n");
@@ -613,11 +742,11 @@ static int sun8i_mixer_bind(struct device *dev, struct device *master,
@@ -581,11 +710,11 @@ static int sun8i_mixer_bind(struct device *dev, struct device *master,

list_add_tail(&mixer->engine.list, &drv->engine_list);

Expand All @@ -719,7 +719,7 @@ index 8316ef1547b6..85147617124c 100644
for (i = 0; i < DE3_MIXER_UNIT_SIZE; i += 4)
regmap_write(mixer->engine.regs, i, 0);

@@ -631,7 +760,10 @@ static int sun8i_mixer_bind(struct device *dev, struct device *master,
@@ -599,7 +728,10 @@ static int sun8i_mixer_bind(struct device *dev, struct device *master,
regmap_write(mixer->engine.regs, SUN50I_MIXER_FMT_EN, 0);
regmap_write(mixer->engine.regs, SUN50I_MIXER_CDC0_EN, 0);
regmap_write(mixer->engine.regs, SUN50I_MIXER_CDC1_EN, 0);
Expand All @@ -730,7 +730,7 @@ index 8316ef1547b6..85147617124c 100644
for (i = 0; i < DE2_MIXER_UNIT_SIZE; i += 4)
regmap_write(mixer->engine.regs, i, 0);

@@ -642,35 +774,8 @@ static int sun8i_mixer_bind(struct device *dev, struct device *master,
@@ -610,35 +742,8 @@ static int sun8i_mixer_bind(struct device *dev, struct device *master,
regmap_write(mixer->engine.regs, SUN8I_MIXER_ASE_EN, 0);
regmap_write(mixer->engine.regs, SUN8I_MIXER_FCC_EN, 0);
regmap_write(mixer->engine.regs, SUN8I_MIXER_DCSC_EN, 0);
Expand Down Expand Up @@ -768,7 +768,7 @@ index 8316ef1547b6..85147617124c 100644
}

return 0;
@@ -825,6 +930,17 @@ static const struct sun8i_mixer_cfg sun50i_h6_mixer0_cfg = {
@@ -794,6 +899,17 @@ static const struct sun8i_mixer_cfg sun50i_h6_mixer0_cfg = {
.vi_num = 1,
};

Expand All @@ -786,7 +786,7 @@ index 8316ef1547b6..85147617124c 100644
static const struct of_device_id sun8i_mixer_of_table[] = {
{
.compatible = "allwinner,sun8i-a83t-de2-mixer-0",
@@ -874,6 +990,10 @@ static const struct of_device_id sun8i_mixer_of_table[] = {
@@ -843,6 +959,10 @@ static const struct of_device_id sun8i_mixer_of_table[] = {
.compatible = "allwinner,sun50i-h6-de3-mixer-0",
.data = &sun50i_h6_mixer0_cfg,
},
Expand All @@ -798,7 +798,7 @@ index 8316ef1547b6..85147617124c 100644
};
MODULE_DEVICE_TABLE(of, sun8i_mixer_of_table);
diff --git a/drivers/gpu/drm/sun4i/sun8i_mixer.h b/drivers/gpu/drm/sun4i/sun8i_mixer.h
index 7bc8efca6980..e28e65572a9f 100644
index 68e2741b0..e41066b08 100644
--- a/drivers/gpu/drm/sun4i/sun8i_mixer.h
+++ b/drivers/gpu/drm/sun4i/sun8i_mixer.h
@@ -21,6 +21,12 @@
Expand All @@ -814,15 +814,15 @@ index 7bc8efca6980..e28e65572a9f 100644
#define SUN8I_MIXER_GLOBAL_CTL_RT_EN BIT(0)

#define SUN8I_MIXER_GLOBAL_DBUFF_ENABLE BIT(0)
@@ -166,6 +172,7 @@ enum {
@@ -163,6 +169,7 @@ enum {
* @mod_rate: module clock rate that needs to be set in order to have
* a functional block.
* @is_de3: true, if this is next gen display engine 3.0, false otherwise.
+ * @is_de33: true, if this is next gen display engine 3.3, false otherwise.
* @scaline_yuv: size of a scanline for VI scaler for YUV formats.
*/
struct sun8i_mixer_cfg {
@@ -175,7 +182,9 @@ struct sun8i_mixer_cfg {
@@ -172,7 +179,9 @@ struct sun8i_mixer_cfg {
int ccsc;
unsigned long mod_rate;
unsigned int is_de3 : 1;
Expand All @@ -832,7 +832,7 @@ index 7bc8efca6980..e28e65572a9f 100644
};

struct sun8i_mixer {
@@ -190,6 +199,8 @@ struct sun8i_mixer {
@@ -187,6 +196,8 @@ struct sun8i_mixer {

struct sun4i_drv *drv;
bool hw_preconfigured;
Expand All @@ -841,7 +841,7 @@ index 7bc8efca6980..e28e65572a9f 100644
};

enum {
@@ -223,10 +234,19 @@ sun8i_blender_base(struct sun8i_mixer *mixer)
@@ -220,10 +231,19 @@ sun8i_blender_base(struct sun8i_mixer *mixer)
return mixer->cfg->is_de3 ? DE3_BLD_BASE : DE2_BLD_BASE;
}

Expand All @@ -863,7 +863,7 @@ index 7bc8efca6980..e28e65572a9f 100644
else
return DE2_CH_BASE + channel * DE2_CH_SIZE;
diff --git a/drivers/gpu/drm/sun4i/sun8i_ui_layer.c b/drivers/gpu/drm/sun4i/sun8i_ui_layer.c
index 0349e8bdffd6..bab560f2edf9 100644
index b90e5edef..92ab1ac97 100644
--- a/drivers/gpu/drm/sun4i/sun8i_ui_layer.c
+++ b/drivers/gpu/drm/sun4i/sun8i_ui_layer.c
@@ -23,6 +23,7 @@
Expand Down Expand Up @@ -926,7 +926,7 @@ index 0349e8bdffd6..bab560f2edf9 100644
outsize);

diff --git a/drivers/gpu/drm/sun4i/sun8i_vi_layer.c b/drivers/gpu/drm/sun4i/sun8i_vi_layer.c
index 9c09d9c08496..dca22df8c748 100644
index 9c09d9c08..dca22df8c 100644
--- a/drivers/gpu/drm/sun4i/sun8i_vi_layer.c
+++ b/drivers/gpu/drm/sun4i/sun8i_vi_layer.c
@@ -54,6 +54,7 @@ static int sun8i_vi_layer_update_coord(struct sun8i_mixer *mixer, int channel,
Expand Down Expand Up @@ -959,7 +959,7 @@ index 9c09d9c08496..dca22df8c748 100644
outsize);

diff --git a/drivers/gpu/drm/sun4i/sun8i_vi_scaler.c b/drivers/gpu/drm/sun4i/sun8i_vi_scaler.c
index 7ba75011adf9..3f7afa8d37c5 100644
index 7ba75011a..3f7afa8d3 100644
--- a/drivers/gpu/drm/sun4i/sun8i_vi_scaler.c
+++ b/drivers/gpu/drm/sun4i/sun8i_vi_scaler.c
@@ -835,7 +835,9 @@ static const u32 bicubic4coefftab32[480] = {
Expand All @@ -974,5 +974,5 @@ index 7ba75011adf9..3f7afa8d37c5 100644
DE3_VI_SCALER_UNIT_SIZE * channel;
else
--
2.34.1
2.35.3

Loading