mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2024-12-28 16:53:49 +00:00
e978201bc5
Add unit tests for the two types of assigned rate properties. Test different combinations of assigned clocks and make sure that rates aren't assigned when the DT properties are malformed or are zero. Cc: Peng Fan <peng.fan@nxp.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org> Link: https://lore.kernel.org/r/20240822002433.1163814-4-sboyd@kernel.org
21 lines
412 B
Plaintext
21 lines
412 B
Plaintext
// SPDX-License-Identifier: GPL-2.0
|
|
/dts-v1/;
|
|
/plugin/;
|
|
|
|
#include "kunit_clk_assigned_rates.h"
|
|
|
|
&{/} {
|
|
clk: kunit-clock {
|
|
compatible = "test,clk-assigned-rates";
|
|
#clock-cells = <1>;
|
|
};
|
|
|
|
kunit-clock-consumer {
|
|
compatible = "test,clk-consumer";
|
|
assigned-clocks = <&clk 0>,
|
|
<&clk 1>;
|
|
assigned-clock-rates-u64 = /bits/ 64 <ASSIGNED_RATES_0_RATE>,
|
|
/bits/ 64 <ASSIGNED_RATES_1_RATE>;
|
|
};
|
|
};
|