Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp814018lqo; Fri, 17 May 2024 02:17:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX3M3dd0NDchrlzJ4AWAXfw97eKNNVAH/9O5i5k1NCe3X+B7CtZ7dk0ogHTdqaEkxF7lzl+5FeVr+dru2orFX2JulGl5XhVMAmAq1XeyA== X-Google-Smtp-Source: AGHT+IHGCjSk7uxDywohr8t8ImxPmUp4LrohZcSzLsEqP2zMRgVhXAcaQHcqOjETmjkZPDPw2Mjq X-Received: by 2002:a50:cd41:0:b0:574:ecc8:11f with SMTP id 4fb4d7f45d1cf-574ecc80190mr5909859a12.22.1715937475250; Fri, 17 May 2024 02:17:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715937475; cv=pass; d=google.com; s=arc-20160816; b=zFmkez4s4eZ7RYUw7bG1IsYqwPo/y+xLR0YC72yI0SS08YUmz0AYyIZM1sXxvF4T6U RaiHtmYQFQH3D/GWSgRJq0Mle25otPKIPhcaVTiWkzNcjBm23lN/6wXIVBGHJnSASWHD Ln6Kawu3O19utIARE14jJ+9Rq6UMj77OzCwatYwXdgd+PVWplyziPwdWzKhe4B+o6nFX C4lW0PKXpnSiZ77Tk0ltbZoER8NClNeZVu2cPPPu849a/nP3eqg8ar0U5mt7n8jqrThv dYxbqztP0H9jiW2Z6RD1ZZaf+dg7d9U70uEpAOsAaEi65jVYL9mUp43gvX6n29n1ameD 9jDw== 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:content-language :from:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=2LRAeA/H4e+oWC36XkcEYuG4ImAozN/R+YZsvYwxliU=; fh=UicsVcZyy+MkDtq5jljiIxmTMBYRTcfI0QBvT9DJGPQ=; b=qeOfTmcSwPG1p3bTgsdh4Y//lRAuE16VOdTykKAJ/89qW/p7oUN/MsIMVVXWxf0QRa zCbIYzTAXYQb652Dj2hzV2FPXyfwjK9ZXAScZiF7WyvWT0/enPG13xen8hCKYgbhB+3Y N5JBdJoyCd9MYAEktdtfhc/Tnq9ujRz/9CR/zBr4MFKX49heXaun3O0n2sjTEyrWB+qg x7psdnIzDmaVncJVC8UB8p4O/P/o3+LHKslkZdajJ+eBolF3UPCVIGQJiEA1cuWWTuOR vyp8gj0TRSc9mjg+OhZ+B7LPlMaXhH3Er4Ub1G6ByHw+I7ZF1+o+KdROzqxjeFsMrmfp 1mTQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aWVriPPJ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-181908-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181908-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733beacf68si10209526a12.78.2024.05.17.02.17.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 02:17:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-181908-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aWVriPPJ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-181908-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181908-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 C8F7E1F23056 for ; Fri, 17 May 2024 09:17:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 94F4B2032A; Fri, 17 May 2024 09:17:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="aWVriPPJ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9A1661DDDB; Fri, 17 May 2024 09:17:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715937465; cv=none; b=FFNCQ3fUz2FeThHRFhwzvKxYnavoBsUzYW48TiQPq91hsY21stP32EFI1DZ9Bv9z5nP9zoFCkdGbqZfZv0uiegOE/ec5xxO1u9FTQGdw/vcwkZNk10kIkqJR/A+V7Rd9KS6FRSJiSAcpXr5I69/6mO+f1hRAzQ4v4l9Txr6P4iM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715937465; c=relaxed/simple; bh=PH0+m7B2XUeSInY+T38VdjzfDLnpX53dQVeTatGhnRg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=o2IXKfr4gmHi6WaXl48UCmIhlVZte6rLjeOoXhVg1eU3VCjeMBaIYRjHRN5J0Wc5guOK/EUG5SD/VRW84REpnscXRpMBwXDA/YIGn31bKZKhOSKWYkkPfr+1LI46p4/l1tGrLnX4gGs8A+FLTMbcs20kCSxcViswzc2yWD+iTLk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=aWVriPPJ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2B1A6C2BD10; Fri, 17 May 2024 09:17:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715937465; bh=PH0+m7B2XUeSInY+T38VdjzfDLnpX53dQVeTatGhnRg=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=aWVriPPJ57nLu5vE4RIQhh8UV+H+XWuOocJwj/lLqfmnuAhMHVuf7jDFyNrRA/SFS kXm20A9srgZJPNJQ7hfxyawegGrmGHP+GxDOclm0ATHguTlqwEg5e52B+ttEzdKmns 1t8PTDc6zgzDw/lQB+F3CgVdDf0YwnUSNCfEVyfSkQtCY5gU4LhvoijivFL7xYemtP Gbfh4o9jT+zg8qUCCFLOuU01ZFm4zsZ1lB73rc8ftvZf1HS0oOzZOBR5pkg0h6thmz 1InAjQg4onWLAoKDqKzka+XjwDPLGZn2OoaWsZVstd4P9RY7ypsS4Td4lepmQsfXqF yTjYFtH2voiGA== Message-ID: Date: Fri, 17 May 2024 11:17:41 +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 v5 5/9] dt-bindings: fsi: Document the FSI controller common properties To: Eddie James , linux-fsi@lists.ozlabs.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, robh@kernel.org, joel@jms.id.au, andrew@codeconstruct.com.au References: <20240514195435.155372-1-eajames@linux.ibm.com> <20240514195435.155372-6-eajames@linux.ibm.com> <9200e46a-3cb5-4363-a560-ee3d88e05ced@kernel.org> <80713a00-9574-4ae0-8af7-3fe12affcfc1@linux.ibm.com> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzk@kernel.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 TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzSVLcnp5c3p0b2Yg S296bG93c2tpIDxrcnprQGtlcm5lbC5vcmc+wsGVBBMBCgA/AhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgBYhBJvQfg4MUfjVlne3VBuTQ307QWKbBQJgPO8PBQkUX63hAAoJEBuTQ307 QWKbBn8P+QFxwl7pDsAKR1InemMAmuykCHl+XgC0LDqrsWhAH5TY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4ae0-8af7-3fe12affcfc1@linux.ibm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 15/05/2024 17:02, Eddie James wrote: > > On 5/15/24 09:35, Krzysztof Kozlowski wrote: >> On 15/05/2024 16:28, Eddie James wrote: >>> On 5/15/24 09:18, Krzysztof Kozlowski wrote: >>>> On 14/05/2024 21:54, Eddie James wrote: >>>>> Since there are multiple FSI controllers documented, the common >>>>> properties should be documented separately and then referenced >>>>> from the specific controller documentation. >>>>> >>>>> Signed-off-by: Eddie James >>>>> --- >>>>> Changes since v4: >>>>> - Add interrupt controller properties >>>>> - Add clock-frequency property to FSI controller and CFAM >>>>> - Add detail to chip-id property description >>>>> >>>>> .../bindings/fsi/fsi-controller.yaml | 66 +++++++++++++++++++ >>>>> 1 file changed, 66 insertions(+) >>>>> create mode 100644 Documentation/devicetree/bindings/fsi/fsi-controller.yaml >>>>> >>>>> diff --git a/Documentation/devicetree/bindings/fsi/fsi-controller.yaml b/Documentation/devicetree/bindings/fsi/fsi-controller.yaml >>>>> new file mode 100644 >>>>> index 0000000000000..8620e4da6de77 >>>>> --- /dev/null >>>>> +++ b/Documentation/devicetree/bindings/fsi/fsi-controller.yaml >>>>> @@ -0,0 +1,66 @@ >>>>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >>>>> +%YAML 1.2 >>>>> +--- >>>>> +$id: http://devicetree.org/schemas/fsi/fsi-controller.yaml# >>>>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>>>> + >>>>> +title: FSI Controller Common Properties >>>>> + >>>>> +maintainers: >>>>> + - Eddie James >>>>> + >>>>> +description: >>>>> + FSI (FRU (Field Replaceable Unit) Service Interface) is a two wire bus. The >>>>> + FSI bus is connected to a CFAM (Common FRU Access Macro) which contains >>>>> + various engines such as I2C controllers, SPI controllers, etc. >>>>> + >>>>> +properties: >>>>> + "#address-cells": >>>>> + const: 2 >>>>> + >>>>> + "#size-cells": >>>>> + const: 0 >>>>> + >>>>> + '#interrupt-cells': >>>>> + const: 1 >>>>> + >>>>> + clock-frequency: >>>>> + minimum: 1 >>>>> + maximum: 200000000 >>>> This is a deprecated property in general. Why did it appear? It does not >>>> exist in current bindings and nothing in commit msg suggests changes in >>>> the bindings themselves. >>> >>> OK, is there some document that describes what properties are >>> deprecated? Because it's used all over the place in the bindings. Anyway >> dtschema: dtschema/schemas/clock/clock.yaml >> >> buses anyway should use bus-frequency but it is also legacy one. >> >>> I need this property, I can rename it if you like. I can also update the >> Why do you need it? Why clocks cannot be chosen by drivers and initial >> state selected by assigned-clock-rates? > > > Well, I could use assigned-clock-rates, though it seems like I'd then > have to implement the clock provider framework for both the FSI > controller driver and the CFAM driver, which is a lot of extra work. FSI > controller isn't really a clock provider, it's a bus like i2c (which > uses clock-frequency), so it doesn't quite fit in my opinion... OK, it's fine in such case. Best regards, Krzysztof