[PATCH 0/4] memory: tegra: Add Tegra264 support

Thierry Reding posted 4 patches 3 months ago
There is a newer version of this series
.../nvidia,tegra186-mc.yaml                   |  65 +++-
drivers/memory/tegra/Makefile                 |   2 +
drivers/memory/tegra/mc.c                     |   5 +-
drivers/memory/tegra/mc.h                     |   9 +-
drivers/memory/tegra/tegra186-emc.c           |   5 +-
drivers/memory/tegra/tegra186.c               |  17 +-
drivers/memory/tegra/tegra264-bwmgr.h         |  50 +++
drivers/memory/tegra/tegra264.c               | 313 ++++++++++++++++++
include/dt-bindings/memory/nvidia,tegra264.h  | 136 ++++++++
9 files changed, 594 insertions(+), 8 deletions(-)
create mode 100644 drivers/memory/tegra/tegra264-bwmgr.h
create mode 100644 drivers/memory/tegra/tegra264.c
create mode 100644 include/dt-bindings/memory/nvidia,tegra264.h
[PATCH 0/4] memory: tegra: Add Tegra264 support
Posted by Thierry Reding 3 months ago
From: Thierry Reding <treding@nvidia.com>

This set of patches extends the DT bindings for the memory controller
and external memory controller for Tegra264 and add the necessary DT
headers with memory client and stream ID definitions.

The driver changes in patch 4 are mostly an extension of existing code
and the bulk consists of the memory client table for the new chip as
well as the bandwidth manager calculations.

Thierry

Sumit Gupta (3):
  dt-bindings: memory: tegra: Add Tegra264 support
  dt-bindings: memory: tegra: Add Tegra264 definitions
  memory: tegra: Add Tegra264 MC and EMC support

Thierry Reding (1):
  dt-bindings: memory: tegra: Add Tegra264 stream IDs

 .../nvidia,tegra186-mc.yaml                   |  65 +++-
 drivers/memory/tegra/Makefile                 |   2 +
 drivers/memory/tegra/mc.c                     |   5 +-
 drivers/memory/tegra/mc.h                     |   9 +-
 drivers/memory/tegra/tegra186-emc.c           |   5 +-
 drivers/memory/tegra/tegra186.c               |  17 +-
 drivers/memory/tegra/tegra264-bwmgr.h         |  50 +++
 drivers/memory/tegra/tegra264.c               | 313 ++++++++++++++++++
 include/dt-bindings/memory/nvidia,tegra264.h  | 136 ++++++++
 9 files changed, 594 insertions(+), 8 deletions(-)
 create mode 100644 drivers/memory/tegra/tegra264-bwmgr.h
 create mode 100644 drivers/memory/tegra/tegra264.c
 create mode 100644 include/dt-bindings/memory/nvidia,tegra264.h

-- 
2.50.0
Re: [PATCH 0/4] memory: tegra: Add Tegra264 support
Posted by Thierry Reding 3 months ago
On Tue, Jul 08, 2025 at 12:52:41PM +0200, Thierry Reding wrote:
> From: Thierry Reding <treding@nvidia.com>
> 
> This set of patches extends the DT bindings for the memory controller
> and external memory controller for Tegra264 and add the necessary DT
> headers with memory client and stream ID definitions.
> 
> The driver changes in patch 4 are mostly an extension of existing code
> and the bulk consists of the memory client table for the new chip as
> well as the bandwidth manager calculations.
> 
> Thierry
> 
> Sumit Gupta (3):
>   dt-bindings: memory: tegra: Add Tegra264 support
>   dt-bindings: memory: tegra: Add Tegra264 definitions
>   memory: tegra: Add Tegra264 MC and EMC support
> 
> Thierry Reding (1):
>   dt-bindings: memory: tegra: Add Tegra264 stream IDs
> 
>  .../nvidia,tegra186-mc.yaml                   |  65 +++-
>  drivers/memory/tegra/Makefile                 |   2 +
>  drivers/memory/tegra/mc.c                     |   5 +-
>  drivers/memory/tegra/mc.h                     |   9 +-
>  drivers/memory/tegra/tegra186-emc.c           |   5 +-
>  drivers/memory/tegra/tegra186.c               |  17 +-
>  drivers/memory/tegra/tegra264-bwmgr.h         |  50 +++
>  drivers/memory/tegra/tegra264.c               | 313 ++++++++++++++++++
>  include/dt-bindings/memory/nvidia,tegra264.h  | 136 ++++++++
>  9 files changed, 594 insertions(+), 8 deletions(-)
>  create mode 100644 drivers/memory/tegra/tegra264-bwmgr.h
>  create mode 100644 drivers/memory/tegra/tegra264.c
>  create mode 100644 include/dt-bindings/memory/nvidia,tegra264.h

Krzysztof,

There's a dependency between this series and a series adding device tree
files for Tegra264 (both the driver and DTS files include the memory
client IDs in dt-bindings/memory/nvidia,tegra264.h), so I think it'd be
easiest for me to take the driver patches here through the Tegra tree as
well.

Let me know if that works for you or not.

Thanks,
Thierry
Re: [PATCH 0/4] memory: tegra: Add Tegra264 support
Posted by Krzysztof Kozlowski 2 months, 4 weeks ago
On 09/07/2025 14:18, Thierry Reding wrote:
> On Tue, Jul 08, 2025 at 12:52:41PM +0200, Thierry Reding wrote:
>> From: Thierry Reding <treding@nvidia.com>
>>
>> This set of patches extends the DT bindings for the memory controller
>> and external memory controller for Tegra264 and add the necessary DT
>> headers with memory client and stream ID definitions.
>>
>> The driver changes in patch 4 are mostly an extension of existing code
>> and the bulk consists of the memory client table for the new chip as
>> well as the bandwidth manager calculations.
>>
>> Thierry
>>
>> Sumit Gupta (3):
>>   dt-bindings: memory: tegra: Add Tegra264 support
>>   dt-bindings: memory: tegra: Add Tegra264 definitions
>>   memory: tegra: Add Tegra264 MC and EMC support
>>
>> Thierry Reding (1):
>>   dt-bindings: memory: tegra: Add Tegra264 stream IDs
>>
>>  .../nvidia,tegra186-mc.yaml                   |  65 +++-
>>  drivers/memory/tegra/Makefile                 |   2 +
>>  drivers/memory/tegra/mc.c                     |   5 +-
>>  drivers/memory/tegra/mc.h                     |   9 +-
>>  drivers/memory/tegra/tegra186-emc.c           |   5 +-
>>  drivers/memory/tegra/tegra186.c               |  17 +-
>>  drivers/memory/tegra/tegra264-bwmgr.h         |  50 +++
>>  drivers/memory/tegra/tegra264.c               | 313 ++++++++++++++++++
>>  include/dt-bindings/memory/nvidia,tegra264.h  | 136 ++++++++
>>  9 files changed, 594 insertions(+), 8 deletions(-)
>>  create mode 100644 drivers/memory/tegra/tegra264-bwmgr.h
>>  create mode 100644 drivers/memory/tegra/tegra264.c
>>  create mode 100644 include/dt-bindings/memory/nvidia,tegra264.h
> 
> Krzysztof,
> 
> There's a dependency between this series and a series adding device tree
> files for Tegra264 (both the driver and DTS files include the memory
> client IDs in dt-bindings/memory/nvidia,tegra264.h), so I think it'd be
> easiest for me to take the driver patches here through the Tegra tree as
> well.
> 
> Let me know if that works for you or not.

Works for me. I don't have anything for Tegra memory controllers and
it's close to end of cycle. Let me look at the patches and ack/comment.

Best regards,
Krzysztof