Hi
I have in device tree node:

qspi: somename@0 {
    compatible = "nameOfDriverFrom/drivers/spi";
    reg = <someAddr size>;
    clocks = <reference to clock>;
    clock-names = "some names";
    #address-cells = <1>;
    #size-cells = <0>;
    status = "disabled";
};

and then I have such thing:
&qspi {
    pinctrl-names="default";
    pinctrl-0 = <&reference to some pin controller>;
    status = "okay";
    spi-max-frequency = <11000000>;

    flash@0 {
        compatible = "spi-flash (this is driver from /drivers/mtd/)";
        #address-cells = <1>;
        #size-cells = <1>;
        reg = <0x0>;
        spi-max-frequency = <22000000>;
     };
};

Why just one node isn't enough? And what frequency driver have at all -
11MHz or 22MHz?
What is the difference between drivers defined in /drivers/spi and
/drivers/mtd?
Does it mean that driver in /drivers/mtd can use somehow driver or the code
from /drivers/spi?
Or maybe it works in opposite direction?
_______________________________________________
Kernelnewbies mailing list
[email protected]
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Reply via email to