Received: by 2002:ab2:644:0:b0:1ec:cbc4:63fb with SMTP id 4csp1156098lqn; Mon, 26 Feb 2024 09:11:27 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVvjtOU8+w/62/G2Hqp2jYY/jcSBWWW51VZaRgE6UG5Qhxk0IjvNye62FcclyA9S5Zn8FOwzcDwk7jybzuuuPo32tW/lgBoEG6tIhIs5g== X-Google-Smtp-Source: AGHT+IFDbtv8sRgfv098XnSKtR79nZIldixYa08cwB2E4qDZ6JHlMWKO+DnYihv1KnbKkYgLu0Gp X-Received: by 2002:a05:6a00:190a:b0:6e5:a96:6286 with SMTP id y10-20020a056a00190a00b006e50a966286mr4493087pfi.31.1708967487033; Mon, 26 Feb 2024 09:11:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708967487; cv=pass; d=google.com; s=arc-20160816; b=IV686KU4ptLgqLTNhNhd7gHD+M5JMlZvSVTfq5n3FlcUMzED0Q2Eo+o8rLLeKejwyT 6e8vQkF/ENvSY831mAVXqDa3GOHL4DvlZOHN0vSoOc5Lqi8R8deQ2rFdPPXN9WT+pc0s ezsqAD/+It/Xrgjoh5CuGKEyuA9Gnbh/MwufUIl3HjU0EHVg+aeV5GnQheUZZoh/xAPp WosQ5wLcmHUdZ1dMD4pggOAMIc4IAL49vvBoOqLmGOfj4pS7ubL0IGAa+4SyZPYnIkno pRogVq9hBZHCbu1F2vP0ABUIcwxmfHtGjbI0AB8IBCbf/Ll0WotpuLp98zlcuxjePY6Y IdAw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-transfer-encoding :content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:references:message-id:subject:cc:to:from:date; bh=QfhMx6UwaDd4RDOOzvNhgURnVzUOYbifROcNfVk3jM8=; fh=0xR+5bo8Ql50Cs1E1v1lGzW3qdLI+3fsVLxd9aEi1l8=; b=VjKwixYoh+UM2qgd1cQFr3UPPq2NPQjEEQY3nG38tk23ZL67aeVeM2Yd86taqzF4Wx 9TWyDI+buQ6Swv+DER2y90n4KCp4fWFNDKmcSz+BO2mtsJn7r0lwjSM/DUTs7KT8BKjc mKhOHuy2SsOA65Hex+MdfU57LB/KA9lzpXHfNECKhYmpbunNuzt/rzWJxu8vgmdqnt+L 3xniHRSfV50AewSGaqXXs+0eAG/BZlJnoE40pBX3AXkLuqPpnmUV4xzBUr3cIWqt/bxP LLMnEWWCa4im1sAUqt5NPXEranDCJaz++wmaE1sWxcM1LO1DsiSc5uvzoakoU1MP7MDA 6ubw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-81922-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81922-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id fk7-20020a056a003a8700b006e45ba594a2si4029208pfb.380.2024.02.26.09.11.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 09:11:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81922-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-81922-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81922-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 13411B29206 for ; Mon, 26 Feb 2024 16:41:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0F58912C548; Mon, 26 Feb 2024 16:40:55 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CD242433C4; Mon, 26 Feb 2024 16:40:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708965654; cv=none; b=hPZwRctzKVUnYYFix0VR4bmcHGAqm0t7+t3Wroqacy3tpzGTzxDyj9B1YIRK/3TtkFjAjmTJ/bGTXsI+jTimWZOdMWsBjj0rBDnQ/uGySYW3j4EUcQFCnXQ49ODSlisAGYU58LOF5dXvQR6hYyHEawOZ2OURLht4SYVdTm4xHcA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708965654; c=relaxed/simple; bh=tbrC+G2poxmPDlALZboFVqjxLPIIMR/BR+gc8VJamMg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Qn9q/Pzf2yaRza7/gf5lWAPSB8H/6PBrVNNM/4ECnI6dpZ+l3XO1HeCRvdMx+8NHAn7yeFgOJCVbSbB3F3F3BjkXHN1/AyEvP1NKisLExzgBM/uBfW1Biv4Ys+vi55HFSdxI/WvbDXvxusYycoj+AajBDzeL/rrffYO111b3Zbw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com; spf=fail smtp.mailfrom=gmail.com; arc=none smtp.client-ip=192.198.163.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=gmail.com X-IronPort-AV: E=McAfee;i="6600,9927,10996"; a="13903010" X-IronPort-AV: E=Sophos;i="6.06,186,1705392000"; d="scan'208";a="13903010" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Feb 2024 08:40:52 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10996"; a="913881452" X-IronPort-AV: E=Sophos;i="6.06,186,1705392000"; d="scan'208";a="913881452" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga002.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Feb 2024 08:40:48 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1ree21-00000007jed-1KuH; Mon, 26 Feb 2024 18:40:45 +0200 Date: Mon, 26 Feb 2024 18:40:45 +0200 From: Andy Shevchenko To: Chris Packham Cc: ojeda@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, andrew@lunn.ch, gregory.clement@bootlin.com, sebastian.hesselbarth@gmail.com, geert@linux-m68k.org, pavel@ucw.cz, lee@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-leds@vger.kernel.org Subject: Re: [PATCH 0/3] auxdisplay: 7 segment LED display Message-ID: References: <20240225213423.690561-1-chris.packham@alliedtelesis.co.nz> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Mon, Feb 26, 2024 at 04:23:15AM +0200, Andy Shevchenko wrote: > On Sun, Feb 25, 2024 at 11:34 PM Chris Packham > wrote: > > > > This series adds a driver for a 7 segment LED display. > > > > I'd like to get some feedback on how this could be extended to support >1 > > character. The driver as presented is sufficient for my hardware which only has > > a single character display but I can see that for this to be generically useful > > supporting more characters would be desireable. > > > > Earlier I posted an idea that the characters could be represended by > > sub-nodes[1] but there doesn't seem to be a way of having that and keeping the > > convenience of using devm_gpiod_get_array() (unless I've missed something). > > It seems you didn't know that the tree for auxdisplay has been changed. > Can you rebase your stuff on top of > https://git.kernel.org/pub/scm/linux/kernel/git/andy/linux-auxdisplay.git/log/?h=for-next? > It will reduce your code base by ~50%. I have just updated the branch so it adds one patch that changes the prototype of linedisp_register(). > WRT subnodes, you can go with device_for_each_child_node() and > retrieve gpio array per digit. It means you will have an array of > arrays of GPIOs. Btw, as Geert proposed for another 7-segment driver, we might gain from the display-width-chars property. But I think this property has to be parsed on top of line display library, no need to have it in each affected driver. > > [1] - https://lore.kernel.org/lkml/2a8d19ee-b18b-4b7c-869f-7d601cea30b6@alliedtelesis.co.nz/ -- With Best Regards, Andy Shevchenko