Received: by 2002:ac2:5a04:0:0:0:0:0 with SMTP id q4csp158622lfn; Fri, 25 Feb 2022 02:58:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJwLbEvN8oaEL8RouwKl4TOKQLXsGkVUaK7eKZsaja+gfd51ZMi4hkrZ9yBR5bvdsYe0ke+5 X-Received: by 2002:a17:906:c211:b0:6ce:e221:4c21 with SMTP id d17-20020a170906c21100b006cee2214c21mr5644490ejz.691.1645786716568; Fri, 25 Feb 2022 02:58:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645786716; cv=none; d=google.com; s=arc-20160816; b=V+rdfwSpjz/n6FwvDEKJv2cLiJZAQJXKzOW9CV/8PxH9djb/fYXsoK2mlgfYhJJxOO H4AhBZWWuOWjF9poAhBE+sp/pn/7tU0QbKe6KcFLe2T59QnAyTmdc0cGnv/4T9cVNUDx BzvMMX/ol4FTgPPGVvlg26tUVZSwdswsvUBxgUeilo8N1+KHU9MLzUYtxSxMOKcjHY/R b9WJzzoC/wu+Peowp91MdQTLiBH1TdU5+NBcqB57iZjMWJJLSSYedrQHepZ8oQQK7gXR JUrIj1KJZI/uZfB5l8M9KONzl8kEt46TdHnbc8UTBGzaHfx7ERbMkieHca54tEa1Po1v jY4Q== 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=DxOXxIW0oNb1NkSwODLS6r1eDbL6738IlX9qVviaol4=; b=rkk5o0qLmPbh9CA2I6V2bmprFwVT+hyB9NOENgoPXDVinPTS2GRUpW43/wtYdU5MKG tp1lXPafyO8YiVT23qyIyMBbwRn3MeCyt0Ol+oBh8Tt2URB6T7kCaO3D8oL2SuLUlHKm pJNLJzBrpG7Hs5i9bplXw4FBSogOB01kXPUmu248B2UM+FjZiDIKiSW/XMCtki4on0r1 XinuMU4Rzik1uGLDpMDV8rwaFv1t6Ld9twMmTRF5n0haQnNrc35fgOrmHY7Gi7YAeO+e rfj1Qrfu3ekdx3AltiaHijHMSHhXoRpGD1g1HEPgJVxW5jbmO28/joZ0eU+XnTfoXvoh ZqMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=FbsS5rnk; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c2-20020a170906154200b006b640982042si1210793ejd.406.2022.02.25.02.58.12; Fri, 25 Feb 2022 02:58:36 -0800 (PST) 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=fail header.i=@nbd.name header.s=20160729 header.b=FbsS5rnk; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239384AbiBYKS5 (ORCPT + 99 others); Fri, 25 Feb 2022 05:18:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239370AbiBYKSx (ORCPT ); Fri, 25 Feb 2022 05:18:53 -0500 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CED718CC53; Fri, 25 Feb 2022 02:18:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=DxOXxIW0oNb1NkSwODLS6r1eDbL6738IlX9qVviaol4=; b=FbsS5rnkdnhlt4LlHdXE6DO2uD Mppn0jqJI8jut6Nk/HtYK/E6NqHNMzA6u2HNL7oJkTslNXH2cN7ChUge6UBX9XqoHY/GSvQuA1g8c 86vemT1nA1f6abyqcfbppEOXdyPU3XfuwBYuQwiOuMAx5VsdEOvR45bId6E4ba502etc=; Received: from p200300daa7204f00f847964d075b2b3d.dip0.t-ipconnect.de ([2003:da:a720:4f00:f847:964d:75b:2b3d] helo=localhost.localdomain) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1nNXfx-0007J1-U9; Fri, 25 Feb 2022 11:18:14 +0100 From: Felix Fietkau To: netdev@vger.kernel.org, Rob Herring , Matthias Brugger Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 02/11] arm64: dts: mediatek: mt7622: add support for coherent DMA Date: Fri, 25 Feb 2022 11:18:01 +0100 Message-Id: <20220225101811.72103-3-nbd@nbd.name> X-Mailer: git-send-email 2.32.0 (Apple Git-132) In-Reply-To: <20220225101811.72103-1-nbd@nbd.name> References: <20220225101811.72103-1-nbd@nbd.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, 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 It improves performance by eliminating the need for a cache flush on rx and tx Signed-off-by: Felix Fietkau --- arch/arm64/boot/dts/mediatek/mt7622.dtsi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dtsi index 6f8cb3ad1e84..a2257ec6d256 100644 --- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi @@ -357,7 +357,7 @@ cci_control1: slave-if@4000 { }; cci_control2: slave-if@5000 { - compatible = "arm,cci-400-ctrl-if"; + compatible = "arm,cci-400-ctrl-if", "syscon"; interface-type = "ace"; reg = <0x5000 0x1000>; }; @@ -945,6 +945,8 @@ eth: ethernet@1b100000 { power-domains = <&scpsys MT7622_POWER_DOMAIN_ETHSYS>; mediatek,ethsys = <ðsys>; mediatek,sgmiisys = <&sgmiisys>; + mediatek,cci-control = <&cci_control2>; + dma-coherent; #address-cells = <1>; #size-cells = <0>; status = "disabled"; -- 2.32.0 (Apple Git-132)