mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00

1. Fixes CPU and regulator boot problems 2. Enable CPUFREQ, I2C, RTC and THERMAL support 3. Disabled annoying debug logs, refresh kconfig 4. Fix compilation failure due to wrong kconfig Fixes: #10042 Signed-off-by: AmadeusGhost <amadeus@openjmu.xyz>
95 lines
2.5 KiB
Diff
95 lines
2.5 KiB
Diff
From e9ced25e41588a2ff95280b4d3dabf3a0865513b Mon Sep 17 00:00:00 2001
|
|
From: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
|
|
Date: Mon, 21 Dec 2020 19:13:02 +0100
|
|
Subject: [PATCH] ARM: dts: meson: move iio-hwmon for the SoC temperature to
|
|
meson.dtsi
|
|
|
|
The SoC temperature can be retrieved from ADC channel 8 on all 32-bit
|
|
SoCs (Meson6, Meson8, Meson8b and Meson8m2). Move the iio-hwmon instance
|
|
to meson.dtsi instead of duplicating it in all board.dts.
|
|
If the temperature sensor calibration data is missing for a board then
|
|
iio-hwmon will simply not probe.
|
|
|
|
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
|
|
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
|
|
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
|
|
Link: https://lore.kernel.org/r/20201221181306.904272-2-martin.blumenstingl@googlemail.com
|
|
---
|
|
arch/arm/boot/dts/meson.dtsi | 5 +++++
|
|
arch/arm/boot/dts/meson8b-ec100.dts | 5 -----
|
|
arch/arm/boot/dts/meson8b-mxq.dts | 5 -----
|
|
arch/arm/boot/dts/meson8b-odroidc1.dts | 5 -----
|
|
arch/arm/boot/dts/meson8m2-mxiii-plus.dts | 5 -----
|
|
5 files changed, 5 insertions(+), 20 deletions(-)
|
|
|
|
--- a/arch/arm/boot/dts/meson.dtsi
|
|
+++ b/arch/arm/boot/dts/meson.dtsi
|
|
@@ -11,6 +11,11 @@
|
|
#size-cells = <1>;
|
|
interrupt-parent = <&gic>;
|
|
|
|
+ iio-hwmon {
|
|
+ compatible = "iio-hwmon";
|
|
+ io-channels = <&saradc 8>;
|
|
+ };
|
|
+
|
|
soc {
|
|
compatible = "simple-bus";
|
|
#address-cells = <1>;
|
|
--- a/arch/arm/boot/dts/meson8b-ec100.dts
|
|
+++ b/arch/arm/boot/dts/meson8b-ec100.dts
|
|
@@ -70,11 +70,6 @@
|
|
timeout-ms = <20000>;
|
|
};
|
|
|
|
- iio-hwmon {
|
|
- compatible = "iio-hwmon";
|
|
- io-channels = <&saradc 8>;
|
|
- };
|
|
-
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
|
|
--- a/arch/arm/boot/dts/meson8b-mxq.dts
|
|
+++ b/arch/arm/boot/dts/meson8b-mxq.dts
|
|
@@ -27,11 +27,6 @@
|
|
reg = <0x40000000 0x40000000>;
|
|
};
|
|
|
|
- iio-hwmon {
|
|
- compatible = "iio-hwmon";
|
|
- io-channels = <&saradc 8>;
|
|
- };
|
|
-
|
|
vcck: regulator-vcck {
|
|
compatible = "pwm-regulator";
|
|
|
|
--- a/arch/arm/boot/dts/meson8b-odroidc1.dts
|
|
+++ b/arch/arm/boot/dts/meson8b-odroidc1.dts
|
|
@@ -85,11 +85,6 @@
|
|
1800000 1>;
|
|
};
|
|
|
|
- iio-hwmon {
|
|
- compatible = "iio-hwmon";
|
|
- io-channels = <&saradc 8>;
|
|
- };
|
|
-
|
|
rtc32k_xtal: rtc32k-xtal-clk {
|
|
/* X3 in the schematics */
|
|
compatible = "fixed-clock";
|
|
--- a/arch/arm/boot/dts/meson8m2-mxiii-plus.dts
|
|
+++ b/arch/arm/boot/dts/meson8m2-mxiii-plus.dts
|
|
@@ -45,11 +45,6 @@
|
|
};
|
|
};
|
|
|
|
- iio-hwmon {
|
|
- compatible = "iio-hwmon";
|
|
- io-channels = <&saradc 8>;
|
|
- };
|
|
-
|
|
vcc_3v3: regulator-vcc3v3 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "VCC3V3";
|