Received: by 2002:a05:7208:13c3:b0:82:bbfa:f723 with SMTP id r3csp1142152rbe; Tue, 14 May 2024 12:55:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUFT9Zys83/yMAT8WPYwLcO1p5RYbup/3JkUVk0s3TK1r7cfw/StK3BuiUnMLeMucndBoWIo7kiNWw2Cj3drOvAmfEtNCtt4dYzsp5iJA== X-Google-Smtp-Source: AGHT+IFQ+V5f91xK6zyCPaofiQDoBw8SgZtTTe+Nm+IXqc0wvBa81YBf0QuqA2j7sPB3FSpnp79X X-Received: by 2002:a17:906:594e:b0:a59:cd18:92f5 with SMTP id a640c23a62f3a-a5a2d54c699mr882900466b.11.1715716548603; Tue, 14 May 2024 12:55:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715716548; cv=pass; d=google.com; s=arc-20160816; b=u389C0MkuPJBkS2GjtgrSS1DEnv3ibuhIQS64ESmBsJjHX8ajgbSsKI10N/v05Exgg krOQW8ox/k4x7dMxTqK6KIEr84X8tS1hrXLlIsvbkOecpjRo55X5PEWOu6RaPAO8M3oH piG0mACvdXBw2UxVAHjDc9sQ1uUlMlOXVevZqhu+rAJsXBTx1RXd0Njjad50MXJcvQB4 IdQPZfR5E4LnhKYxBvkJzueGmFsr4wgs9orKkRlPaiNVbsGkxbj2Dlm+HbzYlloaeCkk J7WxdNIyZTkn633DpUUqHOT8TmPxJa8aWJQLN6SGEaP6R/QfGbXgpZc3HtOSC3g6Iqm8 DHXw== 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:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=r2TppdGML4g4eAF3lLy/4S96GlJGe+Cf2lhEK0QcNVg=; fh=mc7ucHjwbj2+bKzhtGqd1GO0uqlFJkB5B0QW1pwNAXs=; b=etf/H3T549/qxBRLALQrIIRLmBbXqMc74saSHzPgoWT1OuqSbGvnxGtd8TuxIOasi8 QWZtDW7GGgIbwKeNokkoKSGYCvTVvp3u/gaxMI+n2jO8fh24H+O1DGy+9cSQ6PNtyISp UKCOTbGNDhh3EHOg75BnkVkn3Ktn8/kfkw32jeKtadF/7qUaHm7k8BjpKHiaPnQkp6rw nEkyVENOKDRIVyvpfX/zHKHvk9QZvtKZRAdaM76PFfYnfuC4sD3F/gcO4O68n5a9ln7u lXqFPohbuRzuX+QCyhkthkDgTSBlA57uNT13szyfO1FiNhYdlB/72MgzEPEX/YsHJ63A I6Gg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=HaQCIzgL; 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-179118-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179118-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 a640c23a62f3a-a5a7c7f7122si150333666b.175.2024.05.14.12.55.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 12:55:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-179118-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=HaQCIzgL; 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-179118-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179118-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 1AD991F22A5B for ; Tue, 14 May 2024 19:55:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 85C53182C8C; Tue, 14 May 2024 19:54:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="HaQCIzgL" Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (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 F40A3181B83; Tue, 14 May 2024 19:54:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.158.5 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715716493; cv=none; b=J8faYTnqUrTNXJULtA7oHz6sCsGAhT8RpXD1iY7u8+OGFxuwMJ/iw6s18i+RJo8Vt9zdLHo9CYA5gHqG7ytKxFcu/jJG387oVCZImYybhvk2pF+jx0ZEPjJxCLjPsRiqxgHQgONIgpAdZcUh35UggUG1GBdBnbTOD4NXZ688aBs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715716493; c=relaxed/simple; bh=RJIcew/y4SnPKEOUdXVzMlMtC/9Whl1zqKQE6y4VNe0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=jn/VNAZmaTc/w8BvGBXv0pwBH7eLxi2I547tthsccJe2nhhjDeddeTiSWluWEBSkUZfvug34Dg9cgMJQYUx3A29exbjg0EfT7vaugIW7pW8AKr9G+PU1maebn5cwxk2zKUu4aQlPN/TnULJvwG0vLmUR0vtNJuUYxnGNeFT4jxk= 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=HaQCIzgL; arc=none smtp.client-ip=148.163.158.5 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 (m0353724.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 44EIBwHl021147; Tue, 14 May 2024 19:54:40 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : mime-version; s=pp1; bh=r2TppdGML4g4eAF3lLy/4S96GlJGe+Cf2lhEK0QcNVg=; b=HaQCIzgLEm9oHqgrzWjltXubVrb7ylH6CqdUC7WHm0aiP5cFmEpjE3pnx2l3o08kaaWc WS97mtKefW6TBDHcsHz8Kb2I0sqQ0o4XZZknTWA8OS7eWYrru54gj6gqJpclF3tP4BBB FDirjae9SkLF4B3Sc2ACGIbBNgiLrsVPEkGBAvW5CMeFZ4TfGntebjpSrMr4TyBSheOQ Rsffn1KFfdRIwURD9JXzjlQXZCNR7gnjLOrbsAs7FT/IA8ZluwEJj1cn0xKkXBL4Bi4n yOl1dss8tYs/PB2zKzMBqnoSIuNO9vtAHOI0Mk1zSaKV++8TCWcF86F//YsOUxAdkeQY Gw== Received: from ppma22.wdc07v.mail.ibm.com (5c.69.3da9.ip4.static.sl-reverse.com [169.61.105.92]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3y4ckrg9n8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 14 May 2024 19:54:40 +0000 Received: from pps.filterd (ppma22.wdc07v.mail.ibm.com [127.0.0.1]) by ppma22.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 44EHsGeS020385; Tue, 14 May 2024 19:54:39 GMT Received: from smtprelay07.dal12v.mail.ibm.com ([172.16.1.9]) by ppma22.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3y2kcyyfjq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 14 May 2024 19:54:39 +0000 Received: from smtpav03.dal12v.mail.ibm.com (smtpav03.dal12v.mail.ibm.com [10.241.53.102]) by smtprelay07.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 44EJsbwM32113184 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 14 May 2024 19:54:39 GMT Received: from smtpav03.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id EDDDB5806C; Tue, 14 May 2024 19:54:36 +0000 (GMT) Received: from smtpav03.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B6F3458064; Tue, 14 May 2024 19:54:36 +0000 (GMT) Received: from slate16.aus.stglabs.ibm.com (unknown [9.61.107.19]) by smtpav03.dal12v.mail.ibm.com (Postfix) with ESMTP; Tue, 14 May 2024 19:54:36 +0000 (GMT) From: Eddie James To: linux-fsi@lists.ozlabs.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, eajames@linux.ibm.com, krzk+dt@kernel.org, conor+dt@kernel.org, robh@kernel.org, joel@jms.id.au, andrew@codeconstruct.com.au Subject: [PATCH v5 3/9] dt-bindings: fsi: p9-occ: Convert to json-schema Date: Tue, 14 May 2024 14:54:29 -0500 Message-Id: <20240514195435.155372-4-eajames@linux.ibm.com> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20240514195435.155372-1-eajames@linux.ibm.com> References: <20240514195435.155372-1-eajames@linux.ibm.com> X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: fKyk_MYw7ONIuGPmX8A8DIw98tXM0aE7 X-Proofpoint-GUID: fKyk_MYw7ONIuGPmX8A8DIw98tXM0aE7 Content-Transfer-Encoding: 8bit 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-14_12,2024-05-14_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 phishscore=0 adultscore=0 spamscore=0 mlxlogscore=999 suspectscore=0 lowpriorityscore=0 clxscore=1015 bulkscore=0 malwarescore=0 impostorscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000 definitions=main-2405140142 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 v4: - Drop pattern properties for hwmon node .../devicetree/bindings/fsi/ibm,p9-occ.txt | 16 -------- .../devicetree/bindings/fsi/ibm,p9-occ.yaml | 40 +++++++++++++++++++ 2 files changed, 40 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 e73358075a903..0000000000000 --- 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 0000000000000..537eac70447c0 --- /dev/null +++ b/Documentation/devicetree/bindings/fsi/ibm,p9-occ.yaml @@ -0,0 +1,40 @@ +# 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 + + hwmon: + type: object + $ref: /schemas/hwmon/ibm,occ-hwmon.yaml + +required: + - compatible + +additionalProperties: false + +examples: + - | + occ { + compatible = "ibm,p9-occ"; + + hwmon { + compatible = "ibm,p9-occ-hwmon"; + }; + }; -- 2.39.3