add kernel config + patches for version 5.10

This commit is contained in:
Christian Zimmermann 2021-01-09 22:56:08 +01:00
parent e7b2f7c6f6
commit 0f88e02b97
3 changed files with 9442 additions and 0 deletions

1
kernel/config-5.10.0 Symbolic link
View file

@ -0,0 +1 @@
linux-2c85ebc57b3e1817b6ce1a6b703928e113a90442.config

File diff suppressed because it is too large Load diff

119
kernel/patches/patch-5.10.0 Normal file
View file

@ -0,0 +1,119 @@
diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/arm/boot/dts/mt7623.dtsi
index aea6809500d7..e34e26f09673 100644
--- a/arch/arm/boot/dts/mt7623.dtsi
+++ b/arch/arm/boot/dts/mt7623.dtsi
@@ -1055,7 +1055,11 @@ led_pins_a: leds-alt {
pins-leds {
pinmux = <MT7623_PIN_239_EXT_SDIO0_FUNC_GPIO239>,
<MT7623_PIN_240_EXT_XCS_FUNC_GPIO240>,
- <MT7623_PIN_241_EXT_SCK_FUNC_GPIO241>;
+ <MT7623_PIN_241_EXT_SCK_FUNC_GPIO241>,
+ <MT7623_PIN_21_PCM_TX_FUNC_GPIO21>,
+ <MT7623_PIN_22_EINT0_FUNC_GPIO22>,
+ <MT7623_PIN_24_EINT2_FUNC_GPIO24>,
+ <MT7623_PIN_25_EINT3_FUNC_GPIO25>;
};
};
diff --git a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
index e96aa0ed1ebd..e0acf3b99b66 100644
--- a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
+++ b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
@@ -126,6 +126,30 @@ red {
gpios = <&pio 239 GPIO_ACTIVE_LOW>;
default-state = "off";
};
+
+ cust-0 {
+ label = "bpi-r2:pio:cust0";
+ gpios = <&pio 21 GPIO_ACTIVE_HIGH>;
+ default-state = "off";
+ };
+
+ cust-1 {
+ label = "bpi-r2:pio:cust1";
+ gpios = <&pio 22 GPIO_ACTIVE_HIGH>;
+ default-state = "off";
+ };
+
+ cust-2 {
+ label = "bpi-r2:pio:cust2";
+ gpios = <&pio 24 GPIO_ACTIVE_HIGH>;
+ default-state = "off";
+ };
+
+ cust-3 {
+ label = "bpi-r2:pio:cust3";
+ gpios = <&pio 25 GPIO_ACTIVE_HIGH>;
+ default-state = "off";
+ };
};
memory@80000000 {
diff --git a/drivers/net/dsa/mt7530.c b/drivers/net/dsa/mt7530.c
index de7692b763d8..0e0c7c9b31a5 100644
--- a/drivers/net/dsa/mt7530.c
+++ b/drivers/net/dsa/mt7530.c
@@ -1572,6 +1572,7 @@ mt7530_setup(struct dsa_switch *ds)
ds->configure_vlan_while_not_filtering = true;
if (priv->id == ID_MT7530) {
+ /*
regulator_set_voltage(priv->core_pwr, 1000000, 1000000);
ret = regulator_enable(priv->core_pwr);
if (ret < 0) {
@@ -1587,6 +1588,7 @@ mt7530_setup(struct dsa_switch *ds)
ret);
return ret;
}
+ */
}
/* Reset whole chip through gpio pin or memory-mapped registers for
@@ -2638,6 +2640,7 @@ mt7530_probe(struct mdio_device *mdiodev)
priv->id = priv->info->id;
+ /*
if (priv->id == ID_MT7530) {
priv->core_pwr = devm_regulator_get(&mdiodev->dev, "core");
if (IS_ERR(priv->core_pwr))
@@ -2647,6 +2650,7 @@ mt7530_probe(struct mdio_device *mdiodev)
if (IS_ERR(priv->io_pwr))
return PTR_ERR(priv->io_pwr);
}
+ */
/* Not MCM that indicates switch works as the remote standalone
* integrated circuit so the GPIO pin would be used to complete
@@ -2678,6 +2682,7 @@ mt7530_remove(struct mdio_device *mdiodev)
struct mt7530_priv *priv = dev_get_drvdata(&mdiodev->dev);
int ret = 0;
+ /*
ret = regulator_disable(priv->core_pwr);
if (ret < 0)
dev_err(priv->dev,
@@ -2687,7 +2692,7 @@ mt7530_remove(struct mdio_device *mdiodev)
if (ret < 0)
dev_err(priv->dev, "Failed to disable io pwr: %d\n",
ret);
-
+ */
dsa_unregister_switch(priv->ds);
mutex_destroy(&priv->reg_mutex);
}
diff --git a/scripts/depmod.sh b/scripts/depmod.sh
index e083bcae343f..1b98fdc9d9a8 100755
--- a/scripts/depmod.sh
+++ b/scripts/depmod.sh
@@ -1,4 +1,9 @@
#!/bin/sh
+exit 0
+exit 0
+exit 0
+exit 0
+exit 0
# SPDX-License-Identifier: GPL-2.0
#
# A depmod wrapper used by the toplevel Makefile