Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2264103rwl; Thu, 13 Apr 2023 04:11:27 -0700 (PDT) X-Google-Smtp-Source: AKy350ZUPw/yyNdv6dynGeQqe3ZCKgJBEF5xeHgMVb6mUG1jxrXvRPtwkeWDNuFvwx9fRYCQb67z X-Received: by 2002:a17:90a:9309:b0:23d:133a:62cc with SMTP id p9-20020a17090a930900b0023d133a62ccmr1641231pjo.17.1681384287146; Thu, 13 Apr 2023 04:11:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681384287; cv=none; d=google.com; s=arc-20160816; b=I/59zT+ds67BYEnE1JM5Luf1NinbAvSxvFRzadY58yQta0u76AT7KwOVonn/UHpgLl ysR9F2KB6Oxk0bJRtSPNw9nRQkQ76eXEVve7hFPh9XArtaa2dMs4QWT3kFC2YZVqQZ6v Dp3295TSlhAimF76uWzvSFQA0adTbTN7V7oFUIiXuHl6S92KyNmjsuzVMSBgp5NyGBW0 JBbnMekxC0COZF1fl+jo639QN5FFCIYuOnYz+yXZqy7KzoAfWHfMtGqS7xSijUU3briJ pm1Vmx5Jl01y+k6Ujn+WtEaz5ws7MvEwtgGe9UrtPtUXg89SIUeDYzX3P1b9u7A7YwKP o5Eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=nIEviHIHu/na4SL+ypr6v80+lzIPVZNHcuSShs5qVYg=; b=PrDk5p2p0A2zwGCtxSSiQTAjYCZ9ZFxdF0uNBtEA8w6sLC4Rj5pyAknOdFRuZTDQfk MMrn5dUFpu+H/wN4zOwq6bgbwC12zv83PyGBVOVXuVAtHk8SWzKAE4thyCpYikl9uBd0 DoELWDgeKqKNZObLD4akwCNsHzKFE9H94Y0LTdqXrfG93iPXdYXemPqaxoLIUlDm3CKb FyjUR7A3iNWZvnMV8o/57VnrVnY3UpPLbh/TK+X/xFRWpcwWc4LBrkogOdKLcFcXFYZm wgEojm1ocPSz/Fkn0cG9eAl1jRDJBKmUotvcrlHB+IEY/v7W2pWq48tFwQErCWQ/ABvN 9s8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20220719 header.b=nbnfhyD3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k20-20020a170902761400b0019cdd3e2aecsi1718140pll.312.2023.04.13.04.11.16; Thu, 13 Apr 2023 04:11:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@kemnade.info header.s=20220719 header.b=nbnfhyD3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230134AbjDMLDZ (ORCPT + 99 others); Thu, 13 Apr 2023 07:03:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbjDMLDV (ORCPT ); Thu, 13 Apr 2023 07:03:21 -0400 Received: from mail.andi.de1.cc (mail.andi.de1.cc [IPv6:2a01:238:4321:8900:456f:ecd6:43e:202c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5D213C31; Thu, 13 Apr 2023 04:03:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20220719; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:To:From:Sender:Reply-To:Cc: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=nIEviHIHu/na4SL+ypr6v80+lzIPVZNHcuSShs5qVYg=; b=nbnfhyD3lZ44du31Gza+w5vzp7 pZoiHH0wMf6sgA/+BZfrvt7kOieNWNNESHhg9Xxq7zop7oxQGtKYnQ0C39hZ/nFN7Et7azTD/qCrc qh3xGk5Y7eVHAcLd1oVoyWSfU0dnKAz4hDicyH161RP5rToNtqboHb+KbPe5swxy4zIJI2AK356+T dKOx3PCzOphHCcEHBEkjw2HvBP0IP2QjG1UxDRh4FYtcKQPA2x++8DWIuXJkFm4aRXD+F/gQFRxg3 1V/6SQAD7rvSsbc8ENv6oCOqUQ28Tc5RXeYSpJSh+5GYeRj5cxP2DaOPwjL3cir4XAJZS3oQMgGBk G1D/O64g==; Received: from p200300ccff17dc001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:ff17:dc00:1a3d:a2ff:febf:d33a] helo=aktux) by mail.andi.de1.cc with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1pmujR-0003My-Rk; Thu, 13 Apr 2023 13:03:14 +0200 Received: from andi by aktux with local (Exim 4.96) (envelope-from ) id 1pmujR-001ItZ-1j; Thu, 13 Apr 2023 13:03:13 +0200 From: Andreas Kemnade To: pavel@ucw.cz, lee@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, andreas@kemnade.info, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Matti Vaittinen Subject: [PATCH v3 1/2] dt-bindings: leds: Add ROHM BD2606MVV LED driver Date: Thu, 13 Apr 2023 13:03:06 +0200 Message-Id: <20230413110307.310944-2-andreas@kemnade.info> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230413110307.310944-1-andreas@kemnade.info> References: <20230413110307.310944-1-andreas@kemnade.info> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.0 (-) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document ROHM BD2606MVV LED driver devicetree bindings. Signed-off-by: Andreas Kemnade --- .../bindings/leds/rohm,bd2606mvv.yaml | 81 +++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/rohm,bd2606mvv.yaml diff --git a/Documentation/devicetree/bindings/leds/rohm,bd2606mvv.yaml b/Documentation/devicetree/bindings/leds/rohm,bd2606mvv.yaml new file mode 100644 index 0000000000000..e4327d4cdefa5 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/rohm,bd2606mvv.yaml @@ -0,0 +1,81 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/rohm,bd2606mvv.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ROHM BD2606MVV LED controller + +maintainers: + - Andreas Kemnade + +description: + The BD2606 MVV is a programmable LED controller connected via I2C that can + drive 6 separate lines. Each of them can be individually switched on and off + but the brightness setting is shared between two of them. + + Datasheet is available at + https://fscdn.rohm.com/en/products/databook/datasheet/ic/power/led_driver/bd2606mvv_1-e.pdf + +properties: + compatible: + const: rohm,bd2606mvv + + reg: + maxItems: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + enable-gpios: + maxItems: 1 + description: GPIO pin to enable/disable the device. + +patternProperties: + "^led@[0-6]$": + type: object + $ref: common.yaml# + unevaluatedProperties: false + + properties: + reg: + minimum: 0 + maximum: 6 + + required: + - reg + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + led-controller@66 { + compatible = "rohm,bd2606mvv"; + reg = <0x66>; + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0x0>; + color = ; + function = LED_FUNCTION_POWER; + }; + + led@2 { + reg = <0x2>; + color = ; + function = LED_FUNCTION_STATUS; + }; + }; + }; + +... -- 2.39.2