On 05/28, Viresh Kumar wrote: > Current OPP (Operating performance point) device tree bindings have been > insufficient due to the inflexible nature of the original bindings. Over > time, we have realized that Operating Performance Point definitions and > usage is varied depending on the SoC and a "single size (just frequency, > voltage) fits all" model which the original bindings attempted and > failed. > > The proposed next generation of the bindings addresses by providing a > expandable binding for OPPs and introduces the following common > shortcomings seen with the original bindings: > > - Getting clock/voltage/current rails sharing information between CPUs. > Shared by all cores vs independent clock per core vs shared clock per > cluster. > > - Support for specifying current levels along with voltages. > > - Support for multiple regulators. > > - Support for turbo modes. > > - Other per OPP settings: transition latencies, disabled status, etc.? > > - Expandability of OPPs in future. > > This patch introduces new bindings "operating-points-v2" to get these problems > solved. Refer to the bindings for more details. > > We now have multiple versions of OPP binding and only one of them should > be used per device. > > Reviewed-by: Rob Herring <robh@xxxxxxxxxx> > Signed-off-by: Viresh Kumar <viresh.kumar@xxxxxxxxxx> > --- It looks pretty good. Just one question below on the regulator stuff. Also, is there already code written to handle these new bindings in the OPP library? If not, it would be good to write some to flush out any problems that may be lurking in actual implementation. > + > +Example 1: Single cluster Dual-core ARM cortex A9, switch DVFS states together. > + > +/ { > + cpus { > + #address-cells = <1>; > + #size-cells = <0>; > + > + cpu@0 { > + compatible = "arm,cortex-a9"; > + reg = <0>; > + next-level-cache = <&L2>; > + clocks = <&clk_controller 0>; > + clock-names = "cpu"; > + opp-supply = <&cpu_supply0>; opp-supply isn't mentioned anywhere. Is that intentional? Is it supposed to be cpu-supply still? It isn't clear to me from the previous discussion where this all ended up, but I'm not sure how the in-kernel API is going to match up regulators with OPPs. I mean, how are we going to ask the OPP library what the min/max/target voltage is at a particular frequency when we have multiple regulators? Is that some string based interface? dev_pm_opp_get_voltage(name, &target, &min, &max); Or a regulator pointer interface? dev_pm_opp_get_voltage(regulator, &target, &min, &max); Or something else? Does this mean the OPP library is going to get the CPU device to request the opp-supply from the CPU node? Furthermore, why don't we care about opp-clocks? Are clocks somehow special? -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html