From f281f89033b95cce1ac833c30a37d2d5ff396583 Mon Sep 17 00:00:00 2001 From: Burt P Date: Sat, 20 Oct 2018 16:39:13 -0500 Subject: devicetree: add oppv1 and clock-frequency to opp support I don't have any hardware to test, this is based only on the OPP kernel docs. https://www.kernel.org/doc/Documentation/devicetree/bindings/opp/opp.txt Signed-off-by: Burt P --- includes/dt_util.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'includes') diff --git a/includes/dt_util.h b/includes/dt_util.h index 5f2f3233..0c5dcfa8 100644 --- a/includes/dt_util.h +++ b/includes/dt_util.h @@ -30,6 +30,7 @@ enum { DTP_CLOCKS, /* */ DTP_GPIOS, /* */ DTP_DMAS, /* dma-specifier list */ + DTP_OPP1, /* list of operating points, pairs of (kHz,uV) */ DTP_PH_REF_OPP2, /* phandle reference to opp-v2 table */ }; @@ -91,9 +92,10 @@ void dtr_msg(dtr *s, char *fmt, ...); * ex: ret = appf(ret, "%s=%s\n", name, value); */ char *appf(char *src, char *fmt, ...); -/* operating-points-v2 */ +/* operating-points v0,v1,v2 */ typedef struct { - uint32_t phandle; + uint32_t version; /* opp version, 0 = clock-frequency only */ + uint32_t phandle; /* v2 only */ uint32_t khz_min; uint32_t khz_max; uint32_t clock_latency_ns; -- cgit v1.2.3