mirror of
https://github.com/armbian/build.git
synced 2025-08-15 23:56:57 +02:00
* sunxi-5.18 Initial state for armbian patches * Adapting patches to the new kernel, sort, add new megous patches * DEBUG * Add the latest patches * fix: compile error drivers/spi/spi.c:3548:3: note: in expansion of macro ‘dev_info’ dev_info(&spi->dev, "spi_setup / gpio_is_valid(%d) ... doing gpio_request ...\n", spi->cs_gpio); ^~~~~~~~ drivers/spi/spi.c:3549:9: error: implicit declaration of function ‘gpio_request’; did you mean ‘gpio_to_desc’? [-Werror=implicit-function-declaration] ret = gpio_request(spi->cs_gpio, dev_name(&spi->dev)); ^~~~~~~~~~~~ gpio_to_desc drivers/spi/spi.c:3549:27: error: ‘struct spi_device’ has no member named ‘cs_gpio’; did you mean ‘cs_gpiod’? ret = gpio_request(spi->cs_gpio, dev_name(&spi->dev)); ^~~~~~~ cs_gpiod drivers/spi/spi.c:3554:4: error: implicit declaration of function ‘gpio_direction_output’; did you mean ‘gpiod_direction_output’? [-Werror=implicit-function-declaration] gpio_direction_output(spi->cs_gpio, ^~~~~~~~~~~~~~~~~~~~~ gpiod_direction_output drivers/spi/spi.c:3554:31: error: ‘struct spi_device’ has no member named ‘cs_gpio’; did you mean ‘cs_gpiod’? gpio_direction_output(spi->cs_gpio, ^~~~~~~ cs_gpiod In file included from ./include/linux/device.h:15, from drivers/spi/spi.c:8: drivers/spi/spi.c:3556:79: error: ‘struct spi_device’ has no member named ‘cs_gpio’; did you mean ‘cs_gpiod’? * Remove pre-applied patches
73 lines
1.7 KiB
Diff
73 lines
1.7 KiB
Diff
From 0067fd674e3a8892ed6ae1b85b0ffd6247c486e6 Mon Sep 17 00:00:00 2001
|
|
From: The-going <48602507+The-going@users.noreply.github.com>
|
|
Date: Tue, 12 Apr 2022 21:14:36 +0300
|
|
Subject: [PATCH 2/2] Bananapro add AXP209 regulators
|
|
|
|
Author: Heiko Jehmlich <hje@jecons.de>
|
|
Signed-off-by: Heiko Jehmlich <hje@jecons.de>
|
|
---
|
|
arch/arm/boot/dts/sun7i-a20-bananapro.dts | 50 +++++++++++++++++++++++
|
|
1 file changed, 50 insertions(+)
|
|
|
|
diff --git a/arch/arm/boot/dts/sun7i-a20-bananapro.dts b/arch/arm/boot/dts/sun7i-a20-bananapro.dts
|
|
index 3a34fb39a..d5bc59060 100644
|
|
--- a/arch/arm/boot/dts/sun7i-a20-bananapro.dts
|
|
+++ b/arch/arm/boot/dts/sun7i-a20-bananapro.dts
|
|
@@ -257,3 +257,53 @@ &usbphy {
|
|
®_ahci_5v {
|
|
status = "okay";
|
|
};
|
|
+
|
|
+#include "axp209.dtsi"
|
|
+
|
|
+&ac_power_supply {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&battery_power_supply {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+®_dcdc2 {
|
|
+ regulator-always-on;
|
|
+ regulator-min-microvolt = <1000000>;
|
|
+ regulator-max-microvolt = <1450000>;
|
|
+ regulator-name = "vdd-cpu";
|
|
+};
|
|
+
|
|
+®_dcdc3 {
|
|
+ regulator-always-on;
|
|
+ regulator-min-microvolt = <1000000>;
|
|
+ regulator-max-microvolt = <1400000>;
|
|
+ regulator-name = "vdd-int-dll";
|
|
+};
|
|
+
|
|
+®_ldo1 {
|
|
+ regulator-name = "vdd-rtc";
|
|
+};
|
|
+
|
|
+®_ldo2 {
|
|
+ regulator-always-on;
|
|
+ regulator-min-microvolt = <3000000>;
|
|
+ regulator-max-microvolt = <3000000>;
|
|
+ regulator-name = "avcc";
|
|
+};
|
|
+
|
|
+®_ldo3 {
|
|
+ regulator-always-on;
|
|
+ regulator-min-microvolt = <2800000>;
|
|
+ regulator-max-microvolt = <2800000>;
|
|
+ regulator-name = "vddio-csi0";
|
|
+ regulator-ramp-delay = <1600>;
|
|
+};
|
|
+
|
|
+®_ldo4 {
|
|
+ regulator-always-on; /* required for SATA */
|
|
+ regulator-min-microvolt = <2800000>;
|
|
+ regulator-max-microvolt = <2800000>;
|
|
+ regulator-name = "vddio-csi1";
|
|
+};
|
|
--
|
|
2.34.1
|
|
|