Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3942441rdh; Tue, 28 Nov 2023 07:47:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IGSwFOZlEh3f3n1oPSLRvxPoyvzJ6h3/BEL/F95tq85DxzLtQPg9xsoj/x6WzSOUaf3ik8j X-Received: by 2002:a05:6808:19a5:b0:3ae:18c0:dd8e with SMTP id bj37-20020a05680819a500b003ae18c0dd8emr19837285oib.27.1701186444454; Tue, 28 Nov 2023 07:47:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701186444; cv=none; d=google.com; s=arc-20160816; b=OICdu0ooHQSr6Lqv6DeRmna345wvlgbdk7BMFIV3/28V8FAfzwCX33Er1J5QYDDYLd sjXDdZHg/eoUzqMlbFaQx15uSPkd9IF6rG4DtATqkmCMfFIRAR+hiYPj3+zA98Hr7u6R d8nOUnggdumMSNgWhT1+y14+Uq30k3hpafhC/ix1aOsCJoXaiVpeBPKxYmwgrnDyC7+S ey3W/Zz7AMxopukUIXoHziGMdylgDq9Dh/JNEurmKi3XIvGAsdE87ke1glI/5fzTMzJ9 TkIZkzN8uVOlKM3Y05WlQZ+bbBj1/2hVsKX9+9adnA/fY+7r9+q2sAHaxyiDLb5liCVv Amsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=cM6IJHXap0cWHVgv8jcH9qHYNny0Fi1EYGKNuvxbiD0=; fh=k8rcVvHEim30WRJ/pgo5N//4w/KsFmMmNgKKuu3aMyE=; b=C/bH4S7M3IKxKta6ArWuPhHghT0Em2D0jqt45bTd3JRwEBMblSdxvyFWHHpgE9SG/8 dT8SvPo4AZOyAIcuwWC90QJeBrds4yXYRM2u2Q1RhLpKomexqxHhG4SHpsl+oNpneJFa IiTX6lzLwa9kn/brQ6k7aw89oQK/MiCECpHZ8c2CrBCAoSt9AsYDh+GbNGXU+JSLRbgK gSIrJLyezUlJF3joTLLxF5/jIvsNZi+Ogj3nLokPJBurrQwrZV1jOsuQQpnyLz81r3Wy /6x+dyDQxkiP7tEpGlINGAeKP4UcwH5KBcIYPxCuEnPDozpOab9xXHhOTR9bPIa0aXv2 13iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=TKG9EXwA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id bz3-20020a056a02060300b005c278a3b4a6si13435350pgb.379.2023.11.28.07.47.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 07:47:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=TKG9EXwA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 4F1B880BEF0B; Tue, 28 Nov 2023 07:47:22 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346152AbjK1PrC (ORCPT + 99 others); Tue, 28 Nov 2023 10:47:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346059AbjK1PrB (ORCPT ); Tue, 28 Nov 2023 10:47:01 -0500 Received: from mail-ot1-x32c.google.com (mail-ot1-x32c.google.com [IPv6:2607:f8b0:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 638D012A; Tue, 28 Nov 2023 07:47:05 -0800 (PST) Received: by mail-ot1-x32c.google.com with SMTP id 46e09a7af769-6d8029dae41so2712896a34.0; Tue, 28 Nov 2023 07:47:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701186424; x=1701791224; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=cM6IJHXap0cWHVgv8jcH9qHYNny0Fi1EYGKNuvxbiD0=; b=TKG9EXwACnvWXmxqmaeooyWGw34+FJIGtPSD/po1VyjFPdfGwHPJiW3Ct5MPyPZQy0 bTMlQSPKyTB+i2pVjpPtxMQujgMj1a++zKIvM8rJvZpFnbMGHOJtZtC86Ufdm0w0sD6v szoiy4ud/1ckVNxtj7fPC/5h0jtUFT8S1M5aSsZdsPgVZzWJ1S+qWUXwAnH1Rh5ViRqV GWjx4+o2kOL5HISnuHGSDnPp3uv+bjGlGPGhTV9JxfrIqrCHWqlZbx2rOap5lj3K4oXE XzI0EvO6p000GT0k0Cs0Ipe0y6M/wjGE7T3GGtdnrWry771euXIkwSbzZY7KCuUK6PKp 3Cpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701186424; x=1701791224; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cM6IJHXap0cWHVgv8jcH9qHYNny0Fi1EYGKNuvxbiD0=; b=Z2BghdY0cGMc4T05LZSfragodwg+jo6lmcPJWZRqGzoAHSph7JAZcAD4hnwn8ZnlYq IPfUXC/L6PU4kHU9A2eiJtrbyskNw2XYrQTQx3VDsg/GUMJIxWMJwfLSksCKBrXxhN+q rqSBrDp5nQDhExeCbHkISWjwgZVnIRHrxIN264+FFpE5Zvw4KmCU00QeQvlYWpNWFcDP OA0EUNJDyUtgXANCytKia/UGDorBIwKuj4gv8tPZSYMOVMVF/8HZsXjJ5WyeZ/a5SfaK IrU3V5T+mW+FwxudLO5pbSXa8j+/HUD+pIBjzfeWFIz2Y3ljTZooXKEDLmyguZtVict3 6WPA== X-Gm-Message-State: AOJu0Yws/TXs3MCv+jIzBtjISKcUFV0CNvFzHrd92LECG+q0ifZiybUW O15XUgn8Jhg4eBmwuuQLXX0YT0onN95l7p5kQ0o= X-Received: by 2002:a05:6830:213:b0:6d7:ed0f:87d4 with SMTP id em19-20020a056830021300b006d7ed0f87d4mr16552726otb.33.1701186424670; Tue, 28 Nov 2023 07:47:04 -0800 (PST) MIME-Version: 1.0 References: <20231125200519.1750-1-ddrokosov@salutedevices.com> <20231125200519.1750-3-ddrokosov@salutedevices.com> In-Reply-To: <20231125200519.1750-3-ddrokosov@salutedevices.com> From: Andy Shevchenko Date: Tue, 28 Nov 2023 17:46:28 +0200 Message-ID: Subject: Re: [PATCH v5 02/11] leds: aw200xx: support HWEN hardware control To: Dmitry Rokosov Cc: lee@kernel.org, pavel@ucw.cz, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, kernel@sberdevices.ru, rockosov@gmail.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Tue, 28 Nov 2023 07:47:22 -0800 (PST) On Sat, Nov 25, 2023 at 10:05=E2=80=AFPM Dmitry Rokosov wrote: > > HWEN is hardware control, which is used for enable/disable aw200xx chip. > It's high active, internally pulled down to GND. > > After HWEN pin set high the chip begins to load the OTP information, > which takes 200us to complete. About 200us wait time is needed for > internal oscillator startup and display SRAM initialization. After > display SRAM initialization, the registers in page 1 to page 5 can be > configured via i2c interface. ... > + chip->hwen =3D devm_gpiod_get_optional(&client->dev, "enable", > + GPIOD_OUT_HIGH); > + if (IS_ERR(chip->hwen)) > + return dev_err_probe(&client->dev, PTR_ERR(chip->hwen), > + "Cannot get enable GPIO"); You can make it neater with struct device *dev =3D &client->dev; --=20 With Best Regards, Andy Shevchenko