From patchwork Fri Oct 6 16:04:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Rokosov X-Patchwork-Id: 149323 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a888:0:b0:403:3b70:6f57 with SMTP id x8csp435012vqo; Fri, 6 Oct 2023 09:07:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEpXMkmaQLxltpSr/ESjtpffZmiOazRGMrRl68uz/m1IKBxb/nGcsOCnuAXlh0k0Hqorf7D X-Received: by 2002:a17:902:c40c:b0:1c8:90bf:4234 with SMTP id k12-20020a170902c40c00b001c890bf4234mr2407578plk.61.1696608430651; Fri, 06 Oct 2023 09:07:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696608430; cv=none; d=google.com; s=arc-20160816; b=KK/fyC3jHxLi/k4c07XJcDLQtWmqO1KlPCxI77Balf7/6Os2LhZCoHKuuzaznj08g9 02ajkyqACxZVi0MEXELCXNowMDhtAfhus5l1qyIvdpZpgH1rTe7Qv6V8R15XqMSvyByz d16wPFaX7AUOu2zptmMPGt//tzM+Y8VOsMQ99v4aaYpyFTQgDqILgoDex/EtgW+3rB8I GtI3iYoZgbXgkAf65hR8DdflTnoGamZiPNh6rtTqK8+1jC7PIg8IMvGCNvlCOJNSh0gK NQEB6gaDnQ28yvSTVqz4WbfjsB3v+R04MTV4AF1klzGugDqhd3dsxzuN4sZCDC6tQSvG JM/g== 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 :dkim-signature:dkim-filter; bh=tN35mD0+nTDTwkVuf3TrI4jko6f8nzNCzdD5oWRnoxE=; fh=sORWI5m16YEVk6NuaHBH7AzDgvChSOROlmEzxQvCLqs=; b=gq/HR+5JMD7YVL8ZF2xujtiXtOMiPHfzNBDlbaUFLtC4McnSm11XzBvOszwwfAovSW GCi96J7ZudrjqAIkBwKCS6jlKRFDJYgBcbkgWGcIEU2w8FsOBgrkFN5fkyZC9aTxX3oh uojmiLFOlSp/S1z91VdtKgegFTvqFdNfc/bZdA9BiZKfOsFZgIhsLTWFsXmvKDYY9zfw L74axicRSXVZRi0P3+JnRayO5Gsh3euG9ADaTtMlQ7p724se7mpBvIc1rvwsGWS0WGyN d0eZ7X03q9OSG1dMLWElinTZDQ7Ryb+6No7IkzXk4pTNqhN5dABhXCbYR7w0kQcLOuPP VcgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@salutedevices.com header.s=mail header.b=RzjLRVaz; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=salutedevices.com Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id l9-20020a170903244900b001c77a0c5a61si4180168pls.551.2023.10.06.09.07.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 09:07:10 -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=@salutedevices.com header.s=mail header.b=RzjLRVaz; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=salutedevices.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 8EB128090795; Fri, 6 Oct 2023 09:05:35 -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 S232984AbjJFQFU (ORCPT + 18 others); Fri, 6 Oct 2023 12:05:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232936AbjJFQFG (ORCPT ); Fri, 6 Oct 2023 12:05:06 -0400 Received: from mx1.sberdevices.ru (mx2.sberdevices.ru [45.89.224.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BAB5C5; Fri, 6 Oct 2023 09:05:04 -0700 (PDT) Received: from p-infra-ksmg-sc-msk02 (localhost [127.0.0.1]) by mx1.sberdevices.ru (Postfix) with ESMTP id 7611312000C; Fri, 6 Oct 2023 19:05:01 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.sberdevices.ru 7611312000C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=salutedevices.com; s=mail; t=1696608301; bh=tN35mD0+nTDTwkVuf3TrI4jko6f8nzNCzdD5oWRnoxE=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:From; b=RzjLRVazClEjfF/YL9thBc8/7V29oKt+1JaInCqx04ogYcB/j8wrC6E+edYPBP63B UtCKhO3Ow25ZIkClnDk4bArnO1iVbu1Eu/wuxvWDgYz/zv2If2R68yUeHh3jdvKzqe 05lwmDlQs/nXKTqWGJGijAWaIM2uWUY1qkCLjUnBs2Ahd2T9OACJ0tjIWYyn/c354v oh8Y2aeFbNMpNoM2sno05pjGrHE5AMDYSLwdZR9a7oCbfd5fB0oDJ3m7KtvRXvwCXf M5rIxHKTfp+4QtBUnJkdE0ovkPmdxusduT8P94WFUYDUukxXTmIeEJXtFdxZAIvRVp YqmeQe7IB9idg== Received: from p-i-exch-sc-m01.sberdevices.ru (p-i-exch-sc-m01.sberdevices.ru [172.16.192.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.sberdevices.ru (Postfix) with ESMTPS; Fri, 6 Oct 2023 19:05:01 +0300 (MSK) Received: from localhost.localdomain (100.64.160.123) by p-i-exch-sc-m01.sberdevices.ru (172.16.192.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Fri, 6 Oct 2023 19:05:01 +0300 From: Dmitry Rokosov To: , , , , , CC: , , , , , George Stark , Dmitry Rokosov Subject: [PATCH v1 06/11] dt-bindings: leds: aw200xx: remove property "awinic,display-rows" Date: Fri, 6 Oct 2023 19:04:32 +0300 Message-ID: <20231006160437.15627-7-ddrokosov@salutedevices.com> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20231006160437.15627-1-ddrokosov@salutedevices.com> References: <20231006160437.15627-1-ddrokosov@salutedevices.com> MIME-Version: 1.0 X-Originating-IP: [100.64.160.123] X-ClientProxiedBy: p-i-exch-sc-m01.sberdevices.ru (172.16.192.107) To p-i-exch-sc-m01.sberdevices.ru (172.16.192.107) X-KSMG-Rule-ID: 10 X-KSMG-Message-Action: clean X-KSMG-AntiSpam-Lua-Profiles: 180439 [Oct 06 2023] X-KSMG-AntiSpam-Version: 6.0.0.2 X-KSMG-AntiSpam-Envelope-From: ddrokosov@salutedevices.com X-KSMG-AntiSpam-Rate: 0 X-KSMG-AntiSpam-Status: not_detected X-KSMG-AntiSpam-Method: none X-KSMG-AntiSpam-Auth: dkim=none X-KSMG-AntiSpam-Info: LuaCore: 535 535 da804c0ea8918f802fc60e7a20ba49783d957ba2, {Tracking_from_domain_doesnt_match_to}, 100.64.160.123:7.1.2;127.0.0.199:7.1.2;salutedevices.com:7.1.1;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;p-i-exch-sc-m01.sberdevices.ru:5.0.1,7.1.1, FromAlignment: s, ApMailHostAddress: 100.64.160.123 X-MS-Exchange-Organization-SCL: -1 X-KSMG-AntiSpam-Interceptor-Info: scan successful X-KSMG-AntiPhishing: Clean X-KSMG-LinksScanning: Clean X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 2.0.1.6960, bases: 2023/10/06 13:25:00 #22070343 X-KSMG-AntiVirus-Status: Clean, skipped X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no 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]); Fri, 06 Oct 2023 09:05:35 -0700 (PDT) X-Spam-Level: ** X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779022881856412543 X-GMAIL-MSGID: 1779022881856412543 From: George Stark Get rid of the property "awinic,display-rows" and calculate it in the driver using led definition nodes. Signed-off-by: George Stark Signed-off-by: Dmitry Rokosov Acked-by: Rob Herring --- .../bindings/leds/awinic,aw200xx.yaml | 28 +++---------------- 1 file changed, 4 insertions(+), 24 deletions(-) diff --git a/Documentation/devicetree/bindings/leds/awinic,aw200xx.yaml b/Documentation/devicetree/bindings/leds/awinic,aw200xx.yaml index e3ad11fc7a84..5cd167ab0f04 100644 --- a/Documentation/devicetree/bindings/leds/awinic,aw200xx.yaml +++ b/Documentation/devicetree/bindings/leds/awinic,aw200xx.yaml @@ -36,11 +36,6 @@ properties: "#size-cells": const: 0 - awinic,display-rows: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - Leds matrix size - awinic,hwen-gpio: maxItems: 1 @@ -63,31 +58,17 @@ patternProperties: since the chip has a single global setting. The maximum output current of each LED is calculated by the following formula: - IMAXled = 160000 * (592 / 600.5) * (1 / display-rows) + IMAXled = 160000 * (592 / 600.5) * (1 / max-current-switch-number) And the minimum output current formula: - IMINled = 3300 * (592 / 600.5) * (1 / display-rows) + IMINled = 3300 * (592 / 600.5) * (1 / max-current-switch-number) + where max-current-switch-number is determinated by led configuration + and depends on how leds are physically connected to the led driver. required: - compatible - reg - "#address-cells" - "#size-cells" - - awinic,display-rows - -allOf: - - if: - properties: - compatible: - contains: - const: awinic,aw20036 - then: - properties: - awinic,display-rows: - enum: [1, 2, 3] - else: - properties: - awinic,display-rows: - enum: [1, 2, 3, 4, 5, 6, 7] additionalProperties: false @@ -107,7 +88,6 @@ examples: reg = <0x3a>; #address-cells = <1>; #size-cells = <0>; - awinic,display-rows = <3>; led@0 { reg = <0x0>;