Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1841849rdb; Tue, 3 Oct 2023 02:43:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGmXHi3aC9UvXGVPKyyopA/jArtBMFrNeozJCW8Hm9uGw8axoIYfWNeRw6zBRnl/2sv19Vo X-Received: by 2002:a05:6a20:1444:b0:160:6a95:386a with SMTP id a4-20020a056a20144400b001606a95386amr13791175pzi.25.1696326215822; Tue, 03 Oct 2023 02:43:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1696326215; cv=pass; d=google.com; s=arc-20160816; b=WSxPBWfWAEJ8GwLHZ1IJ272DDJhHbgmUSUNLUxdhetBIRtEPqKDMUWwRBvrLf2bu2S D/T2D8RupbDYSuOGw/CcPR3xkVuSBvTiZMtwQOGz8dlhO/Moqb09f67PDbLRpkjzuN2L Cv9tmvvVvP0wJbqajgH1f4BPwYedGix7xH1F86A28rLJ2xJYRXED7RnNFg382s9VhYNy rYimfqe5NHWMvNLb95RcJDbYpjLr9aLr7lPwsbMxar+lPb1XrY+2g+vJZZZeqs8PXqIU XXWzkTFNKUkSqt/M3d77zPUy9LalxvYwIK/iul1by9nnuo0Ye7iIT9LYrYYmZFWO2Zrc dS6w== 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=M4TPV1SvH5xoswYo0hNT/oATHJJfoV12pNxvCJotvsY=; fh=Q4VV9CeIYeeihh+j7h4q6DyuYrJi9XeU3RPB1FcXNaE=; b=VpWvOFzODlCrNcPMH/42C9L5vCffycX8WgBiBI2jUTAHF/qD+G8b78l7KTsQ9XU7iG 1cMw96jI7nraWph20v3ArlAMHNme35laUi2+QFOW4dFN4VnuSByqg3bgvK5SGxZR66NU 874SS0f8B602KQeiVk0DLvucLaJ+7Jgj2H5R/N+/CuuWCUfr35rxgdj0RHHAt76VV6so pZHWq0biF7mR3antHQFLVLTcTXiprtIJxUES9Vpaf1kIH822JwYpOE0gHSsYkAPdpFtI 6TzKwd8MJfqqraha+KyMIF2d210uj7hBzMbcQWYwXe9tmNF1/TezckOf2BNxRmiuiS4K hJvA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@asem.it header.s=selector1 header.b=atsxCEhN; 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:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id l5-20020a170903120500b001b662f49f60si1122623plh.419.2023.10.03.02.43.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 02:43:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@asem.it header.s=selector1 header.b=atsxCEhN; 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:2 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 agentk.vger.email (Postfix) with ESMTP id A1E608054B5D; Tue, 3 Oct 2023 02:43:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239649AbjJCJn0 (ORCPT + 99 others); Tue, 3 Oct 2023 05:43:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231626AbjJCJnZ (ORCPT ); Tue, 3 Oct 2023 05:43:25 -0400 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2053.outbound.protection.outlook.com [40.107.7.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0454A1; Tue, 3 Oct 2023 02:43:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BuUKddtX5YjGCxZq5RP6eVlza+Izp7H0wDO/uHaENzD7E5TEUvtM1/qa9Jx8IITbwzSXNSMFDKLHxpyrBUslCzptKcPHW+ryj1cmrSgP48Zg+3kJxiM8pDo2iye6rRnFKjZWBwdQokjLa8ZbydiIK6A6DEgJXdxuCZq2kSXDahLJNg4x5Xp3hebpQ758Xdyki95SWc8u5aUOFoheFpzFwigvGC9n/C02U5hFr8OWUiGZFg4dHOsRVg3jJPB5dPC4EQBRVUNOy/khebOZiToqKoCq3BT0PCwnUsp0nKUbzFCCZ7l6euOlBfKY2/8a5OZ/Cw6Jfoe0fEqrXVbogUVDlg== 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=M4TPV1SvH5xoswYo0hNT/oATHJJfoV12pNxvCJotvsY=; b=f+jA1rehHt51YswNcbVrKyK5ouYRicRAMU/TZEdGauG+EfO8I6A141ofesqWdEl+7p3nHd5zh/hYBfYhBEUaBZXj9jVg3G27div4s6bedX5FalpgeSaB2ZO9sCdDOmX4aRlXQk0osFDGHCU5bgJa13bOZqrn7TpvdZMFa6qyCm1pySI+mvjaTm18JcEPxMmP1Gysy6oLz/rNpufNTTnHiysYsdEj83mdqUFoVacEL1U339poK68DXQxzfFnFldMFDZLu/41i9/xgoz1B6Vty+UyeNKqH/T7rd9X1lYk0Mm61QBoVf67cI8SCOJ1+vVAqH5JZuNMOolJoqtON/qeDvQ== 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=M4TPV1SvH5xoswYo0hNT/oATHJJfoV12pNxvCJotvsY=; b=atsxCEhNg9ggubIwsWq82uJD8sILa9YVrgYLzALIFcKf/y0LoFT1N6wYA+NqkJB8G9zI6SgNTtTVqAnuBb9HqLWbi1GmdxlPi1Y36BxF5Ao/U3r0L5SczKRU7PuM7clSIAFp3Qvx2MGaIzZcBga/qOLLE+e+zuNmPJd6n/ocjko= Received: from DU2PR01MB8034.eurprd01.prod.exchangelabs.com (2603:10a6:10:273::14) by VI1PR01MB6301.eurprd01.prod.exchangelabs.com (2603:10a6:800:144::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.26; Tue, 3 Oct 2023 09:43:15 +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 09:43:15 +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/k67j1TrFzld37AtE7aAgAmVcBA= Date: Tue, 3 Oct 2023 09:43:15 +0000 Message-ID: References: <20230925122609.78849-1-f.suligoi@asem.it> <20230926130113.GB4356@aspen.lan> In-Reply-To: <20230926130113.GB4356@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_|VI1PR01MB6301:EE_ x-ms-office365-filtering-correlation-id: ae921ce4-b6f5-43b5-6b8e-08dbc3f52a8d x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Nymp5wqakQRrJ4KUsF3fkMisbmYygth/TVhor0xMmjDeZsXE5rdrS+FCC3TzCp2991QwMA4CP6z63rRhx8zf24jAaRoLJmjPk18zDN59Ka69mhawxm622VifAhQqohdBHnwIdjToXxJVsAuReqhpj2t0I49pWlmIMH9K9vTiy3VFp4qX18QRSC5xwZCWAXNRuIgzdOOl7QE8g/fRuZ49Rps5+tOYtCoZ6Ol5PHVXE2AmzZQOZqU9DlmUzl/psMbXKdGYO72E/fcrvhNZG0CJWbSu7uER6ZYR9iM5tbrriRldZa18Y6ncqDB6xyGln3IrJK8EOG9oW+nHcGPH4K+iwSepYKFgdYcyhh3X4LDZarhTHy2L1fi33RX8H9YzKAIv46hQtF/9QZ1uC8kQIfrBw2X5FhWH6yAxuhDjcmtrfyYlfGIN+AopBkmjV99RAsB7nKB5IuFAhnK2g0gpMNJ6lmuUNjqxCmKXLq4TN433A/8s1C7GUhUU0djVmWzbMzPJZcaEJQmx1qvnerPg5GRXIAVvrYa+Op+IzymqKP0xm9oOf7/n6b7GEtN011VnVywMo6+smzOENBDb/A8KAsloYsAaR000CK/QXYyq5/n4PUYcXhiVfLcu4froMZSLXHZV 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)(396003)(39840400004)(136003)(366004)(376002)(346002)(230922051799003)(64100799003)(186009)(1800799009)(451199024)(6506007)(9686003)(7696005)(478600001)(71200400001)(316002)(41300700001)(66946007)(64756008)(76116006)(54906003)(66556008)(6916009)(66446008)(66476007)(26005)(8676002)(8936002)(52536014)(5660300002)(122000001)(7416002)(38100700002)(2906002)(38070700005)(4326008)(55016003)(86362001)(33656002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?S5iMIa0ehqMGwt7WQI7/W7OMXSqlgqp4IKJ7sWGPiCWUTvH9PVn9mCWE6eZ8?= =?us-ascii?Q?OjmOHIEQnCSAU4ZFTKEIhf41AQwfZpm/pM8AuO5waUNjxUzupMc3zkhLcTDR?= =?us-ascii?Q?tZuQixDjUP2sndcrLqZmMlHRhAgWlhnoEhp6bW3tZfroBlqIXJ9Q/uKn47g3?= =?us-ascii?Q?rkdZuB3dtxtoEob7aNzUA5nNAkAFKjk3vSmNfJVRW8Uzqo4R4pNyqtqUTMCH?= =?us-ascii?Q?Vx3rLvUB1OEz9yQXsWtVdwfq8b3T1RWqbwpgwL5W7eR/wErmdD0PuyebAIjR?= =?us-ascii?Q?phUmgCNSbTriKPeX3KZ4p67D8ZeHc/QJdaWwvSYBMxDvERP3kdDg6Ns4w+bB?= =?us-ascii?Q?i+IUj4KnaVikFGDTvV8jE7LR2HE99J0NTem4g7nhrYOykqwEzEaMh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yo6G/hJBHjBUNRSj7/EobYVX7BFVQ4hw9?= =?us-ascii?Q?tgyDpvYjTMtfmSAslbgYdXtUKIywwuRIk522khUuVCgicLQrNwfjU2NqLtW9?= =?us-ascii?Q?RKDYlroMnfttvBdFZmSreyTHRVYGr+UINrdkmG5S17LFTRh5q/HuIi1LO5nL?= =?us-ascii?Q?Z+jKCTZ2iow4IHEN1WGEdgSEOY8TtHgWggVS2km/kn8L6wBGqcziSrw2iz5S?= =?us-ascii?Q?XNIFdQIRDi6A2eOfGnYhXmi7+E8CePJvPR4ZNxbj8FPipP7ohCWF9Rl7j64S?= =?us-ascii?Q?+0Li5IRzztLMqJ5b6RM=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: ae921ce4-b6f5-43b5-6b8e-08dbc3f52a8d X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Oct 2023 09:43:15.0853 (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: Lu/H6EQ/JAnLCA5FjtNy3BBsqIKJQsxYCnu3rxArvzCSuxnD2MXDN/2n+oqFfcfAakp2AI1G7WZLlRxgL0eLIQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR01MB6301 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,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 agentk.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 (agentk.vger.email [0.0.0.0]); Tue, 03 Oct 2023 02:43:33 -0700 (PDT) Hi Daniel, ... > > +required: > > + - compatible > > + - reg > > + - max-brightness >=20 > Why is this mandatory? >=20 > There's no point in setting max-brightness when running in I2C mode (max- > brightness should default to 31 in that case). >=20 >=20 > > + - default-brightness >=20 > Again. I'm not clear why this needs to be mandatory. >=20 >=20 Ok, you are right, I'll remove max-brightness and default-brightness from r= equired properties list. I think to change these properties, for the pwm dimming, into a clearer: - brightness-levels (uint32)=20 - 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-levels r= epresents 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? > Daniel. Thanks for your help, Flavio