Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp185377rdd; Tue, 9 Jan 2024 00:16:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IE97BRDbL/UDVN9o3vVe5n5MQWw11lLCaFq1K17ftxP7euXvPY0xPvrte0w9OE1dP/j1woc X-Received: by 2002:a05:6808:30a6:b0:3bd:364d:459d with SMTP id bl38-20020a05680830a600b003bd364d459dmr1522090oib.96.1704788206685; Tue, 09 Jan 2024 00:16:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704788206; cv=none; d=google.com; s=arc-20160816; b=DhWZXeZC3vKN8uVd+D2h3tf6lk9Fas8lJ+iMdlC1NdtPRzb1IfW4N2edLh01Orpc8y bdTGqzZwSyDBLagKDmPata/dCn/97SUQMlKEOpa79wcpSXILBUflQ7el+ImIfPFzdVzc a4I6P+ye+E+4BDJQQRkAg3rjA0vJMkR2jLAU5W9OFO9x+zW6gckW5s99c7CseLAKU9w1 NYoyGGuCzUzXNoALgnjPJG+4fXeVbpNDc+YRUVOkZPHB9++M9Cw3OR69j1Ep3n1EZK67 MiYfxfWtFQfETiEFnpcJRPvxcHIicgqbBgFtX2E+3Ra/s5fYFPrXXlmcaxrpAvA2eshx lL4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:references:cc:to :from:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=VD6B+yT3ciRKIeNf/3WdzDYAUV+xbE1GcYHIb3TE3x0=; fh=xP1yBFSNweWLHcuCJBIY3Q2PRqDBeilHtrMh3MY5XoQ=; b=zfIW9NbpyKABQmiZqTqtcBQLPr/UdM/Nk11TcByK2O5S6w8V4c67xYR9HzGaX9Zbh0 qbrfoQp1xrXV+mMKpfy1Xr1vwm0tSTta1rw1kBZnqEtBUlnJeRicmIBexMjiO6pwDIYQ Dhrw+Nal1ZgYEpeZwiSzTFwCnHlY6Ik+xQOw3xYRsHsC+yb3cQXes6YtmIUBHj28AEhk unAC3cIHg5c/V18Nqms4k9NkezE5cZKXG3nky7UIt1VKFW04APJC+iSjJGd3crE2H/6C EvOwxkbP6FvJGVupmlpb5KL8uOSaQC8oy04Q0pXhe8xGSOBI6/7E1GehYbhOuT5BR6mw a4Hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZbIJUJtD; spf=pass (google.com: domain of linux-kernel+bounces-20533-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20533-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 m18-20020ad45052000000b0068078aa6b8csi1822859qvq.615.2024.01.09.00.16.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 00:16:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-20533-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=ZbIJUJtD; spf=pass (google.com: domain of linux-kernel+bounces-20533-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20533-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 4C62E1C2108D for ; Tue, 9 Jan 2024 08:16:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0615E13AF8; Tue, 9 Jan 2024 08:16:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ZbIJUJtD" Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) (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 90662250F5 for ; Tue, 9 Jan 2024 08:16:37 +0000 (UTC) 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-lf1-f53.google.com with SMTP id 2adb3069b0e04-50e72e3d435so2513074e87.2 for ; Tue, 09 Jan 2024 00:16:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704788195; x=1705392995; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:references:cc:to :from:content-language:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=VD6B+yT3ciRKIeNf/3WdzDYAUV+xbE1GcYHIb3TE3x0=; b=ZbIJUJtDqx9ZpjnJ58THS2W5i/TUZmt6cIDkBw59Q0e0ZepvtT1ZCfr+1xW0RXVxH6 ZWA37Wz3HrKYtmf1KePX15pWJKUuv+d8mi7qYnNB9LyDePRUpBXAnBJ3S3Zn1qRUVBNn c4fptal8/g5GkcBcepgCNHNbyz6rdXsbTiYmhBqotxO44s4Ucc73T9jUaqD35zhYdFUg lm2UNHVt8soAh4GaU289+4zGdzCCI1z7qzOKGv+3zHrl2N2vbEkxpCKbMtWGWirO7xd+ 97s0Y2lDcHxsNX6vhm+C0dzT6Udm0JniRO/kWxBcMejAIMMLk0sz2OXhWAXxNinfnHvH aXoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704788195; x=1705392995; h=content-transfer-encoding:in-reply-to:autocrypt:references:cc:to :from:content-language:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=VD6B+yT3ciRKIeNf/3WdzDYAUV+xbE1GcYHIb3TE3x0=; b=d4K4xznHehkhXGQZpJQrwXmnvy9uzthJYAXLdLFlglt0KF4Ul0utSeJl5YpjhYMbq1 rufxSlIV7Juz2F2H3iIC8q++tyuDoVKmVDE+XNgxX791WvQ7jmxV2zGHl40JStJawaW/ Duo11CKLKm4ptenScxaCaOSJqwhTuAbjFkpZZ/6Wt3wyLRmfBi2MQpYw7FYEV4a8LLP/ i/GRLatX/grw6/P5x78BeXLS5s4QTK0uYvA3zQAmTRYwptQfXN/fsCbyXIKk31YywdyN HbWQ7aZvMwjK41wy0m9MR903oiJXrytDX3PRJu8jWpl++6Vm13BTiBwwbiuYriux6PIT v7hw== X-Gm-Message-State: AOJu0YwimTCIDtrtwrufz2A3XT1mXFnMfIsQq08aQoD7ZesdvV5gQSaG Q7y5SOjgCqeKPHRoyEm3SntJtPHxiQ3Q1A== X-Received: by 2002:a05:6512:3b9c:b0:50e:b1fa:8645 with SMTP id g28-20020a0565123b9c00b0050eb1fa8645mr1596919lfv.109.1704788195701; Tue, 09 Jan 2024 00:16:35 -0800 (PST) Received: from [192.168.1.20] ([178.197.223.112]) by smtp.gmail.com with ESMTPSA id h15-20020aa7c94f000000b00557c6778b88sm676290edt.53.2024.01.09.00.16.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 09 Jan 2024 00:16:34 -0800 (PST) Message-ID: Date: Tue, 9 Jan 2024 09:16:33 +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 1/2] dt-bindings: fpga: Convert bridge binding to yaml Content-Language: en-US From: Krzysztof Kozlowski To: Michal Simek , Xu Yilun Cc: linux-kernel@vger.kernel.org, monstr@monstr.eu, michal.simek@xilinx.com, git@xilinx.com, Conor Dooley , Krzysztof Kozlowski , Moritz Fischer , Rob Herring , Tom Rix , Wu Hao , Xu Yilun , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , kishore Manne , "open list:FPGA MANAGER FRAMEWORK" References: <3100bbc4723643ec1ec7d4548e9ab353c856b564.1704470663.git.michal.simek@amd.com> <4bcac34b-72a0-464e-91cd-d9e924073619@amd.com> <3bfaab38-6831-41f8-8a7b-9f1f434e0f9c@amd.com> 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/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U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wmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 09/01/2024 09:15, Krzysztof Kozlowski wrote: >>>>>>> +properties: >>>>>>> + $nodename: >>>>>>> + pattern: "^fpga-bridge(@.*)?$" >>>>>> >>>>>> Not sure, but maybe we need to allow fpga-bridge-1? Could we have more >>>>>> than one bridge on given system? >>>>> >>>>> Yilun: Any comment on this? >>>> >>>> We can have more bridges, but IIUC people use fpga-bridge@0, fpga-bridge@0 >>>> to identify them. So the expression is OK to me. >>> >>> So you claim unit address thus reg with some sort of bus address is a >>> requirement? Then "?" is not correct in that pattern. >> >> I expect it is about that people are using fpga-bridge@0 but bridge is not on >> the bus. Yilun said that reg property in altr,socfpga-fpga2sdram-bridge.yaml is >> optional which means no reg property no @XXX in node name. >> That's why I think that expression is correct. If there are more bridges without >> reg property then I expect we need to get more examples to align expression. > > If we allow node name without unit address, thus not being part of any > bus, then the only question is whether it is possible to have system > with more than two FPGA bridges. If the answer is "yes", which I think > is the case, then the pattern should already allow it: > > (@[0-9a-f]+|-[0-9]+)? Or better go with what I used recently for narrowed choices: (@.*|-([0-9]|[1-9][0-9]+))? Best regards, Krzysztof