[PATCH 2/5] Add legacy devices to mpc8641_hpcn.dts

Arnd Bergmann arnd at arndb.de
Sun Jul 8 04:39:48 EST 2007


On Saturday 07 July 2007, Sergei Shtylyov wrote:
>    Yet it's kinda accepted years ago, see:
> 
> http://playground.sun.com/1275/proposals/Closed/Accepted/381-it.txt
> 
>     Ugh, it's hard to find these documents... All "name", "device_type", and 
> "compatible" must all be "8042".
> 

Right. I've just checked an OF based machine that has 8042 keyboard
controller (the OLPC laptop), to see what's in there.

Here, we have 

8042 at i60 {
	device_type = "8042";
	reg = <1 60 1 1 64 1>;
	interrupts <1 3 c 3>;
	/* no interrupt-parent, this gets inherited from ISA node */
	model = "INT,80c42";
	compatible = "ps2-keyboard-controller" "INTC,80c42";
	name = "8042"
	#size-cells <0>;
	#address-cells <1>;

	mouse at aux {
		reg = <1>;
		compatible = "pnpPNP,f03";
		device_type = "mouse";
		name = "mouse";
	}

	keyboard@ {
		reg = <0>;
		language = "EN";
		keyboard-type = "us";
		device-type = "keyboard";
		compatible = "pnpPNP,303";
		name = "keyboard";
	}
}

My interpretation of the document you cited is that the #size-cells and
#address-cells as well as the child nodes are actually required by the
standard, but it seems that Linux doesn't care.

The model and compatible properties in the 8042 node are not standard
compliant in my machine, so I'm not sure what to best put in there.
It is very clear on name and device-type though.

	Arnd <><



More information about the Linuxppc-dev mailing list