Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp75976rwb; Thu, 22 Sep 2022 14:42:53 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5+sNuSoz7icRyLZ5gEsQ2t8G/GWEF2OFEbvT7NIYrxypnqLrgD63t1h4KpQQCwixCyR0cr X-Received: by 2002:a63:4384:0:b0:43a:18ce:f98a with SMTP id q126-20020a634384000000b0043a18cef98amr4786553pga.273.1663882973726; Thu, 22 Sep 2022 14:42:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663882973; cv=none; d=google.com; s=arc-20160816; b=QmdRYYKRAB5NVDbDh4EqcsRgFvOzxzNaqyjsvDK6scMD37H53jAYMBY1erJZct/KGz ErH1tue1XLZ3KMZH3++0T4SC8g5zCEIcxClLGM3odfIvb4CL94laxHtoPw/78jauihtV jYq2VoUsvf+kVg1pUYrYCZZsO3QbawoB+8XafO4fgJyjk/J332rDPg1qg361z7jA3Rrf ACUMct9GSsEyZicTnRAMFmUYiNaMpxSiDiG/qFqjElzNxdYatz0FdxX1U7SZ9QldndAK aMHRYQygbMGn9qh4vkE4kjOAY5wnKBmnSAzMkCedShMTOFaYEdmmKItkaZZjJ9taipG4 4Zag== 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; bh=MxwJooKnNbQ6DfH9Umcsn376wteJoRCOlMPpN5c4UMc=; b=n0uZGe8x05GH1pHSKzY7/T+yjA6ZdslRRUQD6gWLT981x9iwnbemhXEcXfp2gUsws1 5ywZU1omH8a+p6s8FkUxwyPyVJijMxllwjo7300TugylKjOltN1DK0d3E7RuYyM5WZUJ bB8l+AXyDxzKpq3VMeoMKVK2jfbfcMqkUQTsEHXrRCQzpJftRTcT0Z3Vm/8xyEjAaTCB /nCsWFxtPfT2eTS/U+qj2u8t540J5TnXxLbxcoeWKLG4tk4gM5jhg3zhzv2H4Hn4SBn3 Hpb4PpcGhzhtKtQ2jtzhxI0CeQdaNGGKTC3Bp5mCUbejwBoFxCdzQl9lHP0RMSqWB0ol FozA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a19-20020a63e413000000b00439c93036f8si4896114pgi.295.2022.09.22.14.42.41; Thu, 22 Sep 2022 14:42:53 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231312AbiIVVlB (ORCPT + 99 others); Thu, 22 Sep 2022 17:41:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231330AbiIVVkl (ORCPT ); Thu, 22 Sep 2022 17:40:41 -0400 Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73CDCAE203; Thu, 22 Sep 2022 14:40:40 -0700 (PDT) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id E2D7F200A35; Thu, 22 Sep 2022 23:40:38 +0200 (CEST) Received: from smtp.na-rdc02.nxp.com (usphx01srsp001v.us-phx01.nxp.com [134.27.49.11]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id A322B200A0A; Thu, 22 Sep 2022 23:40:38 +0200 (CEST) Received: from right.am.freescale.net (right.am.freescale.net [10.81.116.134]) by usphx01srsp001v.us-phx01.nxp.com (Postfix) with ESMTP id 60A8B40AA3; Thu, 22 Sep 2022 14:40:37 -0700 (MST) From: Li Yang To: shawnguo@kernel.org, devicetree@vger.kernel.org Cc: robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Li Yang , Laurentiu Tudor Subject: [PATCH v3 5/9] arm64: dts: ls1046a: make dma-coherent global to the SoC Date: Thu, 22 Sep 2022 16:40:26 -0500 Message-Id: <20220922214030.9004-6-leoyang.li@nxp.com> X-Mailer: git-send-email 2.25.1.377.g2d2118b In-Reply-To: <20220922214030.9004-1-leoyang.li@nxp.com> References: <20220922214030.9004-1-leoyang.li@nxp.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,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 LS1046a is mostly dma coherent with a few exceptions(e.g. edma) so add the dma-coherent property at the soc level in the device tree and drop the instances where it's specifically added to a few select devices. Also use the newly added dma-noncoherent property for exceptions. Signed-off-by: Laurentiu Tudor Signed-off-by: Li Yang --- arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi index 27033c558e3e..2a445c455b6b 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi @@ -273,6 +273,7 @@ soc: soc { #size-cells = <2>; ranges; dma-ranges = <0x0 0x0 0x0 0x0 0x10000 0x00000000>; + dma-coherent; ddr: memory-controller@1080000 { compatible = "fsl,qoriq-memory-controller"; @@ -355,7 +356,6 @@ crypto: crypto@1700000 { ranges = <0x0 0x00 0x1700000 0x100000>; reg = <0x00 0x1700000 0x0 0x100000>; interrupts = ; - dma-coherent; sec_jr0: jr@10000 { compatible = "fsl,sec-v5.4-job-ring", @@ -708,6 +708,7 @@ edma0: dma-controller@2c00000 { QORIQ_CLK_PLL_DIV(2)>, <&clockgen QORIQ_CLK_PLATFORM_PLL QORIQ_CLK_PLL_DIV(2)>; + dma-noncoherent; }; usb0: usb@2f00000 { @@ -794,7 +795,6 @@ pcie1: pcie@3400000 { #address-cells = <3>; #size-cells = <2>; device_type = "pci"; - dma-coherent; num-viewport = <8>; bus-range = <0x0 0xff>; ranges = <0x81000000 0x0 0x00000000 0x40 0x00010000 0x0 0x00010000 /* downstream I/O */ @@ -834,7 +834,6 @@ pcie2: pcie@3500000 { #address-cells = <3>; #size-cells = <2>; device_type = "pci"; - dma-coherent; num-viewport = <8>; bus-range = <0x0 0xff>; ranges = <0x81000000 0x0 0x00000000 0x48 0x00010000 0x0 0x00010000 /* downstream I/O */ @@ -874,7 +873,6 @@ pcie3: pcie@3600000 { #address-cells = <3>; #size-cells = <2>; device_type = "pci"; - dma-coherent; num-viewport = <8>; bus-range = <0x0 0xff>; ranges = <0x81000000 0x0 0x00000000 0x50 0x00010000 0x0 0x00010000 /* downstream I/O */ -- 2.37.1