From patchwork Fri Mar 1 01:41:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Packham X-Patchwork-Id: 21242 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:fa17:b0:10a:f01:a869 with SMTP id ju23csp170655dyc; Fri, 1 Mar 2024 13:42:18 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWt6S+kBnChBBD1VFEcuNbvyHjCb0y+l6VJPTmryj7tvxeb87sYdc6L2uWDUl+9E9QjzfyuU1JK11Mz9oW9wywcncjGgA== X-Google-Smtp-Source: AGHT+IEN6ajOt0W/4E1X353IobRuYo5n5RbCeKtOoo6KRU7y7fp3N3OnCeczR/1+Cm7mxgD+brvf X-Received: by 2002:a05:6402:222b:b0:565:76b6:920c with SMTP id cr11-20020a056402222b00b0056576b6920cmr1921458edb.9.1709329338170; Fri, 01 Mar 2024 13:42:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709329338; cv=pass; d=google.com; s=arc-20160816; b=O865n0EoZAhI4X++HlHaScLRtnq4fg+HrOmPfLT5YioT+R+vwurmiLxHmTozdd4+UZ rsysqnBI4g611q67PT8cnelu/dwsjP6U4dTlA5gBujQH61JKaSHkQS5xVue6BRNN8sRF uhTrsFInYmcSdIzmcjEHbwQ2GdsRZrPYYJO3/j+SgiffEJxv72QV6mqkT3GXck6vI/g7 CumrjVozuLn2TNyejIVTeiQIRAlaLtbC3L+jem1y2Tr+9bY+gIaLKoIBQSM45F4vAae4 jkoITJFJ4L8AXO4DPlE7srDwKJdJQ6/uzA/+9T9Jxz6iHixQobN4iagmPj5jE24aipLn s5zg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=OXAJeaE3GvagN6nGaX3LLx/j6ndgTitcWcCU1jpTvfc=; fh=gEbwnozYCT7UDgjpsH/BBNf0/YFo/VX4ZDnSwxv7zdA=; b=hpjVbZWb72xvhVLZbzhPsD7YnCyKwi9bG16wpeCf2hr1eCOn/eoAxElIiidw5xb94P tQLDUjT0+SyR3eS/+Vcnm6JzsyBBP+dwrhFpx2lO7SlU4D8EM2l+bs/KObAOUWTKfxN/ RoFKU04jG8SNdulQti4//ZTWvLX5s6RJB0By9VoXk5KbPIGcXX7f7d9xC1z54rVT1O02 v7ieNY1o1mTbhYoGNsi8iL9SPKgvryRnq1yzrqa9EjUVfctMTqte0MR9U+RR70FFI/vy hMo+SqfB3R/KaBMgoMhETsiuKfsK5hLmdxgSTvVDzKxqszn+39vH2laGDBshoVShsviB rPwA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=Ijun7IBy; arc=pass (i=1 spf=pass spfdomain=alliedtelesis.co.nz dkim=pass dkdomain=alliedtelesis.co.nz dmarc=pass fromdomain=alliedtelesis.co.nz); spf=pass (google.com: domain of linux-kernel+bounces-87791-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87791-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=alliedtelesis.co.nz Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id co14-20020a0564020c0e00b00564738589c9si1688623edb.650.2024.03.01.13.42.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 13:42:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-87791-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=Ijun7IBy; arc=pass (i=1 spf=pass spfdomain=alliedtelesis.co.nz dkim=pass dkdomain=alliedtelesis.co.nz dmarc=pass fromdomain=alliedtelesis.co.nz); spf=pass (google.com: domain of linux-kernel+bounces-87791-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87791-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=alliedtelesis.co.nz 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 94FDE1F24991 for ; Fri, 1 Mar 2024 01:43:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7E06B39FE7; Fri, 1 Mar 2024 01:42:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=alliedtelesis.co.nz header.i=@alliedtelesis.co.nz header.b="Ijun7IBy" Received: from gate2.alliedtelesis.co.nz (gate2.alliedtelesis.co.nz [202.36.163.20]) (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 5F1F02E415 for ; Fri, 1 Mar 2024 01:42:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.36.163.20 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709257335; cv=none; b=eud0Y9zoa7Ioo3VLW8vBeOTlLPRQPu59Yxp58QEYd+VqOzFpMGpxwxEOcvjhkcAzji72xR9POV0ujSvq/VcrGydf0QShi0umxxK/x2usQ8TRgzm2e8rm2fbxlozrYKcdERhY/pNznak3qDSNWMTuqS0/C4qEUlB0YytGaRN0o78= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709257335; c=relaxed/simple; bh=INZY+SadHUfqA83CZH6RrT2XxFFOy/Ey75oZx6N8c58=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=p/BfROR/tz4+oisIpLOOhjX0yrI6hPW6IMI4llhgl3qXIXz9u6EJJh8GwnsfsU6jT2lAEMWBY71cf95bliFzSjEOY0oShTXL4oDUp8/sQK7j8kmabe4YfmP0fG8aOjKOysIZQAaTGawnfQXncWh7ijQMKNLYIXseNyFlSZLUphk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=alliedtelesis.co.nz; spf=pass smtp.mailfrom=alliedtelesis.co.nz; dkim=pass (2048-bit key) header.d=alliedtelesis.co.nz header.i=@alliedtelesis.co.nz header.b=Ijun7IBy; arc=none smtp.client-ip=202.36.163.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=alliedtelesis.co.nz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alliedtelesis.co.nz Received: from svr-chch-seg1.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id 380B12C0357; Fri, 1 Mar 2024 14:42:10 +1300 (NZDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1709257330; bh=OXAJeaE3GvagN6nGaX3LLx/j6ndgTitcWcCU1jpTvfc=; h=From:To:Cc:Subject:Date:From; b=Ijun7IByBJnY05GU24Hh+uEs2REurx7LH0e6u4ganznmmQpj2CuruhF7pkgUCjiVp UWFXAOf8vThxo0Z41QX2ltf1N3chfbAOhQiQA6AYFanK6PHSIHZ1cmHqJjT5vsQ7UZ g8Esw+p69AnuQ09CWgqmMwn8aXcI/XvMNcHZW+TPq8wICUDeso66qhx8DTILOcCnGa fwO7+lTCrdb36uMjV9kTZZtyoIymyvsReWmLVwOWBT+yBCO0jw4+nWdtOrQ09JTrF0 21dSN82hBiGj9b7LA0fKD+IqLWZCjS84E9IxzyAEAfJPE/q8aj4bQdSwPjy9IKJOx4 X+wclV0L7/LQQ== Received: from pat.atlnz.lc (Not Verified[10.32.16.33]) by svr-chch-seg1.atlnz.lc with Trustwave SEG (v8,2,6,11305) id ; Fri, 01 Mar 2024 14:42:10 +1300 Received: from chrisp-dl.ws.atlnz.lc (chrisp-dl.ws.atlnz.lc [10.33.22.30]) by pat.atlnz.lc (Postfix) with ESMTP id 0993413EDA8; Fri, 1 Mar 2024 14:42:10 +1300 (NZDT) Received: by chrisp-dl.ws.atlnz.lc (Postfix, from userid 1030) id 0457F2807C4; Fri, 1 Mar 2024 14:42:09 +1300 (NZDT) From: Chris Packham To: andy@kernel.org, geert@linux-m68k.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, pavel@ucw.cz, lee@kernel.org Cc: linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Chris Packham Subject: [PATCH v3 0/4] auxdisplay: 7 segment LED display Date: Fri, 1 Mar 2024 14:41:59 +1300 Message-ID: <20240301014203.2033844-1-chris.packham@alliedtelesis.co.nz> X-Mailer: git-send-email 2.43.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-SEG-SpamProfiler-Analysis: v=2.4 cv=BKkQr0QG c=1 sm=1 tr=0 ts=65e13272 a=KLBiSEs5mFS1a/PbTCJxuA==:117 a=K6JAEmCyrfEA:10 a=VwQbUJbxAAAA:8 a=0R7D7yuIXD4GK1tbB18A:9 a=3ZKOabzyN94A:10 a=AjGcO6oz07-iQ99wixmX:22 X-SEG-SpamProfiler-Score: 0 x-atlnz-ls: pat X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792349754606900507 X-GMAIL-MSGID: 1792361720032931345 This series adds a driver for a 7 segment LED display. I haven't had a chance to look at the gpio changes that'd be required to have multiple characters as subnodes. I wanted to get the code that addressed Andy and Rob's comments out before my weekend. --- [1] - https://lore.kernel.org/lkml/2a8d19ee-b18b-4b7c-869f-7d601cea30b6@alliedtelesis.co.nz/ Chris Packham (4): auxdisplay: Add 7-segment LED display driver dt-bindings: auxdisplay: Add bindings for generic 7-segment LED ARM: dts: marvell: Add 7-segment LED display on x530 ARM: dts: marvell: Indicate USB activity on x530 .../bindings/auxdisplay/gpio-7-segment.yaml | 42 ++++++ .../boot/dts/marvell/armada-385-atl-x530.dts | 22 +++- drivers/auxdisplay/Kconfig | 10 ++ drivers/auxdisplay/Makefile | 1 + drivers/auxdisplay/seg-led-gpio.c | 122 ++++++++++++++++++ 5 files changed, 196 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/auxdisplay/gpio-7-segment.yaml create mode 100644 drivers/auxdisplay/seg-led-gpio.c