Received: by 2002:ab2:3c46:0:b0:1f5:f2ab:c469 with SMTP id x6csp79031lqf; Thu, 25 Apr 2024 23:19:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVWuDKpb019ytqFMk7i6srU//HGtOs0KLRknALjMIeXzpZh1mhq/73VOZnieEf78iNsLUFK12Ij6x7PMW8L5Xsam4hjGjGDc3c8xybAig== X-Google-Smtp-Source: AGHT+IGnUXQAMeh2k0EBc4jikK/ydvKjDT3gLZlj90kc95K9bM1TCDTK3pLBXl88AKiINSkVWu4o X-Received: by 2002:a05:6a20:71d6:b0:1aa:8442:21ba with SMTP id t22-20020a056a2071d600b001aa844221bamr1825569pzb.21.1714112376779; Thu, 25 Apr 2024 23:19:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714112376; cv=pass; d=google.com; s=arc-20160816; b=EadTtZ/X43XogZ6AWJVvuEX6RKqrh5EYB86khxeLAswYSgXTLnNwnmtHJp+zTx5/kc Rm9Xx3b+vhiqU09AYsh3q6V+klnq3awuX1dIS06FS6PDtuvSHkJyCwwELJDTyyOWeAcm l8nBFs+Up8NcbhPv7HByT4U/E6KanWWhoKYx71ZyhNTtfvq2jwXwlvVjQObSl8xNYgHp ucOcH4ITYCURL1QwcC8Ou3F8BNXZBYFo+8jPvpdWycKcXrCUFQNeugGUCr2RTMqWuvOo C2M7ZGRNnDvipPhglQP5P6F0gSuz4I5HiQ/FawDvjsi5PwCcAU19n3UIsff1+0Uk4mPs epIw== 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=7c+//XBGz1s8Cl2YLZzxb0TwiZyz+4it+9i5v4pf/No=; fh=Qbi05LYmFHAESeadmm29o3BnXQ5gFVK6cjlqJ2KN+Gs=; b=MOk/Et5DNPrhl0Ypd9U+KGaDIC6FSScvO8VxNZT4Q6SdtrthzwfCN4wKX7hjzbM6by 8kdNT2xmgI5ftmzB3i7F/fezZQt/jTdc1x7ZfYM/MecTjvs3tZ/rKIR64jbxToJKx5Yh Ay54f5em9iT4tTon607WRhMyri4BCttBbAAz7OmWW+NOPXcMziQpiVLpHPGgsjEQ8bvr wb/KLzsxcM6hSERxjyIfwYo1VvaSIinXIsmfcnl3dMi1SMKFBt6g9MHmPN4SPF7CxHOj BON0mB4NGmLb9wsWPUjIxJt3njLHO7ieufIR0KYnRwFkzEscgTiqnzM+zLLzyNkci7kN RqCQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bihmPHJ9; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-159555-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159555-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id gm8-20020a056a00640800b006eaf877dcb5si14552853pfb.372.2024.04.25.23.19.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 23:19:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-159555-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bihmPHJ9; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-159555-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159555-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 5F51C2819E4 for ; Fri, 26 Apr 2024 06:19:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3DD2F13A87E; Fri, 26 Apr 2024 06:19:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="bihmPHJ9" 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 3849D2F2F; Fri, 26 Apr 2024 06:19:26 +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=1714112367; cv=none; b=WjocTor4ztvcF68rJ7knWQLrw1/qWMMYNwdgY4Ar+8t+uIPccHv49s8OQTOkno1BuiTCw8qKbtzeTxheaxVJhALDl2VYQel/rJXyPsQNeZU7C1BOrV2hxMCIFdcDa1MPyBbBfag8Q6ejG6gINLHH6NP+d2m9HUPfuszqUxzbYCw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714112367; c=relaxed/simple; bh=XyTI7ypwL9XuJwKRNN0RAtJ/sCeTZRClu7Qjug3+9io=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=n12yO37uTOhk22QiK+HABfzRk6srSk6OazDIBmNO0yPON6wS/uJ0ok4dFcFM4b7LCx12Bio/J4wxuq87fRfMrYUGUcdTIxrowcsFri/rI8SIt6qqqM32OIH7vjArjaYcKaUsppa/j76jTgMu9sH4XxV9N+HnjimvO3vMKLS8fXs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=bihmPHJ9; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D9ABEC113CD; Fri, 26 Apr 2024 06:19:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714112366; bh=XyTI7ypwL9XuJwKRNN0RAtJ/sCeTZRClu7Qjug3+9io=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=bihmPHJ9TAj7CA/+t9/CNJCCAE90+eKnV9pc1gmINLmt56pp0NgVhyN5q78O9KpfQ 8IWCyJ1gZOQN7sxPqQei39aE5Fa8s0QT3qlfz3KsQu8q3iF3y39OfguoTb07CtCQks XcJjMe4PZIbDmXNZweh4DLXlJYPKHRghdsX4KwUqYMonKgL237goUwdTFk+V/WrQj9 evcQT1MNDaXjz2yAKsO65ObqzppTuzq+0/7p8eUGpZ+u+ykOaeKt+MYIBAHdbPm+vM pOB6pCTEHw3X8ht0r9cztUVL0bfqLps19p9a1PV64Wy+StHqfNfzn0co0RGAhMLxeI B1EoW7aE1Ldlg== Message-ID: Date: Fri, 26 Apr 2024 08:19:20 +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 v3 04/14] dt-bindings: fsi: p9-occ: Switch to yaml format 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 References: <20240425213701.655540-1-eajames@linux.ibm.com> <20240425213701.655540-5-eajames@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+XgC0LDqrsWhAH5TYeTVXGSyDsuZjHvj+FRP+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: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 25/04/2024 23:36, Eddie James wrote: > Switch to yaml 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 > --- > .../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..1fa87d452489 > --- /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 > + > + reg: > + items: > + - description: Processor index > + > +required: > + - compatible required goes after all properties, so below. > + > +patternProperties: > + "^occ-hwmon(@.*)?": > + type: object > + $ref: /schemas/hwmon/ibm,occ-hwmon.yaml Drop occ, not relevant. Why unit address is optional? This is supposed to be specific. Use proper regex as well for hex numbers. > + > +additionalProperties: false > + > +examples: > + - | > + occ { > + compatible = "ibm,p9-occ"; Not complete. Best regards, Krzysztof