Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3141596lqp; Mon, 25 Mar 2024 23:58:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVEPY9IPhjHvyz12xHAPgCWDfLsGozXdqA1P/Tyle9bcVzQIMr/sbfkQpLj86Fn7IqNS3WqRBpuquE/XT9ngBuUpI6wvasWS2GwTxJsOg== X-Google-Smtp-Source: AGHT+IFYSQLxKBZpnuJYrXnGuxkqglST/PNcmy5UgOzTNYT8oZKYf/g16h2jpfnG6h0mu5UFJyhV X-Received: by 2002:ac2:499e:0:b0:515:7686:6068 with SMTP id f30-20020ac2499e000000b0051576866068mr5227639lfl.55.1711436280131; Mon, 25 Mar 2024 23:58:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711436280; cv=pass; d=google.com; s=arc-20160816; b=njTw6N2vczaVcXmyNNtiRhj73S80QvioPn6zCYw8ZG8p47FjTYrCIGCEdctYMJJ+Kt eTHoQ47oxWrV0eod1aI87y51czcmyv6QADo6MyJ2Sc9UnUjy2srnD6h+005oXYM5KN6D fDNfF+bxvis/zQM482DM7XW9TglKBpJhiRmJi7+Bb64iPSCHPIGbNoM9qOne4v6x+/Ma 1dDoXLaoSoMXCIX1ogyxmXZfVxR0sXlLEF3/t7ekeJZJZisNw4Kd/gwsA9d2lVJxInl2 E65z6FM6ts263xFFNyXxqlH7J5+vYfKHaLzrsFJcbwjFXM7gDJWSu3bm8Jjr/7nEpyb/ 1kcQ== 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 :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=b92irMn46EzcW/AtEokxK5lcxIlhufDIe6kzdSmDcBA=; fh=daadgd0ip8/3yC5MwZmYMti8UzKRAh5J6jrCAnVSCrQ=; b=N8r/+6uUMIg6bbVGM8n4K5aCPGplLq+cMY2ookI5Yf+dktxEKnDFp5xpbqYsmUc1xj M/Ig49v9gFt3i7aLrEH/WVQi8bL8t3lM9p+UGN0publ3hzJ1btNbJfz1qapDXHp6bDpc WPHc7uTKmJTudt5gId6W274n8TptlBip/EgNt33qtNZoE0ku6zUWvyZGowq1+cONhe/3 awTQE4OlehkQNqw0xs3YrQqTL8RflQdFAsEismoF7VXWs1IhoPheZptvyWXbzb2y4bbd wmKexTbqpbQ63foSc1F5CJgZROX4tEAvGGEVHNo1pBd2lLLl+Vr4E3AY5O1wj4pkxCxk V05g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wKAHJLFk; 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-118434-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118434-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id b12-20020a170906490c00b00a4df56a1955si230481ejq.49.2024.03.25.23.58.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 23:58:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-118434-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wKAHJLFk; 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-118434-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118434-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 am.mirrors.kernel.org (Postfix) with ESMTPS id AD9331F3AA01 for ; Tue, 26 Mar 2024 06:57:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8B8A412DD8E; Tue, 26 Mar 2024 06:57:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="wKAHJLFk" Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) (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 D9E3B839E4 for ; Tue, 26 Mar 2024 06:57:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711436270; cv=none; b=CSNWQqUMNcZIIVX7jjw28zfRMQ1iLFNs5tu2cOxaZtqTgKCl1i/MoV24XVin2LOUrtSlPt3Nfuos6VKNJMd1Ohqd7FmUWx6bLTk15QFHtECzTvvKvL9xHYD4zibfG0b0oIzUVBiPcQdnSYVBa2G8A9UBYACeusr3lJpji6KHfVU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711436270; c=relaxed/simple; bh=55SdADad3OWx3kkVp1dRRhODKeeVTToOTYqoi+1XBlQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=hioMxFbU1wcdzIH15FQ2aM3juBSlFh3Dmj3m6zLapodPfPhDs35GkvFqKEeDLhScwzQzgd2zDboq0ub3lzBOSazLbfbXwGm3MCH5BHC9yhXkdebs921UErQVI2lV+wR+niY/I5zUDamtT1I5OglUasriLY9C4kae2YczQZFF/zw= 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=wKAHJLFk; arc=none smtp.client-ip=209.85.218.48 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-f48.google.com with SMTP id a640c23a62f3a-a466a1f9ea0so308658666b.1 for ; Mon, 25 Mar 2024 23:57:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711436267; x=1712041067; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=b92irMn46EzcW/AtEokxK5lcxIlhufDIe6kzdSmDcBA=; b=wKAHJLFkMT5VwVK36wL6jdpr6IUx2ionustJ6jtq4JDNyHwSM86WfXtgY34peUChzV qqJnI3DdccvGwXE56f2TxXEOBbErCJvDGu1ZjFOeJUb1/SUJf78TmxOjNjF9MxAtiRLp NGhaMDEwoovbn8ww6aXJoOt0qMXYiIaCiP3aNrbQKY0hnIcRyJntkP18AUINcXsEc+Ig mMTiO2t1KnJW31GqRM7pVx93/U4lQylCabWPX6G3+kLUHC068VUBkC7I81FW+xbUcodZ xV8ctLCFQBcDPGSpexNexISO6nNJywOcFPFgl+zMhRSMHZjWcA/4cYddLeiOpiCqrSzO NRYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711436267; x=1712041067; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=b92irMn46EzcW/AtEokxK5lcxIlhufDIe6kzdSmDcBA=; b=ot0TgCV2F2jLi5zcdShmDoHP45vn0SmovVeBbgoxLybNHW0GgAQ+QLOftrV4XzXiR7 CO4ILrdk/6KxGwkM0pQdOM5lcmTmE6RNVfCKbaorTwdBHDiVzeAchOfhMwciF6CL9EyB ESEUK7jcQpk/v7MiTQlzLFcqUyD0Hc4Dhnxss936aSa76CaEdQrQ6yH9gRZecXqdfdXC nDpUk4QTtkQmr/tqryQjzqvjWYbJyqwFpyFAWgf87cnEHHVfe1sPqEglykO4B+fFi7uv /Kb3gz8Gw2SnadsPv30bspkDlNyuLfGWJpKyYEFZhLxYG74/cLpjMfhgs2CHIkM7mRyy nqdQ== X-Forwarded-Encrypted: i=1; AJvYcCXnVJFVry0vEQJ9ZibtmMqVSHMSmcrFV4MUF5LDgWSr29elTlm1wMKCyhY1xHgWjntzq9kN3cDse0kRwwrTNCpFWsM6cfduQQQvW3ym X-Gm-Message-State: AOJu0YxSXrfBEyJNYl0GbtJB4PqGIZSH0dGloptNFKjolKLQpCHqB6L3 PIuSXIzJLOSGsDlroT1XJtgAW39cJyjpenluZ1BZ3qfXebrIATsO/Y/a78UU+oM= X-Received: by 2002:a05:6402:34c6:b0:56b:f54a:8485 with SMTP id w6-20020a05640234c600b0056bf54a8485mr9051599edc.0.1711436267278; Mon, 25 Mar 2024 23:57:47 -0700 (PDT) Received: from [192.168.1.20] ([178.197.222.44]) by smtp.gmail.com with ESMTPSA id r1-20020aa7cb81000000b0056c052f9fafsm2939234edt.53.2024.03.25.23.57.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Mar 2024 23:57:46 -0700 (PDT) Message-ID: <57398ee0-212c-4c82-bfed-bf38f4faa111@linaro.org> Date: Tue, 26 Mar 2024 07:57:44 +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 v5 1/3] dt-bindings: dmaengine: Add dmamux for CV18XX/SG200X series SoC 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: Content-Language: en-US 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/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV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BQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 26/03/2024 02:47, 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 > > + > +allOf: > + - $ref: dma-router.yaml# > + > +properties: > + compatible: > + const: sophgo,cv1800-dmamux > + > + reg: > + items: > + - description: DMA channal remapping register > + - description: DMA channel interrupt mapping register > + > + '#dma-cells': > + const: 2 > + description: > + The first cells is device id. The second one is the cpu id. > + > + dma-masters: > + maxItems: 1 > + > + dma-requests: > + const: 8 If this is const, why do you need it in the DTS in the first place? compatible defines it. > + > +required: > + - '#dma-cells' > + - dma-masters > + I don't understand what happened here. Previously you had a child and I proposed to properly describe it with $ref. Now, all children are gone. Binding is supposed to be complete. Based on your cover letter, this is not complete, but why? What is missing and why it cannot be added? > +additionalProperties: false > + > +examples: > + - | > + dma-router { > + compatible = "sophgo,cv1800-dmamux"; > + #dma-cells = <2>; > + dma-masters = <&dmac>; > + dma-requests = <8>; > + }; > diff --git a/include/dt-bindings/dma/cv1800-dma.h b/include/dt-bindings/dma/cv1800-dma.h > new file mode 100644 > index 000000000000..3ce9dac25259 > --- /dev/null > +++ b/include/dt-bindings/dma/cv1800-dma.h Filename should match bindings filename. Anyway, the problem is that it is a dead header. I don't see it being used, so it is not a binding. Best regards, Krzysztof