Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp366759lqh; Sat, 4 May 2024 04:50:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUyy1a9vh+KaBQhp1IlGfw+WlsFbjunJGwPpcBXcFRo9/4PBVjPj3b657S1VfXOWyG3H39/bVaXgW4+zCrZbkBaqD1L74dNWLMCu0tuVA== X-Google-Smtp-Source: AGHT+IFNLMRYJ1kyH+MHpXhdGipNaO0NwMMtNMfsRfKwzMKsRixtxFKn36NkDx8mCfLuIDe3+iJD X-Received: by 2002:a54:4387:0:b0:3c8:42a9:d5ec with SMTP id u7-20020a544387000000b003c842a9d5ecmr5715842oiv.24.1714823438662; Sat, 04 May 2024 04:50:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714823438; cv=pass; d=google.com; s=arc-20160816; b=bf+KpZzjJbm0NSYlGErl/OjFRKhFyl6M9IdooGVzqkcMklO9B2pZoJMbDoewT3OEo0 4u7UKdkLEAPRzp2g1bBcu8i/gKVaP91fuHKtrJfBumUGuyaLgNXMynwKCSBcyfo1un30 NYQAuZJXX0BLGpqyyBWmFfgyxu0IOT56SqDMPxZFYOxtL8wR9PS9a/50janiTAgBe5M3 eHBuDTC0BSlAKki04NSat2qrZEM4pjqqL8av4ZfIpKVQ015zveHckqLdEP2ZXkA5xMLh IL1gZGIf/zytSozlIFPsM/L751qW/2YlWwonY8J3dr0h6JXq5FIeX+qzQ22uPiyyP2Xb 396w== 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=2OiOb7NvZ63jFjLnJiKQNIo6D9Dvy4tbIolyMe4bZ6I=; fh=+79/YbVGPKoW42LOGDd+vTNC6USOTYEYl9jCOUMIVm8=; b=soPiYpL/zICQCdEYnfG23aJFX4cNzMG/jNmx3wXdWZQBHn3CSOeIjnE6wfYLfHtavj L1FR3A84lPzHVcyemekMboSmVms+36jZrQ55zzWNQHk/aCOwhnuxZbPR9tLoG6luIA+V 9TtPkNdkxrMWLX202vRSs7AovKVJ+tSspA2HhlwRpzVYEUf/D9IaXvjz1JfGLBJDIBWH EOD1q9YccULCmZf0BsHdh8kE3zpKQWKSyWT868WjYana9nfnsyveQQa5b+mAA1Fov8lQ NwddyeeCPutf2FXEYHAigaRm8UNFfyNtJqlYZA3gOwgtZQIAjTyhYZaWez1DAF+PWoUI 1sPQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jdh6kJvj; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-168625-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168625-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id t13-20020a05620a450d00b0078d76c117afsi6002442qkp.120.2024.05.04.04.50.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 May 2024 04:50:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168625-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jdh6kJvj; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-168625-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168625-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id F18BA1C20EB0 for ; Sat, 4 May 2024 11:50:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C51DB20B35; Sat, 4 May 2024 11:50:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jdh6kJvj" 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 B20E1F513; Sat, 4 May 2024 11:50:28 +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=1714823428; cv=none; b=ZyYSTdXoHvY/WYZhXJi+YymIGT64vGZeRZsJENyiZKFLsJ1t7YyRIPpnG3M4GJ6sCy/b/szhXgH/S06urhZjR6ClkvAaSTV/SQdtzDDyJwt1/CPvCeuT5oGSmT4lhjVlfCZswJKKQAdm21Df/bmTpY5lz/PNRVpCWJJiRLiYNTY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714823428; c=relaxed/simple; bh=dq8QtycUf+wkQxrsoNbONtWcPfDnxfNHqIFbsIOuZEk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=cODVie5zsE8fdWJxq9uV4wMPnVxL9KUnKAgqC2DuIcGCy58x5ilsgxQBSRIpKvyqKsTaXruCN+5GlZoXX0fEdfRUi9g/UD5G7GhWbOanCvm7gzJiELzxqG4Jmgiaz9khSopSzxOIsyf10AbC4P+TCDeQqYq26Pjrq0Vrcw1Vg3E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jdh6kJvj; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5A850C072AA; Sat, 4 May 2024 11:50:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714823428; bh=dq8QtycUf+wkQxrsoNbONtWcPfDnxfNHqIFbsIOuZEk=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=jdh6kJvjTYBynzpzQN7moyxVLm3dZ7tmkxjfREYMS/6Ad6NdcVwkgY8UQ2DgBgrx7 +m5RLs2ZY/bj6ILCJET3a8LXjVjI3p3t46QaL5jeGrmcdFgE3bGeHlUDow1G0Y7WUE wY/jZykqJUydPDJs8CrRQPSZPQbokSrFbLAHEMUubgVxDf7S9BtPYvRvtzzyAzdLhr UFax9vUd9zstdkLUeTh035sjDYsVggpuGkP9VdXgBflO3o6JrsB4rgRyxfYEWBFsw8 vCyU9Yf/N7vJMN4oE0WHIFfNfoa83jSS2fmy6ViuRgc76zPc1P0dAtO8J3Pd6DBJGM XWq/zYcDYOdjg== Message-ID: Date: Sat, 4 May 2024 13:50: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 v4 04/17] dt-bindings: fsi: p9-occ: Convert to json-schema To: Eddie James , linux-aspeed@lists.ozlabs.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsi@lists.ozlabs.org, linux-spi@vger.kernel.org, linux-i2c@vger.kernel.org, lakshmiy@us.ibm.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, joel@jms.id.au, andrew@codeconstruct.com.au, andi.shyti@kernel.org References: <20240429210131.373487-1-eajames@linux.ibm.com> <20240429210131.373487-5-eajames@linux.ibm.com> <0fcadbe6-7615-498e-89c0-e3b072c4828c@kernel.org> 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+QFxwl7pDsAKR1InemMAmuykCH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= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 01/05/2024 17:59, Eddie James wrote: > > On 4/30/24 01:53, Krzysztof Kozlowski wrote: >> On 29/04/2024 23:01, Eddie James wrote: >>> Conver to json-schema for the OCC documentation. Also document the fact >>> that the OCC "bridge" device will often have the hwmon node as a >>> child. >>> >>> Signed-off-by: Eddie James >>> --- >>> Changes since v3: >>> - Move required below other properties >>> - Drop "occ-" in child node >>> - Drop hwmon unit address >>> - Complete example >>> - Change commit message to match similar commits >>> >>> .../devicetree/bindings/fsi/ibm,p9-occ.txt | 16 -------- >>> .../devicetree/bindings/fsi/ibm,p9-occ.yaml | 41 +++++++++++++++++++ >>> 2 files changed, 41 insertions(+), 16 deletions(-) >>> delete mode 100644 Documentation/devicetree/bindings/fsi/ibm,p9-occ.txt >>> create mode 100644 Documentation/devicetree/bindings/fsi/ibm,p9-occ.yaml >>> >>> diff --git a/Documentation/devicetree/bindings/fsi/ibm,p9-occ.txt b/Documentation/devicetree/bindings/fsi/ibm,p9-occ.txt >>> deleted file mode 100644 >>> index e73358075a90..000000000000 >>> --- a/Documentation/devicetree/bindings/fsi/ibm,p9-occ.txt >>> +++ /dev/null >>> @@ -1,16 +0,0 @@ >>> -Device-tree bindings for FSI-attached POWER9/POWER10 On-Chip Controller (OCC) >>> ------------------------------------------------------------------------------ >>> - >>> -This is the binding for the P9 or P10 On-Chip Controller accessed over FSI from >>> -a service processor. See fsi.txt for details on bindings for FSI slave and CFAM >>> -nodes. The OCC is not an FSI slave device itself, rather it is accessed >>> -through the SBE FIFO. >>> - >>> -Required properties: >>> - - compatible = "ibm,p9-occ" or "ibm,p10-occ" >>> - >>> -Examples: >>> - >>> - occ { >>> - compatible = "ibm,p9-occ"; >>> - }; >>> diff --git a/Documentation/devicetree/bindings/fsi/ibm,p9-occ.yaml b/Documentation/devicetree/bindings/fsi/ibm,p9-occ.yaml >>> new file mode 100644 >>> index 000000000000..3ab2582cb8a0 >>> --- /dev/null >>> +++ b/Documentation/devicetree/bindings/fsi/ibm,p9-occ.yaml >>> @@ -0,0 +1,41 @@ >>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >>> +%YAML 1.2 >>> +--- >>> +$id: http://devicetree.org/schemas/fsi/ibm,p9-occ.yaml# >>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>> + >>> +title: IBM FSI-attached On-Chip Controller (OCC) >>> + >>> +maintainers: >>> + - Eddie James >>> + >>> +description: >>> + The POWER processor On-Chip Controller (OCC) helps manage power and >>> + thermals for the system, accessed through the FSI-attached SBEFIFO >>> + from a service processor. >>> + >>> +properties: >>> + compatible: >>> + enum: >>> + - ibm,p9-occ >>> + - ibm,p10-occ >>> + >>> +patternProperties: >>> + "^hwmon": >> And now it raises questions: >> 1. Other devices on FSI bus have unit addresses, so why this does not? >> 2. This suggest only one hwmon, so ^hwmon$, which is then not a >> patternProperty but property. >> 3. But the true problem why do you even need two empty nodes? These >> should be combined into one node. > > > 1. This is not truly on the FSI bus. It is on the SBEFIFO "bus" > > 2. True enough, I'll change it to property. > > 3. If this binding was being designed now, I'd agree with you, but the > two nodes (occ and occ-hwmon) are already documented, I'm just changing > to yaml here... Changing that would require a lot of changes and would > break the two drivers. No child was documented before and documenting things post-factum does not allow to bypass regular review rules. Best regards, Krzysztof