diff options
author | Paul Burton <paul.burton@imgtec.com> | 2016-09-08 07:47:29 +0100 |
---|---|---|
committer | Daniel Schwierzeck <daniel.schwierzeck@gmail.com> | 2016-09-21 15:04:32 +0200 |
commit | 50fce1d5d874070b058f09e6814c1914e168582d (patch) | |
tree | c4d9d990854ff8ac58ddccdb5ea666fc402717b5 /configs/MPC8569MDS_defconfig | |
parent | 3f96f87520c22efe4a8b43f45f1b2011da50dc06 (diff) | |
download | u-boot-imx-50fce1d5d874070b058f09e6814c1914e168582d.zip u-boot-imx-50fce1d5d874070b058f09e6814c1914e168582d.tar.gz u-boot-imx-50fce1d5d874070b058f09e6814c1914e168582d.tar.bz2 |
serial: ns16550: Support clocks via phandle
Previously ns16550 compatible UARTs probed via device tree have needed
their device tree nodes to contain a clock-frequency property. An
alternative to this commonly used with Linux is to reference a clock via
a phandle. This patch allows U-Boot to support that, retrieving the
clock frequency by probing the appropriate clock device.
For example, a system might choose to provide the UART base clock as a
reference to a clock common to multiple devices:
sys_clk: clock {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <10000000>;
};
uart0: uart@10000000 {
compatible = "ns16550a";
reg = <0x10000000 0x1000>;
clocks = <&sys_clk>;
};
uart1: uart@10000000 {
compatible = "ns16550a";
reg = <0x10001000 0x1000>;
clocks = <&sys_clk>;
};
This removes the need for the frequency information to be duplicated in
multiple nodes and allows the device tree to be more descriptive of the
system.
Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'configs/MPC8569MDS_defconfig')
0 files changed, 0 insertions, 0 deletions