Skip to content

Commit

Permalink
general-possibility-of-disabling-rk808-rtc(:1)
Browse files Browse the repository at this point in the history
Original-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>
X-Armbian: Patch-File: general-possibility-of-disabling-rk808-rtc
X-Armbian: Patch-File-Counter: 1
X-Armbian: Patch-Rel-Directory: patch/kernel/archive/rockchip64-6.3
X-Armbian: Patch-Type: kernel
X-Armbian: Patch-Root-Type: core
X-Armbian: Patch-Sub-Type: common
X-Armbian: Original-Subject: add possibility of disabling rk808-rtc
  • Loading branch information
piter75 authored and Armbian AutoPatcher committed Jan 24, 2021
1 parent 6450992 commit 6ae1410
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mfd/mfd-core.c
Expand Up @@ -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);
}

Expand Down
1 change: 1 addition & 0 deletions drivers/mfd/rk808.c
Expand Up @@ -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,
Expand Down

0 comments on commit 6ae1410

Please sign in to comment.