Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp74130lqt; Mon, 18 Mar 2024 01:32:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVNpeCzfhgs87+37bUnWRbNNb7wzoJaQlhKJiYTiN+uH9gEZ1XzeFk9Iu4mkVinMKDB+c84iwq8ghXUdC25eREzMCUha3/UhiS6AsogBA== X-Google-Smtp-Source: AGHT+IEOlxWzn5M9MOV+6oZSMnmRfL+Jrdkr+W+mX0DgmybNF6wMB72lG1qAAs9A9ujEZGFXoSKM X-Received: by 2002:a05:6a00:2f17:b0:6e6:f9b8:38eb with SMTP id fe23-20020a056a002f1700b006e6f9b838ebmr7572253pfb.21.1710750727008; Mon, 18 Mar 2024 01:32:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710750726; cv=pass; d=google.com; s=arc-20160816; b=m1rlNLoXHMgcnIRRKlRvGQ+HEbrNmQ9/4CG7UNjABGIC/0PDcyqrjVqclRZtWkSjsx q7I9r5RRqsIxHGx0mJR357KfgMhcBE9fT2tdXDKFG81BTUXpLadf65IohDFUgraV1e8V +OV+XmYaPtE50+Z6Bx7nkUPV24/AqnZDrPXDL3MVWNWislGpILoyvr5YksQFoY6Rqfha uC53BS1UbSB760+Nzaml6D+qDppmnKr5MaNtQ08FboCG6/x+a8T5jEqhpzknbWrDfmKR mgf8ARegoxfYzddeudmw7hLBGwqwRtaClrRPvwF4XkRw5dvmcI99L2RJya+lgYTRWY8B UYcA== 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=KkaqL4VUvAolVzlh7zZXo2NXTwTVjvOLl23zbTujtJs=; fh=dseic/vDZJAWatHX0DqEfnAcWY4mvtv4rL/4Viiu05o=; b=ebe5Bx4/DZNP4p0CZB6clUUx1jHGDXjKyclxxrba6UUUvNHJAvlLu1YGriwV5jbbmt nlTqN4uypKMFWPsNfSzpi8yT9JM7XzJrecafP8+FrGufk/gKDaKKmUTVoNE5n4s6XbPa bZmqcbBxCpHqvtHG4tJE2ZneumRiFzQGMonCvIpMuKqZaQ+zVYGCuZ7fCxrL2UVnHT5r 2Xxqw0Wm0YG8FPdx6udmYNuPpTfshDAYS14IVI2JAa3H2LBcqlPvVE/sUvolpmeN8nZ7 Hk0GBrxsym9+7aCMqKgcymoUpW+gV5xsDi6AQE323G0pUAHk06UA1lH8c3YsCXHL4kRp DHcw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="QnFd5/o8"; 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-105817-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105817-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 k28-20020a634b5c000000b005dc6e684fd7si7486607pgl.451.2024.03.18.01.32.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 01:32:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-105817-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="QnFd5/o8"; 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-105817-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105817-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 A5B7028248E for ; Mon, 18 Mar 2024 08:32:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0E5CE25779; Mon, 18 Mar 2024 08:31:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="QnFd5/o8" Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com [209.85.208.171]) (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 35E1128DA6 for ; Mon, 18 Mar 2024 08:31:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710750718; cv=none; b=AD7cXSehie4UR8GpjQ6jHC8pDXQ6nirieyw005MNsZD2oebpJzT56zI0NaU/J2xZRLVd249K4OWzoXwKOgiMUqeUja739K9+CGwfYqpI6nX1NMP6oABcH4b3Sa9oJfG0ORk+jx3TJkt0LBPPlHjRZ93R+6Y3gt42H/kOiXvgWoE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710750718; c=relaxed/simple; bh=R0eRG1p0g8AFekzEpg8g23Efm7qwQnnsE/OUU/36U+A=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=jxutmA+xFIHiND5wQL4f4mbihE3oiaw9k5AOgVvUNkio1+z0XF4uyHmryvIwiOl1AJtvK3QaSlkDJwV3tEjDpBgFHH/RPRtNbyCbDgq66rVkarp9JksxXhNHFckOprve6gkAljq1t1nMV9zYy1+Y4YF/thLPErCAXK4dWIS6eTY= 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=QnFd5/o8; arc=none smtp.client-ip=209.85.208.171 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-lj1-f171.google.com with SMTP id 38308e7fff4ca-2d4886a1cb4so42842151fa.0 for ; Mon, 18 Mar 2024 01:31:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710750714; x=1711355514; 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=KkaqL4VUvAolVzlh7zZXo2NXTwTVjvOLl23zbTujtJs=; b=QnFd5/o8at0r7wDThT1NZ3xXbjHgKWPpZSoYb3mIUqU/fPunHXN0r5LcBK3ESd29x3 M/ePDsG/6uBma+YHPSP/fhdqxdofPz3e1TFjx1vC+CsOo5kQSrZLKxS0xOkI6Oljk2Aj 4XGqtWv2OwBPJGgouMIoIyYMQGOz0COL52SQs0nGAN9S1NNaAPVgNIFvsPMmhS9Gd5VB Tgx++d9GDUNqaBKW1Cr9/PJNvMqnO6+yHR3NqvzdfIiq9JMdjapRc3KyY3s0w+hRORnK KBJcXuibULbc42hfMoaSV2dFrDFy55Co8mJkqbuQTVC5FeCK5hzGEqIDx5zPB+D+DkFw 8MeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710750714; x=1711355514; 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=KkaqL4VUvAolVzlh7zZXo2NXTwTVjvOLl23zbTujtJs=; b=dYjB9B3encNM7DpjEg688kjw0nIJ73NgEzWkzeP3wR9+MNXekzyEMi7Zb2nAP8iJ8j YCbie4FyjfBuImX8/3l7E/Luc/beZP7aF1+yvk7tDodiNAAmmhGq0H9CiWAwMtrAlkLo 7xRNKUYO2PoMzmUlGMCQ84f5u1TXckDPfUUYoO7KzwvNBlC98bgZp/Ft3LphMW7aojhw O1Ijpx5rFTP7c5m7gwxlKq01t8Mouw/uone0430CPxY+PtzxXgSUb3KO1VWCeGk1kkwb lg1AHjBoPItWmtOoUosDJtuWmATY4zCyM0g+SGU6vqeMzbhZUEeAECJX6KBqY1SdLsiI bHVw== X-Forwarded-Encrypted: i=1; AJvYcCVoQHWUZAdkzcNh+uiFPFS48p5jYTxQKahozlCiWYNO3Kl4CUeLzv/F81IJvLMxakzg2B8qKlUk8QzVxeOmZl9bvWxUjALFfvnNg0aO X-Gm-Message-State: AOJu0Yxsh9ZhXWchrYOUjchclGxJXrdepD1Gdh6OADEM0kgbGZfMJ4Q5 T/GG6sr5ocTgCot+wr6Qj9Cozz8JBIKGLfFDUHNYbhKWUZ/G9/73vulwxJ15k0s= X-Received: by 2002:a2e:aa98:0:b0:2d2:2dbb:389e with SMTP id bj24-20020a2eaa98000000b002d22dbb389emr7645733ljb.23.1710750714337; Mon, 18 Mar 2024 01:31:54 -0700 (PDT) Received: from [192.168.1.20] ([178.197.222.97]) by smtp.gmail.com with ESMTPSA id p8-20020a50cd88000000b0056851310a04sm4607099edi.16.2024.03.18.01.31.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Mar 2024 01:31:53 -0700 (PDT) Message-ID: <15f0584a-d192-4b0c-99c9-a9584d49f412@linaro.org> Date: Mon, 18 Mar 2024 09:31:51 +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: <6da5b070-e61a-4526-833f-1af1bde988e1@linaro.org> 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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FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+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 09:30, Inochi Amaoto wrote: >>> @@ -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. >> > > I wonder whether reg-name should be introduced, or item description is > just enough? items: - description: - description: is enough > >>> + >>> + '#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? > > This device is part of the syscon. The IO is performed by the offset. > In the v2, Rob suggest me add the "reg" property to describe registers. > He also mentioned that driver may not use this info, so I do not make > this a must. OK Best regards, Krzysztof