Re: two kernel modules for the same device address in dts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Tomek,

On 7 Apr 2020, at 15:26, Tomek The Messenger <tomekthemessenger@xxxxxxxxx> wrote:
> &i2c1 {
> default_device: default_device@75 {
>     compatible = "some-name-never-mind";
>      reg = <0x75>;
> };
> my_device: my_device@0 {
> compatible = "my-device-which-do-only-some-minor-part";
> reg = <0x75>;
> };
> };

I am not an expert here, I do not know what the best practice is.
But, I would do following:

/ {
(...)

    my_device: my_device@0 {
        default-device = <&default_device>;
    }

(...)
};

&i2c1 {
    default_device: default_device@75 {
        compatible = "some-name-never-mind";
        reg = <0x75>;
    };
};

Cheers,
Ezra.
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]

  Powered by Linux