Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp1271252imk; Sun, 3 Jul 2022 22:42:29 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uEMTkEvo6YWJpKpaMIza1Z/ypUcgCIDCu8iLNF2xn+vTd21XTbO9NF80bDFSW70kEEKCUT X-Received: by 2002:a05:6402:5388:b0:435:71b:5d44 with SMTP id ew8-20020a056402538800b00435071b5d44mr35579713edb.364.1656913348842; Sun, 03 Jul 2022 22:42:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656913348; cv=none; d=google.com; s=arc-20160816; b=rtv/07cBm+RKHY1zyW+1HiItM7/Uj5ctHlGME0fAd+Bhb8myVO0AybdH6g3PHiZuIM TSHVTVhQ5IaQJyUYsFxSvQ7tGUaaP435hXmT3pZc44BBXC3noWWD6P0A9Ut7r6COAhuc drybbf+yPe0iIh7tdO30JA4c2wHDl8TKmpYH01pasNe4TQVbacJLV4kNiimVSeeuKK/c 9OtfbyrmUm96bLMHoFm3iUMosqMLSy2SszjWV/m0wV/J4kK9M9iVB2T3xqampwrYD+pE 541qG1k4ShZ3OD+zWQOJvtO4PeXm2V4hQxj33uUhMeHFziEE8V3JJaAd5z3edcQoFNll VygQ== 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:cc:to:from :dkim-signature; bh=yWWIzp3zgslezCNul6+nxXbGngGq0I4WyiRjetX+/Ak=; b=hg4Iq5HhFYm4rQL4nSwyioK6fcmPtphAPC8yYaAV7jvmU8vATnshEtZsk8XswgcbEB zEgdAwtDhWrS6/DACQBEsEWV1Mx2i8PZl1w8k+IrB9Nw8x6uTXNE07Y/Ya2h7U/Q/o8P ep8bCBkMRqhD8OHNqmda+BfV0+Bap4CrUGrQcoeI9n2fnY8Iq7PAPQbM1q4Lehy+eouY bBwYWZHa02U66MssqYVS2yB8U+gvijF7ticQGC3MaAID3rLiCqtDVeqfJz0AJmELzdut uvcfHlput91CW0wr+ym8sGGRko5gox4PZ01W+5Oc91JRsopEFoM9n1IU8KvJ4QH8GNO5 NjPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="A/PWT5+n"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hd44-20020a17090796ac00b00711ca15cd48si8118318ejc.939.2022.07.03.22.42.04; Sun, 03 Jul 2022 22:42:28 -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=pass header.i=@gmail.com header.s=20210112 header.b="A/PWT5+n"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231376AbiGDFkk (ORCPT + 99 others); Mon, 4 Jul 2022 01:40:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232943AbiGDFkQ (ORCPT ); Mon, 4 Jul 2022 01:40:16 -0400 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D8C16307; Sun, 3 Jul 2022 22:39:59 -0700 (PDT) Received: by mail-pl1-x633.google.com with SMTP id k14so7657063plh.4; Sun, 03 Jul 2022 22:39:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=yWWIzp3zgslezCNul6+nxXbGngGq0I4WyiRjetX+/Ak=; b=A/PWT5+nf7UihBmh5/6QOuqbLHvlsNKycwDpmbxUcdzaotHw/AtLjUtfCyO4hMUhhZ HhIFMz+ed4k/QoYrmKUqrLAr3SjooLZaOunS3q/P1a733hJjFsNRdSWSjEQlSgchE0Xf 3aZvcm0Oqv0U2HeQhc4dAYdco87H792NaA40ZosUb4XxjbQZx7xCx9fycsC+VdPmkh5h DXObLLs8j+6ljVvlQIoBfC2xQQWbdWoJnHthNZ1W6HLlwDZLHSolkmNC7gQlWNMGYLjZ xxmRHL495X9uhp9NRKQKN4Bc60ZWQCtnU4H2I4iJxqzkkPdfCemd9UcCzqoLobu3VdA9 fukw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=yWWIzp3zgslezCNul6+nxXbGngGq0I4WyiRjetX+/Ak=; b=dxzxLfI2lLpClE20YRNPcr4K8n7Fo5MAGt+1mEvcq3TJGoVg4b7FEGPnyP5/EdzVJL UCeUK0MDXhWPjnR1/2lqFuNbj4G1Fmdchc9jlTxsHaDRdFz577tq9aLe8OQvCIjh0VJD /zGz4iBckgCqR9INMdGgcQK1syuvg9lyEB9eg9Mj5kjvdHRQ4SsOrtnLTdjrTg19XHla VrIRv4eBuD+3MJ2At9/QOBt5/GIiNDMhs2l4Xd4ulyINUDdkFV8hPNmVxpbtmOhrkXRk UUkmdZEVMTEor4oqBMNlYwXo2EwmD2dwv0V7DLCNj8af0UNEzh39rIYNYw27kZ67vf1J MJlw== X-Gm-Message-State: AJIora8IV83scaD79uqtgT/saR5yTUWtL11Mq1KeDb8i0DEiukE8jbkY 72aRhl/Yzu3q9aYKJo8BiXI= X-Received: by 2002:a17:903:11d2:b0:167:8a0f:8d4b with SMTP id q18-20020a17090311d200b001678a0f8d4bmr34505404plh.78.1656913198762; Sun, 03 Jul 2022 22:39:58 -0700 (PDT) Received: from RD-3580-24288.rt.l (42-72-4-255.emome-ip.hinet.net. [42.72.4.255]) by smtp.gmail.com with ESMTPSA id h24-20020a635318000000b0040dffa7e3d7sm13904507pgb.16.2022.07.03.22.39.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Jul 2022 22:39:58 -0700 (PDT) From: ChiaEn Wu To: lee.jones@linaro.org, daniel.thompson@linaro.org, jingoohan1@gmail.com, pavel@ucw.cz, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, matthias.bgg@gmail.com, sre@kernel.org, chunfeng.yun@mediatek.com, gregkh@linuxfoundation.org, jic23@kernel.org, lars@metafoo.de, lgirdwood@gmail.com, broonie@kernel.org, linux@roeck-us.net, heikki.krogerus@linux.intel.com, deller@gmx.de Cc: chiaen_wu@richtek.com, alice_chen@richtek.com, cy_huang@richtek.com, dri-devel@lists.freedesktop.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-usb@vger.kernel.org, linux-iio@vger.kernel.org, linux-fbdev@vger.kernel.org, szunichen@gmail.com, Rob Herring Subject: [PATCH v4 05/13] dt-bindings: backlight: Add Mediatek MT6370 backlight Date: Mon, 4 Jul 2022 13:38:53 +0800 Message-Id: <20220704053901.728-6-peterwu.pub@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220704053901.728-1-peterwu.pub@gmail.com> References: <20220704053901.728-1-peterwu.pub@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 From: ChiYuan Huang Add mt6370 backlight binding documentation. Signed-off-by: ChiYuan Huang Reviewed-by: Rob Herring --- .../leds/backlight/mediatek,mt6370-backlight.yaml | 92 ++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/backlight/mediatek,mt6370-backlight.yaml diff --git a/Documentation/devicetree/bindings/leds/backlight/mediatek,mt6370-backlight.yaml b/Documentation/devicetree/bindings/leds/backlight/mediatek,mt6370-backlight.yaml new file mode 100644 index 0000000..d674212 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/backlight/mediatek,mt6370-backlight.yaml @@ -0,0 +1,92 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/backlight/mediatek,mt6370-backlight.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek MT6370 Backlight + +maintainers: + - ChiaEn Wu + +description: | + This module is part of the MT6370 MFD device. + The MT6370 Backlight WLED driver supports up to a 29V output voltage for + 4 channels of 8 series WLEDs. Each channel supports up to 30mA of current + capability with 2048 current steps (11 bits) in exponential or linear + mapping curves. + +allOf: + - $ref: common.yaml# + +properties: + compatible: + const: mediatek,mt6370-backlight + + default-brightness: + minimum: 0 + maximum: 2048 + + max-brightness: + minimum: 0 + maximum: 2048 + + enable-gpios: + description: External backlight 'enable' pin + maxItems: 1 + + mediatek,bled-pwm-enable: + description: | + Enable external PWM input for backlight dimming + type: boolean + + mediatek,bled-pwm-hys-enable: + description: | + Enable the backlight input-hysteresis for PWM mode + type: boolean + + mediatek,bled-pwm-hys-input-th-steps: + $ref: /schemas/types.yaml#/definitions/uint8 + enum: [1, 4, 16, 64] + description: | + The selection of the upper and lower bounds threshold of backlight + PWM resolution. If we choose selection 64, the variation of PWM + resolution needs more than 64 steps. + + mediatek,bled-ovp-shutdown: + description: | + Enable the backlight shutdown when OVP level triggered + type: boolean + + mediatek,bled-ovp-microvolt: + enum: [17000000, 21000000, 25000000, 29000000] + description: | + Backlight OVP level selection. + + mediatek,bled-ocp-shutdown: + description: | + Enable the backlight shutdown when OCP level triggerred. + type: boolean + + mediatek,bled-ocp-microamp: + enum: [900000, 1200000, 1500000, 1800000] + description: | + Backlight OC level selection. + + mediatek,bled-channel-use: + $ref: /schemas/types.yaml#/definitions/uint8 + description: | + Backlight LED channel to be used. + Each bit mapping to: + - 0: CH4 + - 1: CH3 + - 2: CH2 + - 3: CH1 + minimum: 1 + maximum: 15 + +required: + - compatible + - mediatek,bled-channel-use + +additionalProperties: false -- 2.7.4