Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3184361lqp; Tue, 26 Mar 2024 01:53:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXVP/LNDMfstIVb4WurnolKPBiYrVcZGXXxEpcdE4FY6kGtUX0bz4ltoTTK5WBmlt+kBDdt5pbNWr/5Iquhm0mjEID+DI7wf7+G0jxMYQ== X-Google-Smtp-Source: AGHT+IGWKkOEWWG/kIlxROuaWM1wdJ2PhQigXf9SAY0PE+ro3dX8bVZdF5VAM5YBeq+JKFdiQw8v X-Received: by 2002:a05:620a:5598:b0:78a:47b:2156 with SMTP id vq24-20020a05620a559800b0078a047b2156mr10127013qkn.49.1711443204350; Tue, 26 Mar 2024 01:53:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711443204; cv=pass; d=google.com; s=arc-20160816; b=xym/Ope4R2ZDIvfbsNOdyjf6SyDi92FtdoR7c6z2o1waBbv3amE5uQ0CsZ11Xb0vAO ECBDBBaXXTrIqdl8URxrlQEo9Bzo/Q0lLyfbkk4bwT7ZmA2w8KQE2eBcTLO4fsp7XhHe QxKqF3x+xfudLv34glhCpAaJGEULu7Drxs8z4tOlDI2Uv3eEp7M88R+K81i6rGwh1vyi iQye5a607R9d6kFGmpq/R055m1stwKMbwb5HYqhbUg6TqI86Xl4oo8KwUh/Z//OLAkf4 9xPIUM/Ak5NSIgJS/wJGgvslQ8Wok5DJZWXnBOVankAKhlGUA+u4oOhSwDpEAEq5Teen 7OTQ== 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=A72GqcohDI7Dvn2lSRVPpUnirl+ZJXgMHX/nxLWx5GU=; fh=ta4tn4+vo+e4rrH5i9t30NutZnD0Zhgwf01RuwJz21s=; b=f5vr0b6stERT9SBE8bO6DsmVq1MTJyM0gWaoADGWQGBH0POGcKnp+vZ4koTkYmV6Ts fbZgQZ1aGm2wppq3WVdQ2htCIYFyJg7CtY7/i35Z7X2bKYvVSZ1l0FC8HU0YCJcqAbgL omnihaHX7KoWXw8PC0KpJ7ZOX4dry8lgDFss9VAW/INsICMJ/KOF9BIXFdkQbKyXtMiU Twrb+crIXO/n9O0TTL4gHTgJk3Owpq1pj+gS0byfdjs7zjsM/xYyIkAL+L1G6IBaF/sK D+mpQOrJ+xcmNrKv/0eG6JAHXwvCmmMEWa/vYitabbXgUZd0P9heJxg6CJrd7s40NouL K4kg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="lbE/HX7R"; 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-118580-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118580-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 x8-20020ae9e648000000b0078a39130c22si7041051qkl.710.2024.03.26.01.53.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 01:53:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-118580-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="lbE/HX7R"; 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-118580-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118580-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 096791C2E905 for ; Tue, 26 Mar 2024 08:53:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 096D0182B9; Tue, 26 Mar 2024 08:53:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="lbE/HX7R" Received: from mail-ed1-f47.google.com (mail-ed1-f47.google.com [209.85.208.47]) (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 3E35A125B9 for ; Tue, 26 Mar 2024 08:53:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711443196; cv=none; b=t1XzTGXY+v5lZcH7WRRLR3OYxf+ujltUG0te7cG3QU8iQdzSta80nYEwaBWgNI/8L3kWL9U6A7lNvPaBKN48M7tLU2lrUvTzdECTUpvudlu4s7GAEcCX+gOoUDqyZcDUE7O5TQH/jTzBmjOk57UIFgGOr2Mz4LXxBtJ5gIZtcqw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711443196; c=relaxed/simple; bh=/1xJubbp8El0/+Ldwbi471L/TFLWboOUCibvDvftlxk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=uN0XAi6AjEKgQqopsOjQDWS7BcEt2svmt0eOvwpm97yFfAEcLSayZXvCdiGlvSm//OkfH84LAvr3xuvgwOE+E6Afo6ISUxSVCShGNTfNSqy6C3ysxYp005syYEqLo5Jqyln1xN9JVoXt6aGPgaKVb50vYr5NFfJ31swcVFZZMYQ= 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=lbE/HX7R; arc=none smtp.client-ip=209.85.208.47 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-ed1-f47.google.com with SMTP id 4fb4d7f45d1cf-56c0a249bacso2548502a12.1 for ; Tue, 26 Mar 2024 01:53:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711443192; x=1712047992; 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=A72GqcohDI7Dvn2lSRVPpUnirl+ZJXgMHX/nxLWx5GU=; b=lbE/HX7RtwiHbTXc3k6HwjpE7ZJQyrd8s3lKHTpo+IlQCZLyQRPWaTiYtMsWzPEDxb uWJEb7h3ulaROHCag0tu3dXtflreeBI9mx5jSUuaS1BlT7VdsIitvG4xRxw8tA4ETI+5 Z/qeeFGcVRdqgPL8jKNM2GwYMFYm+b2KMLHRnI+O56qRib24SPBeZpQnST/DF0YgVN/3 yOhH4T75ZCsJ7eACApNAw3i22O+AdFTCRRZaosVVIrjauUnsUyUbCyOU/R1nU3qP/H5c xzp14O5VKQHjfGbrvaQPAO6KKSeKga2Os5PUecW7rNXYUvOC5umtExd1KzbipcYHJ9og KsRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711443192; x=1712047992; 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=A72GqcohDI7Dvn2lSRVPpUnirl+ZJXgMHX/nxLWx5GU=; b=uvn3B2nTZgIX873B8R8BVtsXQha40VFdz1F9lfhTF2JVKWHE/fu88jkze+5HHS+m8B OYIDYqPQxgMCgAwBUbrEJEui+s07YslUbV7x0NKLt9kxAx/d9POD7MRQPoe+iCwj9G+S Qxsp15pDLecZKqfkFRWEFeC8WevsN9uNOtkG2G8sWYZCjLfhB1rQLM2dER8qg76XJtPy RS8kPk45sU32sthnUoVxLmx/ruD375Gymf4OqUNzZ1C9Tqtf8hG9MbFdMw/BlVzZrx0Z 2ab8D3dGhqwtCXBVwAcY61Gm/HCFSw1sw0NQVzQMgSAQHdHTCz6MMOZL+HxXWf+wCx/P zEsw== X-Forwarded-Encrypted: i=1; AJvYcCU1mRbjPTuDJPyAsF009DbxW6G8PdnkPBoMsC5ibMR5jGmWrqpvOLtCad2f647ro8Y1lx6V30bquXg+vTxkJ580Dudf5BUqo1ITJd+N X-Gm-Message-State: AOJu0YyTYpzLqnpI9mkpSl7taaaMF/UMJlCCu9oMNj7uGw7Zb4+abHcJ iq3FLJJ6tM+lC6qT92g70ejZehGlaf7mW2unrMfusSy5m7Wl/FhqUSfwSfyqwvA= X-Received: by 2002:a50:d697:0:b0:56b:b5d6:1efc with SMTP id r23-20020a50d697000000b0056bb5d61efcmr5823637edi.18.1711443192518; Tue, 26 Mar 2024 01:53:12 -0700 (PDT) Received: from [192.168.1.20] ([178.197.222.44]) by smtp.gmail.com with ESMTPSA id x19-20020aa7cd93000000b00568c613570dsm3925247edv.79.2024.03.26.01.53.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 26 Mar 2024 01:53:12 -0700 (PDT) Message-ID: <473528ac-dce2-41e3-a6d7-28f8c53a89ef@linaro.org> Date: Tue, 26 Mar 2024 09:53:09 +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> 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/6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b4jRBOgJ+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 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. > >> >>> +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. > 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? Best regards, Krzysztof