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 E369EC388F7 for ; Sat, 31 Oct 2020 21:34:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9EF9E20739 for ; Sat, 31 Oct 2020 21:34:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=konsulko.com header.i=@konsulko.com header.b="dl9uqpry" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725937AbgJaVeK (ORCPT ); Sat, 31 Oct 2020 17:34:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725917AbgJaVeJ (ORCPT ); Sat, 31 Oct 2020 17:34:09 -0400 Received: from mail-io1-xd44.google.com (mail-io1-xd44.google.com [IPv6:2607:f8b0:4864:20::d44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF9FCC0617A7 for ; Sat, 31 Oct 2020 14:34:09 -0700 (PDT) Received: by mail-io1-xd44.google.com with SMTP id k21so11131002ioa.9 for ; Sat, 31 Oct 2020 14:34:09 -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=cyWbVYpxI2eiNr+hTlgrMCBLxtluwtion8/Gtr8F4AE=; b=dl9uqpryaK4hOoe5YZt/DhAunhfWSrzRb0Uz/qKyqUY7p+wkQgZTdv/aW63iJ4xbd8 hvbVyojIyb61VO8e+l5hmfJe3XRbFN9iULDqJ4CUmz7FuZaeWNlEsevDfk75QhezDJx2 6bt3cnWS++FDrQ6BExB1I7K9QlAI31lVRzowM= 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=cyWbVYpxI2eiNr+hTlgrMCBLxtluwtion8/Gtr8F4AE=; b=NEJpFoKQ/9NdbiGa1BIfheiAKfLLjouyPexwSZ6AJ3+VM6Drgi5lZ41QxmpCW0f6yf vRuhSM5DRhxcY6gSvtOSDeuLaiPZEI3q7Y4VaTp1Q3/x0PIVTD0HIbYfQr+ndNg8EtUT HVP35g9KlUNw2L9ye3CaV1eUdFt9/wnIbazaBXfJPDtfbx0GxB8+xsBs41IYhkGeZAtD HrcnWMg5+fnjGvAqVaLCbRNJPfqMUyTFg/GzyI7YSAPamXwREm1BJjT1i80k5RlDz4Zs iyzNVXVAfjKGv9bagtTKL0ozxAZlcWbpXnYWJUtKyeCejxK2YWknuFjyMGNnlaSpPMCo xyYA== X-Gm-Message-State: AOAM530LAfZGokPNtjoil1R0LgKZNyumEKFoPXXBZgzxki/0TTVbD61f XpWQNPVvY9XCkd8WTZwznxBK36ViQSVsKoLr6GsJqw== X-Google-Smtp-Source: ABdhPJxDkkc71A8u2x86yla4KqX22dyn1dl2gvPFgbuxH/vYMH4oUmgtrCf/NpT/E8wMWPv6yXL1bfZKs8IWAl+BQE8= X-Received: by 2002:a02:234f:: with SMTP id u76mr6572761jau.117.1604180048986; Sat, 31 Oct 2020 14:34:08 -0700 (PDT) MIME-Version: 1.0 References: <20201031184854.745828-1-jic23@kernel.org> <20201031184854.745828-15-jic23@kernel.org> In-Reply-To: <20201031184854.745828-15-jic23@kernel.org> From: Matt Ranostay Date: Sat, 31 Oct 2020 14:33:58 -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 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 > --- > .../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 >