On 10/08/2013 04:05 AM, Thierry Reding wrote: > On Mon, Oct 07, 2013 at 03:16:11PM -0600, Stephen Warren wrote: >> On 10/07/2013 05:48 AM, Thierry Reding wrote: >>> Add a device node for the MIPI calibration block on Tegra114. >>> There is no need to disable it by default because it only >>> enables the clock while performing calibration and therefore >>> shouldn't be consuming any power when unused. >> >>> include/dt-bindings/gpu/host1x/tegra114-mipi.h | 11 >>> +++++++++++ >> >> Shouldn't that file be added in the same patch that defines the >> binding that header contains constants for? What are those >> constants anyway? > > I'm not sure. The values themselves are not used within the driver. > They are merely a convenience for DTS authors. > > In a nutshell, the values defined within that file are a bitmask of > the pads that need calibration. There are 9 pads (5 for CSI, 4 for > DSI) but the association to each input/output isn't immediately > obvious. One DSI output uses DSIA and DSIB pads, while the other > uses DSIC and DSID. Ah. For values that are useful when creating *.dts, but not actually part of a binding definition, I'd tend to #define them a header file or *.dtsi in the dts/ directory, rather than the dt-bindings/ directory. The whole point of dt-bindings/ was for constants that both *.dts and the driver need to share. > Perhaps in this case it isn't useful to introduce the header at all > and just using the numerical values would be fine? It's probably useful to name them, although a comment in the final *.dts would likely be fine too. -- To unsubscribe from this list: send the line "unsubscribe linux-tegra" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html