devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Question about "unit address format error" of DTC
@ 2017-11-09 12:14 Masahiro Yamada
       [not found] ` <CAK7LNARujG8J_z62bc+PQOz34rf-Bo=+M54kvtokZxnktn2Y+A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Masahiro Yamada @ 2017-11-09 12:14 UTC (permalink / raw)
  To: Rob Herring, Devicetree Compiler, David Gibson
  Cc: devicetree-u79uwXL29TY76Z2rM5mHXA

Hi Rob, David,


I am just curious about a DTC warning.


For example,

soc {
    compatible = "simple-bus";
    #address-cells = <1>;
    #size-cells = <1>;
    ranges;

    foo@11111111 {
         compatible = "foo";
         reg = <0x54006800 0x40>;
    };
};

This emits the following warning.

Warning (simple_bus_reg): Node /soc/foo@11111111 simple-bus unit
address format error, expected "54006800"


But, if I replace "simple-bus" with "simple-mfd",
DTC is completely happy.

Why is this check limited to simple bus / PCI bus?

For other cases, is mismatching @<address>  allowed?



-- 
Best Regards
Masahiro Yamada
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-11-13  5:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-09 12:14 Question about "unit address format error" of DTC Masahiro Yamada
     [not found] ` <CAK7LNARujG8J_z62bc+PQOz34rf-Bo=+M54kvtokZxnktn2Y+A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-11-09 14:15   ` Rob Herring
     [not found]     ` <CAL_Jsq+eZkCQTEHLb62Le3e6eLxt=N7EWGk7dsPAfLF9-73soQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-11-09 15:09       ` Masahiro Yamada
     [not found]         ` <CAK7LNARoE6hhhH36ZugfqCNubUQzSLYGkMrx5TzTQe-gpu4CaQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-11-09 18:04           ` Rob Herring
     [not found]             ` <CAL_JsqKjF0um6UrsyBSKF5bY3rRscRqua0ncJca6ZCOh5VcKwA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-11-10  1:48               ` Masahiro Yamada
     [not found]                 ` <CAK7LNASRMBY1KjtzGxtXzkzDWgXmu3ZzfJu5kh1GRqP1WxQ6TQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-11-10 15:48                   ` Rob Herring
     [not found]                     ` <CAL_JsqLXRxz-VpFe5AC6NHu5UBvi8frt1CtEFSJH_JhaLDk8QQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-11-13  5:27                       ` David Gibson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).