Skip to contentSkip to conversation

powerpc: Remove device_type = "rtc" properties in .dts files

PATCH Milton Miller 1 participant 1 message Oct 22, 2008 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 11 lines · Matt Sealey
Quoted 2 lines · Anton Vorontsov

We don't want to encourage the device_type usage. It isn't used in the code, so we can simply remove it from the dts files.

I'm extremely troubled that it is "not used in the code", surely device_type is checked as a legacy for Open Firmware (otherwise a lot of devices may never be detected!), or does device tree parsing/checking follow a different path for FDT?

(absolutely fine with it being removed from new DTS but, just concerned about your comment and it's impact...)

device_type is used by Open Firmware itself to specify the binding
that a node implements. That includes both properties and
methods or words.

Since a flat tree doesn't have words to operate, we are activly discouraging flat trees from specifiying device_type with a few exceptions that are well defined -- main memory nodes for one. For most nodes the binding that firmware uses is not relevent to the kernel, and we don't want bindings that only exist in flat trees to result in an unusable OF binding.

The i2c binding used by sparc vs flat trees is an example of what can happen without the proper review.

milton