mbox series

[v4,0/2] add support for Phytec PCM-049 and PCM-959

Message ID 20230222203847.2664903-1-colin.foster@in-advantage.com (mailing list archive)
Headers show
Series add support for Phytec PCM-049 and PCM-959 | expand

Message

Colin Foster Feb. 22, 2023, 8:38 p.m. UTC
As should be clear for the title and patch title, this is adding initial
support for the OMAP 4460 SOM and dev kit for Phytec's PCM959 evaluation
kit.

The PCM049 is a legacy SOM offered by Phytec:
https://www.phytec.com/legacy-soms/
There was a vendor BSP offered by Phytec, but that never entered the
Device Tree era. This patch is meant to change that.

My development bootloader has moved to U-Boot, but I have verified
Barebox works in the past. When booting from SD card, either bootloader
should work. When booting from Barebox, the NAND OOB layout is
incompatible between the bootloader and the kernel.

I haven't had any OOB / ECC errors in the NAND at all, which was my
main concern. Due to that, I'm submitting this as a patch instead of
an RFC. Hardware ECC correction seems to be fully functional.



v3->v4
    * Add initial .yaml documentation instead of omap.txt
      Thanks to Andrew Davis <afd@ti.com> for posting their WIP patch
      set, which was the basis for patch 1, with Rob's feedback.
    * Removed Rob's "Acked-by" because the patch is completely different
    * Removed unnecessary "omap-4430" from compatible in .dts

v2->v3
    * Acked-by on patch 1
    * Code review changes (see patch 2 for details)
    * Fix intermittent NAND failures (patch 2)

v1->v2
    * Almost everything moved into the SOM (PCM-049) .dtsi. Only the
      LED chip is dev-board specific.
    * Fix pinmux associations (*pmx_core was applying *pmx_wkup
      entries... I'm surprised that didn't cause more issues)
    * Documentation added

    * Updates from review:
    *   Board compatible strings added
    *   Hyphen / underscore changes
    *   Remove unnecessary status="okay" entries
    *   Generic names used (regulator, led-1, etc.)


Colin Foster (2):
  dt-bindings: arm: omap: add phytec pcm-049 som and pcm-959 dev board
  arm: dts: omap4: pcm959: add initial support for phytec pcm959

 .../devicetree/bindings/arm/ti,omap.yaml      |  29 ++
 arch/arm/boot/dts/Makefile                    |   1 +
 arch/arm/boot/dts/omap4-phytec-pcm-049.dtsi   | 400 ++++++++++++++++++
 arch/arm/boot/dts/omap4-phytec-pcm-959.dts    |  48 +++
 4 files changed, 478 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/arm/ti,omap.yaml
 create mode 100644 arch/arm/boot/dts/omap4-phytec-pcm-049.dtsi
 create mode 100644 arch/arm/boot/dts/omap4-phytec-pcm-959.dts