Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp336232rdh; Mon, 18 Dec 2023 23:38:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IF20haCLA1rGIerRCuSulKkKO68OEtpTsd8lEeHd6DhJVm6Nd6zx5wYocsPtgkxkdxLeDVq X-Received: by 2002:a50:cd8e:0:b0:553:3333:ed7 with SMTP id p14-20020a50cd8e000000b0055333330ed7mr1263587edi.47.1702971510576; Mon, 18 Dec 2023 23:38:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702971510; cv=none; d=google.com; s=arc-20160816; b=RdLj3hvnWaYvIaEDM9FCMQlTqH8ZeohaxlDTS9bHlkz4ET5GT0QBnko+VIsgJEsfIj XZLS8BQiRGbsugyYgw2s9Gxg2sPnWuBellURSL2sglL+qexnlztoU0NjGjmNp2BktHR2 q2eyH44F5MMn+2q5WhORntQ08D/hNUQLrPQKEfLTP0JyH1e6vfcwe1wbZrgtxfXx2fpK ljk+Iy5yfDvQ8LKLqqm2FPv/5Ge6iX8zXUg+sh0a3Oq1xyp9xyD1VrD0SF/nOs1iEcwL BWHcaYWY4oJiT3M1TeRH2kbTJY3Z4llWo710f5gxpG4Q749cOUlTzieODugPc2WN6xyl KJzA== 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=xminXgCBuj1Jpf20jWnFqmozJPH56EUn0oky68BU8xw=; fh=LAKCW2rnXp39gqGCNJ7YX+LpWmrVfj924JbeYFFAD6k=; b=SYUySq6qN0eS6S5nBMVs4E6OhEC4xeVjFw0za4+KkVCaqDqS0Stbo35N/Uq8O1Uixe Y0KYd61JhS8xff4qspSkNP14asoe4OAoE+yXKvEEultIfe6pRJWt+vVFrFKoVVgbeVvV bqY2nOdW6j8CkbqDM/R0QXuzHcjpX6hA7tuNLNIP9Ym+K/QMVB9r+rX7CUzr64duYHtT EILi4I6tG4TGKpM6ANi8viJElJdvyji8xi3iffuDztcm0ZmRLIaSA8fZKd1VnI49BqNb J8LoqJL/PVyY1Oyue1nkTHYo8GkeHevKYzqHWD3YEIb2k4x0cJnm4p99tUSbcPpeF2Sy d88g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zXhV8Awq; spf=pass (google.com: domain of linux-kernel+bounces-4815-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4815-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id m9-20020a509989000000b005521b594eeasi5893474edb.438.2023.12.18.23.38.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 23:38:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-4815-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=pass header.i=@linaro.org header.s=google header.b=zXhV8Awq; spf=pass (google.com: domain of linux-kernel+bounces-4815-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4815-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 2FC101F225D2 for ; Tue, 19 Dec 2023 07:38:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0C5F7C2D3; Tue, 19 Dec 2023 07:38:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="zXhV8Awq" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com [209.85.208.171]) (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 2B079125C2 for ; Tue, 19 Dec 2023 07:38:15 +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-lj1-f171.google.com with SMTP id 38308e7fff4ca-2cc5ee69960so30580571fa.0 for ; Mon, 18 Dec 2023 23:38:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702971493; x=1703576293; 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=xminXgCBuj1Jpf20jWnFqmozJPH56EUn0oky68BU8xw=; b=zXhV8AwqxI+Rjri54VoaRvBaFkoihmmNyx6NwiHwQBLaoNoE8NVynv0Qch100eq/UV n+GkE6igXEzeAFqVy0qRRnIjQq4it0wv6RO3voiOB8eEJkEn9kjTw9eWv3Sro0sJj7KH iUqX/r2qmly7Xqk/bEO8CD/ueRBWrABN9/h6w9V1AchZh+UHH4JN1T6WcDO2h5I+GUj3 JCvlquPmhhNpQ+z6JMyd+FkDg8Zx7HTKT1W1YnkxTfstuHwrpptQt9woZYQ0pVcUIAsh 7QHsIGpC1Nf8cVx/x03nyQkwYMEYxG8HNzk8c0DnYKEeG/B9rb0R5fQTkEfxvb/JPkHk jC3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702971493; x=1703576293; 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=xminXgCBuj1Jpf20jWnFqmozJPH56EUn0oky68BU8xw=; b=cutcQ/xqM9sLpc5pX1V5J1PtB0rwSP4CibbBuvowBNchZGI1d/FWEqoGX1ivmawVvV tR47EafM6AWq0V3nl99un0xLawHJEGd5hBlBUa1MyxOOQXbdElgsClGPEPQNgpweMe3t RkM1/hWXyt9uzhdc7Q/AiTaY8rzeHZeX/IjnsEtzZDYOQl5IjvA6NIws95fHXFCa2vsw x9g7XdgE86khbktdjs9MbDjDqMG8FPg+eKSzjscS7888VcWzv4TbL6c1mcTvDrjIhyIb 8dvgZ1KiANIxQMZX5wb8iqCv+8JOwFCSADICrnMgYEWCzMUaKGn+Ttt/Po1sl8N35QwH Gq8w== X-Gm-Message-State: AOJu0YxE4nMxqMqmrxH/1a2aOTcW6rbLvaT77cqBw/ubXBgwLtSfQNwd KC7Jv+02Suyo3PYUtf+ykvIo6w== X-Received: by 2002:a05:6512:220f:b0:50e:44a8:6628 with SMTP id h15-20020a056512220f00b0050e44a86628mr270964lfu.103.1702971493230; Mon, 18 Dec 2023 23:38:13 -0800 (PST) Received: from [192.168.1.20] ([178.197.218.27]) by smtp.gmail.com with ESMTPSA id x9-20020aa7cd89000000b0055289f60e3bsm4644445edv.79.2023.12.18.23.38.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Dec 2023 23:38:12 -0800 (PST) Message-ID: <2fb31811-b277-4f19-aaac-dc5ce9e99c34@linaro.org> Date: Tue, 19 Dec 2023 08:38:10 +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 2/5] dt-bindings: clock: mobileye,eyeq5-clk: add bindings Content-Language: en-US To: =?UTF-8?Q?Th=C3=A9o_Lebrun?= , Gregory CLEMENT , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thomas Bogendoerfer Cc: Vladimir Kondratiev , linux-mips@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Petazzoni , Tawfik Bayouk References: <20231218-mbly-clk-v1-0-44ce54108f06@bootlin.com> <20231218-mbly-clk-v1-2-44ce54108f06@bootlin.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/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUY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fPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20231218-mbly-clk-v1-2-44ce54108f06@bootlin.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 18/12/2023 18:14, Théo Lebrun wrote: > Add DT schema bindings for the EyeQ5 clock controller driver. > > Signed-off-by: Théo Lebrun > --- > .../bindings/clock/mobileye,eyeq5-clk.yaml | 83 ++++++++++++++++++++++ > MAINTAINERS | 2 + > include/dt-bindings/clock/mobileye,eyeq5-clk.h | 22 ++++++ > 3 files changed, 107 insertions(+) > > diff --git a/Documentation/devicetree/bindings/clock/mobileye,eyeq5-clk.yaml b/Documentation/devicetree/bindings/clock/mobileye,eyeq5-clk.yaml > new file mode 100644 > index 000000000000..d56482a06bf1 > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/mobileye,eyeq5-clk.yaml > @@ -0,0 +1,83 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/clock/mobileye,eyeq5-clk.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Mobileye EyeQ5 clock controller > + > +description: > + The EyeQ5 clock controller handles 10 read-only PLLs derived from the main > + crystal clock. It also exposes one divider clock, a child of one of the PLLs. > + It is custom to this platform, its registers live in a shared region called > + OLB. > + > +maintainers: > + - Grégory Clement > + - Théo Lebrun > + - Vladimir Kondratiev > + > +properties: > + $nodename: > + pattern: "^clocks$" No, that's not correct pattern. Node names should be generic. See also an explanation and list of examples (not exhaustive) in DT specification: https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation > + description: > + We have no unique address, we rely on OLB. No. I explained why in pinctrl patchset. > + > + compatible: > + const: mobileye,eyeq5-clk > + > + "#clock-cells": > + const: 1 > + > + clocks: > + maxItems: 1 > + description: > + Input parent clock to all PLLs. Expected to be the main crystal. > + > + clock-names: > + items: > + - const: ref > + > + mobileye,olb: > + $ref: /schemas/types.yaml#/definitions/phandle > + description: > + A phandle to the OLB syscon. This is a fallback to using the parent as > + syscon node. Drop. > + > +required: > + - compatible > + - "#clock-cells" > + - clocks > + - clock-names > + > +additionalProperties: false > + > +examples: > + - | > + olb@e00000 { > + compatible = "mobileye,eyeq5-olb", "syscon", "simple-mfd"; Drop, not related. > + reg = <0xe00000 0x400>; > + reg-io-width = <4>; > + > + clocks { > + compatible = "mobileye,eyeq5-clk"; > + #clock-cells = <1>; > + clocks = <&xtal>; > + clock-names = "ref"; > + }; > + }; > + > + - | > + olb: olb@e00000 { > + compatible = "mobileye,eyeq5-olb", "syscon", "simple-mfd"; Drop, even less related. Still no explanation why you represent the same hardware in two different ways. Best regards, Krzysztof