device tree --- label

[label:] <device node name>[@ unit-address]

為 device node 取 label name,
可以在其它位置使用 &label 存取 device node。

Ex

./arch/arm/boot/dts/stm32f429.dtsi

...
...
/ {
        clocks {
                clk_hse: clk-hse {
                        #clock-cells = <0>;
                        compatible = "fixed-clock";
                        clock-frequency = <0>;
                };
...
...

./arch/arm/boot/dts/stm32f429-disco.dts

...
...
&clk_hse {
        clock-frequency = <8000000>;
};
...
...
posted @ 2017-06-24 22:37  wangchangruei  阅读(825)  评论(0编辑  收藏  举报