From patchwork Fri Aug 23 20:54:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Duje_Mihanovi=C4=87_via_B4_Relay?= X-Patchwork-Id: 13776022 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AE2D8C5321E for ; Fri, 23 Aug 2024 21:02:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Reply-To:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To: Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id:Date:Subject: From:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=yRMSzfThl4iE9JpFOL819fcGwl5mTKOQtQHhhHiG4Lw=; b=ivEtEuvvLvR/d/VLCnFp0qABMp RwMSOYuTOdoopUzhVPb1CrUp41UPit1QUDTUHIL4xguIwopXj3lf31MWN7FybojO/Zl9ipxPM3tM0 Npe4P7CONIxoyWDRljxdH7YCNag/N+cSoI22RFJtE2QB5xvXikDJb56ANdx273Y4T4psWftSaDqFp Z97P+CmNUEdV4pI4rNsceYcfUzTKS/+WOLsEEnJBHxgqh1fWrsm/kHVeOSIKxwYLRqecw+xPVK9Q1 djou+eko7ZnESk8coOlscceoZL0a7MC08gkgG+VITkVK38omIS+v7fZmlrlEinomDM1h50JK+ISzQ NXEop/yw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1shbQj-00000000f1X-0yMR; Fri, 23 Aug 2024 21:02:45 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1shbKA-00000000dfl-3Msc for linux-arm-kernel@bombadil.infradead.org; Fri, 23 Aug 2024 20:55:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Reply-To:Cc:To: Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id:Date:Subject: From:Sender:Content-ID:Content-Description:In-Reply-To:References; bh=yRMSzfThl4iE9JpFOL819fcGwl5mTKOQtQHhhHiG4Lw=; b=coTVClkcMWJxq2PC76CIELHeF/ hB0XxqNXHR0+t98nFJxRLbyi3uc+xFwVqNxavAFgl48RbmU4DDiMrFLA+c9+4C8JkdBGTCxnFGrTC Yk7ywJt6PdgeeaTQdsKIE7hX07F50ir3wf3bzsiYbaxTY7BEpfILOPNp70gflRacP39DWIRjVF3Pp DTs22F4POtz/hQeJVbja2CLHPREp4AxdgP5DrHGQQlfNnivlmvUYCvJeZuPG+VCw3c87ZO/mlesd9 +aCEaqelB1QVNlHs0gG+JwGrqGXrw3z7CNmGli4RLHCP9FBJ8S/N76QzM1oON1brPrLJaHxWToYyu 7CyO6odA==; Received: from sin.source.kernel.org ([145.40.73.55]) by desiato.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1shbK4-0000000ADBn-2KTA for linux-arm-kernel@lists.infradead.org; Fri, 23 Aug 2024 20:55:57 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id ED522CE125D; Fri, 23 Aug 2024 20:55:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 15526C32786; Fri, 23 Aug 2024 20:55:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1724446539; bh=n/WFQJS232AmDiJpqwhj2qPyACgFlnwvyXnFmTR1dnE=; h=From:Subject:Date:To:Cc:Reply-To:From; b=umc6B4rSKx5dD0fx6EOjETtHn8+R5S5eVp9HsEi4JnxYvagJ69h1ZZtdoeEXWqnFe FJSHOn5OSnOqqz/zfZ2vx1X7zVEHWt0zF3lDdyxsGun2dzCzbqkf1dpHJSTGH6XdXJ TWOjkvnSEuwVEN8CReWtXuw4RJxrxfim1dLyf2U+ogdQ/Xt9uZFt4muomeaUL1Kk5u 0tahp6afj1JQ9ze6FkDeAioQsVkUQcM7RRvJRdMeAY6UJwQl+SMMfQJp+asruQxVvU JDOOkTmt5kL7JNMs84QuwVb/yiNK9QjcCJR26yop8llwBV4AjEH1W5I4SSpGxdhnu3 qZQcaXJKY0erg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id F3686C531DC; Fri, 23 Aug 2024 20:55:38 +0000 (UTC) From: =?utf-8?q?Duje_Mihanovi=C4=87_via_B4_Relay?= Subject: [PATCH v12 00/12] Initial Marvell PXA1908 support Date: Fri, 23 Aug 2024 22:54:35 +0200 Message-Id: <20240823-pxa1908-lkml-v12-0-cc3ada51beb0@skole.hr> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAAv3yGYC/4XRy07DMBAF0F+pssbRPPzsiv9ALBzHpqaPVAlER VX/HbdSaTALlh7p3LnynJspjjlOzXp1bsY45ykPh/JAelo1YeMPb1HkvgwaAmKwwOJ48ujAit1 2vxPaMkTbe6mCaQo5jjHl0y3v5bW8N3n6GMavW/zM1+k9SP4OmlmAsFHaFDwbcO552g672G7G5 poz08MaMqjJgWs1MAoU/ed7bPe5tB3mHCqIS4iEAJJaQsXqPymXdU1VV5a6oWNresOdVFRZtbB IlVXFetUrdGxiZFlZ/WMRECqri+0oRXAkISRbWXu3EvCPtcWm6I22Xjlp6r3uYSXUnV2xpDwAR 8tBp/qXYYGpvm1pAoJ16FOnrMRUHxfxoQ3XtRGvu7HvOo5kjeOFvlwu32aJrV/DAgAA To: Michael Turquette , Stephen Boyd , Linus Walleij , Rob Herring , Conor Dooley , Tony Lindgren , Haojian Zhuang , =?utf-8?q?Duje_Mihanovi=C4=87?= , Lubomir Rintel , Catalin Marinas , Will Deacon , Rob Herring , Krzysztof Kozlowski Cc: phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Karel Balej , David Wronek , 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 , Conor Dooley , Krzysztof Kozlowski X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=8095; i=duje.mihanovic@skole.hr; s=20240706; h=from:subject:message-id; bh=n/WFQJS232AmDiJpqwhj2qPyACgFlnwvyXnFmTR1dnE=; b=owGbwMvMwCW21nBykGv/WmbG02pJDGknvmtsmzFBImxv3cmjTysmzVpp903CNv/xCZ8YVenfO 55bLbmf11HKwiDGxSArpsiS+9/xGu9nka3bs5cZwMxhZQIZwsDFKQAT+drN8ItpZcK9eRp99Ucu TN9RJyQ3u+dL6o3tjzjlBF9WrP85e74lw1/Jfn/h/zvEKjWyTnisKGz60v2n1dL+Ik/6MZktk90 CZzMDAA== X-Developer-Key: i=duje.mihanovic@skole.hr; a=openpgp; fpr=6DFF41D60DF314B5B76BA630AD319352458FAD03 X-Endpoint-Received: by B4 Relay for duje.mihanovic@skole.hr/20240706 with auth_id=191 X-Original-From: =?utf-8?q?Duje_Mihanovi=C4=87?= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240823_215555_313460_EA46A6F4 X-CRM114-Status: GOOD ( 20.06 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: duje.mihanovic@skole.hr Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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! 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ć 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/20240730-pxa1908-lkml-v11-0-21dbb3e28793@skole.hr Changes in v11: - Rebase on v6.11-rc1 (conflict with DTS Makefile), no changes - Link to v10: https://lore.kernel.org/r/20240424-pxa1908-lkml-v10-0-36cdfb5841f9@skole.hr 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/20240402-pxa1908-lkml-v9-0-25a003e83c6f@skole.hr Changes in v9: - Update trailers and rebase on v6.9-rc2, no changes - Link to v8: https://lore.kernel.org/20240110-pxa1908-lkml-v8-0-fea768a59474@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ć (11): 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 APBC driver clk: mmp: Add Marvell PXA1908 APBCP driver clk: mmp: Add Marvell PXA1908 APMU driver clk: mmp: Add Marvell PXA1908 MPMU 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 | 300 ++++++++++++++++++ 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-pxa1928.c | 6 +- drivers/clk/mmp/clk-of-pxa910.c | 4 +- drivers/clk/mmp/clk-pxa1908-apbc.c | 130 ++++++++ drivers/clk/mmp/clk-pxa1908-apbcp.c | 82 +++++ drivers/clk/mmp/clk-pxa1908-apmu.c | 121 ++++++++ drivers/clk/mmp/clk-pxa1908-mpmu.c | 112 +++++++ drivers/clk/mmp/clk.h | 10 +- drivers/pinctrl/pinctrl-single.c | 1 + include/dt-bindings/clock/marvell,pxa1908.h | 88 ++++++ 21 files changed, 1299 insertions(+), 57 deletions(-) --- base-commit: 47ac09b91befbb6a235ab620c32af719f8208399 change-id: 20230803-pxa1908-lkml-6830e8da45c7 Best regards,