6.2设备树中时钟的使用
程序员文章站
2022-04-18 08:36:17
...
s3c2440.dtsi
xti: xti_clock {
compatible = "fixed-clock";
clock-frequency = <12000000>;//晶振
clock-output-names = "xti";
#clock-cells = <0>;
};
clocks: aaa@qq.com {
compatible = "samsung,s3c2440-clock";
reg = <0x4c000000 0x20>;//时钟控制寄存器
#clock-cells = <1>;
};
文档:
内核 Documentation/devicetree/bindings/clock/clock-bindings.txt
内核 Documentation/devicetree/bindings/clock/samsung,s3c2410-clock.txt
a. 设备树中定义了各种时钟, 在文档中称之为"Clock providers", 比如:
clocks: aaa@qq.com {
compatible = “samsung,s3c2440-clock”;
reg = <0x4c000000 0x20>;
#clock-cells = <1>; /