Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp761250rwe; Thu, 1 Sep 2022 07:17:21 -0700 (PDT) X-Google-Smtp-Source: AA6agR5OHSqK9vVpZmRsg4ntvK6H1xiCIuHH0QLf0V6Icfjdtt/7foGPu+lF3Bo6cvgjXoiO8EZF X-Received: by 2002:a05:6402:1694:b0:447:fa04:367b with SMTP id a20-20020a056402169400b00447fa04367bmr23848352edv.138.1662041841629; Thu, 01 Sep 2022 07:17:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662041841; cv=none; d=google.com; s=arc-20160816; b=wcGHoufD1bcbKPetqMVDPn8Wh0RAuJFvlD3Q9YndacmxBzunDm99zl7+ZysxXPO8HE anaRJrVyh6JbJ4cWC91gRNd7rN2z+opLX+tyDMLsRvoe76M99mhgFpPFZuWm6FYtXrIV /kgidPdv4BZ7cVYGGhOkhD9NmpQ/+YsCF1PVJsXm7zhrYjg6VjF/1Z1lUCvkp23igOSI IqkQcRYz5csNgMFfuK0dZs5iWa9Y760z6klshBqnHjVigFZvXhqZHXumb9Y7Z7UbGKz7 UxtQ2YvBd4RfzcBwZ5RLTQLL2/lknXsSRlMa7QZ+6zZHUGTC6/XB/jqZ5JFzA7oYb5+N Wrag== 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=Xbc+nt9R6aTGWdOc3ahJd6Oq33TA7+jaIwsL8SixCP9pPtI7T9AqExOKHQk6Emm4JB NwVra3qUb6fTMHqG9diQZvMCL2o2oeBwp5ig6zS/f0iwC7HSR5bJsbDnkN8Nz7/9DM8r CyqVKjoEu8SmJiej2TB4lDrNrIxI09GSz+n2d1RjnoC3r68ZRRIIs3LkxQxarmkbkA25 MAP055hKpLLqaNnGCWl93tFODH6jJXYwv+ReP3SD0DDgunyZazM7heUHmVXYVIvEIrjc iPTOvypnTIRZ+cpuBCCzxWjZp3BHuqLO7qXlEyzGoKv9yGhuU0CCqse5a5WBpy/qXMW2 qkTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=RtwBnjnT; 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 he8-20020a1709073d8800b0073d543f0ca7si14340681ejc.404.2022.09.01.07.16.54; Thu, 01 Sep 2022 07:17:21 -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=RtwBnjnT; 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 S233196AbiIANhm (ORCPT + 99 others); Thu, 1 Sep 2022 09:37:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233982AbiIANg5 (ORCPT ); Thu, 1 Sep 2022 09:36:57 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C66719018; Thu, 1 Sep 2022 06:35:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1662039304; x=1693575304; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=hyLDKbNNI38wXrC5Tei7bV2mB9uLlpphPD5ViUjlS80=; b=RtwBnjnTn8GNVToisMrB8u0yIuD1JxcgglKmBmkPfAZdu4UxonmAfKrM UrCrYyXo40yLi5AHTlj3GcrwDQdrqdJbCvcLJsXeyAxBfJlABIvkhfoik Q6/1vafdVkMStddY1S2vS8lxbCD+ptz+EPbZA5zwjjGF3fautF8kx4iLr H0bm7BYYHWp1CYjXAkAjrzAnuy9jjfVlQy8HJrKqBZi3hUfLMtLgpQDO+ QHhhG49ZHfBsd/kwGGlnobE3YpIyOniVcxIAojav0ljH7qZjk5Ud5CgSu qGHXM6APYEBK3rplbtiPt8YdJWFPSlAmvg7bDmNY6a6Vq+0Hh+Gf4SHlN g==; X-IronPort-AV: E=Sophos;i="5.93,280,1654585200"; d="scan'208";a="171970587" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 01 Sep 2022 06:35:03 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Thu, 1 Sep 2022 06:34:57 -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, 1 Sep 2022 06:34:55 -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 v3 4/9] riscv: dts: microchip: add pci dma ranges for the icicle kit Date: Thu, 1 Sep 2022 14:33:59 +0100 Message-ID: <20220901133403.3392291-5-conor.dooley@microchip.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220901133403.3392291-1-conor.dooley@microchip.com> References: <20220901133403.3392291-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