Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1411249ybf; Thu, 27 Feb 2020 10:26:30 -0800 (PST) X-Google-Smtp-Source: APXvYqxcDRb3tmS37BSK1YM6SLbYUFnaGYqhPjNOl2APSiauHaaPT0r/AGThW95X8Q+KYCcmVJp0 X-Received: by 2002:aca:f5c7:: with SMTP id t190mr295034oih.36.1582827990320; Thu, 27 Feb 2020 10:26:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582827990; cv=none; d=google.com; s=arc-20160816; b=ehZnFjv/mXRDsvEGipZ1AtEvJGLupIvt0HxIwwoJ1Rg8fJPqrkG/f/2zpguxpjcE3m y9j7W/V1Bi/4f7dWf5A7tn5lOB+4Axdu6Xouxxjo4ZEc/jz+LfzfznQ7ZJidFFLTFb/n VmIQBXmMAJlUQ+G6oT0MYyStPX3BpxbJWn81TdHmMsfzoJnZ9hkkW1eTJ46gEVHGI24k RYpwpCHTmY6j/Oex9ouIJ+eCXgo2E1MPXujblskqnQCEvBH/c7u7CViQMgoyqliPrWHG FhH+133c6YThUntTp9fYHWdzRjlZJ8nniLUCsCJEBzKj5OuKsPRS6TSiPQfdchS1Ngoz 4U+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=qcW9GWP2SohSVFKvORXGsnRrQcGAH6hrw06Ws0ZqSY0=; b=OO0/zcV61Gu+4GjR4ZMERtT9+bDZ0BG8KoNR5c0FbJrupdhE/nw/ZAvodi0KzpoZjv IStDwyOIsP5rXWgXO6ah+3bhcsWWOu7a5xGrykoWodC2f2htpZMlCMvQYRpHhJ7XsN0S yu3iY83t9dM/SMq/ltTnLhluGi3kkSVoRNhPe/17eo42reZvcQv/ijIvVB4YkzZeln18 jQuQALyMz9ejIQZ2lpz1AsT8OMJAwKRQOD4Zdv73ytTRk+yBBGgJV4SjYOKTIzhyjwis 2TgFbMy7C/ofHsTELzSG0wcp2PuMPu9FPV6x3fzoRqZq8gUShI1UgB2xdeccLNyGQ8Yc zEdA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x186si293176oig.209.2020.02.27.10.26.12; Thu, 27 Feb 2020 10:26:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730849AbgB0SYn (ORCPT + 99 others); Thu, 27 Feb 2020 13:24:43 -0500 Received: from foss.arm.com ([217.140.110.172]:56734 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730861AbgB0SWm (ORCPT ); Thu, 27 Feb 2020 13:22:42 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4ABD91FB; Thu, 27 Feb 2020 10:22:41 -0800 (PST) Received: from donnerap.arm.com (donnerap.cambridge.arm.com [10.1.197.25]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6B5D83F73B; Thu, 27 Feb 2020 10:22:39 -0800 (PST) From: Andre Przywara To: Rob Herring , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Maxime Ripard , Robert Richter , soc@kernel.org, Jon Loeliger , Mark Langsdorf , Eric Auger , Will Deacon , Catalin Marinas , Corey Minyard , openipmi-developer@lists.sourceforge.net Subject: [PATCH v2 11/13] dt-bindings: ipmi: Convert IPMI-SMIC bindings to json-schema Date: Thu, 27 Feb 2020 18:22:08 +0000 Message-Id: <20200227182210.89512-12-andre.przywara@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200227182210.89512-1-andre.przywara@arm.com> References: <20200227182210.89512-1-andre.przywara@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert the generic IPMI controller bindings to DT schema format using json-schema. I removed the formerly mandatory device-type property, since this is deprecated in the DT spec, except for the legacy CPU and memory nodes. Signed-off-by: Andre Przywara Cc: Corey Minyard Cc: openipmi-developer@lists.sourceforge.net --- .../devicetree/bindings/ipmi/ipmi-smic.txt | 25 --------- .../devicetree/bindings/ipmi/ipmi-smic.yaml | 56 +++++++++++++++++++ 2 files changed, 56 insertions(+), 25 deletions(-) delete mode 100644 Documentation/devicetree/bindings/ipmi/ipmi-smic.txt create mode 100644 Documentation/devicetree/bindings/ipmi/ipmi-smic.yaml diff --git a/Documentation/devicetree/bindings/ipmi/ipmi-smic.txt b/Documentation/devicetree/bindings/ipmi/ipmi-smic.txt deleted file mode 100644 index d5f1a877ed3e..000000000000 --- a/Documentation/devicetree/bindings/ipmi/ipmi-smic.txt +++ /dev/null @@ -1,25 +0,0 @@ -IPMI device - -Required properties: -- compatible: should be one of ipmi-kcs, ipmi-smic, or ipmi-bt -- device_type: should be ipmi -- reg: Address and length of the register set for the device - -Optional properties: -- interrupts: The interrupt for the device. Without this the interface - is polled. -- reg-size - The size of the register. Defaults to 1 -- reg-spacing - The number of bytes between register starts. Defaults to 1 -- reg-shift - The amount to shift the registers to the right to get the data - into bit zero. - -Example: - -smic@fff3a000 { - compatible = "ipmi-smic"; - device_type = "ipmi"; - reg = <0xfff3a000 0x1000>; - interrupts = <0 24 4>; - reg-size = <4>; - reg-spacing = <4>; -}; diff --git a/Documentation/devicetree/bindings/ipmi/ipmi-smic.yaml b/Documentation/devicetree/bindings/ipmi/ipmi-smic.yaml new file mode 100644 index 000000000000..c859e0e959b9 --- /dev/null +++ b/Documentation/devicetree/bindings/ipmi/ipmi-smic.yaml @@ -0,0 +1,56 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/ipmi/ipmi-smic.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: IPMI device bindings + +description: IPMI device bindings + +maintainers: + - Corey Minyard + +properties: + compatible: + enum: + - ipmi-kcs + - ipmi-smic + - ipmi-bt + + reg: + maxItems: 1 + + interrupts: + description: Interface is polled if this property is omitted. + maxItems: 1 + + reg-size: + description: The access width of the register in bytes. Defaults to 1. + allOf: + - $ref: /schemas/types.yaml#/definitions/uint32 + - enum: [1, 2, 4, 8] + + reg-spacing: + $ref: /schemas/types.yaml#/definitions/uint32 + description: The number of bytes between register starts. Defaults to 1. + + reg-shift: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + The amount of bits to shift the register content to the right to get + the data into bit zero. + +required: + - compatible + - reg + +examples: + - | + smic@fff3a000 { + compatible = "ipmi-smic"; + reg = <0xfff3a000 0x1000>; + interrupts = <0 24 4>; + reg-size = <4>; + reg-spacing = <4>; + }; -- 2.17.1