Received: by 2002:ab2:7a09:0:b0:1f8:46dc:890e with SMTP id k9csp71206lqo; Wed, 15 May 2024 08:04:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXuEoqfXBwa4FvuvmrBkrb2+uv2Lw8+TjjYaV5CW3PhwxjAFGVAWjZVcZQp76AYI3SGMNRdVEb/EF+oeK5eMPVuLf1R5Lj5FR5uAET3+g== X-Google-Smtp-Source: AGHT+IFkLNeUGLfh6YV7cXlex1+QMbp9WyCZ1xX0pzsMWbIppe/Y6lbOcnVZlM51lCaEBpePU6R8 X-Received: by 2002:ac2:51b0:0:b0:51f:5d0a:d716 with SMTP id 2adb3069b0e04-52210273d64mr9392827e87.63.1715785442620; Wed, 15 May 2024 08:04:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715785442; cv=pass; d=google.com; s=arc-20160816; b=x8cC+3cfE0wr+KZNOR7GvMR+gStwU9PbgyyB/IzPvmv9Si7vVeyq8OlPU7mhxgX80a YFtitdtJ61P5RHXPco/rzSQazdbPHkk52oB5PaEdcULkADAffRLLsa+7PFwth1MEjfE4 IOaFhwY9eyVpwyhDmVaF7GVxIH/QxII23X+QD1ydbBsF+ixy8/JYyIGW+0onS4JrpTRe 1WXkN89870rj4O5T97zoR1JmEbanBT8SsUT+EiLbnVmd+ZZmpkPP/c/AkUbkmZZ/Xqb/ rfz0MO5ewzo6IbQEsw5sH/FggoB0UTJp8vuIUdkWoK6zZspEyoEV0UfMzSnaIgRLhePR +qjg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:date:message-id:dkim-signature; bh=Eg8ZNW6inA9pj/zfkTYeWUoHB8TFL+NlKQ+DAnY0S+c=; fh=+kGWOF89+fW9ONTp5e5yKMP7JZkZE04tet/MKfmHYqw=; b=YAgD3K9UKCf/kyN+ppSp3djI1mC/stUsypeoq4jQupSWURrW4Pt2ujK1kudIa4CwHX WML0i5+bOEngIvVlKFyjKHcO2M1EnEa351N+ubeJ9mqUm3BHcvSbN3KkncXfmhpeZOmB 31NUbQhQIVNjReNshahEGU1c0Pg8sWfE0cswsJCFIEf1mpvvanNnBXyR8i7PBOMXYYGB DyuTx1PrDPQjSHzupN8un/LTkc+nePM74Y/wwHvIGcm87llN/I5xTI7364dR0M6DDbsR isd1OfEMKNsy6tK1vUbo4tYsP0WXwg3v3bEztLEdNIGadcN9Axgk00hvlGptz4NRawEV bcCQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=qt4VBpKN; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-180039-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180039-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com 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-5733c2d5e86si7973034a12.232.2024.05.15.08.04.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 08:04:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180039-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=@ibm.com header.s=pp1 header.b=qt4VBpKN; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-180039-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180039-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com 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 2DEBB1F2163D for ; Wed, 15 May 2024 15:04:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A2F47156238; Wed, 15 May 2024 15:03:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="qt4VBpKN" Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (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 4B8CF155A30; Wed, 15 May 2024 15:03:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.156.1 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715785412; cv=none; b=cnnEnkhrDPHfunI6mW1cexLceC5bvdUnAnERfTdcdNtMNYXO+FVDA7z8Y16w8/I8k4ShDgEhKQguvx3hDg4DFPhUHMocz5JDSVUtFozAuWo/1jUyBk39UMU+fmK5wpXN10l1ChJwFDb7BYil7T/JKDBQPtsETko3Ql5bxerg1XE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715785412; c=relaxed/simple; bh=FAyHswWUFcqlFWsTaHBnDaW6jjNPZ3Kxz4mJcJOdT88=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=QkAOxYuGD+GhnvREgV+EVYctxiXeTdXUnucKmt34jN/JTPbWXjNeeFd1OXaZbbaDRmkLlquyhMIiiJZ/N3I1SnGoVGB+qDqkvqmKEX0bla8f15ifJka53soyhMIsa6EP5V9gqJqkzE4dFqPLJ8RSHOiXtWlx/e3xzuVVTKqOoYk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=qt4VBpKN; arc=none smtp.client-ip=148.163.156.1 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Received: from pps.filterd (m0353727.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 44FEjE7u021827; Wed, 15 May 2024 15:02:55 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pp1; bh=Eg8ZNW6inA9pj/zfkTYeWUoHB8TFL+NlKQ+DAnY0S+c=; b=qt4VBpKN0mOcPzlw+NtXcZbmF28CLL+rbgoAP49dYuEfgLbg0AdnfxEXz3579vfRJAIN dHZjoQGYFUrsomi2LX5SgGs3uambuLRcuDo+vVp3hj93kcVTlCeFtlRosHzQnCLYMq3M bUXYOTCEI1J8NiqM+GwXPoUS6GfLajKhF+Al4s+p+gywEUuwTcctgnz59Cz+X6WZrF8O RAmsm2FUNlzHE1z9Ye4yddznXHttpACuNrjPZqt1iGOZvmuyoUWLuy0BMquFx1BhhxKe 5IZ1EOhtW9XkZoyte5rFiRdqnVx8t3q9Yd5v+izslTJXx0OJrDp2g5ALAA1+AnNdyFfW Jg== Received: from ppma12.dal12v.mail.ibm.com (dc.9e.1632.ip4.static.sl-reverse.com [50.22.158.220]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3y4xab04wr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 15 May 2024 15:02:52 +0000 Received: from pps.filterd (ppma12.dal12v.mail.ibm.com [127.0.0.1]) by ppma12.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 44FDlEHU018810; Wed, 15 May 2024 15:02:51 GMT Received: from smtprelay05.wdc07v.mail.ibm.com ([172.16.1.72]) by ppma12.dal12v.mail.ibm.com (PPS) with ESMTPS id 3y2k0tmevq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 15 May 2024 15:02:51 +0000 Received: from smtpav05.wdc07v.mail.ibm.com (smtpav05.wdc07v.mail.ibm.com [10.39.53.232]) by smtprelay05.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 44FF2nl028836554 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 15 May 2024 15:02:51 GMT Received: from smtpav05.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A52C058063; Wed, 15 May 2024 15:02:47 +0000 (GMT) Received: from smtpav05.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2716958065; Wed, 15 May 2024 15:02:47 +0000 (GMT) Received: from [9.61.107.19] (unknown [9.61.107.19]) by smtpav05.wdc07v.mail.ibm.com (Postfix) with ESMTP; Wed, 15 May 2024 15:02:47 +0000 (GMT) Message-ID: <80713a00-9574-4ae0-8af7-3fe12affcfc1@linux.ibm.com> Date: Wed, 15 May 2024 10:02:46 -0500 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 5/9] dt-bindings: fsi: Document the FSI controller common properties To: Krzysztof Kozlowski , 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> Content-Language: en-US From: Eddie James In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: pxzVAUxyJtQ1j4uWStUiK28reHAGBwcK X-Proofpoint-GUID: pxzVAUxyJtQ1j4uWStUiK28reHAGBwcK Content-Transfer-Encoding: 7bit X-Proofpoint-UnRewURL: 0 URL was un-rewritten Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-05-15_07,2024-05-15_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 malwarescore=0 bulkscore=0 clxscore=1015 priorityscore=1501 mlxlogscore=999 impostorscore=0 phishscore=0 adultscore=0 suspectscore=0 lowpriorityscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000 definitions=main-2405150106 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... Thanks for your detailed review Krzysztof, Eddie > > >> commit message to indicate that I'm adding it. > > > Best regards, > Krzysztof >