Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3258703lqp; Tue, 26 Mar 2024 04:31:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWqPgfxVokbK/D0ObUL4Z2AEnzSfJ2MNm/5uYD4euNmUIVITiArNzKDUS+Q9pBJ9sy3IE7cuIF/X1oVQF1kwuuWNBsquZ9bPTZ1aiWTTQ== X-Google-Smtp-Source: AGHT+IEvpuhnFz37sqdQfpYSlmtXnK47+KrE45WLMDcr/czOqe+V4PbtIMarHJIdLM0CUFXJGR1C X-Received: by 2002:a05:6214:21e9:b0:696:89e1:93f0 with SMTP id p9-20020a05621421e900b0069689e193f0mr6974157qvj.38.1711452693800; Tue, 26 Mar 2024 04:31:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711452693; cv=pass; d=google.com; s=arc-20160816; b=0hGX+Ed5BfwPBEVh9x92z2ImEILZ2+enn/sE9RaHjOAr6Xv6htL6KlZJrV/St4foh1 RwHBbEC02w+uCUiNykUFUyGZYWxlncl0WdfA8yTiVgYm98D+BQ5mfJ3SPPt6E6sc+l7C k09cM+ShwvsT8sYcOaUPaRWXDpHqQeZbJziNTQsPmRw+WSwmXKh712FiDdLmQp93MimD YPOietkrTBbQw0T5woVHq7qG0uc9ApiSXPtfQd7EVgd29T6d4yIqQ9XmrQX6U1pamUlS WkTMp+VXys1baSvyJPxjsyrWLNt8K4XGCKnvl0TUcIRgCbteA58RV8Cv6FuhfJEuRb2C VuOQ== 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=6TiHBhLMtrxG4Kj/hIOTgJQ1RkjuHVilX+bsy0WXGMU=; fh=PCpD21A8C2ah/ZI57TIcmpZmDFEXMjvX+1MZzH8NiZ0=; b=cYEfth/BNfWVTnRmKfMYk7yao+sK3C2/K8HJ4LHWSZRemwkp+GZFHk/IiEfY+VX0mO gBNTqa+lYFQra9KldLMQg8zCeRCTNfNv6IZed7ZMk9LQtq++4XyyBEPynWayCA6G1D40 KvRyijIRtLJvkXayYjleGu7K5TLHj1y8WDB5vRpbY4AXFV3XssGSjXKKhrU2txr/TAAZ yVTihAK28ogQsXhejlw4YeoZG1CAnCWKYjVSlP45FidbAYNoxufKMBz5d4eSUh8tRgOR kVyqatcf9rrrp2ok76tQ6h1O6TV7hG9Yme9fkkd8zcMolWdLCn8xNbnM+X2cZ0rbOBKV Fg8A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WtPu2Jfo; 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-118889-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118889-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id u11-20020a0562141c0b00b00690b67ee92asi9893771qvc.460.2024.03.26.04.31.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 04:31:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-118889-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WtPu2Jfo; 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-118889-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118889-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 76C4E1C3B5F9 for ; Tue, 26 Mar 2024 11:31:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 99A7255E5C; Tue, 26 Mar 2024 11:31:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="WtPu2Jfo" Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (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 A45F154905 for ; Tue, 26 Mar 2024 11:31:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711452684; cv=none; b=AjS3/4IQGnQ/NGAEUSDt9Nori7gxk4UiAt2BpVA+7K5j/CcAJoz5seGsLfWtVUvp/ciQDJ8uI+fjV1hYk0+onfQRbUkARHF869vVUj0sziB6HnQZjbp2GXXuJkrqj1At+4kfATUpDbD6j2Z2jqVJ1C6qKxpJNwQVG9UsCiYCBSU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711452684; c=relaxed/simple; bh=gdiFA8JUXDACIb1ZE3whn4Tbk48UFrMO3Kz+rHzfM04=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=SbqHtj3pOEiOBMBT6mk+e93PdfwVdMqABUQbgR4e8s0SpdCsXaelLufbIiKpdvT1nVQmlZDXT+tBlonqKdWLLQE+5b2pfqep9vo6qaY2eFtCLa6q7o16E4+4d5OdkrhSRaggv/cvhkf7fBTp028dDtRyMZwkSjHrpTi3JzlaZWo= 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=WtPu2Jfo; arc=none smtp.client-ip=209.85.218.45 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-f45.google.com with SMTP id a640c23a62f3a-a46cd9e7fcaso642398466b.1 for ; Tue, 26 Mar 2024 04:31:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711452681; x=1712057481; 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=6TiHBhLMtrxG4Kj/hIOTgJQ1RkjuHVilX+bsy0WXGMU=; b=WtPu2JfoLtWYrppfRJPogdnun6AomuL9GzumzLYxG7vh5JvYtHPKr462LriQDfl43n geWS09akTEH+UeKCJYm1SLoUcoYc1igITPw4VMD7A+qyhyvZJodEIyqxJWv37e6qZxqe IqiTIZDYCnZ4i/Jf/8mzPFqDGdwIrkkCt42h/V0Y2YxE29VsxIV1nuv/WjBv0KqKX/qz cYCJ3fWR81j1NTNADiv5t1pAZq++4IAT4xiR6bMyGuJecgfGJPfNbSeD6KTTqo4/bZEB d/ZC4Lp40bQ3iMPsm2EKlXTuDj1CovswR0XzOpovzNhDoNbmtsWKlT/uY+jQw/DmAfVW 6LBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711452681; x=1712057481; 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=6TiHBhLMtrxG4Kj/hIOTgJQ1RkjuHVilX+bsy0WXGMU=; b=XF81QQQiO7wZ2CqrhYQD8jI5QtNzqL9Rc3GZC9v0VXCbDkP8Dbn45tYHLFBYJ199G1 XiMOTGB66EQLhIWya527f4JluZN0EbRy1AxopKQtPPh9D0yT3fLLRtigpKnBIwhQjRUg j01UVyIDK3VqULvGady39+cfm70DeP3eQ+P6Il/z3LOOhgU8esLHVj4A7GNnY6+Blxz3 MnI9dbdMaASQmqGp09mZxBKOiRg3Zxg0qQZ+d+by6dMJpXcl/MCMmb5A8I87vXyUwYhT DjxHhSOcvtBCafg0LJdTKJWvWTlrWY3SEhQmSv7VmIbVgLLtbA38wVwmOMVQLW1Go7eY aGEA== X-Forwarded-Encrypted: i=1; AJvYcCXRTCmWIauQX894DmGIinNtGfwMOiUNHD+lHRbLJ2li8j1lHytBBkdfsvDjfSpjfBwd9WUPVTcZcRoa7m0EmhEGN9t3eiGW8mfnSWCV X-Gm-Message-State: AOJu0YyKaTf9Lc7LDlOPLOX05fqut5MGiPllOpzUkeJDgG1eHZlCGZ2j Ws+2XQWCkJPQmnC7LRnNyaSQcInmTZCUPsmH5tH1lN2Vw2idGkLcVX4eRrxfLFo= X-Received: by 2002:a17:906:5810:b0:a47:1b77:7c4 with SMTP id m16-20020a170906581000b00a471b7707c4mr7089215ejq.48.1711452680880; Tue, 26 Mar 2024 04:31:20 -0700 (PDT) Received: from [192.168.1.20] ([178.197.222.44]) by smtp.gmail.com with ESMTPSA id e21-20020a170906081500b00a4df251a601sm725639ejd.77.2024.03.26.04.31.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 26 Mar 2024 04:31:20 -0700 (PDT) Message-ID: Date: Tue, 26 Mar 2024 12:31:18 +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: <57398ee0-212c-4c82-bfed-bf38f4faa111@linaro.org> <473528ac-dce2-41e3-a6d7-28f8c53a89ef@linaro.org> 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++C2Wct6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mEApiRqH6b4jRBOgJ+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 26/03/2024 12:15, Inochi Amaoto wrote: > On Tue, Mar 26, 2024 at 09:53:09AM +0100, Krzysztof Kozlowski wrote: >> On 26/03/2024 08:35, Inochi Amaoto wrote: >>>>> + >>>>> +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? >>>> >>> >>> The binding of syscon is removed due to a usb phy subdevices, which needs >>> sometime to figure out the actual property. This is why the syscon binding >>> is removed. >>> >>> I think it is better to use the origianl syscon series to evolve after >>> the usb phy binding is submitted. The subdevices of syscon may need >>> much reverse engineering to know its parameters. So at least for now, >>> the syscon binding is hard to be complete. >> >> Some explanation why dma-router is gone would be useful, but fine. >> > > OK, I will add some comments on the why it is gone. > >>> >>>> >>>>> +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. >>>> >>> >>> Thanks. >>> >>>> >>>> Anyway, the problem is that it is a dead header. I don't see it being >>>> used, so it is not a binding. >>>> >>> >>> This header is not used because the dmamux node is not defined at now. >> >> In the driver? The binding header is supposed to be used in the driver, >> otherwise it is not a binding. >> > > The driver does use this file. I checked and could not find. Please point me to specific parts of the code. > >>> And considering the limitation of this dmamux, maybe only devices that >>> require dma as a must can have the dma assigned. >>> Due to the fact, I think it may be a long time to wait for this header >>> to be used as the binding header. >> >> I don't understand. You did not provide a single reason why this is a >> binding. Reason is: mapping IDs between DTS and driver. Where is this >> reason? >> > > It seems like that I misunderstood something. This file provides one-one > mapping between the dma device id and cpuid, which is both used in the > dts and driver. For dts, it provides device id and cpu id mapping. And > for driver, it is used as the directive to tell how to write the mapping > register. So where is it? I looked for DMA_TDM0_RX - nothing. Then DMA_I2C1_RX - nothing. Then any "DMA_" - also looks nothing. Best regards, Krzysztof