Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp189293rdd; Tue, 9 Jan 2024 00:28:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IHLJWph/A8KsIV6wI9MY4qZH08lFT4l4+jUtzoY4BxuMzMauJvU9bzNtA3U10M5dQlwbfs4 X-Received: by 2002:a05:6830:39eb:b0:6dd:dd86:ad9c with SMTP id bt43-20020a05683039eb00b006dddd86ad9cmr1349918otb.76.1704788928569; Tue, 09 Jan 2024 00:28:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704788928; cv=none; d=google.com; s=arc-20160816; b=0+HpOspK6ilqwLUtGLbrzCsFev+rEovzHVnevy1yjODKW3qt1QD7bw4POkvLKri6Oz oka5na9sy7SvB0UD6AW86fEyneomAXcmgzz6zb8/p5WbBSLw9Lrz8HH358F/8aB4Cf/1 OsiYeouk4IKm52/IVmSKYWZArmp8Eo+ltV9yLjV3bcvOOqmL3W/ys3tCJCPymG51PggF sxxbRxULPThIW6Nn7WK2j9Vv7AIgUWY+QH+w6JwbtC/oOoGsAS9lU4U4Y/dclaDGCrbC T9uZrbxtS+Hq2jyJn+mQHjlU6n2tHkAvYR8HqCFnPToReEp3dIufDVSHJSjTy1SyXWdX dSTw== 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:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=tWyG23Ws+pJkmRC2s/Hf6/Y0DxAuq5n6msc+OYifnxM=; fh=xP1yBFSNweWLHcuCJBIY3Q2PRqDBeilHtrMh3MY5XoQ=; b=ZAH6K3Ig9uYj5xT0GEY950Yc9QxJ/IQ+bxEOqDr6sL40r4nK37Q6nZfWFuC4ehC7hO eHtXRRu9FvISFo4aNqv5jLaDZcTTP70aIghMAlxFJeK+aTrM08RX8cUon6/V4Vlop2C2 yCn5ie+c3+6UZe0WXdB3vbajqoNT8Pi+H158o8P8GzPCu9z847rXp7uoM49V9LKRJmfp Jyo3vmfCKj2Hx9ht3fqUfOSsMrUl2KphJZn6ncD4mNgoNZFiuxCQJ1et0bTce7W6etyF FM5OgHB2qNtMvxLo3TsA0VWD7fUQoQ0kGG3b/Dpu1UMLY4JC5nFXJjmbZg7qXWu4U1G3 ZXZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RYeFoAxL; spf=pass (google.com: domain of linux-kernel+bounces-20532-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20532-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 4-20020a631244000000b005cdf7f2f98asi1124898pgs.50.2024.01.09.00.28.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 00:28:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-20532-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RYeFoAxL; spf=pass (google.com: domain of linux-kernel+bounces-20532-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20532-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 18290B25647 for ; Tue, 9 Jan 2024 08:15:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B408013FEF; Tue, 9 Jan 2024 08:15:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="RYeFoAxL" Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) (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 31874EAC8 for ; Tue, 9 Jan 2024 08:15:22 +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-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-55642663ac4so2956085a12.1 for ; Tue, 09 Jan 2024 00:15:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704788121; x=1705392921; 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=tWyG23Ws+pJkmRC2s/Hf6/Y0DxAuq5n6msc+OYifnxM=; b=RYeFoAxLjtccKISqJrLDvTKU7E8qvFxA65tHaJVJH9dhV2IvIE/IeHBf52aBZNs+sw 1irCSx88jHf0XszpyJ7BKNAEYNgOMyr0MA2Z30y7ckxsqMbErDjmbbq1k0+Wu8jG+iXQ c1MQWUaQ5AQxcFvbndF+MqfFrZ4QTqAQXAprFDCskskCe5mTTHi6S/ROfXRq1Zo0BsTw VyaDoljx9Vl+MRvaz8Ue9DnsLZuwARV1r4WA0YNdLwwiscYKUccOIEIMaUHNBu3Mv+/h nn60S0Y0qvNHNs8Gtftw6tOz0dPU6qAF2na0MvcgZPGjqNbGMlJ7nm9RDviR0cRSViaj h6UA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704788121; x=1705392921; 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=tWyG23Ws+pJkmRC2s/Hf6/Y0DxAuq5n6msc+OYifnxM=; b=YSPU6BjEbr2xvzUr5NCph3QyqvFm92gyvk967FIChdtfJlDV5hSS3gPRV0A5vKzVd6 bqhZ2UkZzhdWkl4nsW2CbW68efxREnkJ5a/tpPtoXg4Rgostin5bBMTlFJbxy6KO1koL +lEZeZ/H1447hXhESP5mz3oxbb3af/bgo/1O9baLB6Tz8w6e5iq0n9OGB9jybEthosIg ey9dAWAMqUNp0moGDhm5zuASrOxjJI6QUdu2B6YBNZTR2DB9CBuOXAFyhfkMeRnWMV96 Cr92aL7l+J0y6LffK1auf+h94ZOWSDUbAMabplYx5Q0ivF0dL+fy4sGuYfPIvbuy7QGn 9WbA== X-Gm-Message-State: AOJu0YxtI0UPhDaGQDG59FvngsYqiWpY5nVYq5YX4N8pLJeHj6HCwLgV nuv+YKIu7mE8/mh+ncjycB7rwI85ZHyqdA== X-Received: by 2002:aa7:d7c9:0:b0:54c:4837:9a9f with SMTP id e9-20020aa7d7c9000000b0054c48379a9fmr2220286eds.70.1704788121445; Tue, 09 Jan 2024 00:15:21 -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.15.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 09 Jan 2024 00:15:20 -0800 (PST) Message-ID: Date: Tue, 9 Jan 2024 09:15:19 +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 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> 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/RjI2AnjIq5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QcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <3bfaab38-6831-41f8-8a7b-9f1f434e0f9c@amd.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 09/01/2024 09:06, Michal Simek wrote: > > > On 1/9/24 09:00, Krzysztof Kozlowski wrote: >> On 09/01/2024 04:53, Xu Yilun wrote: >>> On Mon, Jan 08, 2024 at 10:16:17AM +0100, Michal Simek wrote: >>>> >>>> >>>> On 1/8/24 10:09, Krzysztof Kozlowski wrote: >>>>> On 05/01/2024 17:04, Michal Simek wrote: >>>>>> Convert the generic fpga bridge DT binding to json-schema. >>>>>> >>>>>> Signed-off-by: Michal Simek >>>>> >>>>>> +$id: http://devicetree.org/schemas/fpga/fpga-bridge.yaml# >>>>>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>>>>> + >>>>>> +title: FPGA Bridge >>>>>> + >>>>>> +maintainers: >>>>>> + - Michal Simek >>>>>> + >>>>>> +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]+)? Best regards, Krzysztof