summaryrefslogtreecommitdiff
path: root/drivers/clk/kunit_clk_assigned_rates_zero_consumer.dtso
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@kernel.org>2024-08-21 17:24:30 -0700
committerStephen Boyd <sboyd@kernel.org>2024-10-09 16:25:32 -0700
commite978201bc530b5566dff5c531dc17a20e0158803 (patch)
treecbc686e2de825d3aded69766363c71ecc4888ae6 /drivers/clk/kunit_clk_assigned_rates_zero_consumer.dtso
parent00977af42106e82bb2971c59e20d5e02c52e2a65 (diff)
clk: test: Add KUnit tests for clock-assigned-rates{-u64} DT properties
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
Diffstat (limited to 'drivers/clk/kunit_clk_assigned_rates_zero_consumer.dtso')
-rw-r--r--drivers/clk/kunit_clk_assigned_rates_zero_consumer.dtso16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/clk/kunit_clk_assigned_rates_zero_consumer.dtso b/drivers/clk/kunit_clk_assigned_rates_zero_consumer.dtso
new file mode 100644
index 000000000000..1d964672e855
--- /dev/null
+++ b/drivers/clk/kunit_clk_assigned_rates_zero_consumer.dtso
@@ -0,0 +1,16 @@
+// SPDX-License-Identifier: GPL-2.0
+/dts-v1/;
+/plugin/;
+
+&{/} {
+ clk: kunit-clock {
+ compatible = "test,clk-assigned-rates";
+ #clock-cells = <0>;
+ };
+
+ kunit-clock-consumer {
+ compatible = "test,clk-consumer";
+ assigned-clocks = <&clk>;
+ assigned-clock-rates = <0>;
+ };
+};