Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1622305lqa; Mon, 29 Apr 2024 14:03:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUsfwbeSKkZ7FQO/9V5sijJNAH+y7SgMDJAVd8TtWUIX3ZdfGGKURour7ceuU589qc/k1Za0+UdlZafPq/RoRw2KLyW7lzSTSRo1ns/tg== X-Google-Smtp-Source: AGHT+IHamOUAZPZq/4gV7OzP3BPVeFKa+84ILMVTWCDr1MSk6q9EmHKwTUIIz16zGF8Grqhi7c/k X-Received: by 2002:a05:622a:18a3:b0:43b:7:6b42 with SMTP id v35-20020a05622a18a300b0043b00076b42mr3194510qtc.46.1714424611160; Mon, 29 Apr 2024 14:03:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714424611; cv=pass; d=google.com; s=arc-20160816; b=tHSR81UlGDEVvGIKIp5rMmdudSYXAj3CjClESY95YOlf8Z4grA2jM7fAETS9Sn+cDx Siw6zQgJa96bz3HjYZ2MPLvbapWQkX2NjSIK1nYjVOL7UZYlCL19Ujp/UPBOJbB9xVda NuiaD9u73kZR/xRMxCetSBYOTyZeNH1j3AmyExRkPCxSvK2blWIVY4zczcBPU+Pwuysi TN868GV5t7h6f2KbDlmg7npBMVbEMVHIbSD167A5sPHaOrGLKqk3fIq62IFG+2WFJJgI YQbnIAeZIJGyftIh0xoOb1wCZPqXWRJUg0xzSBGen5TFNYcK8OpCB8ZMbR8K6nHItO5b TV/w== 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=awURC8WLXvL6ltX4hsCAU2OtEHP0gz9pgdajLuRUruw=; fh=h0VegV54Izt8Qd8QRJ8tKg36ikFhfGt+Cj1gLXGk4yo=; b=WpR5ZOBexIZoFj7AzsNIDyUdWoVeOEXaEX34cOsFgo04VhqdmuK7W1KqP0T8DjFOnW FtoTwnOm7tKFSTmNR6KSmCTbJP6DoPl+uFloAjfZ2Ooa15+UKYqeJvFcu3OhK9YOvuDs leBBc4XOEjcBwepaxMX5r4AOlsZcZe0MROe1Xh0Qz/mMPtTsTQZ+7sWXw/5aFsvfK8ND xFHxmxi8iXdGumskftH+jGxLEcmrboozit0jYMlEeZPBmygZ5Xf144T1HoOVG5VYMD62 ZpIDW5TpL1W+3Oads5fhqhfvFZPuAz75YgG3d717RRR0xu7Ps9AsIOQZkm9Qxus/Hiox zr5A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=oF1NjT8U; 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-163041-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163041-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id ey12-20020a05622a4c0c00b0043a69c12b30si9971517qtb.344.2024.04.29.14.03.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 14:03:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-163041-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=oF1NjT8U; 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-163041-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163041-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D42FE1C211A6 for ; Mon, 29 Apr 2024 21:03:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 83A371802AE; Mon, 29 Apr 2024 21:01:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="oF1NjT8U" 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 EA2A617965E; Mon, 29 Apr 2024 21:01:53 +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=1714424515; cv=none; b=nlmVKimZUacMcaY+IP3nvBxVa+hQztOzr3NN3j97jfDDRplBB3CMxQN9EWoVqTyRl2Q5C7YduEJPbvp5N3RvNQUl408qdXKwkRX5/FCCgP8eah6yeg+1Bb3dgSlFKMJRTHLH8iNsCc4IJ5INbgy9T6Uw3MvD8mOv5J6n80AghoU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714424515; c=relaxed/simple; bh=64lGrwVrTlNr3whaBYvMQu09qDhxEpCl9ilEI88bIz8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=F6ShID0lERk7uJkQ62qRhkCVegzm5yPixzEkwDKKeKfFfdGr9q3xdnojb62I4gofORqUivfzgm6qu3kfl0bTz3MHF0WrTxvacmT/PW/i2b000NOSO2HM6IWDG79n/5f6t3NeA7DWNcRMNy9OFHst6octh1OQ+8PbGFjOWqYSXnw= 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=oF1NjT8U; 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 (m0360072.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 43TKrZpD019009; Mon, 29 Apr 2024 21:01:41 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=awURC8WLXvL6ltX4hsCAU2OtEHP0gz9pgdajLuRUruw=; b=oF1NjT8U1JfhXijsU46ufDdljrSAThLIGPwsn3ybvUKr1DIkUTAeaGOH9VW05YvnoI2t +U7jO2YHNbKtXzjzpKkZ1/5ILzbOQQ+hRrv64nRXi4zt8xAkQmx56tpxPhkL/cq8+83X CxDaN48Pld6VF4jSHn4rvJsxdPZfVWbwmLA1RVIcUoMwDnSFjqyUQ8hx14zp1NSGyJpY F+CfDDxcmUrCbrmNcl7PfgSX21Huj7kJP8kRjs4uuAKAu9weCIIxiV9jj79a6IFva+k2 gGf1GqJPWvX2dACp3vrYm+5S4Ikv4P3yIiUqOg35GAmilctxS18p3/AnHV9GWOuOfjMw rQ== Received: from ppma11.dal12v.mail.ibm.com (db.9e.1632.ip4.static.sl-reverse.com [50.22.158.219]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3xtjyj01cc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 29 Apr 2024 21:01:40 +0000 Received: from pps.filterd (ppma11.dal12v.mail.ibm.com [127.0.0.1]) by ppma11.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 43TJobvA015530; Mon, 29 Apr 2024 21:01:40 GMT Received: from smtprelay02.wdc07v.mail.ibm.com ([172.16.1.69]) by ppma11.dal12v.mail.ibm.com (PPS) with ESMTPS id 3xsed2s46h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 29 Apr 2024 21:01:39 +0000 Received: from smtpav01.wdc07v.mail.ibm.com (smtpav01.wdc07v.mail.ibm.com [10.39.53.228]) by smtprelay02.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 43TL1amC27853428 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 29 Apr 2024 21:01:38 GMT Received: from smtpav01.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 823845804B; Mon, 29 Apr 2024 21:01:36 +0000 (GMT) Received: from smtpav01.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BE39A5805B; Mon, 29 Apr 2024 21:01:35 +0000 (GMT) Received: from slate16.aus.stglabs.ibm.com (unknown [9.61.151.254]) by smtpav01.wdc07v.mail.ibm.com (Postfix) with ESMTP; Mon, 29 Apr 2024 21:01:35 +0000 (GMT) From: Eddie James To: linux-aspeed@lists.ozlabs.org Cc: eajames@linux.ibm.com, 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 Subject: [PATCH v4 04/17] dt-bindings: fsi: p9-occ: Convert to json-schema Date: Mon, 29 Apr 2024 16:01:18 -0500 Message-Id: <20240429210131.373487-5-eajames@linux.ibm.com> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20240429210131.373487-1-eajames@linux.ibm.com> References: <20240429210131.373487-1-eajames@linux.ibm.com> X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: uxB-mqcTT8SxDZAg02th1_66CK6Bt5Io X-Proofpoint-GUID: uxB-mqcTT8SxDZAg02th1_66CK6Bt5Io 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.1011,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-04-29_18,2024-04-29_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 bulkscore=0 mlxscore=0 suspectscore=0 mlxlogscore=999 phishscore=0 malwarescore=0 adultscore=0 lowpriorityscore=0 priorityscore=1501 spamscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2404010000 definitions=main-2404290138 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": + 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