From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 52915C388F7 for ; Sat, 31 Oct 2020 21:36:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0D47620739 for ; Sat, 31 Oct 2020 21:36:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=konsulko.com header.i=@konsulko.com header.b="KkMCNU8f" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726287AbgJaVgH (ORCPT ); Sat, 31 Oct 2020 17:36:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725917AbgJaVgH (ORCPT ); Sat, 31 Oct 2020 17:36:07 -0400 Received: from mail-io1-xd42.google.com (mail-io1-xd42.google.com [IPv6:2607:f8b0:4864:20::d42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FF2EC0617A7 for ; Sat, 31 Oct 2020 14:36:07 -0700 (PDT) Received: by mail-io1-xd42.google.com with SMTP id p7so11168850ioo.6 for ; Sat, 31 Oct 2020 14:36:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IqiiJZ1Jn+duZvhe/kUIlmnyEO4OpOKe0K3m+hAK0iM=; b=KkMCNU8fRz3Re1k67t8bOoaMojFl37v+t+zbRzrtWiYkjjY2KWfL2tbAkIeITPbPSL P3YVFlPvT7vxflpJZRLx6VyWSCtKpwaQkYq8fzm/pb9CPKLdMtetkxsLWIbaJjjlpShE YGQAxj7qb+tz9LBATgri8YcBjQnyI9iEIqtKg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=IqiiJZ1Jn+duZvhe/kUIlmnyEO4OpOKe0K3m+hAK0iM=; b=sKBqrDC1ndR7BMF51XSWdi4WQ3m17AyUiDYgaPKUd9kaM6i/vq5eqBdQmsLqve7oZ7 tb45I0rb+ciVpj2AWWIfv0C6j3tAOlT8su3tlbY/0C+j/qIGcrjFRn+IE8QycIxA2/k7 e7n/FKGrWJm34e6UkHaYzDocF3Nfr/FTi10r776PVSFgHxLGWDnzGPsfiBis0F087+7R uNKiiUM0gYTz00nNfsutqGKPIMFY3VNVryCwnmT/zuRrb5E6Wp5G2qM14JB+1vN2AG4D GWSYdZlu2rM5J0+8+2geHa2cRCjE/m7DM+PBiHkX2zCn/o2xs8Fs+uzDYjimje3uVhwL HcwA== X-Gm-Message-State: AOAM530XAiX8fBSuauNFhpRdlHIKq/3ZeqRT4dF/7E+qqJ/xwKq0stXq 3dsFT7EuD3f1E85FdqbtnbTJnOwYrT8S03S3vGldXA== X-Google-Smtp-Source: ABdhPJy2e2hCfFbsSsmelvBJuBk7YsXrTsAF+RYBohnCKiwJpz9/sV6IQhpeUbRdr6ofJ1x3uXW0UIdoCL/U+SUcmuU= X-Received: by 2002:a6b:b28d:: with SMTP id b135mr1422938iof.95.1604180166734; Sat, 31 Oct 2020 14:36:06 -0700 (PDT) MIME-Version: 1.0 References: <20201031184854.745828-1-jic23@kernel.org> <20201031184854.745828-15-jic23@kernel.org> In-Reply-To: From: Matt Ranostay Date: Sat, 31 Oct 2020 14:35:56 -0700 Message-ID: Subject: Re: [PATCH 14/46] dt-bindings:iio:light:avago,apds9960: txt to yaml conversion To: Jonathan Cameron Cc: "open list:IIO SUBSYSTEM AND DRIVERS" , Rob Herring , devicetree@vger.kernel.org, Jonathan Cameron , Matt Ranostay Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Sat, Oct 31, 2020 at 2:33 PM Matt Ranostay wrote: > > On Sat, Oct 31, 2020 at 11:51 AM Jonathan Cameron wrote: > > > > From: Jonathan Cameron > > > > Very simple binding that we could move into trivial-devices.yaml > > with a small loss of documentation. > > > > Signed-off-by: Jonathan Cameron > > Cc: Matt Ranostay > > Acked-by: Matt Ranostay Actually still Acked-by but could you change my email below to my Konsulko one? Thanks, Matt > > --- > > .../bindings/iio/light/apds9960.txt | 21 --------- > > .../bindings/iio/light/avago,apds9960.yaml | 44 +++++++++++++++++++ > > 2 files changed, 44 insertions(+), 21 deletions(-) > > > > diff --git a/Documentation/devicetree/bindings/iio/light/apds9960.txt b/Documentation/devicetree/bindings/iio/light/apds9960.txt > > deleted file mode 100644 > > index c53ddb81c4aa..000000000000 > > --- a/Documentation/devicetree/bindings/iio/light/apds9960.txt > > +++ /dev/null > > @@ -1,21 +0,0 @@ > > -* Avago APDS9960 gesture/RGB/ALS/proximity sensor > > - > > -https://www.avagotech.com/docs/AV02-4191EN > > - > > -Required properties: > > - > > - - compatible: must be "avago,apds9960" > > - - reg: the I2c address of the sensor > > - - interrupts : the sole interrupt generated by the device > > - > > - Refer to interrupt-controller/interrupts.txt for generic interrupt client > > - node bindings. > > - > > -Example: > > - > > -apds9960@39 { > > - compatible = "avago,apds9960"; > > - reg = <0x39>; > > - interrupt-parent = <&gpio1>; > > - interrupts = <16 1>; > > -}; > > diff --git a/Documentation/devicetree/bindings/iio/light/avago,apds9960.yaml b/Documentation/devicetree/bindings/iio/light/avago,apds9960.yaml > > new file mode 100644 > > index 000000000000..eae8c7327c0f > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/iio/light/avago,apds9960.yaml > > @@ -0,0 +1,44 @@ > > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/iio/light/avago,apds9960.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: Avago APDS9960 gesture/RGB/ALS/proximity sensor > > + > > +maintainers: > > + - Matt Ranostay > > + > > +description: | > > + Datasheet at https://www.avagotech.com/docs/AV02-4191EN > > + > > +properties: > > + compatible: > > + const: avago,apds9960 > > + > > + reg: > > + maxItems: 1 > > + > > + interrupts: > > + maxItems: 1 > > + > > +additionalProperties: false > > + > > +required: > > + - compatible > > + - reg > > + > > +examples: > > + - | > > + i2c { > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + light-sensor@39 { > > + compatible = "avago,apds9960"; > > + reg = <0x39>; > > + interrupt-parent = <&gpio1>; > > + interrupts = <16 1>; > > + }; > > + }; > > +... > > -- > > 2.28.0 > >