Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4314844rwd; Sat, 17 Jun 2023 11:04:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Rp5CgVK+sbiE0zkDFYG9ju/Bcmokza8w+uWpg3J+BBydKEzjZWWVRbqwBMuV+4Ui5TwVU X-Received: by 2002:a05:6a00:2353:b0:666:b22d:c6e0 with SMTP id j19-20020a056a00235300b00666b22dc6e0mr6638472pfj.11.1687025084985; Sat, 17 Jun 2023 11:04:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687025084; cv=none; d=google.com; s=arc-20160816; b=nd0dpoCF6ShqOqmZkKWzdSHqPDjheLXGM3VZObK344Tqc+6K/580pVw7u0AOpPdjPe ptkB+konKyqHKt4ST/E4GXHd+p+TO6nyV9aT2pzBhqtPbkdVfFio2h2OjD8GtgVzSPgn tkQle9IhyM240Dk4olqdfUGzsfNX0YLJ4k6BIe9RU6gssaHVsa9mCPnBiZ3Re9QTznp0 7it+NZ6e1GU7jCljC4IuKmfgYVlGI4NmxCaFTmPRV3o/8hV5tvvUd2Z9wgnGBjvHC67b +icaa54JZXPxgZSXtJQ8NNFJzqFcIRaQVX2u1N+FMjioJZapN9zDLEnIS19RYBZRm25m QJZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=3wWvAWGQ6I3uVKkcwPxaCb9XbFnbEdfsJNuIbFzDQyw=; b=br/xjGdvkyC4wmNV19b14lxhWRLT2Ziv1W+95GKCQnK3d9VaO0nZvZ2azGS3m8CNA4 T9cNNtKA0u8CtdjUlEE/pHkXdW5h7An+rCIvL5aDlzeLoeLE/ZZtC7oP1+fJu6ytFdiH 5f98yTuNbchFs1UxEef/q9mWXedtOYOMc4tDYBcrkO8baVN7aQDdMv+JYahZoKqi3cDQ oG7irrT92rxAzEh2FDbbS/Qzf/uXrZQrS3EN7iYyYRDrntgv9tQoaTT77POTcFku1J+8 /Tso6hlJ44QESmb+91WvhYjn9rdQ1Y8w6ninIE/v4ErGkn7IDEVC5CZQO95J1H7Dn17E KWIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="aRdxjDw/"; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i10-20020a639d0a000000b005440e9ee0b2si14251101pgd.569.2023.06.17.11.04.32; Sat, 17 Jun 2023 11:04:44 -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=@linaro.org header.s=google header.b="aRdxjDw/"; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231174AbjFQRmh (ORCPT + 99 others); Sat, 17 Jun 2023 13:42:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231804AbjFQRmf (ORCPT ); Sat, 17 Jun 2023 13:42:35 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F1031AA for ; Sat, 17 Jun 2023 10:42:33 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-987accb4349so103681566b.0 for ; Sat, 17 Jun 2023 10:42:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687023752; x=1689615752; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=3wWvAWGQ6I3uVKkcwPxaCb9XbFnbEdfsJNuIbFzDQyw=; b=aRdxjDw/1uvXnJ//jlaQwyS/TqDcl1/7LzBQg/R1EXypY+rnCSK/aDPHd6Q+4ARnv4 +NGnyV7dsW8AqrGmOwr/rR/VMnnoMMuDleT1XolFanwT3Kgg/pD9yP/t1KZl2GV3AH2j AZ7OuposYBI5ZkMMLmh/SKduk8jAxGkr6PFfpHHDhqjOcr/g2KkxXV+a6lk/CygopQ3j x/+8JctmHVdvEvaDP4TZBDZi5y2qR8yQMAKQwdTO1UPbtICOJVQ4Tmk/vjKUUT3+kWPG 9Bb4KFGsv84LnW8l0rr4tltcD4pVuRDZD9jAHZhRxHlAgdpSDg/6P5R8vxdC0LmUzS/2 rMpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687023752; x=1689615752; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=3wWvAWGQ6I3uVKkcwPxaCb9XbFnbEdfsJNuIbFzDQyw=; b=ZCYjfQQY0yI/Ay49JJvq3g6l8iE1OF4cCpNa66PNs1OILEAQ8xBVjKvHjj6ZodyvWn bR8JsxQuM32rZAXO/LAXXQtV2+6jwQbsUWMa0BdF6fXLNNkUOsVkHQRREgKZP9C7Kd9i v7xDvoTagCei7mTAJZn/JbkY6SNLwhxaBwp1YP0IADlJL24dBTqK6d2Hdg4RlDEl6Q60 r06EPaBpeI5J67yRvxrKWCoazz12xypo5aceAHrtPkgdfXDF7ayrxajbogWMaMTsIeKF ZGaTfKfHfWANmKLZKv5tI5Cb2FRLxynmm6Oumbz3N3WR6ais/EXq5Ua7Vg4mCxUOwaV/ KWXg== X-Gm-Message-State: AC+VfDwFRzRy8Nb/NnaTeDk9pA3UMiaRql6n9/m3UR/Fd7Tgj9vD6V2A CeRxZ4aWmo3buO8s4bTWgck4Ow== X-Received: by 2002:a17:907:a41e:b0:978:8ecd:fa75 with SMTP id sg30-20020a170907a41e00b009788ecdfa75mr5415289ejc.9.1687023751850; Sat, 17 Jun 2023 10:42:31 -0700 (PDT) Received: from [192.168.1.20] ([178.197.219.26]) by smtp.gmail.com with ESMTPSA id m22-20020a056402051600b0051a4efed295sm51678edv.7.2023.06.17.10.42.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 17 Jun 2023 10:42:31 -0700 (PDT) Message-ID: Date: Sat, 17 Jun 2023 19:42:29 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH 2/3] dt-bindings: backlight: lm3630a: add entries to control boost frequency Content-Language: en-US To: =?UTF-8?Q?Heiko_St=c3=bcbner?= , Maximilian Weigand , Lee Jones , Daniel Thompson , Jingoo Han , Helge Deller , Pavel Machek , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, Maximilian Weigand References: <20230602-lm3630a_boost_frequency-v1-0-076472036d1a@mweigand.net> <20230602-lm3630a_boost_frequency-v1-2-076472036d1a@mweigand.net> <17576d81-a342-0b77-367a-eb9f2b97b734@linaro.org> <7491264.lOV4Wx5bFT@diego> From: Krzysztof Kozlowski In-Reply-To: <7491264.lOV4Wx5bFT@diego> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 On 17/06/2023 18:34, Heiko Stübner wrote: > Am Samstag, 17. Juni 2023, 12:12:17 CEST schrieb Krzysztof Kozlowski: >> On 14/06/2023 21:08, Maximilian Weigand wrote: >>> From: Maximilian Weigand >>> >>> Add 'ti,boost_use_1mhz' to switch between 500 kHz and 1 MHz boost >>> converter switching frequency, and add 'ti,boost_frequency_shift' to >>> activate a frequency shift to 560 kHz or 1.12 MHz, respectively. >>> >>> Signed-off-by: Maximilian Weigand >>> --- >>> .../bindings/leds/backlight/lm3630a-backlight.yaml | 12 ++++++++++++ >>> 1 file changed, 12 insertions(+) >>> >>> diff --git a/Documentation/devicetree/bindings/leds/backlight/lm3630a-backlight.yaml b/Documentation/devicetree/bindings/leds/backlight/lm3630a-backlight.yaml >>> index 3c9b4054ed9a..ef7ea0ad2d25 100644 >>> --- a/Documentation/devicetree/bindings/leds/backlight/lm3630a-backlight.yaml >>> +++ b/Documentation/devicetree/bindings/leds/backlight/lm3630a-backlight.yaml >>> @@ -33,6 +33,18 @@ properties: >>> description: GPIO to use to enable/disable the backlight (HWEN pin). >>> maxItems: 1 >>> >>> + ti,boost_use_1mhz: >> >> No underscores in property names. >> >>> + description: | >> >> Do not need '|' unless you need to preserve formatting. >> >>> + If present, change the boost converter switching frequency from the >>> + default 500 kHz to 1 MHz. Refer to data sheet for hardware requirements. >>> + type: boolean >>> + >>> + ti,boost_frequency_shift: >>> + description: | >>> + If present, change boost converter switching frequency from 500 kHz to >>> + 560 kHz or from 1 Mhz to 1.12 Mhz, respectively. >> >> So just make it a property choosing the frequency, not bools, with >> proper unit suffix. > > i.e. > ti,boost-frequency-hz = ; > with x being 500000, 560000, 1000000, 1120000 > > with the driver failing when the frequency is not achievable > with the two knobs of 1mhz and shift. Yeah, with a default value (500000, I guess). Best regards, Krzysztof