Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1018343pxb; Wed, 6 Apr 2022 06:51:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgJWV7+DN44ou6ThFSdqeFuLMMgY0R/sDbCv+LMjhiL99IH22JXw1DbTUV6+tNOKZRcBII X-Received: by 2002:a17:90b:3881:b0:1c7:c02b:bcf8 with SMTP id mu1-20020a17090b388100b001c7c02bbcf8mr10202537pjb.131.1649253095668; Wed, 06 Apr 2022 06:51:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649253095; cv=none; d=google.com; s=arc-20160816; b=PjHuaLZ8G9ax8a/GhVpTMB3yKh+aHAqKp0nUCc85ZA2a9f2hSnMNMWJmcmpo3dxN5z KBa57pKemj84G383nr+U/okYCILB9orx9yqfpB1ewjoP/Zm8uJz//cYB1niZMEM0bQ66 pN31Eju3zjRG7NwdUJ6MhsLqUBrXqyHkn363ufIA0u+9DS5whYbx17n8wCpoJt1tMpHy RO63JFGGEEOobOfyeiXL7hg4Omxf0oc5WwBLJye0hGMgeoWtd3l9V71tkEKygew7DZdX Wc9Nuqu4E4VCpU0/s4JVDhjCCpyKWHuBBxuRa5nu0f9eRwwdma9T2ULWE649hRg30ac7 oXBg== 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=TFVjDpMBzikmsOPbftDhPL/vuxdtl+pABOZRs13meDI=; b=0rXyuBLSkyHpEvdAJmMgNGjpxRrmzj6CN43X9xZ53CycGz1tU8VF16uI5Akh+UkON5 s5To+Lev5mDvkFNuAqeMQ+5nEvanMtdh5ozNHUve7e7Z0VUpzzgt603DSxqg+0iMV+Tt WoBLuRVmf65180on91nYGZxpJiVkkkr9L07DCQcEV7fOTakoxE4roOCbpDgQlmoQmcbh fl0df+DarsxdmI0pocW4iLZXhFzWj/Zhh3XFo6NAsR0lYoAQu0R0xUE9SlREcU7MiY3a yRJWRDdIDuVF4GFo4F5aSumWeWrAMVRxrrmB/B6uqs2dIzihIjNmTtXKkmnK3X06zoLo AskQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b="on2i/12s"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id b3-20020a637143000000b0039890725054si16089558pgn.711.2022.04.06.06.51.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 06:51:35 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b="on2i/12s"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0EED530F9CB; Wed, 6 Apr 2022 04:46:26 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1847157AbiDFCNb (ORCPT + 99 others); Tue, 5 Apr 2022 22:13:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245710AbiDEUNd (ORCPT ); Tue, 5 Apr 2022 16:13:33 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9317FF94FD; Tue, 5 Apr 2022 12:58:05 -0700 (PDT) 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=TFVjDpMBzikmsOPbftDhPL/vuxdtl+pABOZRs13meDI=; b=on2i/12safI584EKtjB+2mXflF RCUdyDig4wDPF1t5RxfXOvodcEQHARZFV9YAvk4Tf2Jgid1N9zL6YFukmjNl5u2qaSNnlvXx+w4Xs YLpsVKUhteCxx3RgspyKDIxRkl32bHTYJFe1gtT0ALVifAXNhChYe0iWa6EPOvfMbFv0=; Received: from p200300daa70ef200456864e8b8d10029.dip0.t-ipconnect.de ([2003:da:a70e:f200:4568:64e8:b8d1:29] helo=Maecks.lan) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1nbpJQ-00035V-HQ; Tue, 05 Apr 2022 21:58:00 +0200 From: Felix Fietkau To: netdev@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , 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 v2 03/14] arm64: dts: mediatek: mt7622: add support for coherent DMA Date: Tue, 5 Apr 2022 21:57:44 +0200 Message-Id: <20220405195755.10817-4-nbd@nbd.name> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405195755.10817-1-nbd@nbd.name> References: <20220405195755.10817-1-nbd@nbd.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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.35.1