From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F33F2EB64DB for ; Sat, 17 Jun 2023 17:42:37 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id ECB7E10E09F; Sat, 17 Jun 2023 17:42:36 +0000 (UTC) Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by gabe.freedesktop.org (Postfix) with ESMTPS id 85DCA10E09F for ; Sat, 17 Jun 2023 17:42:35 +0000 (UTC) Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-987accb4349so103681466b.0 for ; Sat, 17 Jun 2023 10:42:35 -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=TAgod2RdDW4k8ACQ+BhAX1msnJ8wolXOlzjTkcLzezUFMZIHfzxsgH8f3QiHHYKN4E yPlZhO1uhEI6jDC9xU326r2sG9OHHYT0VLNhM9TwWWcfPRWXYJn8VxPe0fzXtZdMPpsT sFQQHGbxuQQlLOqc7EU+Mnq84nRDqiU3ZlH4zDGHaodGJmzOcOSha5OqHNyt0/+MzY4J /kSbNS6IN8qC8eXVA5uGorZ4yeLAE5qvLRPjD0Sd20GngMq5skcWbWDNa8bhOQIlAJwM GcZq9PuaTIRAP/G4ABqqrmMuwWbBOail6WdM8S0knE9S/OYCiEU6onIeNjf9OMm+MWqm RXGw== X-Gm-Message-State: AC+VfDz2ePvdB1IB9jUYmwH5O2pfrXv/tFWe4nIVcOqtMtvMWFjlw28A BLWtZi82XMogJLnqTvmPH6QuKA== X-Google-Smtp-Source: ACHHUZ5PyeAyyYwAOEyIOLQVoZ7ixv/ktFKK7Bl05nXnE2sYt17DPKOVjyphVc5AwypZukVfvRQ7mg== 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 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-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-fbdev@vger.kernel.org, Maximilian Weigand , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, linux-leds@vger.kernel.org, linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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