Thread (6 messages) 6 messages, 2 authors, 2024-10-29

Re: [PATCH v2 1/3] ARM: dts: aspeed: Add WDT controller into alias field

From: Andrew Jeffery <andrew@codeconstruct.com.au>
Date: 2024-10-28 23:55:35
Also in: linux-arm-kernel, linux-devicetree, linux-watchdog, lkml

On Mon, 2024-10-28 at 10:48 +0800, Chin-Ting Kuo wrote:
Add WDT controller into alias field. After that, WDT index,
used to distinguish different WDT controllers in the driver,
can be gotten by using of_alias_get_id dts API.
I feel it would be less brittle if we encode the mapping in the driver?
Based on reg the driver can derive the watchdog index. That way there's
no constraint on how the platform architect arranges the aliases for
the watchdogs (if they define them at all).

Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help