如何在PPC DTS中添加rtc节点?

时间:2012-09-25 07:01:54

标签: driver linux-device-driver device-driver i2c

我是PPC设备驱动程序开发的新手,我最近在DTS遇到了问题。

我们的团队将rtc芯片rtc-pcf8563添加到PPC平台的新开发板中。 驱动程序是可用的,但是我必须在DTS中添加设备作为rtc节点。 但我不知道如何更改.dts资源。

以下是关于.dts的代码,@ 3200是由我添加的,我不知道它是否有用。

i2c@3000 {
    #address-cells = <1>;
    #size-cells = <0>;
    cell-index = <0>;
    compatible = "fsl-i2c";
    reg = <0x3000 0x100>;
    interrupts = <43 2>;
    interrupt-parent = <&mpic>;
    dfsrr;
    rtc@68 {
        compatible = "dallas,ds1339";
        reg = <0x68>;
        };
    };

    i2c@3200 {
    #address-cells = <1>;
    #size-cells = <0>;
    cell-index = <0>;
    compatible = "fsl-i2c";
    reg = <0x3200 0x100>;
    interrupts = <43 2>;
    interrupt-parent = <&mpic>;
    dfsrr;
    rtc@50 {
            compatible = "philips,pcf8563";
            reg = <0x50>;
           };
    };

有谁知道如何正确更改.dts?

0 个答案:

没有答案