Message ID | 20240110-pxa1908-lkml-v8-0-fea768a59474@skole.hr |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-22633-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2411:b0:101:2151:f287 with SMTP id m17csp1001717dyi; Wed, 10 Jan 2024 11:15:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IEsK5YoS2nb/C3Ph8sDMdrb5/HLANXSVkE/PKFmfxkp3o+OE5I7djY6kkJ1RMyAKuzswapd X-Received: by 2002:a17:90b:188d:b0:28b:e74f:b7f7 with SMTP id mn13-20020a17090b188d00b0028be74fb7f7mr1138787pjb.90.1704914135085; Wed, 10 Jan 2024 11:15:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704914135; cv=none; d=google.com; s=arc-20160816; b=kwbM7g2kIF/HF10wY+vY3JpBwaUe5V7QAP0YaU3bDOJvpyuDIobSsuZX2Oc/oKdp5Q ZVTHFPqQhZ8esa8vRz6sEXU2XnGXIsnExfocSTiYnZ7QxpXgGusltKruJogHdla/OLi2 fLp9LIGtS6Jl66W+hSTQXwSc0civI8ra3GpXFpvkvy+FDTVWuoxYqVMyXuXn3k1wxvGF PljfpKPhVTln96JpjGvQ1YgOFkiQO+8TadJQ1qPONA0JWDDfUuv2bjs3CZpZq3aOWy9F s1hBzW2yG80yHn5sifTIV3foMRhCNaSNmu1G3m3bl6jc9ElgJk+rJbgx/P9XtiM1nqTX 8+kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from; bh=Q6R8uLO7M4P5C2Et3da6zrk7s6veH5aHtDato8/+geU=; fh=BVMaWn26+bBDLg/JC1Yt8jcnIKl+Rjx+R4Zcrq2RrNA=; b=iJ5TNqaBZtZxsOQCXtBxk6FBg9xA7hE4rmHCCmTl96gbRehI3aK/OCAJCcVAo+DGrs cA65uqvNFxY8DhwwP56v85tTt77RfqHcZoyFatY9SjXFtFNPrJo2M9OhRAmXO4cozh93 Z12NEZFXLPfdHpeVRQUiqiwCMDOVRnl4jP3zA41aAhsR24Fw/cSorHHtU6p+Ruf68Rsp yARF0mXcxyvGxb3K/oZ+Lay4JnsAG1YgdQMVg/yEPL3prychbRC9qjJt6dtHb28aBr80 OS5kJIweKmYhEEn0HjHAHXU6pF0CZDeYoyziN4V9jUXp7bR6g1/SDyFrCwq8aQJo7pCx nx+A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-22633-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22633-ouuuleilei=gmail.com@vger.kernel.org" Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id r30-20020a17090a43a100b0028ce72de6bdsi1963777pjg.163.2024.01.10.11.15.34 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 11:15:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-22633-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-22633-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22633-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id ABF8828BF6D for <ouuuleilei@gmail.com>; Wed, 10 Jan 2024 19:05:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CC0154F1F9; Wed, 10 Jan 2024 19:04:13 +0000 (UTC) Received: from mx.skole.hr (mx2.hosting.skole.hr [161.53.165.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 83A154D599; Wed, 10 Jan 2024 19:04:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=skole.hr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=skole.hr Received: from mx2.hosting.skole.hr (localhost.localdomain [127.0.0.1]) by mx.skole.hr (mx.skole.hr) with ESMTP id DEF7186F9F; Wed, 10 Jan 2024 20:03:59 +0100 (CET) From: =?utf-8?q?Duje_Mihanovi=C4=87?= <duje.mihanovic@skole.hr> Subject: [PATCH v8 0/9] Initial Marvell PXA1908 support Date: Wed, 10 Jan 2024 20:03:26 +0100 Message-Id: <20240110-pxa1908-lkml-v8-0-fea768a59474@skole.hr> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIAP7pnmUC/4XOy07DMBCF4VepvMbRXOzYZsV7IBaJMyGml1QJR EVV3h23EhC8YTkjfb/OVc0yJZnV4+6qJlnSnMZTPvzDTsWhOb2KTl2+FQExeGB9vjQYwOvD/nj QtWcQ3zXGRqcyOU/Sp8s99/yS7yHN7+P0ea8vfPt+h8zf0MIatBfj+9iwgxCe5v14kGqY1K2z0 K915LCmAKGqgVGj7j7epDqmvHZcUiwgbiESAhiqCC3b/6TZznXFXJPnxpa96xy3xlJh7cYiFdZ m29jOYmAnwqaw9Y9FQChsnW1LvUAgA7H3G7uu6xc50mh/zgEAAA== To: Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org>, Linus Walleij <linus.walleij@linaro.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Tony Lindgren <tony@atomide.com>, Haojian Zhuang <haojian.zhuang@linaro.org>, =?utf-8?q?Duje_Mihanovi=C4=87?= <duje.mihanovic@skole.hr>, Lubomir Rintel <lkundrak@v3.sk>, Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org>, Kees Cook <keescook@chromium.org>, Tony Luck <tony.luck@intel.com>, "Guilherme G. Piccoli" <gpiccoli@igalia.com> Cc: phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Karel Balej <balejk@matfyz.cz>, David Wronek <david@mainlining.org>, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Andy Shevchenko <andriy.shevchenko@linux.intel.com>, Rob Herring <robh@kernel.org>, Conor Dooley <conor.dooley@microchip.com>, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=6664; i=duje.mihanovic@skole.hr; h=from:subject:message-id; bh=PY5odnNTHdCLc7A94cLYqSAlA6nk48rqfqUCgbRLrsc=; b=owEBbQKS/ZANAwAIAZoRnrBCLZbhAcsmYgBlnuoDlgVbv/wQa7qC6V1OdcUwoxNCMGC4n2Mdw AoyDy8MqOqJAjMEAAEIAB0WIQRT351NnD/hEPs2LXiaEZ6wQi2W4QUCZZ7qAwAKCRCaEZ6wQi2W 4U/jD/4o+qpzm09zMG/4/SuiYCuzE6oUBpRQJ44SwkrDQD71j3FS1vAYGa1r+jG7KCnFDhYufX6 w36n/8JBRGjDYqhNFDLvy1nDPQaIA25/rhgNwYuJJ+db8l9MTMgMbE0RFfPGFNZPL/DVGYQjKyy GMmBuYNYNKfBes/rXv5IwAg4xNLmuvTgGbVyRCmDFE+kVcArFpgRaAelu5mI7d6H8SQH7e+8vR/ ywQXa6T9WqtKbnHZB+DoOZE7roU2eDler+9QBO1/kKH+0Yt6h0g48/Mtdr4cl9wQUKnPJlKMLmS XfKEBs23C7Udbq1fpVyNJXVisAwIZOQ7D/uy/XKh83mrP3Fdzbv+3QdhR4DyCzYC3G6C0pweUUW fM7gpfkdzkLn0xTB012IpenirKnb2vuf5pj3Z//ROPfeDcGvlpB/XE6lpCy35hMyKpTwmMXod3+ 87DSvYu8CrOPyMeWH7h5BieO7M6KLJQOTIHYrz8c3vfilqXsjH7YTZkg522FFPrejNWJ4P6E7Lf sAqieI5uDV/BKx4yujoh4Els11mdp4dJYntLSa6uPQxpb2SFImiWT8sQR4DEyKO3mOOE8L08M3U ncRq9e/CHwneJpkhW5wbItH5qI+1NmMTtgSEC759HWv5ccoL4GGZGszd8tcbmemK1hSqjCggeUb qfRI9vl5XhQh/gA== X-Developer-Key: i=duje.mihanovic@skole.hr; a=openpgp; fpr=53DF9D4D9C3FE110FB362D789A119EB0422D96E1 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787732044404502290 X-GMAIL-MSGID: 1787732044404502290 |
Series |
Initial Marvell PXA1908 support
|
|
Message
Duje Mihanović
Jan. 10, 2024, 7:03 p.m. UTC
Hello,
This series adds initial support for the Marvell PXA1908 SoC and
"samsung,coreprimevelte", a smartphone using the SoC.
Unlike the previous revisions which are based on -rc tags, this revision
is based on next-20240110 as it requires commits 67508b874844 ("ASoC:
pxa: sspa: Don't select SND_ARM") and 6db359b5eef5 ("soc: pxa: ssp: fix
casts") from the linux-next tree to compile successfully with
allyesconfig/allmodconfig.
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/20170222022929.10540-1-afaerber@suse.de/
Signed-off-by: Duje Mihanović <duje.mihanovic@skole.hr>
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/20231102-pxa1908-lkml-v7-0-cabb1a0cb52b@skole.hr
and https://lore.kernel.org/20231102152033.5511-1-duje.mihanovic@skole.hr
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/20231010-pxa1908-lkml-v6-0-b2fe09240cf8@skole.hr
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/20230812-pxa1908-lkml-v5-0-a5d51937ee34@skole.hr
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/20230807-pxa1908-lkml-v4-0-cb387d73b452@skole.hr
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/20230804-pxa1908-lkml-v3-0-8e48fca37099@skole.hr
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/20230727162909.6031-1-duje.mihanovic@skole.hr
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/20230721210042.21535-1-duje.mihanovic@skole.hr
---
Andy Shevchenko (1):
clk: mmp: Switch to use struct u32_fract instead of custom one
Duje Mihanović (8):
dt-bindings: pinctrl: pinctrl-single: add marvell,pxa1908-padconf compatible
pinctrl: single: add marvell,pxa1908-padconf compatible
dt-bindings: clock: Add Marvell PXA1908 clock bindings
clk: mmp: Add Marvell PXA1908 clock driver
dt-bindings: marvell: Document PXA1908 SoC
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/clock/marvell,pxa1908.yaml | 48 +++
.../bindings/pinctrl/pinctrl-single.yaml | 4 +
MAINTAINERS | 9 +
arch/arm64/Kconfig.platforms | 8 +
arch/arm64/boot/dts/marvell/Makefile | 3 +
.../dts/marvell/pxa1908-samsung-coreprimevelte.dts | 336 +++++++++++++++++++++
arch/arm64/boot/dts/marvell/pxa1908.dtsi | 304 +++++++++++++++++++
drivers/clk/mmp/Makefile | 2 +-
drivers/clk/mmp/clk-frac.c | 57 ++--
drivers/clk/mmp/clk-of-mmp2.c | 26 +-
drivers/clk/mmp/clk-of-pxa168.c | 4 +-
drivers/clk/mmp/clk-of-pxa1908.c | 328 ++++++++++++++++++++
drivers/clk/mmp/clk-of-pxa1928.c | 6 +-
drivers/clk/mmp/clk-of-pxa910.c | 4 +-
drivers/clk/mmp/clk.h | 10 +-
drivers/pinctrl/pinctrl-single.c | 1 +
include/dt-bindings/clock/marvell,pxa1908.h | 88 ++++++
18 files changed, 1186 insertions(+), 57 deletions(-)
---
base-commit: 8cb47d7cd090a690c1785385b2f3d407d4a53ad0
change-id: 20230803-pxa1908-lkml-6830e8da45c7
Best regards,