Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp463932lqg; Thu, 11 Apr 2024 08:06:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVbvh4l5OJZpDdZZsSI27HWQTaDm3DRrYmJpwH0r/x1KUnSQwzjcn8zSxnD/yD4gwWkMMN97NLP6CoJW6U9WAdiWSJbF7FAMqjpeuqk/w== X-Google-Smtp-Source: AGHT+IFPfJGCIWMMMtg8ZfjeVNsGD64d6vN4M5nAXwvmlVpKkm2HTYU+ITSZlvKaaOhyyfaUa/C4 X-Received: by 2002:a17:902:d588:b0:1e4:48a6:968b with SMTP id k8-20020a170902d58800b001e448a6968bmr7768349plh.13.1712847978358; Thu, 11 Apr 2024 08:06:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712847978; cv=pass; d=google.com; s=arc-20160816; b=JwlN7khBl91o/VQ75o/44p/H98M/8Di0KM+mNyk9O74F1GgJjFpwrV+0eDnDmUVP3c BSaNc+CNUAXWlwUKmSZkpBLmfxqXxceDF6nc+12CrV3Fbssk845DYUADTWg/CJ1Jjv9t gfJfa3pe5/odmrI1Pt9yBv+YP6f/yvLgydZhWPSVZf2q3PYBE26zR31sK8BweJGRv2K2 aYrz82h3LbFJ9CVZaQ+jLcFn8aDUkefxSp0GPn+ZF9ZjTmuXKR36SiiyT7FYujJ8g4xF geJiK8tN/2k/AcelWtaEULCWetlmaMOcsdtyL1yJ8yPDwvPyaqXnq4m2wIsfsOrRsrys 3dRg== 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=Tm6ZTNxTOPVKjmmIupco1zixq2O8DRitaHGxcnNlY8Q=; fh=yx2pZ5SMcNDS5gTKvRmkwcoPIgMJytT38bZxloOAsGM=; b=yrDl8kX5tPq3sI+hhCvghpABppE3EzO1IjtNnKNqtJiy1M8/gsufTnbTrOBKOzEDd1 OKgJ32r9ShieSenOMnIh2axnzDvRoSjbhf2GzbGefDFUuRfeP/KU4HTFnVWVzrK6ivpx rawHeGsugm6ahU1bvcJY70rNkhtxNYsItgvE2GnyaLOSVYXkj2bZ6dgxPqf6dxlUKKfY atmFsnsLTYfTAqAZUXs7Yu9dEjdB0WnKRSK21hj7rtO+rmk+S8WWodnVRGglzIKkbNmW t8z7dPnYEU4HTLhGzD1Z9yhuRsWV4SHLIn1mrk7Zse0aw0khW0lzrHlp5r9VSnJFmaQn mafA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WKSzJnIr; 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-140712-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140712-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 t8-20020a170902e84800b001e45f010f5dsi1385256plg.585.2024.04.11.08.06.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 08:06:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140712-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=WKSzJnIr; 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-140712-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140712-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 5F32B284D95 for ; Thu, 11 Apr 2024 15:05:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7606413FFC; Thu, 11 Apr 2024 15:05:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="WKSzJnIr" 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 032C810799 for ; Thu, 11 Apr 2024 15:05:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712847928; cv=none; b=jBuD6DjDAitX7Wd4pSFKEmz9UufwnNz3PlcrAFS4KP9wAqu1fJPiGtC2khDgs3Cah7XlL/t8LyAs/f3g+fcyPJt4+R5fB04FNb18ILKBXC1WVUI7IYe1q5BSFK1lITvf9xZHytYMIDPA/z5joaBPCw7JfK6vYOsaWlErV9hiz1A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712847928; c=relaxed/simple; bh=QevyOVKvuSdzQHrZ1in1R1OWAnKYiLrTvJ3OUPJlArA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ZGYpKG7B9jn/JxMPZOYNeiyjF8gf8FxWgAGotiZeMQZQm4boe9wjqoTrCeMCqXgJFt1YoBzis7nnQIfyCrnM2rfNmBW9ld92mOFcxyd1/mRCyvd6TijmuDGyeYVJwmsnPWrUoea8CrSKH4/F69xUFLjEi6MFGAC8sW5jw+d3qz8= 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=WKSzJnIr; arc=none smtp.client-ip=209.85.167.53 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-516d04fc04bso12366423e87.2 for ; Thu, 11 Apr 2024 08:05:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712847924; x=1713452724; 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=Tm6ZTNxTOPVKjmmIupco1zixq2O8DRitaHGxcnNlY8Q=; b=WKSzJnIr7O6BqvCkTBUww4NdHvPgCN0PZ4fejkM2T7GbfDPR1APiqKjfuIFmPnfyBj /l33gCEQJIzzNeKisDmySwCtIpb04LZGqvyVEjndita5LFVGuVJEOI7Srp5KH/acSsSL zDP9ZQJ1UN+sbHTwVAIKYGXFZ/arT9qEKKZaLs7vRxrhACqKZjM7ECIgcOad08gqByu5 I3n/KoTZzbFHTrhljtiOmZB0sSAMPKvjIgx7XYKlDR1zZj2a02JwkyJ52phd6eMErr4A gT9taZecIMvLEur62wM7PgFs3korn7VpRDGxkdvr9bWDl8cyvub/G37pVjNKcQJ9CEAt g8Ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712847924; x=1713452724; 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=Tm6ZTNxTOPVKjmmIupco1zixq2O8DRitaHGxcnNlY8Q=; b=kEkbNZxfxK2YVtADqZW56XsBfnIjZKwULnzcgOzNH/lPEYZpuKYBzV4iQXFfLaXbrM km3isNhP8SxyGhe/BFgY8QjZk6qo/tpfyZLRykbcJezvB6EndbDjA7Gj3/NyLtu+EIT8 6CyD/cZ70/W7NoyngNbB/mEgx8RvZBc88NhjaGUKZ5gUhndZFmkDVS+YdH9yrFXJ+UA/ lJdRo1VREiWp0gHpxy7s6NY860l7MpcR/lX1T2ImTyUBAbzZfIETfW4Dn6IxXQeDZ5Zp ebq2s0sQYBHJyGdbIPOb/8CmefXENQ0Eh5y3L0pBxkcNfSxVDjR3G8Y9B8AARjIxeZsa 9hAw== X-Forwarded-Encrypted: i=1; AJvYcCXoAbmknZ5zepWSlosIq2QknePEVB20hohAjGIYMpOOviiUHvvoOdTg6TLM9STcX0W2boO80zrVEi+EAZeIFn6F/tqpcikNEoCH7G4M X-Gm-Message-State: AOJu0Yx278t3ykxLTMyomcsDQ5L+jY/sXClw4DQBHYujJJPBZfPJmhiy GP8rnQSY08q6S84hya8d8bDcWs7D2XDLoDTH7aJP4w4Xy/CwohIRoI9ASYybNqo= X-Received: by 2002:a05:6512:539:b0:516:cec0:1fb8 with SMTP id o25-20020a056512053900b00516cec01fb8mr5134101lfc.65.1712847924096; Thu, 11 Apr 2024 08:05:24 -0700 (PDT) Received: from [192.168.1.20] ([178.197.223.16]) by smtp.gmail.com with ESMTPSA id lo17-20020a170906fa1100b00a466af74ef2sm830566ejb.2.2024.04.11.08.05.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 11 Apr 2024 08:05:23 -0700 (PDT) Message-ID: Date: Thu, 11 Apr 2024 17:05:22 +0200 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 03/11] dt-bindings: reset: mobileye,eyeq5-reset: add EyeQ6L and EyeQ6H To: =?UTF-8?Q?Th=C3=A9o_Lebrun?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Turquette , Stephen Boyd , Philipp Zabel , Linus Walleij Cc: linux-mips@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, Vladimir Kondratiev , Gregory CLEMENT , Thomas Petazzoni , Tawfik Bayouk References: <20240410-mbly-olb-v1-0-335e496d7be3@bootlin.com> <20240410-mbly-olb-v1-3-335e496d7be3@bootlin.com> <975a8554-a299-4394-be15-c910cf9688ae@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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fa5DGs/tHAcUF35hSJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 11/04/2024 16:04, Théo Lebrun wrote: > Hello, > > On Thu Apr 11, 2024 at 8:14 AM CEST, Krzysztof Kozlowski wrote: >> On 10/04/2024 19:12, Théo Lebrun wrote: >>> Add bindings for EyeQ6L and EyeQ6H reset controllers. >>> >>> Some controllers host a single domain, meaning a single cell is enough. >>> We do not enforce reg-names for such nodes. >>> >>> Signed-off-by: Théo Lebrun >>> --- >>> .../bindings/reset/mobileye,eyeq5-reset.yaml | 88 ++++++++++++++++++---- >>> MAINTAINERS | 1 + >>> 2 files changed, 74 insertions(+), 15 deletions(-) >>> >>> diff --git a/Documentation/devicetree/bindings/reset/mobileye,eyeq5-reset.yaml b/Documentation/devicetree/bindings/reset/mobileye,eyeq5-reset.yaml >>> index 062b4518347b..799bcf15bed9 100644 >>> --- a/Documentation/devicetree/bindings/reset/mobileye,eyeq5-reset.yaml >>> +++ b/Documentation/devicetree/bindings/reset/mobileye,eyeq5-reset.yaml >>> @@ -4,11 +4,13 @@ >>> $id: http://devicetree.org/schemas/reset/mobileye,eyeq5-reset.yaml# >>> $schema: http://devicetree.org/meta-schemas/core.yaml# >>> >>> -title: Mobileye EyeQ5 reset controller >>> +title: Mobileye EyeQ reset controller >>> >>> description: >>> - The EyeQ5 reset driver handles three reset domains. Its registers live in a >>> - shared region called OLB. >>> + EyeQ reset controller handles one or more reset domains. They live in shared >>> + regions called OLB. EyeQ5 and EyeQ6L host one OLB each, each with one reset >>> + instance. EyeQ6H hosts 7 OLB regions; three of those (west, east, >>> + accelerator) host reset controllers. West and east are duplicates. >>> >>> maintainers: >>> - Grégory Clement >>> @@ -17,27 +19,83 @@ maintainers: >>> >>> properties: >>> compatible: >>> - const: mobileye,eyeq5-reset >>> + enum: >>> + - mobileye,eyeq5-reset >>> + - mobileye,eyeq6l-reset >>> + - mobileye,eyeq6h-we-reset >>> + - mobileye,eyeq6h-acc-reset >>> >>> - reg: >>> - maxItems: 3 >>> + reg: true >> >> Same mistakes. Please open existing bindings with multiple variants, >> e.g. some Qualcomm, and take a look how it is done there. > > Thanks for the pointer to good example, that is useful! So if we take > one random binding matching > Documentation/devicetree/bindings/clock/qcom,*.yaml and that contains > the "reg-names" string, we see: > > reg: > items: > - description: LPASS qdsp6ss register > - description: LPASS top-cc register > > reg-names: > items: > - const: qdsp6ss > - const: top_cc > > I don't understand one thing; this doesn't tell you: > > You can provide 2 MMIO blocks, which must be qdsp6ss and top_cc. No, it tells you exactly this, with difference: s/can/must/ > > But it tells you: > > Block zero must be qdsp6ss. > Block one must be top_cc. > > If we do that I do not get the point of reg-names; we put more > information in our devicetree that is in any case imposed. Same old argument. Order is not flexible. Order is fixed. Why do you need names? I don't need, it's purely your optional choice. Maybe you find it more readable, up to you. > > This is why I went with a different approach looking like: > > reg: > minItems: 2 > maxItems: 2 > reg-names: > minItems: 2 > maxItems: 2 > items: > enum: [ d0, d1 ] No, order is fixed. > > I know this is not perfect, but at least you don't enforce an order for > no reason. If "items: const..." approach should be taken, then I'll > remove reg-names which bring no benefit. You can remove it, you can keep it, whatever makes code more readable, but order is fixed. Best regards, Krzysztof