linux-stable/drivers/clk/kunit_clk_fixed_rate_test.dtso
Stephen Boyd 5776526beb clk: Add KUnit tests for clk fixed rate basic type
Test that the fixed rate basic type clk works as intended.

Cc: Brendan Higgins <brendan.higgins@linux.dev>
Cc: David Gow <davidgow@google.com>
Cc: Rae Moar <rmoar@google.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lore.kernel.org/r/20240718210513.3801024-8-sboyd@kernel.org
2024-07-29 15:33:13 -07:00

20 lines
370 B
Plaintext

// SPDX-License-Identifier: GPL-2.0
/dts-v1/;
/plugin/;
#include "clk-fixed-rate_test.h"
&{/} {
fixed_50MHz: kunit-clock {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <TEST_FIXED_FREQUENCY>;
clock-accuracy = <TEST_FIXED_ACCURACY>;
};
kunit-clock-consumer {
compatible = "test,single-clk-consumer";
clocks = <&fixed_50MHz>;
};
};