Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp469078rwn; Thu, 8 Sep 2022 04:34:59 -0700 (PDT) X-Google-Smtp-Source: AA6agR4JTH1gVMsR+LhmfuuUl1r2EPPWLN/OAn5Pnai6/3HszVv6N9pw5Ms9VqLnl4OF7V9Ct95Y X-Received: by 2002:a17:90a:b703:b0:1dd:1e2f:97d7 with SMTP id l3-20020a17090ab70300b001dd1e2f97d7mr3688592pjr.62.1662636898839; Thu, 08 Sep 2022 04:34:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662636898; cv=none; d=google.com; s=arc-20160816; b=N9ZCeDgNABt8OieUoMwu70T0MHvNVN4YYebkzoI0qicJZB1jIEz0a8O2gOw6AXYvz5 9yI63x05ZzaG7+F7OE3Kqu2n5Wz6jTtjQVCFjrn+ErgMAn2Ur/KwIpHwgTy14nPnQZEE VaIqPKOqp/q5gYl3QQyL/mEJCrvfSupbCqfwWu5uRBH+WkKISmrP18LGgUlEtA5w+ra9 tZC+UOfBigsqyApRRTWyduMjpQTO6KsZux6FcWIsIQSptgdqz1ts6M9qNVVeZr1mSYJI QRaEpE0fEsFdCXiNTYYpm7WiX+CdyvcZUdadr46OVFicWBj6HTx7FBzsuA/tAOGVnK0e H/zg== 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=oljacFmoo3YZbDjXM2gSgM6NlYu35smhWXVRgY3E6Uk=; b=uaXYbkNs+nIwpDgwDl1foc06jRJW8DFBFAp2mR0HDTEZMSVnmKE952C74yVTu03t/2 /U1WUpkYPiwe+WPLmvXbiZ5QdEviOf5Vupuv1PawvkC4o26M8vlqeBOv97MhCjZGNabP 6Hlqyunz0/7AB1nPS4z4Js3wGQE9JEOYYJXplfpz4eOEfgOoXaB475FuY2NYjqD0cmS9 iZJ4nZmgfVHqjPY+C62YhzjQXigE7XIG538/ZbYd7Zj/Y4r4AIZMdlziinPhIN0f9+UX al5zSvmgH78azfX/+xVtebHD5DBmMasCCpGwSfH0cUGgnhEwQXCYgmt2fEaIFL3pbXqh mNjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=sD4xCm+8; 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 a20-20020a17090a481400b001ed40b70436si1869741pjh.155.2022.09.08.04.34.46; Thu, 08 Sep 2022 04:34:58 -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=sD4xCm+8; 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 S229854AbiIHLSV (ORCPT + 99 others); Thu, 8 Sep 2022 07:18:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230416AbiIHLSS (ORCPT ); Thu, 8 Sep 2022 07:18:18 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6F58112B21; Thu, 8 Sep 2022 04:18:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1662635894; x=1694171894; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=hyLDKbNNI38wXrC5Tei7bV2mB9uLlpphPD5ViUjlS80=; b=sD4xCm+8xMXg1Z3GfmobqL1kRLEtsHl9Gfyu88A9PCMtZ2iDJosLHPk+ d3d+VJwtJci8tjrcL/MwvwJfO3k+hqezIxFQJ2LjCk0PPBX+saz6SaYz5 sGnfvH4u6l1COa2sgwbTGDnrrtGxihBfi8hEMube/xn/8TjCgtuXAeU7M SpoEE8raxmbqbVidZjppRtPc+XOkWeXXKELmsccVAGj5BCyFWCqncf8cJ Q7QtAnlRUKO6fdcJtI0HhU9GlGvYqjid2Xh+1Dsrif4Z/CDwBvdtxC41L YcAEgMbIjKo3G/qhZEofxJmIcsAssMfy5sxNuJ8Emfygg2y4KAegdv5dR w==; X-IronPort-AV: E=Sophos;i="5.93,299,1654585200"; d="scan'208";a="172932950" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 08 Sep 2022 04:18:12 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) 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; Thu, 8 Sep 2022 04:18:10 -0700 Received: from wendy.microchip.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Thu, 8 Sep 2022 04:18:08 -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 v4 04/10] riscv: dts: microchip: add pci dma ranges for the icicle kit Date: Thu, 8 Sep 2022 12:17:07 +0100 Message-ID: <20220908111712.665287-5-conor.dooley@microchip.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220908111712.665287-1-conor.dooley@microchip.com> References: <20220908111712.665287-1-conor.dooley@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-4.4 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,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 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. 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..c0fb9dd7b2c8 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-rtlv2209", "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 f3f87ed2007f..5e2b8aa2ff64 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-rtlv2209", "microchip,mpfs-icicle-kit", + "microchip,mpfs"; aliases { ethernet0 = &mac1; -- 2.36.1