Re: [PATCH v1 08/29] dt-bindings: interconnect: tegra: Add initial IDs

From: Thierry Reding
Date: Tue Nov 19 2019 - 01:25:42 EST


On Mon, Nov 18, 2019 at 11:02:26PM +0300, Dmitry Osipenko wrote:
> Define interconnect IDs for memory controller (MC), external memory
> controller (EMC), external memory (EMEM) and memory clients of display
> controllers (DC).
>
> Signed-off-by: Dmitry Osipenko <digetx@xxxxxxxxx>
> ---
> include/dt-bindings/interconnect/tegra-icc.h | 11 +++++++++++
> 1 file changed, 11 insertions(+)
> create mode 100644 include/dt-bindings/interconnect/tegra-icc.h

There was a bit of discussion regarding this for a recent patch that I
was working on, see:

http://patchwork.ozlabs.org/project/linux-tegra/list/?series=140318

I'd rather not use an additional set of definitions for this. The memory
controller already has a set of native IDs for memory clients that I
think we can reuse for this.

I've only added these client IDs for Tegra194 because that's where we
need it to actually describe a specific hardware quirk, but I can come
up with the equivalent for older chips as well.

Thierry

> diff --git a/include/dt-bindings/interconnect/tegra-icc.h b/include/dt-bindings/interconnect/tegra-icc.h
> new file mode 100644
> index 000000000000..e6b6a819434a
> --- /dev/null
> +++ b/include/dt-bindings/interconnect/tegra-icc.h
> @@ -0,0 +1,11 @@
> +/* SPDX-License-Identifier: GPL-2.0 */
> +#ifndef DT_BINDINGS_ICC_TEGRA_H
> +#define DT_BINDINGS_ICC_TEGRA_H
> +
> +#define TEGRA_ICC_EMC 0
> +#define TEGRA_ICC_EMEM 1
> +#define TEGRA_ICC_MC 2
> +#define TEGRA_ICC_MC_DC 3
> +#define TEGRA_ICC_MC_DCB 4
> +
> +#endif
> --
> 2.23.0
>

Attachment: signature.asc
Description: PGP signature