Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4670638rdb; Fri, 15 Sep 2023 08:54:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEib1VRypW/wPmwRqjb1R/2vp6IU8P/d72DLHO0sofsud+Kcym6iPyzNBoNgQvqluIRb+Vd X-Received: by 2002:a17:90b:10f:b0:25e:a8ab:9157 with SMTP id p15-20020a17090b010f00b0025ea8ab9157mr1820387pjz.22.1694793265211; Fri, 15 Sep 2023 08:54:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694793265; cv=none; d=google.com; s=arc-20160816; b=BPyJ3somSG7eC54/Oth2mB0yTxzmQrRMpLzxBHOhfC0aBL2IhI988tqf4F3Z8+n3qk wGl5rKzSln+FKk/L8Km+RbkbuU+apflY3RwK0QngAOY/b5dj2RWPF8qySrVZJvcoVYbB GhuwiOuGRTuuDTVMN7Ry+zq39p1D7TX/5Qm/CCnRTR9gSt4w9+lwGyLCZm7GEfXo1xtO WQtPNEGO4mRcRtxBW5RWHBCqS1xPUem71tEk6KlbV5EPgVY1Omf/vdEopZpKJyj0+gHR plKI2DNPZ8AW8FOkY8Sk8WfEZj+12yyb/ZZFEOkSNhK8PqzpGv+9IBZUR91HQjTDQ5sf 2aeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=OBBkmJJzriEiBh4djA23kVb2rzO5Dn15dS9OJ6amYxQ=; fh=Ldk8WK5xW+p0omDSI30QCqmL7kOPQrPWU2NPLS+HLKg=; b=pIwoPY9JxDZDpaaMQ0F3P9CJUNA/6cIKTqxINKQYeGimn560ZAKHdc+GzWtjRi3Ng5 f2LRhvUk7MFQDCQK6SRMBt4kL/AxwISDiRlftYqj0xIvHeoUVtRqoy/cEUazgOjoStgX +/wCmbeByDwHOHBtE8BsnGfYTHek+YX3OUaaxzjmYVXzdOob7bejw+V84HSwuZAjoRHq 3dQZm1b4SugHrN1ul3H1UiwIF4SogLHSjlVJgyJCC43JFTyo5vXbyw+Or9gotWB3302Q qDZvh7wqtgZM8FCXqfqiESrZTVI4MqkpYl5zSFFK6e+7qrBEnLVBmnE9Q7LSsItg+VZA ZuQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mGaHVCjj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id z20-20020a17090ab11400b0026349debbdfsi5567047pjq.136.2023.09.15.08.54.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 08:54:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mGaHVCjj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 1DEE18228801; Fri, 15 Sep 2023 08:50:08 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236213AbjIOPtd (ORCPT + 99 others); Fri, 15 Sep 2023 11:49:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236260AbjIOPtD (ORCPT ); Fri, 15 Sep 2023 11:49:03 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43D6A2711; Fri, 15 Sep 2023 08:48:44 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 54CB4C433C8; Fri, 15 Sep 2023 15:48:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694792923; bh=sOwpmNRFVnGigJMQ+ZdHsMJYHy/EbqpeUv7bUvvmRaE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mGaHVCjjcF+i8dJ3eDD3xDgzW8bUZ/mziODR02cl3jT83hZE14zonQZxdO4PVWAnx X91ofFeXMH87QO39wBdAYpeX2hbDeGdNLaQXlr1hIK0uCcpOfRfyHnE7A4s8l85/U4 flwLjbnhsc/pKqNbRhcaGcrpedGKzBEVL18xxpkM87EhuDjeuD9cx74vvj5QvFwAn1 SmLj4zI/Mp1/JLwksdu8Ow5+4cAKbWfekluMfH+z2wszUfsu/tEnQFWpmPZQqUF/rc 4Go8cOxJomE0yVdVFRf3rKDSvSu+QKCWucJiEydCuQBM4GpCGXo69+ailwPisYUlfo 5bnS4c26BYPsg== Received: (nullmailer pid 3779770 invoked by uid 1000); Fri, 15 Sep 2023 15:48:41 -0000 Date: Fri, 15 Sep 2023 10:48:41 -0500 From: Rob Herring To: Flavio Suligoi Cc: Lee Jones , Daniel Thompson , Jingoo Han , Helge Deller , Pavel Machek , Krzysztof Kozlowski , Conor Dooley , dri-devel@lists.freedesktop.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/2] dt-bindings: backlight: Add MPS MP3309C Message-ID: <20230915154841.GA3776155-robh@kernel.org> References: <20230915140516.1294925-1-f.suligoi@asem.it> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230915140516.1294925-1-f.suligoi@asem.it> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Fri, 15 Sep 2023 08:50:08 -0700 (PDT) On Fri, Sep 15, 2023 at 04:05:15PM +0200, Flavio Suligoi wrote: > The Monolithic Power (MPS) MP3309C is a WLED step-up converter, featuring a > programmable switching frequency to optimize efficiency. > The brightness can be controlled either by I2C commands (called "analog" > mode) or by a PWM input signal (PWM mode). > This driver supports both modes. > > For device driver details, please refer to: > - drivers/video/backlight/mp3309c_bl.c > > The datasheet is available at: > - https://www.monolithicpower.com/en/mp3309c.html > > Signed-off-by: Flavio Suligoi > --- > > v2: > - remove useless properties (dimming-mode, pinctrl-names, pinctrl-0, > switch-on-delay-ms, switch-off-delay-ms, reset-gpios, reset-on-delay-ms, > reset-on-length-ms) > - add common.yaml# > - remove already included properties (default-brightness, max-brightness) > - substitute three boolean properties, used for the overvoltage-protection > values, with a single enum property > - remove some conditional definitions > - remove the 2nd example > v1: > - first version > > .../bindings/leds/backlight/mps,mp3309c.yaml | 73 +++++++++++++++++++ > 1 file changed, 73 insertions(+) > create mode 100644 Documentation/devicetree/bindings/leds/backlight/mps,mp3309c.yaml > > diff --git a/Documentation/devicetree/bindings/leds/backlight/mps,mp3309c.yaml b/Documentation/devicetree/bindings/leds/backlight/mps,mp3309c.yaml > new file mode 100644 > index 000000000000..99ccdba2c08f > --- /dev/null > +++ b/Documentation/devicetree/bindings/leds/backlight/mps,mp3309c.yaml > @@ -0,0 +1,73 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/leds/backlight/mps,mp3309c.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: MPS MP3309C backlight > + > +maintainers: > + - Flavio Suligoi > + > +description: | > + The Monolithic Power (MPS) MP3309C is a WLED step-up converter, featuring a > + programmable switching frequency to optimize efficiency. > + It supports two different dimming modes: > + > + - analog mode, via I2C commands (default) > + - PWM controlled mode. > + > + The datasheet is available at: > + https://www.monolithicpower.com/en/mp3309c.html > + > +allOf: > + - $ref: common.yaml# > + > +properties: > + compatible: > + const: mps,mp3309c > + > + reg: > + maxItems: 1 > + > + pwms: > + description: if present, the backlight is controlled in PWM mode. > + maxItems: 1 > + > + enable-gpios: > + description: GPIO used to enable the backlight in "analog-i2c" dimming mode. > + maxItems: 1 > + > + mps,overvoltage-protection-microvolt: > + description: Overvoltage protection (13.5V, 24V or 35.5V). If missing, the > + hardware default of 35.5V is used. default: 35500000 instead of prose saying the same thing. With that, Reviewed-by: Rob Herring > + enum: [ 13500000, 24000000, 35500000 ] > + > + mps,no-sync-mode: > + description: disable synchronous rectification mode > + type: boolean > + > +required: > + - compatible > + - reg > + - max-brightness > + - default-brightness > + > +unevaluatedProperties: false > + > +examples: > + - | > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + /* Backlight with PWM control */ > + backlight_pwm: backlight@17 { > + compatible = "mps,mp3309c-backlight"; > + reg = <0x17>; > + pwms = <&pwm1 0 3333333 0>; /* 300 Hz --> (1/f) * 1*10^9 */ > + max-brightness = <100>; > + default-brightness = <80>; > + overvoltage-protection-microvolt = <24000000>; > + }; > + }; > -- > 2.34.1 >