linux/include
Arnd Bergmann 9e549c7637 Memory controller drivers for v6.2
1. STM32 FMC2:
    a. Correct in bindings the name of property for address
       setup duration. The DTS and driver were already using proper name,
       so it is only alignment of bindings with real usage.
    b. Split off STM32 memory controller bus peripheral properties into
       generic ones (re-usable by multiple memory controllers) and STM32 bus
       peripheral.  This way, the FMC2 controller properties in Micrel
       KSZ8851MLL ethernet controller node can be properly validated.
 
 2. Tegra MC: simplify with DEFINE_SHOW_ATTRIBUTE.
 
 3. Renesas RPC IF: add suppor tfor R-Car Gen4.
 
 4. LPDDR bindings: refactor and extend with description of DDR channels.
    Add also bindings for LPDDR4 and LPDDR5.
 
 The rationale for (4) above - LPDDR bindings changes, wrote by Julius Werner:
 
 "We (Chromium OS) have been trying to find a way to pass LPDDR memory
 chip information that is available to the firmware through the FDT
 (mostly for userspace informational purposes, for now). We have been
 using and expanding the existing "jedec,lpddr2" and "jedec,lpddr3"
 bindings for this (e.g. [1]). The goal is to be able to identify the
 memory layout of the system (how the parts look like, how they're tied
 together, how much capacity there is in total) as accurately as
 possible from software-probed values.
 
 ...
 
 The problem with this is that each individual LPDDR chip has its own
 set of mode registers (per rank) that only describe the density of
 that particular chip (rank). The host memory controller may have
 multiple channels (each of which is basically an entirely separate set
 of physical LPDDR pins on the board), a single channel may be
 connected to multiple LPDDR chips (e.g. if the memory controller has
 an outgoing 32-bit channel, that channel could be tied to two 16-bit
 LPDDR chips by tying the low 16 bits to one and the high 16 bits to
 the other), and then each of those chips may offer multiple
 independent ranks (which rank is being accessed at a given time is
 controlled by a separate chip select pin).
 
 So if we just have one "io-width" and one "density" field in the FDT,
 there's no way to figure out how much memory there's actually
 connected in total, because that only describes a single LPDDR chip.
 Worse, there may be chips where different ranks have different
 densities (e.g. a 6GB dual-rank chip with one 4GB and one 2GB rank),
 and different channels could theoretically be connected to chips of
 completely different manufacturers."
 
 Link: https://lore.kernel.org/r/CAODwPW9E8wWwxbYKyf4_-JFb4F-JSmLR3qOF_iudjX0f9ndF0A@mail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X4UM/5uM
 HHn9w1CR8bxL1HH/fhYR4ElLJ8xEvlYztM+bUEUsAQXz4Hzj+6oXFq/pu+u68Zi1
 mLT8hMxs/2ly5OQ2mL/mJCtSfH+y7rnRaSSvx/NBUg7RmUjH2o+baVRYHFlAUuKD
 mvzrPohTXxSxOcfjrQYfQhEIyK4gwi0u4V+x+5fFMvTTIS0I6hDu9Us89F13EeF4
 t2WbSoqLhKUF6qyUXOHTaFyDeQNb9U4Mz7aUsFDz+ya+ZAXIFmpq441lK6xru2cc
 sBSiNWkFT+lnhG6qaOj2LZY6Anh60AMCQNz7nvEscgtJ7oq5Y5y2hvaVW+IpAh3w
 xUXST3pHNyja5SI93MKxYayYlAiyXviNBMx8Ktjwm+CZmN0UHIfE4a11MDjeFAWd
 rob99nGCTCdoDkrTUvxC2MLMBaARoHJitN0TY1mvr68TIv7r9yc/yjQHVB3thoaO
 MbSRsWARaeDgUTSR7GwpMl7WSGWH4igsdMXuVB8FKm6ndg/Tr9A71/ErNFc8xilO
 S/S9H7vR5/92O5l+h31eaIuGLubZXjilthzjnnPI+QHVhxf9J4o=
 =HLKR
 -----END PGP SIGNATURE-----

Merge tag 'memory-controller-drv-6.2' of https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux-mem-ctrl into arm/drivers

Memory controller drivers for v6.2

1. STM32 FMC2:
   a. Correct in bindings the name of property for address
      setup duration. The DTS and driver were already using proper name,
      so it is only alignment of bindings with real usage.
   b. Split off STM32 memory controller bus peripheral properties into
      generic ones (re-usable by multiple memory controllers) and STM32 bus
      peripheral.  This way, the FMC2 controller properties in Micrel
      KSZ8851MLL ethernet controller node can be properly validated.

2. Tegra MC: simplify with DEFINE_SHOW_ATTRIBUTE.

3. Renesas RPC IF: add suppor tfor R-Car Gen4.

4. LPDDR bindings: refactor and extend with description of DDR channels.
   Add also bindings for LPDDR4 and LPDDR5.

The rationale for (4) above - LPDDR bindings changes, wrote by Julius Werner:

"We (Chromium OS) have been trying to find a way to pass LPDDR memory
chip information that is available to the firmware through the FDT
(mostly for userspace informational purposes, for now). We have been
using and expanding the existing "jedec,lpddr2" and "jedec,lpddr3"
bindings for this (e.g. [1]). The goal is to be able to identify the
memory layout of the system (how the parts look like, how they're tied
together, how much capacity there is in total) as accurately as
possible from software-probed values.

...

The problem with this is that each individual LPDDR chip has its own
set of mode registers (per rank) that only describe the density of
that particular chip (rank). The host memory controller may have
multiple channels (each of which is basically an entirely separate set
of physical LPDDR pins on the board), a single channel may be
connected to multiple LPDDR chips (e.g. if the memory controller has
an outgoing 32-bit channel, that channel could be tied to two 16-bit
LPDDR chips by tying the low 16 bits to one and the high 16 bits to
the other), and then each of those chips may offer multiple
independent ranks (which rank is being accessed at a given time is
controlled by a separate chip select pin).

So if we just have one "io-width" and one "density" field in the FDT,
there's no way to figure out how much memory there's actually
connected in total, because that only describes a single LPDDR chip.
Worse, there may be chips where different ranks have different
densities (e.g. a 6GB dual-rank chip with one 4GB and one 2GB rank),
and different channels could theoretically be connected to chips of
completely different manufacturers."

Link: https://lore.kernel.org/r/CAODwPW9E8wWwxbYKyf4_-JFb4F-JSmLR3qOF_iudjX0f9ndF0A@mail.gmail.com

* tag 'memory-controller-drv-6.2' of https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux-mem-ctrl:
  dt-bindings: memory-controller: st,stm32: Split off MC properties
  dt-bindings: memory: Add jedec,lpddrX-channel binding
  dt-bindings: memory: Add jedec,lpddr4 and jedec,lpddr5 bindings
  dt-bindings: memory: Add numeric LPDDR compatible string variant
  dt-bindings: memory: Factor out common properties of LPDDR bindings
  memory: renesas-rpc-if: Add support for R-Car Gen4
  memory: renesas-rpc-if: Clear HS bit during hardware initialization
  dt-bindings: memory: renesas,rpc-if: Document R-Car V4H support
  memory: tegra186-emc: use DEFINE_SHOW_ATTRIBUTE to simplify code
  memory: tegra210-emc: use DEFINE_SHOW_ATTRIBUTE to simplify code
  memory: tegra30-emc: use DEFINE_SHOW_ATTRIBUTE to simplify code
  memory: tegra20-emc: use DEFINE_SHOW_ATTRIBUTE to simplify code
  dt-bindings: memory-controller: st,stm32: Fix st,fmc2_ebi-cs-write-address-setup-ns

Link: https://lore.kernel.org/r/20221026171354.51877-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2022-11-02 22:05:32 +01:00
..
acpi ACPI: APEI: Fix integer overflow in ghes_estatus_pool_init() 2022-10-13 20:40:09 +02:00
asm-generic ftrace,kcfi: Separate ftrace_stub() and ftrace_stub_graph() 2022-10-20 17:10:27 +02:00
clocksource
crypto crypto: scatterwalk - Remove unused inline function scatterwalk_aligned() 2022-09-30 13:59:13 +08:00
drm Merge drm/drm-fixes into drm-misc-fixes 2022-10-20 09:09:00 +02:00
dt-bindings These are the pin control changes for the v6.1 kernel cycle: 2022-10-11 10:59:59 -07:00
keys
kunit kunit: declare kunit_assert structs as const 2022-10-07 10:19:18 -06:00
kvm
linux RISC-V: 2022-10-23 15:00:43 -07:00
math-emu
media media fixes for v6.1-rc2 2022-10-22 15:30:15 -07:00
memory memory: renesas-rpc-if: Add support for R-Car Gen4 2022-10-18 13:02:58 -04:00
misc
net Networking fixes for 6.1-rc2, including fixes from netfilter 2022-10-20 17:24:59 -07:00
pcmcia
ras
rdma
rv
scsi SCSI misc on 20221007 2022-10-07 12:33:18 -07:00
soc RISC-V Patches for the 6.1 Merge Window, Part 2 2022-10-14 11:21:11 -07:00
sound ALSA: hda: Update register polling macros 2022-10-09 12:34:32 +02:00
target
trace linux-watchdog 6.1-rc2 tag 2022-10-21 12:25:39 -07:00
uapi media fixes for v6.1-rc2 2022-10-22 15:30:15 -07:00
ufs SCSI misc on 20221007 2022-10-07 12:33:18 -07:00
vdso
video
xen xen/virtio: enable grant based virtio on x86 2022-10-10 14:31:26 +02:00