Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp983078pxb; Fri, 22 Apr 2022 15:56:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+vT/wZZgjeCcblX1MbAyBw4/VzY8BcFA5peRe0MOGJ3ufAYDpqZgftd3MWSO6d2V0cQ8S X-Received: by 2002:a65:4b85:0:b0:399:8cd:5270 with SMTP id t5-20020a654b85000000b0039908cd5270mr5652914pgq.418.1650668209561; Fri, 22 Apr 2022 15:56:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650668209; cv=none; d=google.com; s=arc-20160816; b=mIKwaky+NbUT/YiEwmqn+UCFZ44uEr+ffstDQhqoYyAP1Y93A7jgIM6w/Syhfjhi/8 rn27+kbN8DpAaDjd0PFp9CuuWNHN8Z+O/2RDcbKpzSGWjZG/opvnfw0aEAsBoC4N/0BJ LGrmGAOb86ZCcs02hL1Td16vad6NdDFD7HqqQMxhLP4k6XwpSx32DCV63/snCDMYu4nz pff/0avcYuLGLApLU90pa4YFo1pwOKeMLmT3MHQpos+a1h5FlHtsD5fvP1D5ob1sySbT /MC1sEt3o3+lQlOQSiACASMLIABIQKx6TwNEVwAQ+lCkFBAKImbCYnqzoi5v/IFOXrJ9 /WxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=ESSxqxOQpi/fkkAwzK1UrVnLgRLoSXvjLv+Y8gGFxH8=; b=bq6Nxr6xYMXyI2yaZnAbLqoIzlQ9CaSyoyEjR4eQ96jLUuVWgkzhpTfSrBFUZWN33M JV91+w+UX+odoNEXvDCxFfUviKXSqAP8yO9FhKPrAzO833EJDsj0Ga+PgY5e9SLohW6l V7j35pTo3Xim0VvGoXVm7nxgx1saiv+iuC+tyZ8v8sy5RN0S+L2NpGSolhr2mwTmcigs SJ9kR1BTjaUcUoVYx5OpbYOrsrtvIJE9Bw8g5BqrEPoQbQ6dQxNOob4MI90Ls7Syr7XZ ZkERwJz7uQ2bZG4qFcnDYctO5LbAbJS2xBdz4b7wYSJ7mS2w7R4+twVwNPLziPKdbdrB hGhw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id h19-20020a056a00231300b004fa3a8dffa2si9507553pfh.89.2022.04.22.15.56.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 15:56:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5F1761EE8BF; Fri, 22 Apr 2022 13:47:32 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229461AbiDVUmu (ORCPT + 99 others); Fri, 22 Apr 2022 16:42:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbiDVUmt (ORCPT ); Fri, 22 Apr 2022 16:42:49 -0400 Received: from mail-oi1-f173.google.com (mail-oi1-f173.google.com [209.85.167.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D380FC41B; Fri, 22 Apr 2022 12:40:06 -0700 (PDT) Received: by mail-oi1-f173.google.com with SMTP id e189so10124488oia.8; Fri, 22 Apr 2022 12:40:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ESSxqxOQpi/fkkAwzK1UrVnLgRLoSXvjLv+Y8gGFxH8=; b=KBSV6/zs/OISGl5rNqgfUwsQpwwM8US73rqNfg8cwsA7s+1WvAYGfca106l63TUgi7 vCSTPUZKvCXcFpg63yf+F23S9+fFyIA5pxeEVFxJlFIh0WAhFfV0T/fBl5HAuk5MKWnM d3sPGtmICGbNdP4wAD3WwRGesr2+lrLJqFjSUzxMNWV2kdDdKWOcu3h6UZdI24zvrnq3 k/NU2Ca4XRu+MdMieuF/wkFjvG4C+sVI2n0QPX4NS73ThU1yb2VlBXMLMtpwRB1eV8A3 D9k3ywDevLc8Ut1Ub6EA8hYlbxooq98+2aa0JJmES87QL5ax1lPsYTl+VcRX55isdI/y 5jRA== X-Gm-Message-State: AOAM530NTMCvAWbhWeSBqIA5Icx3Q3293D04h8ow9vWsCX4s+kYfdp4h 6dP6pDYak5TTxuR+JvYML4WF2T78Cw== X-Received: by 2002:a05:6870:2314:b0:e2:a480:eb4d with SMTP id w20-20020a056870231400b000e2a480eb4dmr2580363oao.133.1650655353558; Fri, 22 Apr 2022 12:22:33 -0700 (PDT) Received: from xps15.. (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.googlemail.com with ESMTPSA id oa9-20020a056870bc0900b000e60e510d5esm928487oab.25.2022.04.22.12.22.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 12:22:33 -0700 (PDT) From: Rob Herring To: =?UTF-8?q?Przemys=C5=82aw=20Gaj?= , Alexandre Belloni , Krzysztof Kozlowski , Boris Brezillon Cc: linux-i3c@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] dt-bindings: i3c: Convert cdns,i3c-master to DT schema Date: Fri, 22 Apr 2022 14:22:23 -0500 Message-Id: <20220422192224.2594098-1-robh@kernel.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert the Cadence I3C master to DT schema format. This fixes a warning as it is used in the i3c.yaml example. The "nintendo,nunchuk" is not documented by a schema, so change the example child device to something which is documented. Signed-off-by: Rob Herring --- .../bindings/i3c/cdns,i3c-master.txt | 43 ------------- .../bindings/i3c/cdns,i3c-master.yaml | 60 +++++++++++++++++++ 2 files changed, 60 insertions(+), 43 deletions(-) delete mode 100644 Documentation/devicetree/bindings/i3c/cdns,i3c-master.txt create mode 100644 Documentation/devicetree/bindings/i3c/cdns,i3c-master.yaml diff --git a/Documentation/devicetree/bindings/i3c/cdns,i3c-master.txt b/Documentation/devicetree/bindings/i3c/cdns,i3c-master.txt deleted file mode 100644 index 3716589d6999..000000000000 --- a/Documentation/devicetree/bindings/i3c/cdns,i3c-master.txt +++ /dev/null @@ -1,43 +0,0 @@ -Bindings for cadence I3C master block -===================================== - -Required properties: --------------------- -- compatible: shall be "cdns,i3c-master" -- clocks: shall reference the pclk and sysclk -- clock-names: shall contain "pclk" and "sysclk" -- interrupts: the interrupt line connected to this I3C master -- reg: I3C master registers - -Mandatory properties defined by the generic binding (see -Documentation/devicetree/bindings/i3c/i3c.yaml for more details): - -- #address-cells: shall be set to 1 -- #size-cells: shall be set to 0 - -Optional properties defined by the generic binding (see -Documentation/devicetree/bindings/i3c/i3c.yaml for more details): - -- i2c-scl-hz -- i3c-scl-hz - -I3C device connected on the bus follow the generic description (see -Documentation/devicetree/bindings/i3c/i3c.yaml for more details). - -Example: - - i3c-master@0d040000 { - compatible = "cdns,i3c-master"; - clocks = <&coreclock>, <&i3csysclock>; - clock-names = "pclk", "sysclk"; - interrupts = <3 0>; - reg = <0x0d040000 0x1000>; - #address-cells = <1>; - #size-cells = <0>; - i2c-scl-hz = <100000>; - - nunchuk: nunchuk@52 { - compatible = "nintendo,nunchuk"; - reg = <0x52 0x0 0x10>; - }; - }; diff --git a/Documentation/devicetree/bindings/i3c/cdns,i3c-master.yaml b/Documentation/devicetree/bindings/i3c/cdns,i3c-master.yaml new file mode 100644 index 000000000000..cc40d25358ec --- /dev/null +++ b/Documentation/devicetree/bindings/i3c/cdns,i3c-master.yaml @@ -0,0 +1,60 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/i3c/cdns,i3c-master.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cadence I3C master block + +maintainers: + - Boris Brezillon + +allOf: + - $ref: i3c.yaml# + +properties: + compatible: + const: cdns,i3c-master + + reg: + maxItems: 1 + + clocks: + maxItems: 2 + + clock-names: + items: + - const: pclk + - const: sysclk + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - clocks + - clock-names + - interrupts + +unevaluatedProperties: false + +examples: + - | + i3c-master@d040000 { + compatible = "cdns,i3c-master"; + clocks = <&coreclock>, <&i3csysclock>; + clock-names = "pclk", "sysclk"; + interrupts = <3 0>; + reg = <0x0d040000 0x1000>; + #address-cells = <3>; + #size-cells = <0>; + i2c-scl-hz = <100000>; + + eeprom@57{ + compatible = "atmel,24c01"; + reg = <0x57 0x0 0x10>; + pagesize = <0x8>; + }; + }; +... -- 2.32.0