Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4254208rwd; Sat, 17 Jun 2023 09:58:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7uQ0bH8b5BRJslMCaO5mCcLxIGdyoc3pRXk5QZp1hRGCoPBxYfAwjnA4tHnoOLEd0JuQkI X-Received: by 2002:a05:6a21:6da1:b0:109:38b4:a210 with SMTP id wl33-20020a056a216da100b0010938b4a210mr7064781pzb.29.1687021090103; Sat, 17 Jun 2023 09:58:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687021090; cv=none; d=google.com; s=arc-20160816; b=neqJ0kcKrPD0zgnbsW8oeSw0i+12m9jS+X0E84cNFSx1zeKeYomen0k5m8m3LJksMX ZeOjYGBQtWz+KPG50cFV/N3c5F8fTy+O4ba7VmM8S7ePNaDETq9G0X5n50cpMPO9Vgkf wvybAUV+m8L6PucbiJK28iuSF4WwRQsRIxHpG/ZkagQBAYJGgwJFyY2QtezJjtQzOhh/ /ZJ2Vh6gK7IJUfLdGm5byp86r3gyhRRZJ8OW+TCnRY/yn8sgKw5GLXGJiDSKAaMOXdRV nzP9rTOjTOt/Ddx6Krt8KkcaFP4Gg1MX1vt4c/Q8XsBohvFBcNxJoRq7+LsC8/vuQ/6a U1Qw== 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; bh=hZDlrfdpUDq1r/AfREGDVqgkHBb6+RxfKuiUgh+obos=; b=vgVUwWr3YuV0wW5muY+Lduss5BCZEv2awYPkYyWiHo/um2Jr7keEXaQ2TjZozAC6Hl 4t3tfDPX6u5VibPnYXaAcoun+1B4uqZxMy6lXfXcpzE7w70arGdrMQhNjjUPOKtHwZy4 jx7LB+uSfkb/gITcetVXs87vp54rNKd7hhZ0Y8Pf+zAMLQHihEk8JXUK9LuVseKhUnr+ t+sfZBTFR9Uu/djD0r0/4dYHDSYsleU24PHrxq1waK2tbgRbFi9kSjjnLxpnkT7l6rTg Q+an9fc8LN8ZYOT9/8S0ntuX/zmLKy9+RCy2GhH8OHOkBAZj9La96vWSjX3mnR4Z7KoI 8pDg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p37-20020a635b25000000b00550e8b3614asi5158501pgb.901.2023.06.17.09.57.40; Sat, 17 Jun 2023 09:58:10 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231374AbjFQQep (ORCPT + 99 others); Sat, 17 Jun 2023 12:34:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229745AbjFQQeo (ORCPT ); Sat, 17 Jun 2023 12:34:44 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 370D41B5; Sat, 17 Jun 2023 09:34:40 -0700 (PDT) Received: from i53875b22.versanet.de ([83.135.91.34] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qAYsg-0007Kt-6E; Sat, 17 Jun 2023 18:34:30 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Maximilian Weigand , Lee Jones , Daniel Thompson , Jingoo Han , Helge Deller , Pavel Machek , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Krzysztof Kozlowski 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 Subject: Re: [PATCH 2/3] dt-bindings: backlight: lm3630a: add entries to control boost frequency Date: Sat, 17 Jun 2023 18:34:28 +0200 Message-ID: <7491264.lOV4Wx5bFT@diego> In-Reply-To: <17576d81-a342-0b77-367a-eb9f2b97b734@linaro.org> 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> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS, T_SCC_BODY_TEXT_LINE,T_SPF_HELO_TEMPERROR 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 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.