Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp5654754pxb; Mon, 28 Mar 2022 15:34:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFpwYwOJrDHH13ks0pOFoFw1bV7Uxssemsmt6xR3N0UN+Grl6d6iCI1bjWhrmjJ/9IOfC7 X-Received: by 2002:a17:90b:4a4b:b0:1c6:4398:523c with SMTP id lb11-20020a17090b4a4b00b001c64398523cmr1330626pjb.50.1648506851315; Mon, 28 Mar 2022 15:34:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648506851; cv=none; d=google.com; s=arc-20160816; b=hsNPrboatsvFVAZKoZVtCFEmrx4uSNfumspDJpkDTE5IQ8JrVnHlRF01x1dv5OMNuo kiVIfzj/9f1N1XEyRUTCwX6KmWEFcAFnLhdhGK+Bt65hlRfjeGLfW3GVpyja6qn9baIz RywNtKRNDJyhe0qy2/cKbiEWdfxBM9c4WGREFeXHNe2o1Ti5EhIQr9QwcR6ehZhGxJYi 07yCPw7Jlq3RcCXUjYxfGUkgt6ZtAJy5bvcLHajsxgX9BrypwYpZw28kE5HItLelr4/R 27blkQkohPDftffh6P1mArSyKzIQOFbaw+YLGNyehdvc6iAGzkhUJm62gdsWj9gf3rlA vJ3g== 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=bwZ4ntGN7f8A8nsIcId+rUmkc/uVaZ9W2h2a+0CTy+I=; b=sE/L5kEdS/iDB+4MWs4tQGjfxgm/FDpwX4Sj4NZCalN2M6aw78F3FyQJFi6hGkxm0M LnkI166tKTnSE9Ve0NdQ9MftzIX6nVfsPNWBFqYBkmC4ANjQ+DHEYReT5tkPbZkuAyGY iPHqI8ouERapOYQsG9BqyCIzxqV2wPoT7Yqwiobz1JdFIRZGY325AoaQWg2P/6sAycjZ FdJ0ix145KPyYKcxJjStLeOlqyT9TXW31XT2irQCV5AJ0HZLXcTsZHjx5/jaRAjzkBgu 2s+OVuoLLyCgNi1AI/vhpRdkUGdTzeDfMYGxnXT2tsLIrUzJONJwEf6TQP/9k3wtXbku viuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=IO1wRJ5J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id n22-20020a056a00213600b004fa3a8dff93si14378830pfj.74.2022.03.28.15.34.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Mar 2022 15:34:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=IO1wRJ5J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 424971F37A1; Mon, 28 Mar 2022 14:46:58 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240035AbiC1JyW (ORCPT + 99 others); Mon, 28 Mar 2022 05:54:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240031AbiC1JyV (ORCPT ); Mon, 28 Mar 2022 05:54:21 -0400 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BEAA54BD6 for ; Mon, 28 Mar 2022 02:52:40 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id l4-20020a17090a49c400b001c6840df4a3so14964862pjm.0 for ; Mon, 28 Mar 2022 02:52:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=bwZ4ntGN7f8A8nsIcId+rUmkc/uVaZ9W2h2a+0CTy+I=; b=IO1wRJ5JootJiOYi8EyMw7W414vNT7NAHx9rKQTYR0fx2t1ukxQU6t8S0ZcMXI+Qq+ /q3SDCiAwcSY0QOAO+YRlqTqqWbMrXikfSBCt/qUcdY0KrKYixn0g46dYlA9pBnldg79 zustXyExPGLSga3BfHWFywEdwpPF+quB+lj0f0xNKDvm9Dq9eiT2F9oX4F2t1ry1jcAc RQkJjH6g/2VoKdJ5bC9jmZ2mwUf5bQdok9n/dgc5ZGezYVWQ7fnzc36XoNXlM1eTwqWT RXPyJ15qRLLoCqmksuBVSr5yOV/nwOiRjvNQMl6YN4w2FP+FfZRXTDhETJTseOaVIzSW oBBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=bwZ4ntGN7f8A8nsIcId+rUmkc/uVaZ9W2h2a+0CTy+I=; b=rg5Cm7LfA8896PYvRyZ/ohG+RsXNMsZFe8sY/YB0tezK1vtCi7LNu7mQCL962gWCMa Ayx2dXmfrXIgzW2+Z06LyA+IaLaWNSAT3/4I2tbSxMM7yYkX5irO3KCWgpWHpjJhFOvQ LlBJKHyO6jMyEhorW5lBUGNhuA62wajpa4SkvhP1wV21naAAG305OvHDAq51VaMtqD6/ c6+pg6DSDe1CxluVYxdkAp02BBvHiCmhgCkws7MvDxmtPDH16/LVHbe0SdUKmen82rUf s3RKveIVlst2ygTSA/Mkxr1t9qbhUX/xx65fEbuEt4w0qf52CtPSns9wO6zx1Au7q4QA 1/7Q== X-Gm-Message-State: AOAM532ykxvVuPKqNtb8tyvPUAUohHBqXmtidMsQ36zW70YC1/QasNgF R0WfJoMQj6uWNrRGiJfA7C1xWA== X-Received: by 2002:a17:902:6bc3:b0:156:e4f:b014 with SMTP id m3-20020a1709026bc300b001560e4fb014mr4737654plt.17.1648461160156; Mon, 28 Mar 2022 02:52:40 -0700 (PDT) Received: from hsinchu16.internal.sifive.com (59-124-168-89.hinet-ip.hinet.net. [59.124.168.89]) by smtp.gmail.com with ESMTPSA id g4-20020a633744000000b00381efba48b0sm12255117pgn.44.2022.03.28.02.52.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Mar 2022 02:52:39 -0700 (PDT) From: Zong Li To: robh+dt@kernel.org, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, krzysztof.kozlowski@canonical.com, conor.dooley@microchip.com, geert@linux-m68k.org, bin.meng@windriver.com, green.wan@sifive.com, vkoul@kernel.org, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Cc: Zong Li , Palmer Dabbelt Subject: [PATCH v8 2/4] riscv: dts: Add dma-channels property and modify compatible Date: Mon, 28 Mar 2022 17:52:23 +0800 Message-Id: X-Mailer: git-send-email 2.35.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 Add dma-channels property, then we can determine how many channels there by device tree, in addition, we add the pdma versioning scheme for compatible. Signed-off-by: Zong Li Reviewed-by: Palmer Dabbelt Acked-by: Palmer Dabbelt Acked-by: Conor Dooley --- arch/riscv/boot/dts/sifive/fu540-c000.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/riscv/boot/dts/sifive/fu540-c000.dtsi b/arch/riscv/boot/dts/sifive/fu540-c000.dtsi index 3eef52b1a59b..6a3011180846 100644 --- a/arch/riscv/boot/dts/sifive/fu540-c000.dtsi +++ b/arch/riscv/boot/dts/sifive/fu540-c000.dtsi @@ -168,11 +168,12 @@ uart0: serial@10010000 { status = "disabled"; }; dma: dma@3000000 { - compatible = "sifive,fu540-c000-pdma"; + compatible = "sifive,fu540-c000-pdma", "sifive,pdma0"; reg = <0x0 0x3000000 0x0 0x8000>; interrupt-parent = <&plic0>; interrupts = <23>, <24>, <25>, <26>, <27>, <28>, <29>, <30>; + dma-channels = <4>; #dma-cells = <1>; }; uart1: serial@10011000 { -- 2.35.1