Skip to content

Initial Marvell PXA1908 support

Duje Mihanović linux-arm-kernel linux-devicetree linux-hardening linux-mmc lkml oe-kbuild-all phone-devel soc 19 versions – In review

Get series with b4
b4 am [email protected] change-id 20230803-pxa1908-lkml-6830e8da45c7

Versions newest first

  1. v16 Latest5 patches 6 repliesIn review
  2. v154 patches 3 repliesSuperseded
  3. v144 patches 7 repliesSuperseded
Earlier versions · 16
VersionPostedPatchesRepliesStatus
v13 posting 2/212 patches9 repliesApplied
v13 posting 1/212 patches1 replySuperseded
v1212 patches1 replySuperseded
v1112 patches1 replySuperseded
v10 posting 2/212 patches0 repliesSuperseded
v10 posting 1/212 patches1 replySuperseded
v99 patches10 repliesSuperseded
v89 patches2 repliesSuperseded
v710 patches10 repliesSuperseded
v69 patches3 repliesSuperseded
v5 posting 2/28 patches6 repliesApplied
v5 posting 1/27 of 8 patches4 repliesSuperseded
v48 patches7 repliesSuperseded
v38 patches4 repliesSuperseded inferred link
v29 patches13 repliesSuperseded inferred link
v110 patches11 repliesSuperseded

Changes in v16 from the cover letter

- Small device tree cleanups (warnings, hardcoded initrd)
- Fix device tree path in MAINTAINERS
- Update my email address
- Rebase on v6.16-rc5
- Link to v15: https://lore.kernel.org/r/[email protected]

Patches in v16 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5dt-bindings: mmc: sdhci-pxa: restrict pinctrl to pxav1Documentation/devicetree/bindings/mmc/sdhci-pxa.yaml+20 -166 replies
2/5dt-bindings: marvell: Document PXA1908 SoC and samsung,coreprimevelteDocumentation/devicetree/bindings/arm/mrvl/mrvl.yaml+5 -00 replies
3/5arm64: Kconfig.platforms: Add config for Marvell PXA1908 platformarch/arm64/Kconfig.platforms+8 -00 replies
4/5arm64: dts: Add DTS for Marvell PXA1908 and samsung,coreprimeveltearch/arm64/boot/dts/marvell/Makefile arch/arm64/boot/dts/marvell/mmp/Makefile arch/arm64/boot/dts/marvell/mmp/pxa1908-samsung-coreprimevelte.dts +1 more+635 -00 replies
5/5MAINTAINERS: add myself as Marvell PXA1908 maintainerMAINTAINERS+8 -00 replies

Reviews trailers per patch

2 of 5 patches have a Reviewed-by or Acked-by.

PatchKrzysztof Kozlowski
1/5
2/5R-b
3/5R-b
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v16 thread

Cover letter [PATCH v16 0/5] Initial Marvell PXA1908 support

Hello,

This series adds initial support for the Marvell PXA1908 SoC and "samsung,coreprimevelte", a smartphone using the SoC.

*Important note*: There is a regression on all of the v6.16 RCs where the board does not boot unrelated to the patches in this set. See:
https://lore.kernel.org/regressions/3367665.aeNJFYEL58@radijator/

USB works and the phone can boot a rootfs from an SD card, but there are some warnings in the dmesg:

During SMP initialization:

[    0.006519] CPU features: SANITY CHECK: Unexpected variation in SYS_CNTFRQ_EL0. Boot CPU: 0x000000018cba80, CPU1: 0x00000000000000
[    0.006542] CPU features: Unsupported CPU feature variation detected.
[    0.006589] CPU1: Booted secondary processor 0x0000000001 [0x410fd032]
[    0.010710] Detected VIPT I-cache on CPU2
[    0.010716] CPU features: SANITY CHECK: Unexpected variation in SYS_CNTFRQ_EL0. Boot CPU: 0x000000018cba80, CPU2: 0x00000000000000
[    0.010758] CPU2: Booted secondary processor 0x0000000002 [0x410fd032]
[    0.014849] Detected VIPT I-cache on CPU3
[    0.014855] CPU features: SANITY CHECK: Unexpected variation in SYS_CNTFRQ_EL0. Boot CPU: 0x000000018cba80, CPU3: 0x00000000000000
[    0.014895] CPU3: Booted secondary processor 0x0000000003 [0x410fd032]

SMMU probing fails:

[    0.101798] arm-smmu c0010000.iommu: probing hardware configuration...
[    0.101809] arm-smmu c0010000.iommu: SMMUv1 with:
[    0.101816] arm-smmu c0010000.iommu:         no translation support!

A 3.14 based Marvell tree is available on GitHub acorn-marvell/brillo_pxa_kernel, and a Samsung one on GitHub CoderCharmander/g361f-kernel.

Andreas Färber attempted to upstream support for this SoC in 2017:
https://lore.kernel.org/lkml/[email protected]/

---
Changes in v16:
- Small device tree cleanups (warnings, hardcoded initrd)
- Fix device tree path in MAINTAINERS
- Update my email address
- Rebase on v6.16-rc5
- Link to v15: https://lore.kernel.org/r/[email protected]

Changes in v15:
- Update trailers
- Move device trees to mmp/ subdirectory
- Remove excess newline in board dts
- Add soc@ to Cc list
- Drop tree from MAINTAINERS
- Rebase to v6.15-rc1
- Link to v14: https://lore.kernel.org/r/[email protected]

Changes in v14:
- Rebase on v6.13-rc7, dropping everything except DT
- Link to v13: https://lore.kernel.org/r/[email protected]

Changes in v13:
- Better describe the hardware in bindings/arm commit message
- Rebase on v6.12-rc1
- Link to v12: https://lore.kernel.org/r/[email protected]

Changes in v12:
- Rebase on v6.11-rc4
- Fix schmitt properties in accordance with 78d8815031fb ("dt-bindings: pinctrl: pinctrl-single: fix schmitt related properties")
- Drop a few redundant includes in clock drivers
- Link to v11: https://lore.kernel.org/r/[email protected]

Changes in v11:
- Rebase on v6.11-rc1 (conflict with DTS Makefile), no changes
- Link to v10: https://lore.kernel.org/r/[email protected]

Changes in v10:
- Update trailers
- Rebase on v6.9-rc5
- Clock driver changes:
- Add a couple of forgotten clocks in APBC
- The clocks are thermal_clk, ipc_clk, ssp0_clk, ssp2_clk and swjtag
- The IDs and register offsets were already present, but I forgot to actually register them
- Split each controller block into own file
- Drop unneeded -of in clock driver filenames
- Simplify struct pxa1908_clk_unit
- Convert to platform driver
- Add module metadata
- DTS changes:
- Properly name pinctrl nodes
- Drop pinctrl #size-cells, #address-cells, ranges and #gpio-size-cells
- Fix pinctrl input-schmitt configuration
- Link to v9: https://lore.kernel.org/[email protected]

Changes in v9:
- Update trailers and rebase on v6.9-rc2, no changes
- Link to v8: https://lore.kernel.org/[email protected]

Changes in v8:
- Drop SSPA patch
- Drop broken-cd from eMMC node
- Specify S-Boot hardcoded initramfs location in device tree
- Add ARM PMU node
- Correct inverted modem memory base and size
- Update trailers
- Rebase on next-20240110
- Link to v7: https://lore.kernel.org/[email protected]
and https://lore.kernel.org/[email protected]

Changes in v7:
- Suppress SND_MMP_SOC_SSPA on ARM64
- Update trailers
- Rebase on v6.6-rc7
- Link to v6: https://lore.kernel.org/r/[email protected]

Changes in v6:
- Address maintainer comments:
- Add "marvell,pxa1908-padconf" binding to pinctrl-single driver
- Drop GPIO patch as it's been pulled
- Update trailers
- Rebase on v6.6-rc5
- Link to v5: https://lore.kernel.org/r/[email protected]

Changes in v5:
- Address maintainer comments:
- Move *_NR_CLKS to clock driver from dt binding file
- Allocate correct number of clocks for each block instead of blindly allocating 50 for each
- Link to v4: https://lore.kernel.org/r/[email protected]

Changes in v4:
- Address maintainer comments:
- Relicense clock binding file to BSD-2
- Add pinctrl-names to SD card node
- Add vgic registers to GIC node
- Rebase on v6.5-rc5
- Link to v3: https://lore.kernel.org/r/[email protected]

Changes in v3:
- Address maintainer comments:
- Drop GPIO dynamic allocation patch
- Move clock register offsets into driver (instead of bindings file)
- Add missing Tested-by trailer to u32_fract patch
- Move SoC binding to arm/mrvl/mrvl.yaml
- Add serial0 alias and stdout-path to board dts to enable UART debugging
- Rebase on v6.5-rc4
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- Remove earlycon patch as it's been merged into tty-next
- Address maintainer comments:
- Clarify GPIO regressions on older PXA platforms
- Add Fixes tag to commit disabling GPIO pinctrl calls for this SoC
- Add missing includes to clock driver
- Clock driver uses HZ_PER_MHZ, u32_fract and GENMASK
- Dual license clock bindings
- Change clock IDs to decimal
- Fix underscores in dt node names
- Move chosen node to top of board dts
- Clean up documentation
- Reorder commits
- Drop pxa,rev-id
- Rename muic-i2c to i2c-muic
- Reword some commits
- Move framebuffer node to chosen
- Add aliases for mmc nodes
- Rebase on v6.5-rc3
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Duje Mihanović (5):
dt-bindings: mmc: sdhci-pxa: restrict pinctrl to pxav1
dt-bindings: marvell: Document PXA1908 SoC and samsung,coreprimevelte
arm64: Kconfig.platforms: Add config for Marvell PXA1908 platform
arm64: dts: Add DTS for Marvell PXA1908 and samsung,coreprimevelte
MAINTAINERS: add myself as Marvell PXA1908 maintainer

 .../devicetree/bindings/arm/mrvl/mrvl.yaml         |   5 +
 .../devicetree/bindings/mmc/sdhci-pxa.yaml         |  36 ++-
 MAINTAINERS                                        |   8 +
 arch/arm64/Kconfig.platforms                       |   8 +
 arch/arm64/boot/dts/marvell/Makefile               |   2 +
 arch/arm64/boot/dts/marvell/mmp/Makefile           |   2 +
 .../marvell/mmp/pxa1908-samsung-coreprimevelte.dts | 331 +++++++++++++++++++++
 arch/arm64/boot/dts/marvell/mmp/pxa1908.dtsi       | 300 +++++++++++++++++++
 8 files changed, 676 insertions(+), 16 deletions(-)

---
base-commit: d7b8f8e20813f0179d8ef519541a3527e7661d3a
change-id: 20230803-pxa1908-lkml-6830e8da45c7

Best regards,

Signature · 1 line
Duje Mihanović <[email protected]>