mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
- materialized overwrites:
- `add-board-helios64.patch`
- `add-board-orangepi-r1-plus.patch`
- `add-driver-for-Motorcomm-YT85xx+PHYs.patch`
- `add-board-rk3328-roc-pc.patch`
- not touched: wifi patches, those still require work before rebase is consistent.
- `wifi-4003-uwe5622-adjust-for-rockchip.patch`
- this patch is done on top of the wifi drivers patches exclusively, and fails to apply out of tree.
- we should probably consider moving this into the wifi drivers patch harness, not in the rockchip tree.
52 lines
1.6 KiB
Diff
52 lines
1.6 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Piotr Szczepanik <piter75@gmail.com>
|
|
Date: Sun, 24 Jan 2021 16:14:06 +0100
|
|
Subject: add possibility of disabling rk808-rtc
|
|
|
|
To disable rk808-rtc driver from loading for specific board
|
|
add the following stanza to rk808 node in device tree:
|
|
|
|
rtc {
|
|
compatible = "rk808-rtc";
|
|
status = "disabled";
|
|
}
|
|
|
|
This is needed for roc-rk3399-pc plus (a.k.a. Station P1).
|
|
Without the change rk808's rtc is initialised and used for time keeping
|
|
although there is another rtc (hym8563) that should be actually used.
|
|
|
|
Signed-off-by: Piotr Szczepanik <piter75@gmail.com>
|
|
---
|
|
drivers/mfd/mfd-core.c | 2 +-
|
|
drivers/mfd/rk808.c | 1 +
|
|
2 files changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/drivers/mfd/mfd-core.c b/drivers/mfd/mfd-core.c
|
|
index 16d1861e9682..289fc5627484 100644
|
|
--- a/drivers/mfd/mfd-core.c
|
|
+++ b/drivers/mfd/mfd-core.c
|
|
@@ -232,7 +232,7 @@ static int mfd_add_device(struct device *parent, int id,
|
|
}
|
|
|
|
if (!pdev->dev.of_node)
|
|
- pr_warn("%s: Failed to locate of_node [id: %d]\n",
|
|
+ pr_debug("%s: Failed to locate of_node [id: %d]\n",
|
|
cell->name, platform_id);
|
|
}
|
|
|
|
diff --git a/drivers/mfd/rk808.c b/drivers/mfd/rk808.c
|
|
index 0f22ef61e817..f8291b84c95e 100644
|
|
--- a/drivers/mfd/rk808.c
|
|
+++ b/drivers/mfd/rk808.c
|
|
@@ -158,6 +158,7 @@ static const struct mfd_cell rk808s[] = {
|
|
{ .name = "rk808-regulator", .id = PLATFORM_DEVID_NONE, },
|
|
{
|
|
.name = "rk808-rtc",
|
|
+ .of_compatible = "rk808-rtc",
|
|
.num_resources = ARRAY_SIZE(rtc_resources),
|
|
.resources = rtc_resources,
|
|
.id = PLATFORM_DEVID_NONE,
|
|
--
|
|
Armbian
|
|
|