devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Recommended notation for OPP to avoid DTC warnings
@ 2017-02-26  5:18 Masahiro Yamada
  2017-02-27  3:42 ` Viresh Kumar
  2017-02-27 10:44 ` Mark Rutland
  0 siblings, 2 replies; 7+ messages in thread
From: Masahiro Yamada @ 2017-02-26  5:18 UTC (permalink / raw)
  To: Viresh Kumar, Rob Herring, linux-pm, devicetree, Mark Rutland
  Cc: masahiroy, Linux Kernel Mailing List, linux-arm-kernel

Hi.


Decumentation/devicetree/bindings/opp/opp.txt
takes examples like this:

        opp@1000000000 {
                opp-hz = /bits/ 64 <1000000000>;
                opp-microvolt = <970000 975000 985000>;
                opp-microamp = <70000>;
                clock-latency-ns = <300000>;
                opp-suspend;
        };
        opp@1100000000 {
                opp-hz = /bits/ 64 <1100000000>;
                opp-microvolt = <980000 1000000 1010000>;
                opp-microamp = <80000>;
                clock-latency-ns = <310000>;
        };
        opp@1200000000 {
                opp-hz = /bits/ 64 <1200000000>;
                opp-microvolt = <1025000>;
                clock-latency-ns = <290000>;
                turbo-mode;
        };


If we follow this notation and the device-tree is built with W=1,
DTC warns like follows:


Warning (unit_address_vs_reg): Node /opp_table0/opp@1000000000 has a
unit name, but no reg property


Is there a recommended notation to avoid it?

Maybe, simply omit the "@" ?



-- 
Best Regards
Masahiro Yamada

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

end of thread, other threads:[~2017-04-10  4:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-26  5:18 Recommended notation for OPP to avoid DTC warnings Masahiro Yamada
2017-02-27  3:42 ` Viresh Kumar
2017-02-27 10:44 ` Mark Rutland
2017-02-27 10:55   ` Viresh Kumar
2017-02-27 10:58     ` Masahiro Yamada
2017-03-31  2:59     ` Masahiro Yamada
2017-04-10  4:58       ` Viresh Kumar

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).