Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp426292rwo; Fri, 21 Jul 2023 14:20:02 -0700 (PDT) X-Google-Smtp-Source: APBJJlG+g9tO42moi0qFR08HOvePb9Yay91P1/mJL+c3vEwLw400rc0q/Znw0e49zg1U2k8hFkhR X-Received: by 2002:a17:907:78d7:b0:993:e752:1a71 with SMTP id kv23-20020a17090778d700b00993e7521a71mr2763656ejc.9.1689974402122; Fri, 21 Jul 2023 14:20:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689974402; cv=none; d=google.com; s=arc-20160816; b=k1H/tXAcArmXex2mGl7Qhswz+Zs64XPE6OZhn6i2XmHM6sKdotS1bcfE+CWFdVS9f/ BU/eQarRQojIwhouT9QJMIvaMFvmJTfWsS/6cULOkySuoAPCVa5fbSHQJU+C7BcdOpg4 OIJb30bYn92d3qaCpA7SY1LpYWZIyaa3XGehgQtDYaV0bK/5GVlCGyKM4CZ4FopzHJzS avLWvjQZ0xUZ67MQ5Q38vVEjwNiqVP65hGqVpwsHxPKme/NjVVpSfrUQ2Nszzw7Xe8QD JIm3RApjsFv1AZ2VdZzjzX7865wk77LIZoRkeMQlqig81a6qTC2q5AAgwdE0EIWKrfEz wpbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=jgqpuM0U/+n1THvXDHH+do3sOEHcg4nAH1f0/m6O2+4=; fh=cvNtoFU9Vfzj0DTkMwSTgfknn+b3L8ewcJGqqFsftjs=; b=eafmUHrbeVvMuGmhfrZTrj++EwHVo/+ZRGEZj5FlP+5CeHPSIgWOI16sQ/2qVqgPRd x1GT9M3xBTe1UyA12SYgL5FYqzVLlgZRtU0D+NB64xLzMzQm49IkYj1adHZb2EzXpaFR scEDd+wYMOlBNernd7lldMqsmZdyjUiS4aA+BP9O7ZCCFby9WKCTH21K9hP2Ata+dQ6u sqjMi0BIndW8Oq92/Kp/SXB0k9O7AIppwRqgau7xLYyFjKuOd0rSA3r7aFqgVDv2oLfS aMaQqheBTIc42ll0WzNwK2TNBBiSINHPjmXWvja+0Kp1YseJoSEAL9faZfSnKehabXsJ /UAQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a8-20020a1709064a4800b00992c7f7356dsi2665171ejv.8.2023.07.21.14.19.31; Fri, 21 Jul 2023 14:20:02 -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 S230071AbjGUVNr (ORCPT + 99 others); Fri, 21 Jul 2023 17:13:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229756AbjGUVNp (ORCPT ); Fri, 21 Jul 2023 17:13:45 -0400 Received: from mx.skole.hr (mx2.hosting.skole.hr [161.53.165.186]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 495CB3A85; Fri, 21 Jul 2023 14:13:16 -0700 (PDT) Received: from mx2.hosting.skole.hr (localhost.localdomain [127.0.0.1]) by mx.skole.hr (mx.skole.hr) with ESMTP id BF357880C0; Fri, 21 Jul 2023 23:06:11 +0200 (CEST) From: =?UTF-8?q?Duje=20Mihanovi=C4=87?= To: Matthias Brugger , AngeloGioacchino Del Regno , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, afaerber@suse.com, =?UTF-8?q?Duje=20Mihanovi=C4=87?= Subject: [PATCH 00/10] Initial Marvell PXA1908 support Date: Fri, 21 Jul 2023 22:37:42 +0200 Message-ID: <20230721210042.21535-1-duje.mihanovic@skole.hr> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,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: X-Mailing-List: linux-kernel@vger.kernel.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! 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/ Duje Mihanović (10): tty: serial: 8250: Define earlycon for mrvl,mmp-uart gpio: pxa: use dynamic allocation of base gpio: pxa: make pxa_gpio_has_pinctrl return false for MMP_GPIO clk: mmp: Add Marvell PXA1908 clock driver dt-bindings: clock: Add Marvell PXA1908 clock bindings dt-bindings: clock: Add documentation for Marvell PXA1908 arm64: Kconfig.platforms: Add config for Marvell PXA1908 platform arm64: dts: Add DTS for Marvell PXA1908 and samsung,coreprimevelte dt-bindings: marvell: Document PXA1908 SoC MAINTAINERS: add myself as Marvell PXA1908 maintainer .../bindings/arm/marvell/marvell,pxa1908.yaml | 33 ++ .../bindings/clock/marvell,pxa1908.yaml | 53 +++ MAINTAINERS | 10 + arch/arm64/Kconfig.platforms | 11 + arch/arm64/boot/dts/marvell/Makefile | 1 + .../pxa1908-samsung-coreprimevelte.dts | 321 ++++++++++++++++++ arch/arm64/boot/dts/marvell/pxa1908.dtsi | 298 ++++++++++++++++ drivers/clk/mmp/Makefile | 2 +- drivers/clk/mmp/clk-of-pxa1908.c | 282 +++++++++++++++ drivers/gpio/gpio-pxa.c | 2 + drivers/tty/serial/8250/8250_pxa.c | 1 + include/dt-bindings/clock/marvell,pxa1908.h | 93 +++++ 12 files changed, 1106 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/arm/marvell/marvell,pxa1908.yaml create mode 100644 Documentation/devicetree/bindings/clock/marvell,pxa1908.yaml create mode 100644 arch/arm64/boot/dts/marvell/pxa1908-samsung-coreprimevelte.dts create mode 100644 arch/arm64/boot/dts/marvell/pxa1908.dtsi create mode 100644 drivers/clk/mmp/clk-of-pxa1908.c create mode 100644 include/dt-bindings/clock/marvell,pxa1908.h -- 2.41.0