From patchwork Fri Nov 1 11:32:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matti Vaittinen X-Patchwork-Id: 1187922 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=fi.rohmeurope.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 474Kmr1fTVz9s4Y for ; Fri, 1 Nov 2019 22:32:44 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729322AbfKALcn (ORCPT ); Fri, 1 Nov 2019 07:32:43 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:42035 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725904AbfKALcn (ORCPT ); Fri, 1 Nov 2019 07:32:43 -0400 Received: by mail-lf1-f66.google.com with SMTP id z12so6998289lfj.9; Fri, 01 Nov 2019 04:32:41 -0700 (PDT) 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=uO3cZT0ic0CcFPk2pNLXwRpfiUdZPqVh9kgOa3kAJyw=; b=QfrW169GZbkFEDTpAy5H2KxbjfwVsM5wLUzmGroDHOM8nl6zsKi1+95aqTURU9n7gH OnPscFY7Rgz1Z00k7nS3MJvSli0a4ynDM10Ens6zJf8j8YpTgXyO00LqPkUY1rX4R6Pv IpM+bYoqyXQjDBDxGfja6Xc/c0b5e+S3TW+BSLwpERfL7ewS0alUi6rZPCuQKokobr+u oz/7i66tRe7rXJs+nZmvp1XfkexudV9Cz2bTRF+ftwuq/8wpKGYwwx+luNM73/yB/hbk qH1grvNQdEZBySjyFmg3G6kzLVZ4lP1a94oGBGZRLPmzDAt4Y1CBnpI+m9kR+9lUjUjw DCCg== X-Gm-Message-State: APjAAAUAWHSQWjPc/qfEEzukvvOMFZRQn4GQYtC26KfIyPGNRz1oaDKv hsyG4UeXR9c98s5J7VYqx7k= X-Google-Smtp-Source: APXvYqwuu701wti/qsoFpjZZleMwxBqLpmNNnClhS4X486Ui0XRllnIqWrzHwvFBRzbRkbuTx4NdKw== X-Received: by 2002:a19:8c1c:: with SMTP id o28mr7025580lfd.105.1572607960686; Fri, 01 Nov 2019 04:32:40 -0700 (PDT) Received: from localhost.localdomain ([213.255.186.46]) by smtp.gmail.com with ESMTPSA id t22sm2436245lfg.91.2019.11.01.04.32.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Nov 2019 04:32:40 -0700 (PDT) Date: Fri, 1 Nov 2019 13:32:33 +0200 From: Matti Vaittinen To: matti.vaittinen@fi.rohmeurope.com, mazziesaccount@gmail.com Cc: Jacek Anaszewski , Pavel Machek , Dan Murphy , Rob Herring , Mark Rutland , Lee Jones , Liam Girdwood , Mark Brown , Michael Turquette , Stephen Boyd , Linus Walleij , Bartosz Golaszewski , Alessandro Zummo , Alexandre Belloni , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-rtc@vger.kernel.org Subject: [RFC PATCH v3 04/15] dt-bindings: leds: ROHM BD71282 PMIC LED driver Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Document ROHM BD71828 PMIC LED driver device tree bindings. Signed-off-by: Matti Vaittinen --- Changes from v2 - new patch .../bindings/leds/rohm,leds-bd71828.yaml | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/rohm,leds-bd71828.yaml diff --git a/Documentation/devicetree/bindings/leds/rohm,leds-bd71828.yaml b/Documentation/devicetree/bindings/leds/rohm,leds-bd71828.yaml new file mode 100644 index 000000000000..d8aeac9911ef --- /dev/null +++ b/Documentation/devicetree/bindings/leds/rohm,leds-bd71828.yaml @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/rohm,leds-bd71828.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ROHM BD71828 Power Management Integrated Circuit LED driver + +maintainers: + - Jacek Anaszewski + - Pavel Machek + - Dan Murphy + - Rob Herring + - Mark Rutland + +description: | + This module is part of the ROHM BD71828 MFD device. For more details + see Documentation/devicetree/bindings/mfd/rohm,bd71828-pmic.yaml. + + The LED controller is represented as a sub-node of the PMIC node on the device + tree. + + The device has two LED outputs referred as GRNLED and AMBLED in data-sheet. + +properties: + compatible: + const: rohm,bd71828-led + +patternProperties: + "^led-[1-2]$": + type: object + description: + Properties for a single LED. Nodes must be named as led-1 and led-2. + properties: + #$ref: "common.yaml#" + function: + description: + Purpose of LED as defined in dt-bindings/leds/common.h + $ref: "/schemas/types.yaml#/definitions/string" + color: + description: + LED colour as defined in dt-bindings/leds/common.h + $ref: "/schemas/types.yaml#/definitions/uint32" + +required: + - compatible