Dear comunity
I want to get the internal oscilator frequency to any GPIO on the viola board to check the frequency.
I try device tree. This ist my overlay for this
/dts-v1/;
/plugin/;
/ {
compatible = "toradex,colibri-imx6dl", "fsl,imx6dl";
fragment@0 {
target = <&uart2>;
__overlay__{
status = "disabled";
};
};
fragment@1 {
target = <&uart3>;
__overlay__{
status = "disabled";
};
};
fragment@2 {
target = <&ecspi4>;
__overlay__{
status = "disabled";
};
};
fragment@3 {
target = <&i2c1>;
__overlay__ {
status = "disabled";
};
};
fragment@4 {
target = <&i2c2>;
__overlay__ {
status = "disabled";
};
};
fragment@5 {
target = <&i2c3>;
__overlay__ {
status = "disabled";
};
};
fragment@6 {
target = <&pwm2>;
__overlay__ {
status = "disabled";
};
};
fragment@7 {
target-path = "/";
__overlay__ {
aliases {
rtc0 = "&snvs_rtc";
rtc1 = "&snvs_rtc";
};
};
};
fragment@8 {
target-path = "/";
__overlay__ {
assigned-clocks = <&clks 133>;
assigned-clock-parents = <&clks 4>;
assigned-clock-rates = <32768>;
};
};
fragment@9 {
target = <&iomuxc>;
__overlay__ {
pinctrl_rtc_clkout: rtcclkoutgrp {
fsl,pins = <0x064 0x1b0b0>; // GPIO_1 als CLKO1
};
};
};
fragment@10 {
target = <&clks>;
__overlay__{
status = "okay";
};
};
fragment@11 {
target-path = "/";
__overlay__ {
rtc-clkout {
compatible = "fixed-clock";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_rtc_clkout>;
clock-frequency = <32768>;
clock-output-names = "rtc_clkout";
#clock-cells = <0>;
};
};
};
};
Has anyone an idea what’s my mistake is? The intristing part should be fragment@8 and fragment@9.
Torizon OS 4.0.0
Colibri imx6DL 512 MB
Viola board 1.2