mbox series

[RFC,v1,0/1] add support for Phytec PCM-049 and PCM-959

Message ID 20221004024012.1386218-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 Oct. 4, 2022, 2:40 a.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.

This devicetree boots into a stable state from mainline Barebox, where
the devices are supported. I used the Pandaboard as my Buildroot
template to make a bootable SD card. MDEV loads all modules. I'm doing
verification with omap2plus_defconfig.


I'm submitting this as an RFC for two reasons. First, because we're now
in the 6.1 window, but second because there are some uncertainties that
came up while upgrading everything. Particularly around GPMC.

As far as I can tell, the flash and ethernet both work as expected. The
timings from omap-gpmc-smsc9221.dtsi are what is needed (even though
they don't match Barebox). I also used the timings from omap3-ldp.dts as
my guide for the flash timings, as it seemed to be the only OMAP2+ GPMC
device that has Micron NAND.

The main difference that I came across was NAND Flash ECC settings.
Initially I could run `dd if=/dev/mtd0 of=foo count=1` and read the
flash, but see ECC errors. It wasn't until I added
ti,elm-id = <&elm>;
that I saw these errors go away. Seemingly none of this code existed at
the time of the last vendor BSP update (3.4.41) so I'm hopeful that this
is correct - or at least not a "red flag, you're doing it completely
wrong and your flash is going to corrupt itself tomorrow" scenario.



Colin Foster (1):
  arm: dts: omap4: pcm959: add initial support for phytec pcm959

 arch/arm/boot/dts/Makefile                  |   1 +
 arch/arm/boot/dts/omap4-phytec-pcm-049.dtsi | 352 ++++++++++++++++++++
 arch/arm/boot/dts/omap4-phytec-pcm-959.dts  | 130 ++++++++
 3 files changed, 483 insertions(+)
 create mode 100644 arch/arm/boot/dts/omap4-phytec-pcm-049.dtsi
 create mode 100644 arch/arm/boot/dts/omap4-phytec-pcm-959.dts