Re: [RFC PATCH v0.1] net driver: mpc52xx fec
From: Domen Puncer <hidden>
Date: 2007-08-18 10:33:19
Hi! On 10/08/07 11:51 +0200, Domen Puncer wrote:
quoted hunk ↗ jump to hunk
Index: work-powerpc.git/arch/powerpc/boot/dts/lite5200b.dts ===================================================================--- work-powerpc.git.orig/arch/powerpc/boot/dts/lite5200b.dts +++ work-powerpc.git/arch/powerpc/boot/dts/lite5200b.dts + mdio@3000 { + #address-cells = <1>; + #size-cells = <0>; + device_type = "mdio"; + compatible = "mpc5200b-fec-phy"; + reg = <3000 400>; // fec range, since we need to setup fec interrupts + interrupts = <2 5 0>; // these are for "mii command finished", not link changes & co. + interrupt-parent = <&mpc5200_pic>; + + phy0:ethernet-phy@0 { + device_type = "ethernet-phy"; + reg = <0>; + }; };
I am struggling with this part on Efika. I would like to add this to the device tree from fixup_device_tree_efika() (arch/powerpc/kernel/prom_init.c). AFAICS client-services doesn't offer anything like new-device, so I guess "interpret" or "call-method" will have to be used. I have read some docs, but I'm still wandering in the dark. Can I please get an example? Pretty please with a cherry on top? Domen