mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2024-12-28 16:52:18 +00:00
274aff8711
Test that clks registered with 'struct clk_parent_data' work as intended and can find their parents. Cc: Christian Marangi <ansuelsmth@gmail.com> Cc: Brendan Higgins <brendan.higgins@linux.dev> Reviewed-by: 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-9-sboyd@kernel.org
29 lines
643 B
Plaintext
29 lines
643 B
Plaintext
// SPDX-License-Identifier: GPL-2.0
|
|
/dts-v1/;
|
|
/plugin/;
|
|
|
|
#include "clk_parent_data_test.h"
|
|
|
|
&{/} {
|
|
fixed_50: kunit-clock-50MHz {
|
|
compatible = "fixed-clock";
|
|
#clock-cells = <0>;
|
|
clock-frequency = <50000000>;
|
|
clock-output-names = CLK_PARENT_DATA_50MHZ_NAME;
|
|
};
|
|
|
|
fixed_parent: kunit-clock-1MHz {
|
|
compatible = "fixed-clock";
|
|
#clock-cells = <0>;
|
|
clock-frequency = <1000000>;
|
|
clock-output-names = CLK_PARENT_DATA_1MHZ_NAME;
|
|
};
|
|
|
|
kunit-clock-controller {
|
|
compatible = "test,clk-parent-data";
|
|
clocks = <&fixed_parent>, <&fixed_50>;
|
|
clock-names = CLK_PARENT_DATA_PARENT1, CLK_PARENT_DATA_PARENT2;
|
|
#clock-cells = <1>;
|
|
};
|
|
};
|