Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2678462rdb; Wed, 4 Oct 2023 08:18:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFabS90RCrwcgeE4wQsgyxnp7vEa0vUsvitqJ5K7v5+FfsjjWsZAGlGPzZmpZtIJ7FcI6H0 X-Received: by 2002:a05:6a21:4841:b0:148:c3ea:fb6c with SMTP id au1-20020a056a21484100b00148c3eafb6cmr2264391pzc.36.1696432718158; Wed, 04 Oct 2023 08:18:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1696432718; cv=pass; d=google.com; s=arc-20160816; b=tg+72OTOnUn5D0AaNrLgQO7bmnqobXg6Z8/X7UpyfQwyHsHr6mGdGY5ZoJFb3wigjY chjAgygEVKrKqOxNK87/ubFVyVIozRdXTpLJJ/uDictY5E2UC1zmd+O16u8fNvlTd3ss YwvRU/V+UclLL2xULMqpdPuLMoEJokxvxpEvwwpXNNzX+jcEhFRxvUK+b+Rrt4PI+VtC Su4FlCO0ckIcYyXyUww+Pzyb4uAdlVqKEK3yUp+s6V3AukQIk4N5zn56XVqzz5KI/wxX KWnoB0OLaj/tK2pQUw81ma5t+4W3hhlOjil+JEo2iuoVi8qBp72KbIz/yPfBEDI6WkS4 cDLQ== 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=h7v6nDhaUwiuENxl9EW1PnekAKk8hpRD9elLSa6/VL8=; fh=Q4VV9CeIYeeihh+j7h4q6DyuYrJi9XeU3RPB1FcXNaE=; b=NNJ3KON93RDf3Wo+HCgNRtRJLKBX5VdyoBrugl6WkrjFGDl8PQnJd3cHrT69nqiGLW fAVvX2O3j3AuFV+plK1q7Q+rLt/t+UQwC7IGVvTzdy4u6l02rmMH9yQPfuT5cnIyyksM EPWUlC42P+km3Avo9BOJ9Y95QEYru6TX5JLc/qmHcmS+ycBLRY7qZ6URY0dVAwH1IYlT r3ZccUXw7i8hHWcVy2lTodcd/1ove7b1FyVXId0YJxwDirAJZ+Wfmp+o9uA/ziR4faPa mBhm8LRC/D6aKVhihRgxV8bYe3erA8eam88t9ZkWBKVcKUIHY6ENx88wwoXogMmOUGW8 uwzQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@asem.it header.s=selector1 header.b=HmrqRzbQ; 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 2620:137:e000::3:4 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. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id bv65-20020a632e44000000b005702257f332si3783266pgb.21.2023.10.04.08.18.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 08:18:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@asem.it header.s=selector1 header.b=HmrqRzbQ; 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 2620:137:e000::3:4 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 2A6618320DFB; Wed, 4 Oct 2023 08:18:37 -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 S243198AbjJDPSh (ORCPT + 99 others); Wed, 4 Oct 2023 11:18:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233553AbjJDPSf (ORCPT ); Wed, 4 Oct 2023 11:18:35 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2080.outbound.protection.outlook.com [40.107.21.80]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BF9F93; Wed, 4 Oct 2023 08:18:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ArJrNLZN82j8XZxk+vSxyQ5dTlcVSnu8rz4e+rqMvu2TdwPcefYsDJhAyDM6RwOXuB6VF7hjukSey2uqEMujgIEP7sbbtLH/wTk6wx+pBaqHhlUrqI1bCn2dHzCLa96JFF8j7uHYMtSV66LuGQ3wn3+eKwh7WzK94uiYoiRU0ZpIZ9GN/2y/tGA5iyIfaaoJZR7Qa+xnIOSbZ0PSDgugjAm4kSgegsn6Z1K5CJNM/R+4Ic/monKxt6o+GZb6ABxlOUudnAZT//z/n4OM2vFlLo8jrtzjgX/6jaN04kzJbSdLVos8NrjimAbb36/4MLIgpKwLIh8OSEVXqC9CrQA83w== 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=h7v6nDhaUwiuENxl9EW1PnekAKk8hpRD9elLSa6/VL8=; b=KK2+RskYVrIvX0PJwrxEixjUPXYS6G27Z3EBy4lEyV0wI8K+dXgnJvIxpcW7ktVivqRij+v8h7mjK5ynxH214SB6yRJhdjTuPINrks+EHNikI+//oIitZVmMK3g/hZ0SmNTaOTUxlevw5FRpZ2L3iuNaoiwiqTmYEjoJ7YNVk1J2qtcmZIkMCVouMaY0kyUI37WTAhZcEJNb2cB5slbKeYqu8M50XevoL8dQSX9AEEHCS8AeqeBV9JH94cERhT+Mx0PLxpwvlb2FFWJpCWP0cehFtqxAUb+OzGjpikLTzMa+yIdCxOF+r6FwN82GbzyJDngcT+2otfKqt1UoYWEEkg== 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=h7v6nDhaUwiuENxl9EW1PnekAKk8hpRD9elLSa6/VL8=; b=HmrqRzbQjjRD25WELH1UE8JCxhqpD1D1mvQq4xP7PRPOCAh1cgy/IwkgH+YU1CGyUegseTlleM5hKs0Syno8HPktczA2fgxFX8C2O6mwwcko7xPAvizjuOudPx8HWjEwD6y0vpVEek57TQttyHEkADDJFzk1V50myRY82KRpMwY= Received: from DU2PR01MB8034.eurprd01.prod.exchangelabs.com (2603:10a6:10:273::14) by DU2PR01MB8624.eurprd01.prod.exchangelabs.com (2603:10a6:10:2fb::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.24; Wed, 4 Oct 2023 15:18:24 +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.6863.024; Wed, 4 Oct 2023 15:18:24 +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/k67j1TrFzld37AtE7aAgAmVcBCAAT5MAIAAXgAggAGFVUA= Date: Wed, 4 Oct 2023 15:18:24 +0000 Message-ID: References: <20230925122609.78849-1-f.suligoi@asem.it> <20230926130113.GB4356@aspen.lan> <20231003102138.GB69443@aspen.lan> In-Reply-To: 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_|DU2PR01MB8624:EE_ x-ms-office365-filtering-correlation-id: f1d76810-552f-472c-4d02-08dbc4ed26f1 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: /FM81apmaCf7eq3Xyj3bCLMFn/HdrQOTCfahjwIGPF4udy9anHX1ItWkT/YfLIPjxSIMLGhNl0ueZ+Xo/sfs19D7BI7cN2pTQVHlgLKvCRrR7XNjNJLT/zIJyVlJ9Y3LfsTSKCcOABl5mCBLj43ZJjQycaGNYH/duCyV1y9/uuKOuKaxuMdcdQfWd3/+6X1mxOpI9Xmc1gsYJ8YXsN1nF5Vi6kiRYydiMY3TXNCqWag//j7NUn8EzVu3gr7Hg/PmgB4dZNkE/RYUjugWZnc/k70F89nA6++fw58p6dfEECG/U6XY4jsSvZaXdcimKB0WripNgh38ZG2uGtjOdVAsLySB5fPd6QlMVjldlVSalhoEB/Lskjkfb9QJuqWSOKXVDCc7KGICqVuQskykVygIUkYq0CBCnTrd6//1srdA53/a11wOIV0jfb4YeJryMKd/CDpcJTEcNf5lt9m2K3ZsJr05LP7QPN2jclqNh3X7oaruLt2STWiuUQ6xeRPL/PQZzaCRcrYTKhJM4kdhGZHhnWeM5u4AZgI7/fka4p75EXFgWmftCQoeNfIBMfRFjflyKYmKai+aHuNrusn8C9PZygGyVSaO9srTc9M2NEU0naX94dKMsKKfalk435pKRVYM 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)(376002)(39840400004)(346002)(366004)(136003)(396003)(230922051799003)(186009)(451199024)(1800799009)(64100799003)(71200400001)(26005)(478600001)(6506007)(7696005)(9686003)(76116006)(7416002)(4326008)(2906002)(8676002)(64756008)(8936002)(54906003)(66556008)(66476007)(52536014)(66446008)(5660300002)(66946007)(316002)(41300700001)(6916009)(122000001)(33656002)(86362001)(38070700005)(55016003)(38100700002)(66899024);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?6UEWUcpwBy8EkfaPEZDemwfL1c/HBfplVlUTc3qG0OvjDRMuUAspoo/R9iDE?= =?us-ascii?Q?UTt+z9yRJXdm/ybTwyWZDmfJdHsQg/Bn94LaYQdsVFdKwKs1yw1vPnyO0sqW?= =?us-ascii?Q?JBk4l2SMEQSTNwQLxT6rKO8SJnpHp2ZbcHxRwz9USkjF5r47YBJhAxD8mgCd?= =?us-ascii?Q?ShSGxXq+hfNv35V3/R0OplzBcK6iHdHNyHWEb5OBEjmoFxn5kLubPmGhJDHN?= =?us-ascii?Q?kh4wMBFr33TefZf617GyztdPUjUgpqCnVxt3jwPCfHJ92keF2hjJmfZH6sRf?= =?us-ascii?Q?EUcOssyNeA7skollrXNR1nThE7t4sj1vHryHr0Cmy6ll2euhZWD+DHaLfYZF?= =?us-ascii?Q?IgFsRWE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PbFxx2nqZou?= =?us-ascii?Q?PCQ76C0ev2v/dFiBZmMD5XqaXTFQ9l+Ss7Na/kJ6A9y0rNbN47us3/8fwubm?= =?us-ascii?Q?SBoFgvhY/5MSl39m+up1Y8hTa/zGgwxVJOCPqMsNOaKcAyzPqyAbdx9C0ROs?= =?us-ascii?Q?ioeR1oRU5Hlsti2nuLxVj2e9o7wwAS5jIR8A9PXIVsQTyX0A5OzJney/X3Fy?= =?us-ascii?Q?vW3cKbT6GPqI7CGwpVpxxdK1WmsVZ0hKQGqznmczLsbQ8QyrBjbu82MU2g0e?= =?us-ascii?Q?oV5FC113sUWzE1x1aMooT2Mryi2RVGqjIFAWN39Yp48qLYuOafsF5Zgf/TtV?= =?us-ascii?Q?yl4/N5RGoRk8YgY8zrs=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: f1d76810-552f-472c-4d02-08dbc4ed26f1 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Oct 2023 15:18:24.2081 (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: b8Is2HQx+mpw1c858+TDKKPVpMQJ3pBKtFUZ+QCeOR9KL+QwJTygVBfLDXwY/hvbuEn5HbceRA3tk7ZCGX+9EQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR01MB8624 X-Spam-Status: No, score=-2.6 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,URIBL_BLOCKED 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]); Wed, 04 Oct 2023 08:18:37 -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 valu= e. > > > 0 means a 0% duty cycle (darkest/off), while the > > > brightness-levels > > 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? > > > > 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 the bindings but ideally it would be implemented by > > refactoring and reusing the code from pwm_bl.c). >=20 > 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). >=20 > ok for default-brightness instead of default-brightness-level Just a question: default-brightness-level is the index into the brightness-= levels array. But, if I use default-brightness instead of default-brightness-level, =20 should I consider default-brightness also as an index into brightness-level= s array? Or, in this case, have the default-brightness to be equal to one of the val= ues inside the brightness-levels array? >=20 > > > > > > Daniel. >=20 > Thanks an best regards, > Flavio Thanks, Flavio