Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2057776rdb; Tue, 3 Oct 2023 09:01:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF5QYUqhMKSLwKXjDe8N7pxhZG1wvgwQhXLPIukAkEX3I+3b8isI+s1BXNmMDYQPY2nizqT X-Received: by 2002:a05:6358:430c:b0:13a:a85b:a4dc with SMTP id r12-20020a056358430c00b0013aa85ba4dcmr15171059rwc.29.1696348878094; Tue, 03 Oct 2023 09:01:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1696348878; cv=pass; d=google.com; s=arc-20160816; b=gKL6Rx1ohEY++O2zjWDmy7YkUr3HObh0Iq7RT4eGdC0os+6dEHzMmSgW4Ex/gJvIKf W7n/yw6xxO8nP8UaRXUSnO3Qq9xV18utkXMWvqhheBh5bY6pCK9mrnv3JY4XTYMRDds7 qC75EQfUSqkWGDt+F6PPJSQbSPV++SpfNLrU7As9JFrHR7rf8pNNvFIPq9Uc8KIE7P/9 1V1Iw0qf+FLeYLn0TisPEttQW9WBUNl4EZcRNeSNRJucT5txgPLVUP0SbiqOPd3skRfy 1sVxGy7uz/6whokrcL8VsawsYlF+QLBPorlN81I5vqbBzK8eo5rKc6s14kJA/SmUBF7j KvPQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=F4n94L291UXsAO1OoSELIFe3BwGwBLYgxy3Pu2NnHMc=; fh=Q4VV9CeIYeeihh+j7h4q6DyuYrJi9XeU3RPB1FcXNaE=; b=q82KA29ndIMXZYYkQx05iCOw5k45qNxVE3sw4BIuZVS7O61R17XbTzCMRZbSzTs336 NSkiotW4DZOQLoxOqTZH6E5wWsBxjbIN0UViJz9cO2X0SuGJ2a6EmopXuc5a/hJ61h8C s8ZyET/oXyxiZygLuJSu/Z+KlQFBDnVlqOUJQNj1+3uDU7y2qnk2siuGC76mDJn4fYEH Oppp63V8WiJFqVMFXNJEX31aO4/HmhJ6LIuNhSWj9PaIYDKfdL9NuULUT4XLfa3AGOHJ QuAhkm01OfS/1fiOB6VotVSGWrXyn/rXbkRGYF48ugw3NI/7x13JHpfdXDIhSOX0Zpjd ORUA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@asem.it header.s=selector1 header.b=oLBqZeca; arc=pass (i=1 spf=pass spfdomain=asem.it dkim=pass dkdomain=asem.it dmarc=pass fromdomain=asem.it); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=asem.it Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id c12-20020a056a00248c00b00690f62927casi1838744pfv.178.2023.10.03.09.01.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 09:01:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@asem.it header.s=selector1 header.b=oLBqZeca; arc=pass (i=1 spf=pass spfdomain=asem.it dkim=pass dkdomain=asem.it dmarc=pass fromdomain=asem.it); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=asem.it Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 176C28094777; Tue, 3 Oct 2023 09:00:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240191AbjJCQAn (ORCPT + 99 others); Tue, 3 Oct 2023 12:00:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231888AbjJCQAl (ORCPT ); Tue, 3 Oct 2023 12:00:41 -0400 Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2083.outbound.protection.outlook.com [40.107.247.83]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70956A9; Tue, 3 Oct 2023 09:00:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CpMJLu3oQzgILN1J4YROpIx5JWsQL1HAVvxQIrwe04Opk4dBNPxICpZLhO5mV0QxsgT0zhqe1nyLT/vw+6fdVv0yItBV3wCd+/0/Fb83OaQstk5nRYf3Oh6hWdrPnFWWcfjDcF8nQh3UkRgwucgab3ByF4xUPvIxmINC2GlO8FgnUqDBse7Fd+eEzVlChZ1Hsob8OvAEC7Ml56F/FmVWVZRuE44RdIDm1A5HYcZdWN9RfUaL0i2XM4ZIEW6eTqBeugAb8AcxNfXvMDV32ptHmSDzKYe3GadGCPObAaJ6/NtP8vyXNoEIL1Jz8eGpPS9iQzOltvMWRQyfO5R2tljYlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=F4n94L291UXsAO1OoSELIFe3BwGwBLYgxy3Pu2NnHMc=; b=K75qs2XR9A5loGhmLguIljn/HE2XXQp/gg5voFiVFaBsiAPuArQGUkghyfALDB+u0zb+Mg5Y7S6SROmozR7LEAxNn8W6kv0lJoQhirutx2Eq0isdG1QCdzMrE8YpwC2faPTtG7Di6AtEQ6eYDnXrnjIFfvdUslgbjmjOnJp2r+kYG12Sc9bHuEeqrVQt74pg3KvgkU1ia4DWnEYXrtD5d5vqbCw7rCjUUpV/en6BxpX0mMfy8GokjhbWzQUIjsGA1VEEbufYWyFKM9YNpeFkPjdyM7fultREKmSBSFRgG7Uasxb6VYJlNWHUxqPY941MNh4NkhNEwhLGnFqTdAxydg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=asem.it; dmarc=pass action=none header.from=asem.it; dkim=pass header.d=asem.it; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=asem.it; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=F4n94L291UXsAO1OoSELIFe3BwGwBLYgxy3Pu2NnHMc=; b=oLBqZecacAvviGxzZzTKaEPilDy/3vckFy4L/APdjGUKT+mfQYwRjhwvL7qriU/VD0dbkEhNHWMHnZ6tCr+WrfyqI28oY0Z8hQOkrhPspFEpHkBbv2HuyjyEJvPmcaOzY6Boi3K4HVmsItstS9joZb81AuYix6SwT5UGSiIg8TA= Received: from DU2PR01MB8034.eurprd01.prod.exchangelabs.com (2603:10a6:10:273::14) by DB9PR01MB9246.eurprd01.prod.exchangelabs.com (2603:10a6:10:366::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.21; Tue, 3 Oct 2023 16:00:32 +0000 Received: from DU2PR01MB8034.eurprd01.prod.exchangelabs.com ([fe80::ad2b:a1e7:8828:ba2f]) by DU2PR01MB8034.eurprd01.prod.exchangelabs.com ([fe80::ad2b:a1e7:8828:ba2f%7]) with mapi id 15.20.6838.024; Tue, 3 Oct 2023 16:00:32 +0000 From: Flavio Suligoi To: Daniel Thompson CC: Lee Jones , Jingoo Han , Helge Deller , Pavel Machek , Rob Herring , 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" , Rob Herring Subject: RE: [PATCH v3 1/2] dt-bindings: backlight: Add MPS MP3309C Thread-Topic: [PATCH v3 1/2] dt-bindings: backlight: Add MPS MP3309C Thread-Index: AQHZ76uO1Fb/EPNT/k67j1TrFzld37AtE7aAgAmVcBCAAT5MAIAAXgAg Date: Tue, 3 Oct 2023 16:00:32 +0000 Message-ID: References: <20230925122609.78849-1-f.suligoi@asem.it> <20230926130113.GB4356@aspen.lan> <20231003102138.GB69443@aspen.lan> In-Reply-To: <20231003102138.GB69443@aspen.lan> Accept-Language: it-IT, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=asem.it; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DU2PR01MB8034:EE_|DB9PR01MB9246:EE_ x-ms-office365-filtering-correlation-id: bd36f944-de3d-405f-a678-08dbc429df4e x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: QQPknnIm/etCA39/gf5CSzoAjhItFIL/5g+oTajiZX4uLW1NbAznMIGySXTABmynnO+rep5AYlUiHP1Ran8lEQA5RUzxU/pJQfXl+9kLQF7p2aJK4HQewvbCmM4zcpynTUbAnNEpkz3vRNtqyL0ZLn6EjNgnXPGpOolD40ab5ImLrVxKLeXU8xT2EVqHSEdqBfSJ1UB3SMeuHLHuFhHVd0EwdiHJKoIEd/zFoo5hc+o4RkPRNkzVfJEZsEDabqG1Wo4QTYVsaInJEDLk6dU2J/ndpi8Wv1cEYpgLo7cYKqY5t1GGfDLJSrowmEV93z9lLegiaMe8wmEKY1gjYQ1s1oB9bNCyzS4rxwWwp3ABWDcB1yR2Ki8zP3Gf4KuFQmHMZHgphPF20FOqt7zIHisKBCtbnCHtZ4SMtXqCsrej/skrFIkG3661UMud70h05tNeCu4r6BW6xFce6+NrwWfU0Ygu8u5S5ccz35SP5uJH2kdZyfg3F1FsyWvbxqVhCX/GiSBllSJLt7B6xzFsV8mQ6vxz5yo0Cp3WsN9RsGg46gZmIhtETNzQ4l59zxaw6JX6oLYla/00kf/rGndvgPUDyDraMbRvEz4qWymjiwWn5f5aOkkHQllktOnVZROxdnGA x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU2PR01MB8034.eurprd01.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230031)(39850400004)(396003)(366004)(346002)(136003)(376002)(230922051799003)(1800799009)(64100799003)(451199024)(186009)(54906003)(66946007)(5660300002)(76116006)(316002)(6916009)(64756008)(52536014)(66556008)(66446008)(478600001)(66476007)(7416002)(2906002)(71200400001)(41300700001)(7696005)(6506007)(4326008)(8676002)(8936002)(26005)(9686003)(66899024)(38100700002)(55016003)(38070700005)(122000001)(33656002)(86362001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?lJu/9rToUgFnyxLxTdoJ/gyCTk6jHQcI4oyXXqWTZgDyMoTaDWrf5JHFwx4n?= =?us-ascii?Q?GgvL4UYlp+9JbLpYvuK95Pnon+FIuYKrwHCOB11f7VZRy/UXv+q2pNUUdRLy?= =?us-ascii?Q?WkskGrOKFGPO5OpePh4bcDNpwT4YkbNEyjCIHMoQk6ppxGKt/O+3SVKHA7Z3?= =?us-ascii?Q?6x8OkjPRg2yKTnAfrQ0pDyH3Qyn9b9E//REEQeenVEoYBHTlGJ7IHEr+xzTg?= =?us-ascii?Q?lXc8QvvrS5YXsI36/GrF9HEAW8hD6B0GNVhs5oAGSte119ktjQ2lURFt4f55?= =?us-ascii?Q?trrGBLg0bPntyBtqwuPXndn94LD/W8EsuulFsSGC93Eht0qzBMVQgyVIuEPv?= =?us-ascii?Q?EFl4+XRCOhcbpVnnP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us-ascii?Q?0qte6GD6tV2vbePVvWMqZjRqE5qAdYURD1L57wzk/bJCUDzX4rwu5Pzmmdnl?= =?us-ascii?Q?taOViKAgeQfIwGplgIOpCFSpl5NRZNCQ7vATb53QA49RmPWYSYG8V9Yodmz+?= =?us-ascii?Q?t5FI7wy38USxgE7bZqRIYf5Y/jfSun8m5+RWSjqAivyu1TCPzXnsdRkDfLEa?= =?us-ascii?Q?7N70wFkZy1ndy8RdhRuLh6+8sZSRF0MKaZnSO+LCCa6ibFlRNqATOfudbKLc?= =?us-ascii?Q?zzqtFphAaHe7mQNeTipjrAuRV5T9iUVEHWnMzpzr7f5B/R2B/zAkX4t4DzaM?= =?us-ascii?Q?WhOqoZ0d3bGmEoH/1Uo=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: asem.it X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DU2PR01MB8034.eurprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: bd36f944-de3d-405f-a678-08dbc429df4e X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Oct 2023 16:00:32.1839 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: d0a766c6-7992-4344-a4a2-a467a7bb1ed2 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: LPxyVnC2mSC7UtP3T5UsTN22axMyizDcqkJsSZNAtrTwbvlWdCFwkFJfIwvZndAz9bmUiZ9myCBZDIjw9mVlfw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR01MB9246 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 03 Oct 2023 09:00:52 -0700 (PDT) Hi Daniel, ... > > > > +required: > > > > + - compatible > > > > + - reg > > > > + - max-brightness > > > > > > Why is this mandatory? > > > > > > There's no point in setting max-brightness when running in I2C mode > > > (max- brightness should default to 31 in that case). > > > > > > > > > > + - default-brightness > > > > > > Again. I'm not clear why this needs to be mandatory. > > > > > > > > > > Ok, you are right, I'll remove max-brightness and default-brightness > > from required properties list. I think to change these properties, for > > the pwm dimming, into a clearer: > > > > - brightness-levels (uint32) > > - default-brightness-levels (uint32). > > > > For example: > > > > brightness-levels: > > description: > > Number of brightness levels. The actual brightness > > level (PWM duty cycle) will be interpolated from 0 to this value. > > 0 means a 0% duty cycle (darkest/off), while the brightness-leve= ls > represents > > a 100% duty cycle (brightest). > > $ref: /schemas/types.yaml#/definitions/uint32 > > > > default-brightness-level: > > description: > > The default brightness level (from 0 to brightness-levels) > > $ref: /schemas/types.yaml#/definitions/uint32 > > > > Example: > > brightness-levels =3D <10>; > > default-brightness-level =3D <6>; > > > > What do you think about this solution? >=20 > If you want to introduce a brightness-levels property then I would expect= it to > be defined with the same meaning as pwm-backlight (it's not relevant to t= he > bindings but ideally it would be implemented by refactoring and reusing t= he > code from pwm_bl.c). ok, I'll use the brightness-levels property as used in pwm-backlight >=20 > Same with default-brightness-level although I'm not sure why one wouldn't > just use default-brightness for new bindings (doesn't default-brightness-= level > simply do exactly the same thing as default-brightness). ok for default-brightness instead of default-brightness-level >=20 >=20 > Daniel. Thanks an best regards, Flavio