mirror of
https://github.com/armbian/build.git
synced 2025-09-19 04:31:38 +02:00
I have changed the way the patches are generated a bit. Instead of using orange-pi branch from megous tree for 6.6 kernel, I have used the following kernel branches a83t-suspend, af8133j, anx, audio, axp, cam, drm, err, fixes, mbus, modem, opi3, pb, pinetab, pp, ppkb, samuel, speed, tbs-a711, ths These branches were carefully chosen to include only allwinner related patches and remove importing of the rockchip related patches into the allwinner kernel. Following patches are modified to fix patch application failure - patches.armbian/arm64-dts-sun50i-h616-orangepi-zero2-reg_usb1_vbus-status-ok.patch - patches.armbian/arm64-dts-sun50i-h616-orangepi-zero2-Enable-GPU-mali.patch - patches.armbian/arm64-dts-allwinner-h616-Add-efuse_xlate-cpu-frequency-scaling-v1_6_2.patch - patches.armbian/arm64-dts-allwinner-h616-LED-green_power_on-red_status_heartbeat.patch - patches.armbian/arm64-dts-allwinner-overlay-Add-Overlays-for-sunxi64.patch - patches.armbian/arm64-dts-sun50i-h616-bigtreetech-cb1.patch Following patches are modified because of kernel api change to fix compilation failure - patches.armbian/drv-gpu-drm-sun4i-Add-HDMI-audio-sun4i-hdmi-encoder.patch - patches.armbian/drv-of-Device-Tree-Overlay-ConfigFS-interface.patch
103 lines
4.5 KiB
Diff
103 lines
4.5 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Samuel Holland <samuel@sholland.org>
|
|
Date: Sat, 29 Feb 2020 01:01:58 -0600
|
|
Subject: mfd: axp20x: Add battery IRQ resources
|
|
|
|
Signed-off-by: Samuel Holland <samuel@sholland.org>
|
|
---
|
|
drivers/mfd/axp20x.c | 36 ++++++++++
|
|
1 file changed, 36 insertions(+)
|
|
|
|
diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c
|
|
index 87603eeaa277..9be8aa8c8bc2 100644
|
|
--- a/drivers/mfd/axp20x.c
|
|
+++ b/drivers/mfd/axp20x.c
|
|
@@ -269,6 +269,15 @@ static const struct resource axp20x_ac_power_supply_resources[] = {
|
|
DEFINE_RES_IRQ_NAMED(AXP20X_IRQ_ACIN_OVER_V, "ACIN_OVER_V"),
|
|
};
|
|
|
|
+static const struct resource axp20x_battery_resources[] = {
|
|
+ DEFINE_RES_IRQ_NAMED(AXP20X_IRQ_BATT_PLUGIN, "BATT_PLUGIN"),
|
|
+ DEFINE_RES_IRQ_NAMED(AXP20X_IRQ_BATT_REMOVAL, "BATT_REMOVAL"),
|
|
+ DEFINE_RES_IRQ_NAMED(AXP20X_IRQ_BATT_ENT_ACT_MODE, "BATT_HEALTH_DEAD"),
|
|
+ DEFINE_RES_IRQ_NAMED(AXP20X_IRQ_BATT_EXIT_ACT_MODE, "BATT_HEALTH_GOOD"),
|
|
+ DEFINE_RES_IRQ_NAMED(AXP20X_IRQ_CHARG, "BATT_CHARGING"),
|
|
+ DEFINE_RES_IRQ_NAMED(AXP20X_IRQ_CHARG_DONE, "BATT_CHARGING_DONE"),
|
|
+};
|
|
+
|
|
static const struct resource axp20x_pek_resources[] = {
|
|
DEFINE_RES_IRQ_NAMED(AXP20X_IRQ_PEK_RIS_EDGE, "PEK_DBR"),
|
|
DEFINE_RES_IRQ_NAMED(AXP20X_IRQ_PEK_FAL_EDGE, "PEK_DBF"),
|
|
@@ -316,6 +325,23 @@ static const struct resource axp313a_pek_resources[] = {
|
|
DEFINE_RES_IRQ_NAMED(AXP313A_IRQ_PEK_FAL_EDGE, "PEK_DBF"),
|
|
};
|
|
|
|
+static const struct resource axp803_battery_resources[] = {
|
|
+ DEFINE_RES_IRQ_NAMED(AXP803_IRQ_BATT_PLUGIN, "BATT_PLUGIN"),
|
|
+ DEFINE_RES_IRQ_NAMED(AXP803_IRQ_BATT_REMOVAL, "BATT_REMOVAL"),
|
|
+ DEFINE_RES_IRQ_NAMED(AXP803_IRQ_BATT_ENT_ACT_MODE, "BATT_HEALTH_DEAD"),
|
|
+ DEFINE_RES_IRQ_NAMED(AXP803_IRQ_BATT_EXIT_ACT_MODE, "BATT_HEALTH_GOOD"),
|
|
+ DEFINE_RES_IRQ_NAMED(AXP803_IRQ_CHARG, "BATT_CHARGING"),
|
|
+ DEFINE_RES_IRQ_NAMED(AXP803_IRQ_CHARG_DONE, "BATT_CHARGING_DONE"),
|
|
+ DEFINE_RES_IRQ_NAMED(AXP803_IRQ_BATT_CHG_TEMP_HIGH, "BATT_CHG_TEMP_HIGH"),
|
|
+ DEFINE_RES_IRQ_NAMED(AXP803_IRQ_BATT_CHG_TEMP_HIGH_END, "BATT_CHG_TEMP_HIGH_END"),
|
|
+ DEFINE_RES_IRQ_NAMED(AXP803_IRQ_BATT_CHG_TEMP_LOW, "BATT_CHG_TEMP_LOW"),
|
|
+ DEFINE_RES_IRQ_NAMED(AXP803_IRQ_BATT_CHG_TEMP_LOW_END, "BATT_CHG_TEMP_LOW_END"),
|
|
+ DEFINE_RES_IRQ_NAMED(AXP803_IRQ_BATT_ACT_TEMP_HIGH, "BATT_ACT_TEMP_HIGH"),
|
|
+ DEFINE_RES_IRQ_NAMED(AXP803_IRQ_BATT_ACT_TEMP_HIGH_END, "BATT_ACT_TEMP_HIGH_END"),
|
|
+ DEFINE_RES_IRQ_NAMED(AXP803_IRQ_BATT_ACT_TEMP_LOW, "BATT_ACT_TEMP_LOW"),
|
|
+ DEFINE_RES_IRQ_NAMED(AXP803_IRQ_BATT_ACT_TEMP_LOW_END, "BATT_ACT_TEMP_LOW_END"),
|
|
+};
|
|
+
|
|
static const struct resource axp803_pek_resources[] = {
|
|
DEFINE_RES_IRQ_NAMED(AXP803_IRQ_PEK_RIS_EDGE, "PEK_DBR"),
|
|
DEFINE_RES_IRQ_NAMED(AXP803_IRQ_PEK_FAL_EDGE, "PEK_DBF"),
|
|
@@ -856,6 +882,8 @@ static const struct mfd_cell axp20x_cells[] = {
|
|
}, {
|
|
.name = "axp20x-battery-power-supply",
|
|
.of_compatible = "x-powers,axp209-battery-power-supply",
|
|
+ .num_resources = ARRAY_SIZE(axp20x_battery_resources),
|
|
+ .resources = axp20x_battery_resources,
|
|
}, {
|
|
.name = "axp20x-ac-power-supply",
|
|
.of_compatible = "x-powers,axp202-ac-power-supply",
|
|
@@ -890,6 +918,8 @@ static const struct mfd_cell axp221_cells[] = {
|
|
}, {
|
|
.name = "axp20x-battery-power-supply",
|
|
.of_compatible = "x-powers,axp221-battery-power-supply",
|
|
+ .num_resources = ARRAY_SIZE(axp20x_battery_resources),
|
|
+ .resources = axp20x_battery_resources,
|
|
}, {
|
|
.name = "axp20x-usb-power-supply",
|
|
.of_compatible = "x-powers,axp221-usb-power-supply",
|
|
@@ -912,6 +942,8 @@ static const struct mfd_cell axp223_cells[] = {
|
|
}, {
|
|
.name = "axp20x-battery-power-supply",
|
|
.of_compatible = "x-powers,axp221-battery-power-supply",
|
|
+ .num_resources = ARRAY_SIZE(axp20x_battery_resources),
|
|
+ .resources = axp20x_battery_resources,
|
|
}, {
|
|
.name = "axp20x-regulator",
|
|
}, {
|
|
@@ -1016,6 +1048,8 @@ static const struct mfd_cell axp803_cells[] = {
|
|
}, {
|
|
.name = "axp20x-battery-power-supply",
|
|
.of_compatible = "x-powers,axp813-battery-power-supply",
|
|
+ .num_resources = ARRAY_SIZE(axp803_battery_resources),
|
|
+ .resources = axp803_battery_resources,
|
|
}, {
|
|
.name = "axp20x-ac-power-supply",
|
|
.of_compatible = "x-powers,axp813-ac-power-supply",
|
|
@@ -1076,6 +1110,8 @@ static const struct mfd_cell axp813_cells[] = {
|
|
}, {
|
|
.name = "axp20x-battery-power-supply",
|
|
.of_compatible = "x-powers,axp813-battery-power-supply",
|
|
+ .num_resources = ARRAY_SIZE(axp803_battery_resources),
|
|
+ .resources = axp803_battery_resources,
|
|
}, {
|
|
.name = "axp20x-ac-power-supply",
|
|
.of_compatible = "x-powers,axp813-ac-power-supply",
|
|
--
|
|
Armbian
|
|
|