From patchwork Mon Jan 20 13:40:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Vaittinen, Matti" X-Patchwork-Id: 11342191 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7CE2E6C1 for ; Mon, 20 Jan 2020 13:41:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 650E82087E for ; Mon, 20 Jan 2020 13:41:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726982AbgATNlB (ORCPT ); Mon, 20 Jan 2020 08:41:01 -0500 Received: from mail-lj1-f194.google.com ([209.85.208.194]:45740 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726626AbgATNlA (ORCPT ); Mon, 20 Jan 2020 08:41:00 -0500 Received: by mail-lj1-f194.google.com with SMTP id j26so33850477ljc.12 for ; Mon, 20 Jan 2020 05:40:59 -0800 (PST) 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=b7IcMZOZRKM7wABCjaraoN1BhMpdfzJuK/FcI3+K21A=; b=k3FpUKfo+mODjSIOgegQ1MOZUHqm0b7/5a/5bJ3KPpzOQ3gVNjyfTFQK0wANiUBHo8 zIhDtGuMU7YXFb3vRb3L1oaNMd6f9iul/XD7rR9DPFcAfrLKO92LnU5ccTL5l2vajjv2 JtR0pAw5u/xyTk6IPsXFjD1WwNrnHR40LAl9k4icma02JqiuS/v2sUpd2APUBWEQKHKx wRkblBnKUJO4uRoO3ZQImBntikI/QqWaVUeIt+YDfO5xDw82/sRPZgrfuMU1+VWjGeA7 grsPvdMpKLURzaA20+FfgGdHaxM7+kQFekHZr0cwQb183zDa7FWFbNMoqKAQcu1qmnoL rEyA== X-Gm-Message-State: APjAAAX/MwwUsZD4nU6rcELfQgQ69dtd45KaV7l6tIM2XfYVfqZLOMYt phX4dHd0Y48WeLIC9BCBqw9ZFUte X-Google-Smtp-Source: APXvYqxfndlZOCtH4biUMPw/hbnhZkJFqaT1jxxYoYrXIl14m6UFmNgQKG01EWNDQ4AVf3Rvi2hyMw== X-Received: by 2002:a2e:88d6:: with SMTP id a22mr12793672ljk.163.1579527658998; Mon, 20 Jan 2020 05:40:58 -0800 (PST) Received: from localhost.localdomain ([213.255.186.46]) by smtp.gmail.com with ESMTPSA id v16sm3912512lfp.92.2020.01.20.05.40.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jan 2020 05:40:58 -0800 (PST) Date: Mon, 20 Jan 2020 15:40:47 +0200 From: Matti Vaittinen To: matti.vaittinen@fi.rohmeurope.com, mazziesaccount@gmail.com Cc: Lee Jones , Mark Brown , Stephen Boyd , Linus Walleij , linux-clk@vger.kernel.org, linux-gpio@ger.kernel.org Subject: [PATCH v13 01/11] dt-bindings: leds: ROHM BD71282 PMIC LED driver Message-ID: <35bf147cc3077ceda9689655e5a23dad8098dbb2.1579527444.git.matti.vaittinen@fi.rohmeurope.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org Document ROHM BD71828 PMIC LED driver device tree bindings. Signed-off-by: Matti Vaittinen Reviewed-by: Rob Herring Acked-by: Pavel Machek --- .../bindings/leds/rohm,bd71828-leds.yaml | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/rohm,bd71828-leds.yaml diff --git a/Documentation/devicetree/bindings/leds/rohm,bd71828-leds.yaml b/Documentation/devicetree/bindings/leds/rohm,bd71828-leds.yaml new file mode 100644 index 000000000000..b50f4bcc98f1 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/rohm,bd71828-leds.yaml @@ -0,0 +1,52 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/rohm,bd71828-leds.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ROHM BD71828 Power Management Integrated Circuit LED driver + +maintainers: + - Matti Vaittinen + +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. + +select: false + +properties: + compatible: + const: rohm,bd71828-leds + +patternProperties: + "^led-[1-2]$": + type: object + description: + Properties for a single LED. + properties: + #allOf: + #- $ref: "common.yaml#" + rohm,led-compatible: + description: LED identification string + allOf: + - $ref: "/schemas/types.yaml#/definitions/string" + - enum: + - bd71828-ambled + - bd71828-grnled + 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