Thread (1 message) 1 message, 1 author, 2008-10-22

Re: [PATCH] powerpc: Remove device_type = "rtc" properties in .dts files

From: Milton Miller <hidden>
Date: 2008-10-22 20:39:13

Matt Sealey wrote:
Anton Vorontsov wrote:
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help