Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4303763ybg; Mon, 21 Oct 2019 07:01:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqzhwzxRj8s6TSXTQMzShKbtgKYDdiWHim7fcZm5Xv4PogSGVcH4dW69kMM2ig2LqCRziFi6 X-Received: by 2002:a17:906:298f:: with SMTP id x15mr22094344eje.50.1571666496166; Mon, 21 Oct 2019 07:01:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571666496; cv=none; d=google.com; s=arc-20160816; b=mntZgRXK2y45NiQZY+ddJhS9qPlQbehGBbsD151Wb5cAaRdsCbK7yzzmL6oq1IjmVi zjjAA8jxxzwJkxAMuTSNovIhN+u5HrmD4bO5W9UQbLIr6IOWBvCcPLQX2PG3AVkiktgE 2cVzRUDcSWhCoTsI70Jp5IMco1CPqQx7JHd7v7e1Ngh7WiglGop2t9q4/TDxHg05yjUE 5wRoMorxlRLAIuLP3VKJCRK4Xq7upwWfQ8pSJkMmFWhMV6cmVS22p1RN6zsqsvqeNqrY Un6/yMf51ekXpNwNGSzoVScpPDRKf/5TQhqK/d3mQniJr8TOOk2d3C4v4rtGJ5Fy/UGd ZeNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=b4PdhEAPlrJQgSDJoJmuRL85NouJ7ey9Hv6QLfk9XSI=; b=o3ZwdlhVsrTBlcDSEgQCF4jjU0suM2lI0vriAam2x0+KW6985fql2C4YKe5tH46WDK vz2gkl9dQFnBJD5sEC14Jc7Gz1PRX4aHcxMtbr7Cv8mi0tCcs48iF7JunDflHF5sqSp4 VvtHTrSozJFVopfz0JFWuYvrLgr4BmWNO/v3qbLHiV9XaiH7xo4OI1etydjJ3sVsipNm P95XeYVnk7e9cJjCAC9d9KBqdRAAVqQmGH1Fy/zy9/4wB2rgrs5Z0e7TkWDExJiPhn2G pXF3g8n5j7m4xAAx9Btdc8ew7CozrYOBjCfNa2Po6ODeJJmudba7DuVG976hEpQ0SibU zjVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=y3Y9t5g8; 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 g53si2674882edb.313.2019.10.21.07.01.12; Mon, 21 Oct 2019 07:01:36 -0700 (PDT) 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; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=y3Y9t5g8; 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 S1728957AbfJUOA6 (ORCPT + 99 others); Mon, 21 Oct 2019 10:00:58 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:55451 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727152AbfJUOA6 (ORCPT ); Mon, 21 Oct 2019 10:00:58 -0400 Received: by mail-wm1-f66.google.com with SMTP id g24so4292249wmh.5 for ; Mon, 21 Oct 2019 07:00:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=b4PdhEAPlrJQgSDJoJmuRL85NouJ7ey9Hv6QLfk9XSI=; b=y3Y9t5g8UXkkEk/00dSN4HFMLQNR1yycajblNd55Mh8D4IdBHbxNogOQw5CGlkWQgH YwcR14PT4H4XOyFvcpLXb2jem2PSSobcm/TCiRmHYUETMTAjbhcKpRgg+RXAR31DUH8w LEKk6fiQb9Vv3bXL39T06H2HOUcudGeaO3dCD4xEm5VdtPaYDtn3BXmOlWi/tbCDhzPk a6/lGZIUFpgwK4nchsikZ9XwgrQxydZFvzJlXZ9Au4AzEBHHCaXo6ZywnfrY0FTP9TvE OID99UCsNywxSBSGRKmhM5WLpFU7uedHqlisx7W+DKJoiBOHlHY/fiVOd8ChrhyHNE/1 jw9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=b4PdhEAPlrJQgSDJoJmuRL85NouJ7ey9Hv6QLfk9XSI=; b=PHRnNhqY+OXaUvXHifo1F/ix2ynuAs/DGSSmoMXCULG1DY5ZFsypY2A6pTlQu2tpZm TyNjP3jwT1mTLQigcWa4bh9yRJsGv0ri6nOWi+eUg4mBgOcWxUs88AEtx882PWcEDBf6 YENHPYeEtVbSW5NXeOg0FaxxAnYeCVtvbffJCH0UX/97OyIyfR40Zllf7fmmhhNSvG+M koLwQX9i1Iun+ecCDZZm/nRyMIZC2eoSJaUlFdowr9AwDjP2fVd01XW8CUxKcclo514R zv73xxOtlB5sFN93pNITgvokcAHk+vGRswIHjF84QCIcgWkdCjd9hWEno4MuaYIBhpsf I+2A== X-Gm-Message-State: APjAAAWUwNld99sU/n83m1PlIDFru/FFVC+bExRMBEVypJ2BfsL2H/rZ 1aovJAw7nV1dZ8lPYq98rZdPnq6YZGgBYw== X-Received: by 2002:a1c:68c5:: with SMTP id d188mr3522182wmc.139.1571666455508; Mon, 21 Oct 2019 07:00:55 -0700 (PDT) Received: from localhost.localdomain (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id f83sm14859235wmf.43.2019.10.21.07.00.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Oct 2019 07:00:55 -0700 (PDT) From: Neil Armstrong To: robh+dt@kernel.org Cc: devicetree@vger.kernel.org, linux-i2c@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Neil Armstrong , Beniamino Galvani Subject: [PATCH] dt-bindings: i2c: meson: convert to yaml Date: Mon, 21 Oct 2019 16:00:53 +0200 Message-Id: <20191021140053.9525-1-narmstrong@baylibre.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that we have the DT validation in place, let's convert the device tree bindings for the Amlogic I2C Controller over to YAML schemas. Cc: Beniamino Galvani Signed-off-by: Neil Armstrong --- .../bindings/i2c/amlogic,meson6-i2c.yaml | 53 +++++++++++++++++++ .../devicetree/bindings/i2c/i2c-meson.txt | 30 ----------- 2 files changed, 53 insertions(+), 30 deletions(-) create mode 100644 Documentation/devicetree/bindings/i2c/amlogic,meson6-i2c.yaml delete mode 100644 Documentation/devicetree/bindings/i2c/i2c-meson.txt diff --git a/Documentation/devicetree/bindings/i2c/amlogic,meson6-i2c.yaml b/Documentation/devicetree/bindings/i2c/amlogic,meson6-i2c.yaml new file mode 100644 index 000000000000..49cad273c8e5 --- /dev/null +++ b/Documentation/devicetree/bindings/i2c/amlogic,meson6-i2c.yaml @@ -0,0 +1,53 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright 2019 BayLibre, SAS +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/i2c/amlogic,meson6-i2c.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Amlogic Meson I2C Controller + +maintainers: + - Neil Armstrong + - Beniamino Galvani + +allOf: + - $ref: /schemas/i2c/i2c-controller.yaml# + +properties: + compatible: + enum: + - amlogic,meson6-i2c # Meson6, Meson8 and compatible SoCs + - amlogic,meson-gxbb-i2c # GXBB and compatible SoCs + - amlogic,meson-axg-i2c # AXG and compatible SoCs + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + minItems: 1 + +required: + - compatible + - reg + - interrupts + - clocks + +examples: + - | + i2c@c8100500 { + compatible = "amlogic,meson6-i2c"; + reg = <0xc8100500 0x20>; + interrupts = <92>; + clocks = <&clk81>; + #address-cells = <1>; + #size-cells = <0>; + + eeprom@52 { + compatible = "atmel,24c32"; + reg = <0x52>; + }; + }; diff --git a/Documentation/devicetree/bindings/i2c/i2c-meson.txt b/Documentation/devicetree/bindings/i2c/i2c-meson.txt deleted file mode 100644 index 13d410de077c..000000000000 --- a/Documentation/devicetree/bindings/i2c/i2c-meson.txt +++ /dev/null @@ -1,30 +0,0 @@ -Amlogic Meson I2C controller - -Required properties: - - compatible: must be: - "amlogic,meson6-i2c" for Meson8 and compatible SoCs - "amlogic,meson-gxbb-i2c" for GXBB and compatible SoCs - "amlogic,meson-axg-i2c"for AXG and compatible SoCs - - - reg: physical address and length of the device registers - - interrupts: a single interrupt specifier - - clocks: clock for the device - - #address-cells: should be <1> - - #size-cells: should be <0> - -For details regarding the following core I2C bindings see also i2c.txt. - -Optional properties: -- clock-frequency: the desired I2C bus clock frequency in Hz; in - absence of this property the default value is used (100 kHz). - -Examples: - - i2c@c8100500 { - compatible = "amlogic,meson6-i2c"; - reg = <0xc8100500 0x20>; - interrupts = <0 92 1>; - clocks = <&clk81>; - #address-cells = <1>; - #size-cells = <0>; - }; -- 2.22.0