Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1706049ybg; Sun, 27 Oct 2019 03:18:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqypMQYccpfWkegQ9zM3W/tzdtdUjqv2jJ3CRfYUTDWGxMin5USchLrTI46X96F4d8jwPKPd X-Received: by 2002:a17:906:365a:: with SMTP id r26mr11715365ejb.123.1572171512999; Sun, 27 Oct 2019 03:18:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572171512; cv=none; d=google.com; s=arc-20160816; b=mMi7Bj2xC29zt8v6oue0FzOevR/2CPSvN5KOSWAZKSE1pHiEVrHvG063TvrBHgTViJ rOtCm36CPzKyKPCuskGR9hDMBM+NRiWoJKU5D5F78bhpCea6pDBJZaOOW2rxm3L4euHz y4NjmUNKWQnumjyMUAxoFBQPUD85S7WHiLv4C/jvGb/87h0i+mIHF5LgIX8/ldKJPB5z vnbygaoRvxLbCNSJlc51aOTzRwMgUfnubGZRFcvm46btgrUyYVhzKVypL+0AytR/s+VZ AxoBP7IcB0ERYngr8RLQQ3px0NyussGOTfz3ArDvVX7HE74l9W5CUKRvj6Lv2iXnYlua 8Ffg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=3IpxudYqh0cSrXHsSd20R7gPXReXwAlu/vXTGneJYeA=; b=HB7jcWVVQ0pLSel90Y5s6/5Ameb3Y+w2Jse9/RQr+h/U672LFbZOxVY9Jq4d37mNIE j9FMJvve3IZMFvEGW3+yzCwnlE/bX8sHQZ8Nj7o1b5C1PSk0K/2RR/izShD95zo5RzRx IFTdRtO3NM8LW+0SIW3c9ruMXRAuQEgj4N0xPFi7GTbyg1AFcWu+mT1WWYxtMdtLs3qD 38Wn/FGplajJzVdEdprnYty854Des6tg5s4LjgRmCOsJR41j+8YqAEgl2kgzM5+58mUb CgKVWKcF+FPY14sFRDc0Cjdc2FP45W4skFbqLYQQPEgPsZGiYoTl2w+wdzIBTzpFjUGY 982A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hXSrnSic; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o10si758094edc.39.2019.10.27.03.17.59; Sun, 27 Oct 2019 03:18:32 -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=@gmail.com header.s=20161025 header.b=hXSrnSic; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726699AbfJ0KNi (ORCPT + 99 others); Sun, 27 Oct 2019 06:13:38 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:40739 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726469AbfJ0KNi (ORCPT ); Sun, 27 Oct 2019 06:13:38 -0400 Received: by mail-wr1-f66.google.com with SMTP id o28so6847314wro.7; Sun, 27 Oct 2019 03:13:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=3IpxudYqh0cSrXHsSd20R7gPXReXwAlu/vXTGneJYeA=; b=hXSrnSicmffaawvfQsBwMScW37guK9vJsdCcRiACwyis734sAiZI/nTCvDoOIDsET7 TxtFjanFZ02nUA7cHDwWPIFp3Wx9wPk9pHfz4krCdEpKEoPX88wY3FMAVOWGpc/OX7B7 Bh1E0NNOMzTeVp4Ue0NCazljr31u3LzQ5gMLo8SsI4wQzZaKYBiglONEya/fahW+Ur24 LYh1aPSCIPEnF5yPeMBKq7cfSMD04Tn75BpyUpRxCuL7HuhYqTCa0qEi32R38iOoOK4r CEYbDUa53uUuTladP7ghiETvoYMGUus48sJzOtcbbKyTm+HJp9KLFhdzkdxw26oeLZoq lZSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=3IpxudYqh0cSrXHsSd20R7gPXReXwAlu/vXTGneJYeA=; b=ox4chG7pKQBHEolvO+W9gW2Uq3l8sqTxRto1eYv1NAIgCPj8pESX8BhgFpEsRcovKt 5WjB98wI6UClcj3YhhqhjPFHB/f64zAIKBWliuX6roVCjnOHyD181q+TagAZ3xkVF5zM Q6Izx/olCsfwyLpCMuB03O9CQE6PnaqlhQjhmps3/GmMzotnenLPWEGOFuDAZYII6IcA BmTwbyYeez2wV5PI68JzGHzQg1vs15gpibhXE6ICHOz/P5gfNrDdp6PfE/b5TNP6asmU 0B6qSobEDYBXnUdCcWQWgg3eoBat2fla2AutOO63OwPN6kyGyDC4sxb7qDPZrGprwrho O7Ww== X-Gm-Message-State: APjAAAVbHT3B1pvGatdDSVNX8cEzvcdWA34zebHFoA89/FC5Xd18XF/p jZhtTy4PAUxtL4YPcifgTxA= X-Received: by 2002:a5d:4589:: with SMTP id p9mr10044913wrq.397.1572171214637; Sun, 27 Oct 2019 03:13:34 -0700 (PDT) Received: from gmail.com (host159-41-dynamic.116-80-r.retail.telecomitalia.it. [80.116.41.159]) by smtp.gmail.com with ESMTPSA id d199sm8235130wmd.35.2019.10.27.03.13.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Oct 2019 03:13:33 -0700 (PDT) Date: Sun, 27 Oct 2019 11:12:45 +0100 From: Beniamino Galvani To: Neil Armstrong Cc: robh+dt@kernel.org, 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 Subject: Re: [PATCH] dt-bindings: i2c: meson: convert to yaml Message-ID: <20191027101245.GA2194@gmail.com> References: <20191021140053.9525-1-narmstrong@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191021140053.9525-1-narmstrong@baylibre.com> User-Agent: Mutt/1.12.0 (2019-05-25) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 21, 2019 at 04:00:53PM +0200, Neil Armstrong wrote: > 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. Acked-by: Beniamino Galvani > 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 >