Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2191809rbb; Tue, 27 Feb 2024 13:47:22 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU2iUOGKVTplnxSRd3w3Mwn3psLcJZd4/4sbXhKrIiJrLn4Fk6X2uzwV8TMbj45U/l339aRrFBQgEtgCEFcT1t9HcoPGoyKOiZa1wTN/A== X-Google-Smtp-Source: AGHT+IFsMjisNlUsRk6bLmxziQ7xOnWQLT46ZSJw+EwEwEjDpMZi9yRGmlQZx+7mNwlzKll8j+ho X-Received: by 2002:a17:907:930:b0:a3f:a562:ded2 with SMTP id au16-20020a170907093000b00a3fa562ded2mr7300107ejc.73.1709070441895; Tue, 27 Feb 2024 13:47:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709070441; cv=pass; d=google.com; s=arc-20160816; b=csNHc3dkX6NNrFa7H5NthyGTr8REduH+WfZ3XOjD34VKHtar8iwZpWtnLkqvQnTVOQ qdkR1iarHhfAoDZBZxlKa2nMLEXkGWELWYzGVeu1ASSwDZb15p+paxRC7IVEaJep7031 ElIaKlBdDSHuKvulXAXFl2l46roEqJf7leaF2uetY0CLRmATfefNwW62ymM9vrQ889Ji Ft0LvShL77sca6IdeI07iLYDIHAQqmXwIs9rzZ0nfsYK8OkVYKUfEEtv3kYemlzuKyat f3XffNpSi95bAy11XsdO2X6+3pmmT7lF1Y/Y9ELriEGyfYO3tjrKNJI1OtSp4B99cmFK LEnA== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=LOw+APALrT5aUqA/0fMq33F3F8DtOvqcqkhH81G9wOw=; fh=0E1zKu25rC1dvhxh54JUfQllyJcUtqgw4XThBRPfUNc=; b=AhRLqOABqRYKMJ2PZgbJFrEFjYUhosXBaJRDLGR0dcdAZgbZQ+22E+tOzTz8fquzTq qVwHq3TgOYH9BbNoUZ4PEyQ+fHc3Oo0VAn/Uso7SJZIH50G8Mr3+2mj6tD/QdkXGVhqD 0h90Lfgw+AYYh4CC6JreT1KnwBjgLe0TIr/8JQ3VOQVI+Jp/Uawg0yDNObn8sOtm/qWI EbUumoI0lrGRYr+cVx09Ob03LJKzdtY4UZEoEFWSzsWWIbjOUcZM82EqrJKOahno9afU FVzJFmg5CSPvMGp+3uG/Fe7cfsGXxeAbdYzbkJRXmgnyvI0gTn9taPZRZcSj8C6gboeL Lbhw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=lYcSDEAv; 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-84027-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84027-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=alliedtelesis.co.nz Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id dv8-20020a170906b80800b00a43f38f7850si29777ejb.168.2024.02.27.13.47.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 13:47:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84027-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=lYcSDEAv; 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-84027-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84027-linux.lists.archive=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 2169B1F284D6 for ; Tue, 27 Feb 2024 21:23:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 500E714F964; Tue, 27 Feb 2024 21:22:53 +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="lYcSDEAv" 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 0534914EFDB for ; Tue, 27 Feb 2024 21:22:48 +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=1709068972; cv=none; b=O0B5mGbiMZnx97JQWhpH7lYQk/Or6ogSk9/gHAKgKTu5DGL3nK0BbsyroZGUwZAC1zqpKd5J5qo571Fd8qvMvxnSF7Daod0wJF1VXQd/41ZwLYtWGUDvoz5Lv7uI9kP3K40auY2jsbAh0uJ5BOWnPvfzMbJ7iUzbzDhpK+9kgCM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709068972; c=relaxed/simple; bh=eK9yw7rjJCnXz/CRcOc0uADvvqCIKYQRpfuCDUPnZlY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hxyw42peQelpySeonm2+ywojbDphf6LMdG4YGQmqOC7k2RxNfy5ReveG0H1Q9kM7U2cJ/kf/agTyLtkuN1oLaeQrNMIfx1OSVhv8bFNYKRZmqhX92+PwcePpEyQqyTYaM+AKBZo8DefUiXRYAUP7NpJFC1qUI6cSLn2Zbd0bHWw= 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=lYcSDEAv; 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 D11672C05BB; Wed, 28 Feb 2024 10:22:46 +1300 (NZDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1709068966; bh=LOw+APALrT5aUqA/0fMq33F3F8DtOvqcqkhH81G9wOw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lYcSDEAviff6X00qS3mF3yGsjFgw2eo+sDdRxFGO79Ddn70FcnWazriYVZJ6l16p3 53IPb0v65KS9ObQBR5QhbKKl4wkPRy7cMH/DlFxR39krhG06lxuNKl7FoOXIcz4i2m 70wSgJlYIG+D/I9RBmdjdMvn9WLL8wVy16vrN12qEXt5W+EGG7EAc8Vu12Z3OWE9PG 7ELjT/Cnm//csJstogNXktFod2rBtpMOu5ddjbiy1tmzzL0IxnvvY/pMbTntEvsMWn UH0APOj8wR+iDzYie4+VeMLi2MkiMClOBjhrSynXWEdrN2D4w/3+SOIg7XDCI0ae83 vrXvMybCVSxCQ== 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 ; Wed, 28 Feb 2024 10:22:46 +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 66AB013EE85; Wed, 28 Feb 2024 10:22:46 +1300 (NZDT) Received: by chrisp-dl.ws.atlnz.lc (Postfix, from userid 1030) id 628CE280B00; Wed, 28 Feb 2024 10:22:46 +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, ojeda@kernel.org, tzimmermann@suse.de, javierm@redhat.com, robin@protonic.nl, lee@kernel.org, pavel@ucw.cz Cc: devicetree@vger.kernel.org, linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Chris Packham Subject: [PATCH v2 2/4] dt-bindings: auxdisplay: Add bindings for generic 7 segment LED Date: Wed, 28 Feb 2024 10:22:42 +1300 Message-ID: <20240227212244.262710-3-chris.packham@alliedtelesis.co.nz> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240227212244.262710-1-chris.packham@alliedtelesis.co.nz> References: <20240227212244.262710-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-Transfer-Encoding: quoted-printable X-SEG-SpamProfiler-Analysis: v=2.4 cv=BKkQr0QG c=1 sm=1 tr=0 ts=65de52a6 a=KLBiSEs5mFS1a/PbTCJxuA==:117 a=k7vzHIieQBIA:10 a=gEfo2CItAAAA:8 a=wDxYY4ZP0rUsokw9mtgA:9 a=3ZKOabzyN94A:10 a=sptkURWiP4Gy88Gu7hUp:22 X-SEG-SpamProfiler-Score: 0 x-atlnz-ls: pat Add bindings for a generic 7 segment LED display using GPIOs. Signed-off-by: Chris Packham --- Notes: Changes in v2: - Use compatible =3D "generic-gpio-7seg" to keep checkpatch.pl happy .../auxdisplay/generic-gpio-7seg.yaml | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/auxdisplay/generic-= gpio-7seg.yaml diff --git a/Documentation/devicetree/bindings/auxdisplay/generic-gpio-7s= eg.yaml b/Documentation/devicetree/bindings/auxdisplay/generic-gpio-7seg.= yaml new file mode 100644 index 000000000000..46d53ebdf413 --- /dev/null +++ b/Documentation/devicetree/bindings/auxdisplay/generic-gpio-7seg.yaml @@ -0,0 +1,40 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/auxdisplay/generic,gpio-7seg.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: GPIO based LED segment display + +maintainers: + - Chris Packham + +properties: + compatible: + const: generic-gpio-7seg + + segment-gpios: + description: + An array of GPIOs one per segment. + minItems: 7 + +required: + - segment-gpios + +additionalProperties: false + +examples: + - | + + #include + + led-7seg { + compatible =3D "generic-gpio-7seg"; + segment-gpios =3D <&gpio 0 GPIO_ACTIVE_LOW + &gpio 1 GPIO_ACTIVE_LOW + &gpio 2 GPIO_ACTIVE_LOW + &gpio 3 GPIO_ACTIVE_LOW + &gpio 4 GPIO_ACTIVE_LOW + &gpio 5 GPIO_ACTIVE_LOW + &gpio 6 GPIO_ACTIVE_LOW>; + }; --=20 2.43.2