mirror of
https://github.com/torvalds/linux.git
synced 2024-12-26 21:02:19 +00:00
df2634f43f
History: v1..v2: - dropped device_type except for cpu & pci. I have the compatible string for pci so I can drop the device_type once it is possible - I lowercased all compatible types. I will need to resend some patches which have upper case intel - The cpu had the same compatible string as the soc node. So I added to the soc node -immr for internel memory mapped registers. - I added generic names for all parts. - I reworked the i2c bars matching the way you suggested. I added a compatible node for the PCI device which only the PCI ids in its compatible string. The bars (each represents a complete i2c controller) have a "intel,ce4100-i2c-controller" compatible node. It is not used by the driver. The driver is probed via PCI ids (by the pci subsystem not OF) and matches the bar address against the ressource in the child node. Once there is a hit the node is attached. - The SPI driver is also probed via pci. However I also attached a compatible property based on PCI ids v2..v3: - intel,ce4100-immr become intel,ce4100-cp. cp stands for core peripherals. The Atom data sheet talks here about ACPI devices. Since we don't have ACPI this does not apply here. - The interrupt map is gone. There are now plenty of device nodes. - The "unit address string" got fixed, it uses not DD,V format. v3..v4: - added descriptions for compatible nodes introduced here: - intel,ce4100-ioapic - intel,ce4100-lapic - intel,ce4100-hpet - intel,ce4100 - intel,ce4100-cp - intel,ce4100-pci - added a description about I2C controller magic. - Added gpio-controller and gpio-cells property to gpio devices. Those properties are not (yet) used. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Dirk Brandewie <dirk.brandewie@gmail.com> Acked-by: Grant Likely <grant.likely@secretlab.ca> Cc: sodaville@linutronix.de Cc: devicetree-discuss@lists.ozlabs.org LKML-Reference: <1298405266-1624-4-git-send-email-bigeasy@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
39 lines
1.2 KiB
Plaintext
39 lines
1.2 KiB
Plaintext
CE4100 Device Tree Bindings
|
|
---------------------------
|
|
|
|
The CE4100 SoC uses for in core peripherals the following compatible
|
|
format: <vendor>,<chip>-<device>.
|
|
Many of the "generic" devices like HPET or IO APIC have the ce4100
|
|
name in their compatible property because they first appeared in this
|
|
SoC.
|
|
|
|
The CPU node
|
|
------------
|
|
cpu@0 {
|
|
device_type = "cpu";
|
|
compatible = "intel,ce4100";
|
|
reg = <0>;
|
|
lapic = <&lapic0>;
|
|
};
|
|
|
|
The reg property describes the CPU number. The lapic property points to
|
|
the local APIC timer.
|
|
|
|
The SoC node
|
|
------------
|
|
|
|
This node describes the in-core peripherals. Required property:
|
|
compatible = "intel,ce4100-cp";
|
|
|
|
The PCI node
|
|
------------
|
|
This node describes the PCI bus on the SoC. Its property should be
|
|
compatible = "intel,ce4100-pci", "pci";
|
|
|
|
If the OS is using the IO-APIC for interrupt routing then the reported
|
|
interrupt numbers for devices is no longer true. In order to obtain the
|
|
correct interrupt number, the child node which represents the device has
|
|
to contain the interrupt property. Besides the interrupt property it has
|
|
to contain at least the reg property containing the PCI bus address and
|
|
compatible property according to "PCI Bus Binding Revision 2.1".
|