Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp461205lqg; Thu, 11 Apr 2024 08:03:28 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVBTrNnW2HwwOOisG7yp+NjzP9LW9aA40T91BEKZ5uiAdp5DXUEuGZzV6y1OJMklC96wghARLpQreKL8tQVlIp1z5zdcJzW0cQUbezoJA== X-Google-Smtp-Source: AGHT+IES/aIvx7KPH6eGFiFUxCaYAA5SSq51F0EyW6UZFcPz3o/masbwWbBnN4A4yJMrovYhr4W4 X-Received: by 2002:a17:907:94c1:b0:a52:15c3:b650 with SMTP id dn1-20020a17090794c100b00a5215c3b650mr3827945ejc.12.1712847808512; Thu, 11 Apr 2024 08:03:28 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id nc35-20020a1709071c2300b00a51d7627d64si840151ejc.101.2024.04.11.08.03.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 08:03:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140710-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=JovcYbm0; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-140710-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140710-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (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 am.mirrors.kernel.org (Postfix) with ESMTPS id 062551F234F0 for ; Thu, 11 Apr 2024 15:03:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F0AE014286; Thu, 11 Apr 2024 15:02:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="JovcYbm0" Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) (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 417F5EAF0 for ; Thu, 11 Apr 2024 15:02:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712847765; cv=none; b=f9Mu2xppDZuI4oUtJReORGguFLvPQ7+F5RiFwuvzyDCod8b52ttsToSvKUiCFsVseg7HaqLvAPRKRKYmAh5Is0Vwr1bNDd5Yj390O+qPGUf4GTE6f9YKp71Y5qUO7aqxyHeCA9UylAv0E5/t9dAXNp6uxSNHph4GjcycNIF4/nU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712847765; c=relaxed/simple; bh=NphbnHJFtQ5GRPLYu0u8kTxQqcMxBP2fPxvXnPieduA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=dlKW39dBWq5NY9KFp0oEV8Gs4gIowDTe6ByWiC8k6ymqSR7h1ASxt4BieyLjsbiPTBiqCJuXPUrwm/QoPs24WZb0P7NSC7jolgnxH6lH8zxjPyS67ZmuuZIilOU6lcBIfyCAPinQ+CRj24m0jRBmkVpI7OI0iVLQ3S63lAuWeEM= 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=JovcYbm0; arc=none smtp.client-ip=209.85.208.41 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-f41.google.com with SMTP id 4fb4d7f45d1cf-56e1bbdb362so9788344a12.1 for ; Thu, 11 Apr 2024 08:02:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712847762; x=1713452562; 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=+P23aEc6D4AK3QieQ0wss35fFJtf/ttLJisvoFqgu+g=; b=JovcYbm07B1eaf75IkhvWy/dVFqYJmoFSnOlxBR4tvauKYbd9x0wdMD9JlrtdNs1G6 iVjRXdiRW96RF822Ed+YEOFBS8Gqy0sZpIgTvX3DU4JiDUVFfrGkflZ3JqQAttOvNvVw K4LmHFuR79ptIUw6dbhURm4aRf7ryPUyYb7ATmUEWKokW653n2xxQnEkrHNL00cmn0kp RxBp4ckifqjUCKE02f0Fax6sQBlafIxHaj1N/zBMkjE4b14J/6/KYLUwrb2JTotHnGeA 9CfGULDYCfVvyx9IRQUvBGuPiwKxvh0qRNswJZhx/PS6lrC8WtrI7du8aXxYxbwRFGCX 88IQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712847762; x=1713452562; 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=+P23aEc6D4AK3QieQ0wss35fFJtf/ttLJisvoFqgu+g=; b=h5lCR4S4iurmeBYmFWHXYZ/sDU/qeICpRjuzFEGbnJnfxbBiH1oXQNkHY4qpkzLqta 5vKHi+J/N8XlLO8BZzl4WQ4mZjWzr+diOwRCSz0HyDaEdgecJP1s/ud60rAUbVNLiAm6 56r8Nuicz72q0pyOc270lF9miPbUblvLy4TcwNAgbPuNhJ0KFITi9rPI/cvaihoHAAzL /wuSQsPnLQH9XW+1Mu/4Fy4zr+2AGcEPPfqWF9Qa2VFfzm+d5KqaFJhwhkSCzP0yY0zA IakSQ0Wi0eU8MQu/c9ILF1zdSmObLqQbJTPCHHwcznot656/hXedAs961nggFohcCMtd bmew== X-Forwarded-Encrypted: i=1; AJvYcCXKoG4KINC16cB2TFik8U7BsDUgPuFbUMZ2WoVTszSrR7nYWj/15bPsBWnKNCxqBbnIUWUSgDFaTfpN4s4uTvj/1iQGBdEjajMzkX1L X-Gm-Message-State: AOJu0Yw4vjF9AvklD0gUZmcfKEkgLvetRzJFJqbpfhE6QrqaaHGEUYRK 11eAKTmN6XLvf6Aho3Zz4nVfLREwQQraB6Grb5hNarFTd2Ld2wJqg39Yhscoor8= X-Received: by 2002:a50:d605:0:b0:56d:fc9f:cca0 with SMTP id x5-20020a50d605000000b0056dfc9fcca0mr18004edi.41.1712847762590; Thu, 11 Apr 2024 08:02:42 -0700 (PDT) Received: from [192.168.1.20] ([178.197.223.16]) by smtp.gmail.com with ESMTPSA id ds2-20020a0564021cc200b0056febfc5395sm497978edb.58.2024.04.11.08.02.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 11 Apr 2024 08:02:42 -0700 (PDT) Message-ID: <8c5ba2cc-b3c1-44df-99f2-a9146e8685f7@linaro.org> Date: Thu, 11 Apr 2024 17:02:40 +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 02/11] dt-bindings: clock: mobileye,eyeq5-clk: 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-2-335e496d7be3@bootlin.com> <29ece6c8-ddf4-4dcd-b5b4-1cad8bc858d3@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/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzTRLcnp5c3p0b2Yg S296bG93c2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vq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 11/04/2024 15:49, Théo Lebrun wrote: >>> + then: >>> + properties: >>> + reg: >>> + minItems: 2 >>> + maxItems: 2 >>> + reg-names: >>> + minItems: 2 >>> + maxItems: 2 >> >> So any name is now valid? Like "yellow-pony"? > > I do not understand what implies this. Below "items: enum: [...]" > ensures only two allowed values. dtbs_check agrees: > > ⟩ git diff > diff --git a/arch/mips/boot/dts/mobileye/eyeq5.dtsi > b/arch/mips/boot/dts/mobileye/eyeq5.dtsi > index 8d4f65ec912d..5031eb8b4270 100644 > --- a/arch/mips/boot/dts/mobileye/eyeq5.dtsi > +++ b/arch/mips/boot/dts/mobileye/eyeq5.dtsi > @@ -126,7 +126,7 @@ reset: reset-controller@e00000 { > clocks: clock-controller@e0002c { > compatible = "mobileye,eyeq5-clk"; > reg = <0x02c 0x50>, <0x11c 0x04>; > - reg-names = "plls", "ospi"; > + reg-names = "plls", "yellow-pony"; > #clock-cells = <1>; > clocks = <&xtal>; > clock-names = "ref"; > > ⟩ make dtbs_check DT_SCHEMA_FILES=mobileye DT_CHECKER_FLAGS=-m > UPD include/config/kernel.release > DTC_CHK arch/mips/boot/dts/mobileye/eyeq5-epm5.dtb > arch/mips/boot/dts/mobileye/eyeq5-epm5.dtb: system-controller@e00000: > clock-controller@e0002c:reg-names:1: > 'yellow-pony' is not one of ['plls', 'ospi'] > from schema $id: > http://devicetree.org/schemas/soc/mobileye/mobileye,eyeq5-olb.yaml# Ah, so you defined the items but made them an random order? No, please keep same syntax which is what we always recommend anyway: https://elixir.bootlin.com/linux/v6.8/source/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml#L132 .. >>> + >>> + # Some compatibles provide a single clock; they do not take a clock cell. >>> + - if: >>> + properties: >>> + compatible: >>> + enum: >>> + - mobileye,eyeq6h-central-clk >>> + - mobileye,eyeq6h-west-clk >>> + - mobileye,eyeq6h-east-clk >>> + - mobileye,eyeq6h-ddr0-clk >>> + - mobileye,eyeq6h-ddr1-clk >>> + then: >>> + properties: >>> + "#clock-cells": >>> + const: 0 >> >> Wait, so you define device-per-clock? That's a terrible idea. We also >> discussed it many times and it was rejected many times. >> >> You have one device, not 5. > > Each region must be a syscon to make its various registers accessible to > drivers that'll need it. Following that, I have a hard time seeing what > would be the DT structure of 7 OLB system-controllers but a single > clock node? I assumed all these are in one syscon. Lack of DTS (example is quite limited, which is expected) does not help. Please link full DTS so we can see what you want to achieve. Best regards, Krzysztof