Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp461904rwe; Fri, 26 Aug 2022 08:08:59 -0700 (PDT) X-Google-Smtp-Source: AA6agR4eR3xEP/ZRBGbid0PtHthACdPCNIsWp6XK0ymAY2pOVjmNxfCp3YOEGqTo0LUiZq12J4Z2 X-Received: by 2002:a17:907:a218:b0:731:5e2c:c28a with SMTP id qp24-20020a170907a21800b007315e2cc28amr5721102ejc.472.1661526538721; Fri, 26 Aug 2022 08:08:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661526538; cv=none; d=google.com; s=arc-20160816; b=amo+qqC25TNfoK/4ZVTdy7ix6FlZPUdUG+OO0+EGPZXwlgGdkLx2+MbyJjYu1vpWfu kYqm++GvUpAYIotmiHNUdFpRtRukGUfHwUWECleIVqM7Sknwdk+rrwqeUjuSbe5be7G4 7RwMdx7EST2NSzwh/2TGG/djmk+giUxc2c3kwXRQEGQXo1QqrT9FLPa0uIB20MGZlcpJ cMeym3qzwqoZjvazqR22gC2Uqf6YI12bOg6es4IpQju2pgDeOg9IVXhvXZKpNPFb3jYv /FzXLDgYuNuHkpyAN0EQfjkWisaru8G6/YZNSBGv4ZTwDjozdHkcwzmYmviJd9wpyKvS Al8Q== 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=hqUD/FJEw4pyfZztg7gFo++yDESgXEz13071vcTYU0lcB5JkmO3sj5cvus8ztoN9yU ynKk61E+xgzFI66K78wnkg4e1qoLqSSTzFCaA38iNYtPAVtHYBCDIWwdmSBV6j4ACfMH ecIIpLUECK2tx2qryLxsHNiUkWXcg6PduhjxbdsSyBhYcVQ6kUk3gangiX0jdV338csh OF813eKafR4FO5moHRpINFbAkOPu7gtlsO738x1uBB5pC23LvJl+VrX+aaggGZoOXwdK TWnuvu/d+iFBhAbrwgc0YhFY8PZW5691TsyESe6yW35HAm92lKkw7jI2ygxUF0dymvad Qfig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=SnrudLFl; 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 sd34-20020a1709076e2200b0073d5a40e446si1386654ejc.518.2022.08.26.08.08.18; Fri, 26 Aug 2022 08:08: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=SnrudLFl; 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 S230151AbiHZO3K (ORCPT + 99 others); Fri, 26 Aug 2022 10:29:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243995AbiHZO2z (ORCPT ); Fri, 26 Aug 2022 10:28:55 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39007A0314; Fri, 26 Aug 2022 07:28:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1661524134; x=1693060134; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=hyLDKbNNI38wXrC5Tei7bV2mB9uLlpphPD5ViUjlS80=; b=SnrudLFlDwc0QjtzkKew3HKXo9Lw65I44CmFMx9wNgV+emJG6fZ//eQq IR5uLx5U+zWUpv2EK8Gvd//cR6oVkCFB19sV0NX6PXquM3bOvhMQyUN/Q 4SIG4cmgBuVC9N7HBAGEDYJKimP0YmScn5sRxRVtqYwoZK7RFCIehj9zI uE+hYr8mus02X4f0njWfM/kLtgxNTWlVrVzEL82Yn96hd6Gm+z789d1V8 L3bIwnfjGyYwl3eQoT/CQsSp1mFM5P1r9MtZVqEEio81wwoeEJnX9mTBo ntQAXo/0RNCbiZhM9+XCuK7T5Ho6CAnQC7fohjK94t3Ud5kGA5njNP8YK Q==; X-IronPort-AV: E=Sophos;i="5.93,265,1654585200"; d="scan'208";a="178024787" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 26 Aug 2022 07:28:53 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Fri, 26 Aug 2022 07:28:53 -0700 Received: from wendy.microchip.com (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Fri, 26 Aug 2022 07:28:50 -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 , , , Subject: [PATCH 4/9] riscv: dts: microchip: add pci dma ranges for the icicle kit Date: Fri, 26 Aug 2022 15:28:02 +0100 Message-ID: <20220826142806.3658434-5-conor.dooley@microchip.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220826142806.3658434-1-conor.dooley@microchip.com> References: <20220826142806.3658434-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