[PATCH] net: sh_eth: Add support of device tree probe
Nobuhiro Iwamatsu
nobuhiro.iwamatsu.yj at renesas.com
Thu Feb 7 11:58:58 EST 2013
Hi,
On Wed, Feb 6, 2013 at 5:36 PM, Kuninori Morimoto
<kuninori.morimoto.gx at renesas.com> wrote:
>
> Hi Simon, Iwamatsu-san
>
>> +Required properties:
>> +- compatible: "renesas,sh-eth";
>> +- interrupt-parent: The phandle for the interrupt controller that
>> + services interrupts for this device.
>> +- reg: Offset and length of the register set for the
>> + device.
>> +- interrupts: Interrupt mapping for the sh_eth interrupt
>> + sources (vector id).
>> +- phy-mode: String, operation mode of the PHY interface.
>> +- sh-eth,edmac-endian: String, endian of sh_eth dmac.
>
> I believe endian is only little/big.
> It can be "bool" settings, not "string" ?
>
If we use bool , we may use this as "sh-eth,edmac-endian-big" or
sh-eth,edmac-endian-little.
Or we define big-endian, and when using big-endian, we specify this.
Either way is okay.
>> +- sh-eth,endian: String, endian of sh_eth dmac.
>
> Is this really used it in this driver ?
>
Yes. In many cases, this uses little-endian, but user may specify
big-endian, I think.
Best regards,
Nobuhiro
--
Nobuhiro Iwamatsu
More information about the devicetree-discuss
mailing list