Message ID | 20230804-pxa1908-lkml-v3-0-8e48fca37099@skole.hr |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:44a:b0:3f2:4152:657d with SMTP id ez10csp291567vqb; Fri, 4 Aug 2023 07:13:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGeO6n/34I0S4/HrAVFWicY+ODmx0E7SMaM70pIP2hvK5ENgmK0blBDvMTHS44Ag4hufTMe X-Received: by 2002:a17:907:7814:b0:99b:c91d:723b with SMTP id la20-20020a170907781400b0099bc91d723bmr1668225ejc.49.1691158408065; Fri, 04 Aug 2023 07:13:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691158408; cv=none; d=google.com; s=arc-20160816; b=T4qZbypd2KDfIBR/Pnei7pMTYRwx9N46i92rzdBiB/716SFAjvZMwB2y827uLTdK62 eeJ6FuHqbNbVax4aILrKPzlOuiwBgo1vthIv3brpmlw5AHyLKwoUS0iJCON7MtGY7tJW yPpwECyNgk1LL+2zpDSBsaBYPKNnsnCsjmzgTf9EL+fT7CyZvXLh3vZWxOmbgtU+pGz+ Da72X0QHsZhOmtwA8CY6zDboSdvFrq+RCEccUu/7zVMd3SWXHv83y0lEU2Z0lilZQ8xH fVT0NT6UoW+dYgPG/zNQ3oK/1kGLDBWFLFrWLX6GBizyc/Fsfqh8aQCTXT6/tVJVXspL JmuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from; bh=Isl/4a5vFgJ4I29HYS2+6siN0n8s0f7nnJWWWiAxX+k=; fh=593uhcdDopDTnHSWY155XwSVTEs3hlalECORQKKDDvY=; b=xwAKdJtFxp8Ef8+NYcWxFnOLVlfkCjiPzaikvTCwwrfkGzSUZcWOp53TVDHcb5qCF/ g6y1YHn9quPTBpCp+MHKBvYsn16CbwUVaj/73Mh7FGdTQn+OON9Cv90wtTzOaIEm2hYQ RtGrzWt4csnrVMesTrcGMYUr3C9SHAyIJUWiZGT0b/EYyxdL4Yx42H3uxPJMJInFDR8J gBNVrlhemT/Ul7hDWMiy8uY6qO4OJ1U6y7u9o05/uJq48y0BoUAENL1ydhdWtuFPBOW+ opChj0zwMnRC3uVwU4X98d4QlKy5hocFCRvw6QTQ+93ciLxZTiI/dqSKtrCNMWeG+CqG Tm/w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q25-20020a170906389900b0098aa2c4209esi1654172ejd.424.2023.08.04.07.13.03; Fri, 04 Aug 2023 07:13:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231254AbjHDNe5 (ORCPT <rfc822;sukrut.bellary@gmail.com> + 99 others); Fri, 4 Aug 2023 09:34:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231181AbjHDNew (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 4 Aug 2023 09:34:52 -0400 Received: from mx.skole.hr (mx2.hosting.skole.hr [161.53.165.186]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 301E7CC; Fri, 4 Aug 2023 06:34:42 -0700 (PDT) Received: from mx2.hosting.skole.hr (localhost.localdomain [127.0.0.1]) by mx.skole.hr (mx.skole.hr) with ESMTP id BC46E85337; Fri, 4 Aug 2023 15:34:39 +0200 (CEST) From: =?utf-8?q?Duje_Mihanovi=C4=87?= <duje.mihanovic@skole.hr> Subject: [PATCH v3 0/8] Initial Marvell PXA1908 support Date: Fri, 04 Aug 2023 15:32:30 +0200 Message-Id: <20230804-pxa1908-lkml-v3-0-8e48fca37099@skole.hr> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIAO/9zGQC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyjHUUlJIzE vPSU3UzU4B8JSMDI2MDCwNj3YKKRENLAwvdnOzcHF0zC2ODVIuURBPTZHMloJaCotS0zAqwcdG xtbUAKFsjEl4AAAA= To: Robert Jarzmik <robert.jarzmik@free.fr>, Linus Walleij <linus.walleij@linaro.org>, Bartosz Golaszewski <brgl@bgdev.pl>, Andy Shevchenko <andy@kernel.org>, Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, 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>, =?utf-8?q?Duje_Mihanovi=C4=87?= <duje.mihanovic@skole.hr> Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-hardening@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, afaerber@suse.de, Andy Shevchenko <andriy.shevchenko@linux.intel.com> X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=5092; i=duje.mihanovic@skole.hr; h=from:subject:message-id; bh=/cT/erBNTT9Ft+eVs2wFsdcJtdNU/409mW+ZwiBoDeQ=; b=owEBbQKS/ZANAwAIAZoRnrBCLZbhAcsmYgBkzP48upgOt1WvbbVNQBPLNHe8Z9Q+2L45Qgurj su4PPTWiMuJAjMEAAEIAB0WIQRT351NnD/hEPs2LXiaEZ6wQi2W4QUCZMz+PAAKCRCaEZ6wQi2W 4TEeD/9/t6IHBt/FARKWp80ZkQ5qLSTldB8OJ6AZai87JGXgbGVRegNcKc2igBdpQ1yK0txC6fF tLQLHMuCAnLfDFrT90obb0cDnQ4rDpOGl9d1jNjpshKXnmJUHAcBuUFDYPKPDirlcHVjy//d/ng zaLEdH8Om4yC2qMrB9Z0LoOJhJgsp3YXgPqzk6qqmHTP1r0LHc8gAvh6yKV6Yrxo08xLDbne1u3 IlKCXGql8nJQnLtTZjzoPIk3PuYxl/Ut6mkEAD0RBvTtS/ExLJR5naiCTR0DrCuLhlcCOZD5LYK AOmtVaOm8ZZ6pt49MQZeg/f1XEfg1feqAYU3CZYw4KmE/3UvVNbs/oNFr68WR/wxIKDmrwilOs4 2DaBUAU1IqF1zRQfZSgPRKGZFPuRPBRed+eWRxwc+73+0l/lGgjFVo3P2u4k091tZtvDtOvaGBC LfDcvXDCEJnd5xlwUDzcAsDhH9nEB0sTsoQ7bZ/EZtyOKjMzib50yYbZZH4obMv9ckkwz/S3lAM kQL2chdWBK0JaPaMxabWbodGf68QmWt00MTdH1rY1ZPSKBkHDTUlR2WindjP+6lGOAdR70Hen2C F6Ma6ye3tERWFqcVyQZFUrWqnbvFa2BlEmAMOnlYw8uVswXGv44yT0nBiYPcsDmQzfSMIAzi5ns 9ByN+DoT7PZ2pxw== X-Developer-Key: i=duje.mihanovic@skole.hr; a=openpgp; fpr=53DF9D4D9C3FE110FB362D789A119EB0422D96E1 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773308118906220309 X-GMAIL-MSGID: 1773308118906220309 |
Series |
Initial Marvell PXA1908 support
|
|
Message
Duje Mihanović
Aug. 4, 2023, 1:32 p.m. UTC
v2 -> 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
v1 -> 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
Hello,
This series adds initial support for the Marvell PXA1908 SoC and
"samsung,coreprimevelte", a smartphone using the SoC.
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!
On Samsung's PXA1908 phones, the bootloader does not start the ARM
system timer, and my temporary solution (which isn't present in this
series) was to put the code for starting the timer in the clock driver.
Would this hack be accepted upstream in the form of a platform or
clocksource driver such as drivers/clocksource/timer-mediatek-cpux.c?
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>
---
Andy Shevchenko (1):
clk: mmp: Switch to use struct u32_fract instead of custom one
Duje Mihanović (7):
gpio: pxa: disable pinctrl calls for MMP_GPIO
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 +++
MAINTAINERS | 9 +
arch/arm64/Kconfig.platforms | 11 +
arch/arm64/boot/dts/marvell/Makefile | 3 +
.../dts/marvell/pxa1908-samsung-coreprimevelte.dts | 332 +++++++++++++++++++++
arch/arm64/boot/dts/marvell/pxa1908.dtsi | 292 ++++++++++++++++++
drivers/clk/mmp/Makefile | 2 +-
drivers/clk/mmp/clk-frac.c | 57 ++--
drivers/clk/mmp/clk-mmp2.c | 6 +-
drivers/clk/mmp/clk-of-mmp2.c | 26 +-
drivers/clk/mmp/clk-of-pxa168.c | 4 +-
drivers/clk/mmp/clk-of-pxa1908.c | 323 ++++++++++++++++++++
drivers/clk/mmp/clk-of-pxa1928.c | 6 +-
drivers/clk/mmp/clk-of-pxa910.c | 4 +-
drivers/clk/mmp/clk-pxa168.c | 4 +-
drivers/clk/mmp/clk-pxa910.c | 4 +-
drivers/clk/mmp/clk.h | 10 +-
drivers/gpio/gpio-pxa.c | 1 +
include/dt-bindings/clock/marvell,pxa1908.h | 92 ++++++
20 files changed, 1175 insertions(+), 64 deletions(-)
---
base-commit: 5d0c230f1de8c7515b6567d9afba1f196fb4e2f4
change-id: 20230803-pxa1908-lkml-6830e8da45c7
Best regards,