Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp66067lqt; Mon, 18 Mar 2024 01:09:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWAmg86sT+rFs1DTXX2zZnfv8o8kZFY7D7ERKRCHAVykaW0lYRg/x7mNFvYsYMNzaehxq8OjG1nOiCGfkMALyRcsol2eDoRP86v0QW/uw== X-Google-Smtp-Source: AGHT+IGS+lryXKtQkslmkVHTUUqrn++gwHAlJlEoYAVDONTGwCgWT92o23FGyZmOnQuFGCmhXUSC X-Received: by 2002:a05:6a20:7da2:b0:1a3:63f4:1047 with SMTP id v34-20020a056a207da200b001a363f41047mr3363507pzj.5.1710749397941; Mon, 18 Mar 2024 01:09:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710749397; cv=pass; d=google.com; s=arc-20160816; b=bjTRpHiCK3g6yBU58AAK2RKdjb0kHpFs9TLpikOQZ4sGRp5pQscQ+85eg0JvQD88Jr 1U4EmYoIuLBESFD1fh4YcFnyr7kV5XJbHnxQlvRmLc385JdlRN0LpLiNCY8lUuluzpdS zDKELbE0fD7CImdZzxYxVPWHrc0AwE7hkJxTkkd8Uo4lXecoDJM4xHdury1UOtCC82q/ JYoxkP2HdMuHwkNjRRmhWLjfFnUfsDctuLtB+DjeeHBNQYNkxIwgDSt4yNBvACvrBKn1 9nRQ22aUwn9qrw/6fZt6CrGPc+ZF77t+WHoT3oSLY5BPw4cPxL76QFvJpjZvEwN5aBLn D49w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=hHSYsVZF4kW8SItG5dq6Sjt3aPdsT9QPlNKx20xQC0Q=; fh=J5f4SSCHwNE8SYGWrT76ZYhmnjE9WnR38EFWPT68/DY=; b=KyigRUHYX30NUkrkgcEoXD+oPBo6lkpFBLLN7k5L1J8kTg0e6XhTXjyRHdnru+Dr16 l1thYmIIk0icVvThvHMuXJaARfUasweyffFFTZhN3t4Q6cUrBN6BaRoQoUtUum5Puz8t WEE7ky2fakN8NRFOZw+7fxp7VaII7OadIo8JBS8SEF/xASmiV6HLZ6lNkeY+cp48bkR+ SQxgddCNrFL/+FtxN6HfN2g81wiMRR1YomQL/ZdVWpnw71WzqEISTX4qxrxV9+ZFvJOV 3d0qM5gLRYETttru9U3Phs9jndkwp87cxT0CzXJpqUY6ABvuvvZAfJWRPXAldEktLbNq r7nQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gQCF90eg; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-105805-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105805-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id t27-20020a62d15b000000b006e6bcbccd85si8440504pfl.22.2024.03.18.01.09.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 01:09:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-105805-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gQCF90eg; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-105805-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105805-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 9A6252822C6 for ; Mon, 18 Mar 2024 08:09:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0E21125624; Mon, 18 Mar 2024 08:09:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="gQCF90eg" Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5BED025760 for ; Mon, 18 Mar 2024 08:09:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710749391; cv=none; b=tD4pTnjT6u9Pq+obb5mR6wr1+y66PNDNbkgRl9ShK+VzZdrHcgyNrpYsCt4rQkcrNIXvACD90EuA82eOndQNsoG2mrJhOGrcXDWNmmpF3ntjR7CsYSg4/o8AkZkNo+msjf/dB9sbHSeNioTN8AKXHFo1idXJuayakA6piRYyvXI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710749391; c=relaxed/simple; bh=6FX6ysB6km0s7Q2RRbE8trspM2pd0NqA0ihJWLyZ4KQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=iPhcvstVwr3Elr/wp4GDvMcOCIsYdeRBElc8exV2Qm2k98ux4AfCdQlSJD5PshDIXnOTIV247pprSIZdqX3KsA9TdZUrrI5PZvyzRxHJY0NFe6rU1aw5+C8AyQEy/XlgSh12DG0oZdSqj41hWKMB1+ttKar9sdKLMPDK3ir9zlQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=gQCF90eg; arc=none smtp.client-ip=209.85.218.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-a44665605f3so442029166b.2 for ; Mon, 18 Mar 2024 01:09:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710749388; x=1711354188; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=hHSYsVZF4kW8SItG5dq6Sjt3aPdsT9QPlNKx20xQC0Q=; b=gQCF90egm7Hbj4BGWRln6VU+y4Cat0zsz8hrk1WjMv3SK8SKnwmwYhNJxxJhaHoGpa rNxSvcWQUwy3tm8v7bql/bI6o3+CFDWi4bakpJM2dFMCH+TsSL3yq5PX6izbZ0CxaSDc 3b5T/PbqSKTrjBPMLK30kgwzyL20pJh8Gqfp8sS5p+amzbMbb8U2tdfw2GYMAKlyTqlV 2OPOxE/qPaePKFS4032oxt/c5MsZzUqZ+mcvAXd70JeDcrQ3FlFUm+3T47uHeLkw1Dn6 WLYTDcT0xh38UNU1mfmuComByQTSTawNDwyN1nUNIf8DA0s4MEqAlpagBk0Xco8TXLw1 dWjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710749388; x=1711354188; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=hHSYsVZF4kW8SItG5dq6Sjt3aPdsT9QPlNKx20xQC0Q=; b=LIzn287e2LErrDh/rujCCGltfGs0dywUQphoqAcgPCXguT4/dD9I2dA5ejvQnrNYIV t9TuHhipUH/H/BRiMwUNqK3dF3+2kIF7sdA1mI5GG1fkbConTrattTdzQRFYkBloVCM+ Gfl64AoOHmJw7RGNAS71P/+iBoaF3WhEXBxJdcCyJd2rquSo8VNZnXemkPt3Jz0u4Aop Oq4w1a80iBvn5vCcPA/3Htl7sZ/T5tImBBMcOpNEwaXUCpsucw30gauQwrTgBNFk8LZY Fm+YDy49sy434OReirIrPvkTsx7FOzI4FIl3hqq+rFDeQgWXMYoWtENVC0CvXnjKeLXp G23w== X-Forwarded-Encrypted: i=1; AJvYcCX2ymWbUmfcfm4sPJ7tzbSOFYZkUkACVMWwhm0kHhI8k3fTKNC2TCUSqAfCyw6YnukJGCXWk1FI+V8W/Wdfk3XCWDeBr70llUQ7X3a2 X-Gm-Message-State: AOJu0YyLwAT1alwTYPNY15NfVMfpzJFPTxo0OyOECZIiIqLu6egTxi0Z S71B/LNCXCO94SmoD2BRYys+wTb1x7tQ6Ow+jW1gPdLUZJH+S0mxUZ8eXlxyy8M= X-Received: by 2002:a17:907:9487:b0:a46:aa0d:a2e0 with SMTP id dm7-20020a170907948700b00a46aa0da2e0mr3913797ejc.3.1710749387746; Mon, 18 Mar 2024 01:09:47 -0700 (PDT) Received: from [192.168.1.20] ([178.197.222.97]) by smtp.gmail.com with ESMTPSA id s11-20020a170906bc4b00b00a4671d37717sm4459674ejv.52.2024.03.18.01.09.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Mar 2024 01:09:47 -0700 (PDT) Message-ID: <6da5b070-e61a-4526-833f-1af1bde988e1@linaro.org> Date: Mon, 18 Mar 2024 09:09:45 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 1/4] dt-bindings: dmaengine: Add dmamux for CV18XX/SG200X series SoC Content-Language: en-US To: Inochi Amaoto , Vinod Koul , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen Wang , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: Jisheng Zhang , Liu Gui , Jingbao Qiu , dlan@gentoo.org, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org References: From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2An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JggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 18/03/2024 07:38, Inochi Amaoto wrote: > The DMA IP of Sophgo CV18XX/SG200X is based on a DW AXI CORE, with > an additional channel remap register located in the top system control > area. The DMA channel is exclusive to each core. > > Add the dmamux binding for CV18XX/SG200X series SoC > > Signed-off-by: Inochi Amaoto > Reviewed-by: Rob Herring > --- > .../bindings/dma/sophgo,cv1800-dmamux.yaml | 47 ++++++++++++++++ > include/dt-bindings/dma/cv1800-dma.h | 55 +++++++++++++++++++ > 2 files changed, 102 insertions(+) > create mode 100644 Documentation/devicetree/bindings/dma/sophgo,cv1800-dmamux.yaml > create mode 100644 include/dt-bindings/dma/cv1800-dma.h > > diff --git a/Documentation/devicetree/bindings/dma/sophgo,cv1800-dmamux.yaml b/Documentation/devicetree/bindings/dma/sophgo,cv1800-dmamux.yaml > new file mode 100644 > index 000000000000..c813c66737ba > --- /dev/null > +++ b/Documentation/devicetree/bindings/dma/sophgo,cv1800-dmamux.yaml > @@ -0,0 +1,47 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/dma/sophgo,cv1800-dmamux.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Sophgo CV1800/SG200 Series DMA mux > + > +maintainers: > + - Inochi Amaoto > + > +allOf: > + - $ref: dma-router.yaml# > + > +properties: > + compatible: > + const: sophgo,cv1800-dmamux > + > + reg: > + maxItems: 2 You need to describe the items. > + > + '#dma-cells': > + const: 3 > + description: > + The first cells is DMA channel. The second one is device id. > + The third one is the cpu id. > + > + dma-masters: > + maxItems: 1 > + > + dma-requests: > + const: 8 > + > +required: > + - '#dma-cells' reg is not required? How do you perform any IO? > + - dma-masters > + Best regards, Krzysztof