Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp833141rwb; Tue, 27 Sep 2022 05:23:32 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7PLReFWF1SeJGWaOxqWkdiDEN/kZNOVBQTM8MPOq2f6lp6Y6e/4CXuR5kf2ngsd9CbBkYG X-Received: by 2002:aa7:cc13:0:b0:453:52dc:1bbf with SMTP id q19-20020aa7cc13000000b0045352dc1bbfmr27516117edt.30.1664281412341; Tue, 27 Sep 2022 05:23:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664281412; cv=none; d=google.com; s=arc-20160816; b=nbQTiS9bTf56TO2FiFdp2oZvDQMVb1j1EK1pA2e92Ji9uGjN3XOT0meX3940HN0j1p nVfcbjQ4Od2k94H363Az+S8ua4rdxRQoB9Tr5SdQ5e45Yp9MXIw3hrF4gGA4RuVWuWwP edxHrIwS7UC4RSAWU4TtCAi+Hl5UuMirK0ElD3N4dgKx8ZG//iEw2/6QEOghC7UuTp0F o+s+Sf2RAKkhVY0NwWVUa4PJX7/iRvcaLaPEEpZaICK0cGhyUoeJAOS/ej7VAVvGJkrP kCcKSwqXhZF6PY6R9HjkuVXuT6XWKQiQhB9/kEmNYE9JChMCzWbjX/j/EREC6VG8xaB4 sJdQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=LE8Wkz0ZG8Jvu8gmyqTH2Cyt2dD7UA/61wEmYLOEH0M=; b=w7T/jbJb5ImxPo1e5B2u5oTWEPu0FM5JXtII39CXYf5P9T00r7LHvavLML2wVlXXJL luFtE5q7oGFp15Idf2ungLAloFcssoGA+PnAA4G6v7l9l3TE9a1by1rZglZ5ht7tUuNN 624rD6u3FWplY/wzHGiSsrMfdbzZedfZtnDaYF5zFBSEmB3aiqDsd4FcsfpP64yJX3v5 mzjfPVmI5TxtaWpJgxh+2kItSmQM97TWoy8Bad1ndA6HWRn3eWWy1zrZu2qNF1aktigc KFXMepHE4PpZcH09pogw/7iII3y05JeuFSDhVtyOg8pzBiKGHA0wCt6kgpSnNp5d49K2 Q16A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=07VgAKWa; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o6-20020a509b06000000b004542781a13bsi1287567edi.383.2022.09.27.05.23.05; Tue, 27 Sep 2022 05:23:32 -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; dkim=pass header.i=@microchip.com header.s=mchp header.b=07VgAKWa; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232113AbiI0LVR (ORCPT + 99 others); Tue, 27 Sep 2022 07:21:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230494AbiI0LUX (ORCPT ); Tue, 27 Sep 2022 07:20:23 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C0BFB6023; Tue, 27 Sep 2022 04:20:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1664277622; x=1695813622; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=jGJip5ceUu4A8yJeV6ZmwmmFZ9D61ZjQ1AOYwFa+oXk=; b=07VgAKWacXhY62Xr2soybFfxMekSJQCcbLNb5TQmKKw+wYC5liRqROQ8 3c1ZaHLultvFYHlyTAeKPvCMXVrbzy3Jmj38oUEOCPhemZbSwW3qnHgM5 WWSK6z9UvTTFzVT5R6oKvz0cMschHDAh+GbNHsDKpeTslsOj5UFTp9MI/ ip+2rAZqbjn+wS9MXqyi/C1ZAR+ns/YnArcIF40FF7eOX0tvfSvOjrkNw IHpnm4+U/jIGKihqPjeVA2b0dvBlgCguXRn2ldzeDmMxxcd0iEm7jXGaO QRAFS2w94rVx9xfljLDN3NMJH70Wpr8i4/Ek49v2bR3ifjWogPiqhn7g8 g==; X-IronPort-AV: E=Sophos;i="5.93,349,1654585200"; d="scan'208";a="179094355" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 27 Sep 2022 04:20:21 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Tue, 27 Sep 2022 04:20:08 -0700 Received: from wendy.microchip.com (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Tue, 27 Sep 2022 04:20:06 -0700 From: Conor Dooley To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Daire McNamara , Shravan Chippa CC: Paul Walmsley , Palmer Dabbelt , Albert Ou , Cyril Jean , Lewis Hanly , Vattipalli Praveen , Wolfgang Grandegger , Hugh Breslin , , , Subject: [PATCH v6 04/11] riscv: dts: microchip: add pci dma ranges for the icicle kit Date: Tue, 27 Sep 2022 12:19:16 +0100 Message-ID: <20220927111922.3602838-5-conor.dooley@microchip.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220927111922.3602838-1-conor.dooley@microchip.com> References: <20220927111922.3602838-1-conor.dooley@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,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: X-Mailing-List: linux-kernel@vger.kernel.org The recently removed, accidentally included, "matr0" property was used in place of a dma-ranges property. The PCI controller is non-functional with mainline Linux in the v2022.02 or later reference designs and has not worked without configuration of address-translation since v2021.08. Add the address translation that will be used by the v2022.09 reference design & update the compatible used by the dts. Since this change is not backwards compatible, update the compatible to denote this, jumping over v2022.09 directly to v2022.10. Signed-off-by: Conor Dooley --- arch/riscv/boot/dts/microchip/mpfs-icicle-kit-fabric.dtsi | 7 ++++++- arch/riscv/boot/dts/microchip/mpfs-icicle-kit.dts | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/arch/riscv/boot/dts/microchip/mpfs-icicle-kit-fabric.dtsi b/arch/riscv/boot/dts/microchip/mpfs-icicle-kit-fabric.dtsi index 0d28858b83f2..eec5aba43436 100644 --- a/arch/riscv/boot/dts/microchip/mpfs-icicle-kit-fabric.dtsi +++ b/arch/riscv/boot/dts/microchip/mpfs-icicle-kit-fabric.dtsi @@ -2,7 +2,8 @@ /* Copyright (c) 2020-2021 Microchip Technology Inc */ / { - compatible = "microchip,mpfs-icicle-reference-rtlv2203", "microchip,mpfs"; + compatible = "microchip,mpfs-icicle-reference-rtlv2210", "microchip,mpfs-icicle-kit", + "microchip,mpfs"; core_pwm0: pwm@41000000 { compatible = "microchip,corepwm-rtl-v4"; @@ -37,3 +38,7 @@ fabric_clk1: fabric-clk1 { clock-frequency = <125000000>; }; }; + +&pcie { + dma-ranges = <0x02000000 0x0 0x00000000 0x0 0x00000000 0x1 0x00000000>; +}; diff --git a/arch/riscv/boot/dts/microchip/mpfs-icicle-kit.dts b/arch/riscv/boot/dts/microchip/mpfs-icicle-kit.dts index 044982a11df5..42d350fe6c6b 100644 --- a/arch/riscv/boot/dts/microchip/mpfs-icicle-kit.dts +++ b/arch/riscv/boot/dts/microchip/mpfs-icicle-kit.dts @@ -11,7 +11,8 @@ / { model = "Microchip PolarFire-SoC Icicle Kit"; - compatible = "microchip,mpfs-icicle-kit", "microchip,mpfs"; + compatible = "microchip,mpfs-icicle-reference-rtlv2210", "microchip,mpfs-icicle-kit", + "microchip,mpfs"; aliases { ethernet0 = &mac1; -- 2.37.3