Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp989000pxb; Fri, 22 Apr 2022 16:05:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxiXWHo6SkOwkVQVKDBfDgYz6W6FTDuAXR1+aWEO/8YKt/6JDuCwEMIwpBb2yfK7Yln8HU0 X-Received: by 2002:a63:4459:0:b0:39d:3808:7c84 with SMTP id t25-20020a634459000000b0039d38087c84mr5801037pgk.130.1650668746623; Fri, 22 Apr 2022 16:05:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650668746; cv=none; d=google.com; s=arc-20160816; b=tuvGF2cPDcFClv1K5fK9srNoHNSS+Xs6ihsOlVYSD2WeAI2qQN3Vv0M9tBs/entzqW nV9ixNDpXKUvtxRk60laboxxsAhrJ2vAIQClFvmyGtXTTqJaW8Puv0HgGR5C6vYoeFWI fDbX+GE62fTJxwjy2Fd5V5D0IfWPpdslurMWdIbWJFHq1lbmDddOQTVbCQ4yYjn8t49h CzRYepLd0ZfLNksWa0g7SADvUw63iieZWybjywUvkFSIepRTuXaXuWv1Ug9QG8QmaVNL JgcCFyO6KOZ+la2fT7CVYBiDTP1hORFycKHpaQAwiIJmlyCGJgrDsfaGuO7YfLn/21Dr iooQ== 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=kkCuqc4lk8yEfR89vQV9qFVj6wArnvFzUiFZKzKZjrc=; b=Z13qU8jIQDNnYiAW0pfcF3F+wU8roC9++rSIEoQ4pJH4FB9HTq+RSRphVT9EhZwbBE yVm+cHxscdsBcMo9BcXUN51bHXZh0rYea1UEJcsZRfaUILb57j+bz/uSz/sSs8vKytNw SFyqT4J5GX6WW5FJ1YCKqj6TzrR0ujhsg/HdoOCw7dzNRhagzWxWATM7zVNJaZvDWUIy 8r0Zb3RvVCdsPO5nJU61jeij8CFsDOkJEbsc1B/TN9aLMMLnK4obWw53/Z7Wewrq1Vmk A2fQmTXGAJKm4YSfg/HS9CvLiYGKgfpthJmP8/syn33Ha99bSxEGZoFv1YhqMf+c098a nQVA== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id c63-20020a621c42000000b00505b362ec7esi8494377pfc.207.2022.04.22.16.05.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 16:05:46 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (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 938B2290999; Fri, 22 Apr 2022 14:34:40 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229779AbiDVVhZ (ORCPT + 99 others); Fri, 22 Apr 2022 17:37:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229771AbiDVVhX (ORCPT ); Fri, 22 Apr 2022 17:37:23 -0400 Received: from mail-oa1-x2c.google.com (mail-oa1-x2c.google.com [IPv6:2001:4860:4864:20::2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 012333FE7EB; Fri, 22 Apr 2022 13:38:03 -0700 (PDT) Received: by mail-oa1-x2c.google.com with SMTP id 586e51a60fabf-e5ca5c580fso9817569fac.3; Fri, 22 Apr 2022 13:38:03 -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=kkCuqc4lk8yEfR89vQV9qFVj6wArnvFzUiFZKzKZjrc=; b=iXtxvrsf8iVjOHl0ej3x+QTE3vMlJkiXBBLikQb4fM2UlPpdO9nIac3bkYbbSfkO3D DrI1X8vSyzNLn2j7c7k4qFRN/l5vonnxzZD8if3aa2vfl9+tN+oNKHJWT966w9BjTKAC 4M4zucWvOKgKbHaYnC+gun0njTMdn0qL5Ug/BuhO7yMkvLYgFnPmqOIwwcieXEamubrw b1iOLW86DAXliAkdSHZ5nj21A0SnudyymcscArPFmp8PP5S/MpqjMx7ESf9FEn0IzlGv MjOtg3vZGD5AyaXNHjSNKJ4bC6UIJXO/1IjeSJJLz80U6KdfsTEBvFkqMr/LDY0Rcd05 1gCw== X-Gm-Message-State: AOAM530PU5/xWU2vVG5xP66nIbKniPxuo9DJQBh/qJWciFZHpO8evTdx yhWDZT5LNumadtMaE33NZfhI3XaTrw== X-Received: by 2002:a05:6808:2102:b0:322:7e22:da6 with SMTP id r2-20020a056808210200b003227e220da6mr7154736oiw.92.1650655367417; Fri, 22 Apr 2022 12:22:47 -0700 (PDT) Received: from xps15.. (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.googlemail.com with ESMTPSA id h186-20020acab7c3000000b002ef5106248asm1069591oif.45.2022.04.22.12.22.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 12:22:47 -0700 (PDT) From: Rob Herring To: Vitor Soares , Alexandre Belloni , Krzysztof Kozlowski Cc: linux-i3c@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] dt-bindings: i3c: Convert snps,dw-i3c-master to DT schema Date: Fri, 22 Apr 2022 14:22:36 -0500 Message-Id: <20220422192236.2594577-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 Synopsys Designware I3C master to DT schema format. Signed-off-by: Rob Herring --- .../bindings/i3c/snps,dw-i3c-master.txt | 41 --------------- .../bindings/i3c/snps,dw-i3c-master.yaml | 52 +++++++++++++++++++ 2 files changed, 52 insertions(+), 41 deletions(-) delete mode 100644 Documentation/devicetree/bindings/i3c/snps,dw-i3c-master.txt create mode 100644 Documentation/devicetree/bindings/i3c/snps,dw-i3c-master.yaml diff --git a/Documentation/devicetree/bindings/i3c/snps,dw-i3c-master.txt b/Documentation/devicetree/bindings/i3c/snps,dw-i3c-master.txt deleted file mode 100644 index 07f35f36085d..000000000000 --- a/Documentation/devicetree/bindings/i3c/snps,dw-i3c-master.txt +++ /dev/null @@ -1,41 +0,0 @@ -Bindings for Synopsys DesignWare I3C master block -================================================= - -Required properties: --------------------- -- compatible: shall be "snps,dw-i3c-master-1.00a" -- clocks: shall reference the core_clk -- interrupts: the interrupt line connected to this I3C master -- reg: Offset and length of 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 3 -- #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@2000 { - compatible = "snps,dw-i3c-master-1.00a"; - #address-cells = <3>; - #size-cells = <0>; - reg = <0x02000 0x1000>; - interrupts = <0>; - clocks = <&i3cclk>; - - eeprom@57{ - compatible = "atmel,24c01"; - reg = <0x57 0x0 0x10>; - pagesize = <0x8>; - }; - }; diff --git a/Documentation/devicetree/bindings/i3c/snps,dw-i3c-master.yaml b/Documentation/devicetree/bindings/i3c/snps,dw-i3c-master.yaml new file mode 100644 index 000000000000..5b8b43e6f1e4 --- /dev/null +++ b/Documentation/devicetree/bindings/i3c/snps,dw-i3c-master.yaml @@ -0,0 +1,52 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/i3c/snps,dw-i3c-master.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Synopsys DesignWare I3C master block + +maintainers: + - Vitor Soares + +allOf: + - $ref: i3c.yaml# + +properties: + compatible: + const: snps,dw-i3c-master-1.00a + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - clocks + - interrupts + +unevaluatedProperties: false + +examples: + - | + i3c-master@2000 { + compatible = "snps,dw-i3c-master-1.00a"; + #address-cells = <3>; + #size-cells = <0>; + reg = <0x02000 0x1000>; + interrupts = <0>; + clocks = <&i3cclk>; + + eeprom@57{ + compatible = "atmel,24c01"; + reg = <0x57 0x0 0x10>; + pagesize = <0x8>; + }; + }; +... -- 2.32.0