[PATCH 2/5] Add legacy devices to mpc8641_hpcn.dts
Sergei Shtylyov
sshtylyov at ru.mvista.com
Sun Jul 8 04:59:11 EST 2007
Wade Farnsworth wrote:
> This adds device nodes for the ISA devices on the MPC8641 HPCN to the
> dts. Additionally, it moves the node for the i8259 to the isa bus,
> since the i8259 is actually on that bus.
> Signed-off-by: Wade Farnsworth <wfarnsworth at mvista.com>
Sorry for the belated comments... :-<
> Index: linux-2.6-8641/arch/powerpc/boot/dts/mpc8641_hpcn.dts
> ===================================================================
> --- linux-2.6-8641.orig/arch/powerpc/boot/dts/mpc8641_hpcn.dts
> +++ linux-2.6-8641/arch/powerpc/boot/dts/mpc8641_hpcn.dts
> @@ -285,17 +285,45 @@
> f800 0 0 3 &i8259 0 0
> f800 0 0 4 &i8259 0 0
> >;
> - i8259: i8259 at 4d0 {
> - clock-frequency = <0>;
> - interrupt-controller;
> - device_type = "interrupt-controller";
> - #address-cells = <0>;
> +
> + isa at f0 {
> + device_type = "isa";
> #interrupt-cells = <2>;
> - built-in;
> - compatible = "chrp,iic";
> - big-endian;
> - interrupts = <49 2>;
> - interrupt-parent = <&mpic>;
> + #size-cells = <1>;
> + #address-cells = <2>;
> + reg = <f000 0 0 0 0>;
> + ranges = <1 0 01000000 0 0 00001000>;
> + interrupt-parent = <4d0>;
> +
> + 8042 at 60 {
> + device_type = "8042";
> + reg = <1 60 1 1 64 1>;
What does that leading 1 in the address signify?
> + interrupts = <1 3 c 3>;
> + interrupt-parent = <4d0>;
> + };
> +
> + rtc at 70 {
> + device_type = "rtc";
> + reg = <1 70 2>;
> + };
> +
> + gpio at 400 {
> + device_type = "gpio";
> + reg = <1 400 80>;
> + };
> +
> + i8259: i8259 at 4d0 {
> + clock-frequency = <0>;
I don't think it's at all applicable here.
> + interrupt-controller;
> + device_type = "interrupt-controller";
> + #address-cells = <0>;
> + #interrupt-cells = <2>;
> + built-in;
> + compatible = "chrp,iic";
> + big-endian;
Really?
> + interrupts = <49 2>;
> + interrupt-parent = <&mpic>;
> + };
The "reg" property is missing here. And "reserved-interrupts" accordig to:
http://playground.sun.com/1275/bindings/devices/html/isa-pic-1_1d.html
BTW, I've found the offisial 8042 binding is here:
http://playground.sun.com/1275/bindings/devices/html/8042.html
WBR, Sergei
More information about the Linuxppc-dev
mailing list