Message ID | 20231102-pxa1908-lkml-v7-0-cabb1a0cb52b@skole.hr |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:8f47:0:b0:403:3b70:6f57 with SMTP id j7csp423114vqu; Thu, 2 Nov 2023 08:12:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHy8bSQ8YExlGO0+nOeC0v+cBRdzMbgniU/1039jn/KVZOw/sCQsNGW2NiKawE66tUNa86k X-Received: by 2002:a05:6a20:918d:b0:133:d17d:193a with SMTP id v13-20020a056a20918d00b00133d17d193amr21695548pzd.59.1698937951180; Thu, 02 Nov 2023 08:12:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698937951; cv=none; d=google.com; s=arc-20160816; b=BXOKs70tIkxfBwTKWkB79Qy1zNry7eREzqhH0CVhNOFbTG6D9QAqVo0ENWA+t6fHNs yw5KZcxyBF/xFXMqvkI2xF6g9qUC8Kbk+0gyXVpStAVsVzS03eqTZupBf5ZPymSq/TSy O2xjhhO75L4VIQleXjBoISdWcs2w0o1iAZFzEGynSDVucUxaVGeY6yx8LUmPQSi9fRfU 2Wqu0jeWzWZBYLpmaiZe8Mj9Dx4oPJCPPhnHD+f76wzCN3PpbOPL0iiTzvTOojr3/C/W fjqZiYpjiEv2MZB42zuadhGUkXOqpkjnsvy3fjJMeUlyam9NuMs9/3aBnFRXHPDwAJxa i0lw== 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=fZmf84x84CYPbuBg2KZxoxTvgZcxV68WewOxjcJ887A=; fh=WUbVQY1Jz7TkXZEvywCy5uKVD68sJAsD9dd8XFZEecs=; b=lKRJuKPpPRiBvpP7wK9kwZWrsDb1UeqSLGs3AMz3hsSjUMkNlOyuLy3v92KsvRNGfk RxbVZigXDrfAq2Lfd2NlNIpRDXUmJ9W1rGgz9oX3KIPyL3ttB7qX8lO/x3S+fSwuzEUx HLAFAcPib+cd6N1kIMEkAQEwlIOspTWnPtZmDx3/ogOsFRbzy9sXmJX9s7XxxlDOJsFh /pZAo0RTemHhwe021PachRIhUjzPvZPZipFDvSd3CMjxnMf4TWdNrcjvBUJ584jqM/Ve mK7lF7G8b/5KHqKFra+EzwuncRgc1OY+oseBgnku/xCWvxRRgbE1S2zp+taJa3dcVPMd xMrA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id m10-20020a056a00080a00b0069342eade87si3845881pfk.18.2023.11.02.08.12.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 08:12:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 65B6E823CE83; Thu, 2 Nov 2023 08:12:26 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345413AbjKBPMV (ORCPT <rfc822;heyuhang3455@gmail.com> + 35 others); Thu, 2 Nov 2023 11:12:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229489AbjKBPMP (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 2 Nov 2023 11:12:15 -0400 Received: from mx.skole.hr (mx2.hosting.skole.hr [161.53.165.186]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BB8813D; Thu, 2 Nov 2023 08:12:05 -0700 (PDT) Received: from mx2.hosting.skole.hr (localhost.localdomain [127.0.0.1]) by mx.skole.hr (mx.skole.hr) with ESMTP id EC5F384901; Thu, 2 Nov 2023 16:12:01 +0100 (CET) From: =?utf-8?q?Duje_Mihanovi=C4=87?= <duje.mihanovic@skole.hr> Subject: [PATCH v7 00/10] Initial Marvell PXA1908 support Date: Thu, 02 Nov 2023 16:11:06 +0100 Message-Id: <20231102-pxa1908-lkml-v7-0-cabb1a0cb52b@skole.hr> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIAAq8Q2UC/4XOy07DMBCF4VepvMbRXOzYZsV7IBaJMyGml1QJR EVV3h23EhC8YTkjfb/OVc0yJZnV4+6qJlnSnMZTPtzDTsWhOb2KTl2+FQExeGB9vjQYwOvD/nj QtWcQ3zXGRqcyOU/Sp8s99/yS7yHN7+P0ea8vfPt+h8zf0MIatBfj+9iwgxCe5v14kGqY1K2z0 K915LCmAKGqgVGj7j7epDqmvHZcUiwgbiESAhiqCC3b/6TZznXFXJPnxpa96xy3xlJh7cYiFdZ m29jOYmAnwqaw9Y9FQChsnW1LvUAgA7H3G7uu6xdEdd5OzgEAAA== 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>, =?utf-8?q?Duje_Mihanovi=C4=87?= <duje.mihanovic@skole.hr>, Daniel Mack <daniel@zonque.org>, Haojian Zhuang <haojian.zhuang@gmail.com>, Robert Jarzmik <robert.jarzmik@free.fr>, Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>, Leo Yan <leoy@marvell.com>, Zhangfei Gao <zhangfei.gao@marvell.com>, 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: 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, linux-omap@vger.kernel.org, alsa-devel@alsa-project.org, linux-hardening@vger.kernel.org, phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Karel Balej <balejk@matfyz.cz>, Andy Shevchenko <andriy.shevchenko@linux.intel.com>, Rob Herring <robh@kernel.org>, Conor Dooley <conor.dooley@microchip.com>, kernel test robot <lkp@intel.com>, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=6396; i=duje.mihanovic@skole.hr; h=from:subject:message-id; bh=kTxmtHu5Fo19on0/63ULuUPnJCIg72dD7UAdj8sHmQI=; b=owEBbQKS/ZANAwAIAZoRnrBCLZbhAcsmYgBlQ7w4E5/JSxng67NOhYN8nkHemogz50Q03Akex x4G2IbL2H2JAjMEAAEIAB0WIQRT351NnD/hEPs2LXiaEZ6wQi2W4QUCZUO8OAAKCRCaEZ6wQi2W 4c0ID/990vPNxBbaoCCbQ2VRw9X/Y2hNeTLvNlV1Ho699sCpDTuKeDglRFpye5Ev8+2dhTV0Uea Yw5urc5fU3ocMtXHvIf0l0PLMEhk0687CxdZWV4tknUrDujzRU6W7islaSFG3cQ0sK8xLXdt43z oQOD8D2HO2l5fUTLZob5MZKL5xvvMxel6jT/1Ekn14ZmWXFn6Zhnw8l92Yn5Gar56b5ACuhh8YQ mpGTgPZcL81kUwj8hpktl6J0wwpFumj1T4wm7PRx60Qq5aolUsWnWyD+59rOGVRZ0sq3uoA6Vv0 gfTPIg8Emq6jDu/Le5yiDFXqyCe1MZQJijo7AyoPoXyWC4CCU2e2SNhPDwhBu7Sw/PiAGXBPiaH gaQ4kLMpHFriQr6Q53QAxM+nZY1tODrYOSgALJkI5N1S3xcDbLudAsZ8cIUXMp4P2uoT5fgNW0n sDFhg97n1nJM6hjjMBTJ5R9QDUbJXDp+f0/9dcv3r/YlzGcI6j39U0PSeSJIqe+KUGGtJ67ckPg giwQh9NZWocsgTFfcPfLkS3ssi3dz4VMPYPSJ5jFDOBM74ADn/uXu2FSNW0GFnHyzmfYzaD+XNu 7QoFl08l2ohPmTnaq9hMjtOVQblNNDJJo3zVuPa1McxZGgGfjTksoWqppJEl3WNoDR65I05g4Cv 5ma0Wat5qgMq7bg== 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,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 02 Nov 2023 08:12:26 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781465560889416539 X-GMAIL-MSGID: 1781465560889416539 |
Series |
Initial Marvell PXA1908 support
|
|
Message
Duje Mihanović
Nov. 2, 2023, 3:11 p.m. UTC
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>
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ć (9):
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
ASoC: pxa: Suppress SSPA on ARM64
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 | 11 +
arch/arm64/boot/dts/marvell/Makefile | 3 +
.../dts/marvell/pxa1908-samsung-coreprimevelte.dts | 333 +++++++++++++++++++++
arch/arm64/boot/dts/marvell/pxa1908.dtsi | 295 ++++++++++++++++++
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 ++++++
sound/soc/pxa/Kconfig | 2 +-
19 files changed, 1178 insertions(+), 58 deletions(-)
---
base-commit: 05d3ef8bba77c1b5f98d941d8b2d4aeab8118ef1
change-id: 20230803-pxa1908-lkml-6830e8da45c7
Best regards,