Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp171037pxv; Thu, 15 Jul 2021 01:25:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymNrJjgagoNthsgJCO9wTQL4NVCbK2u167Jf7hwJecJ2vhDZXaew27qBraPxiEzuunPSNu X-Received: by 2002:a17:906:615:: with SMTP id s21mr4218433ejb.218.1626337535011; Thu, 15 Jul 2021 01:25:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626337535; cv=none; d=google.com; s=arc-20160816; b=HTWxoI1uo5AALaVFOoO3wvexsIy5bs8KgK9/DssOsTrgY/TD4/HsYw4S2CV6XxVPs8 +Wp+PHFd6A8Sf2nHLa2lkWlJr/mvyGCfTps86mHRucQc3egPvrUAGvdJyXj8Wx5kk1BT yMJzpID6ts4j+pdaGqTZELUbdNAyeLE4SbqZOZ8vZ//hS5CN+Esa/9r6syPORyIDkgU+ q2GTFnxbg5T0HVsMwZvHTXrGSqvrJY8IQX1GPMpTo/ADkvHNi6ctaTwyqepZIoXFrd6L enQwlYQnaNC6v+v8WdIsaMOVSPb/uOSnTVCCy0s4tthVXZbi7o3iT2xUynw9vcJuscVf 053A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=r7Wm2VmRQG0S2YATdr39DjvrwdEWRiViM0Z14vn9XxA=; b=jxDYPhB65QeQH533bATZorRvXvb6WRpaCXl5RWCkM9LGJQVvUo5MZbz7svqfnZ5vxx eVQYrwqMY6q5LE3V2Svpiq+viAS/H/Zne52m5EzBr1Gbg0uM1F9Tfvx9C8XKR28xk/sq ElxKfLUPSpDlsHy1O0YQX4afn893sCOl8cgux4j35nnYyymprB3y4VHd9g163/PB3qfK FFa3tZnElNk85MiPkU8TwS+YFkgNGblAnA92bFzz0yHzwaQR6hwHKzoIJNVvbckvw3qb rMZ7hr2/kTPqgNNQkJYX0QZhjflgd4U/qwWpd+HybdTuSVSKkcSBKi3sgt6o2aiAJcu7 AVcw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c20si6339025edw.229.2021.07.15.01.25.09; Thu, 15 Jul 2021 01:25:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240255AbhGOHPq (ORCPT + 99 others); Thu, 15 Jul 2021 03:15:46 -0400 Received: from mail-vs1-f41.google.com ([209.85.217.41]:46043 "EHLO mail-vs1-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239259AbhGOHPq (ORCPT ); Thu, 15 Jul 2021 03:15:46 -0400 Received: by mail-vs1-f41.google.com with SMTP id h5so2435161vsg.12; Thu, 15 Jul 2021 00:12:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=r7Wm2VmRQG0S2YATdr39DjvrwdEWRiViM0Z14vn9XxA=; b=gDYtdN3TQRLThXUNHY7HhW3Fa0z/0/ZWoZ3tu6a2kr01vFYKXrgDOfQ9DtT+SPevUW +U3UiiDAG0Jd9fKtgzLKeiqJXaVjYbWTFvhhvLZKBqiwccnGFDq8pAmcIqdNB3lRFFsD p/uVRmqvxz44AiPIUCiVLKE0mYSYM639Jij2Xi8MI4oXW43/Cu9zjYIGQYL8rWUTWqLq ELeWQTQ0iUhEyjItmtVsn4PSKt3KHKpA5/VkmD/oo1LBmNOwh224eBOeaS3Z3DIj/e1i ElkGGuEoiVDvct36c5VXsB/+aFtl/SzFil2EOM+yNNNVfzS8Fz2emhAUsjKYHCaXtRdX 5Wjg== X-Gm-Message-State: AOAM532evuS8QLPMAdcJK+EfFDRC2o+SBjjMW3InScct2QLW4/44FVOk YnQqzSDz+diGQjAunHqYrTr4KocoNF0m3GAHnDMbbH+qLai55w== X-Received: by 2002:a67:1542:: with SMTP id 63mr4611663vsv.40.1626333171886; Thu, 15 Jul 2021 00:12:51 -0700 (PDT) MIME-Version: 1.0 References: <20210625125902.1162428-1-geert@linux-m68k.org> <20210625125902.1162428-3-geert@linux-m68k.org> <20210714203624.GA3466861@robh.at.kernel.org> In-Reply-To: <20210714203624.GA3466861@robh.at.kernel.org> From: Geert Uytterhoeven Date: Thu, 15 Jul 2021 09:12:40 +0200 Message-ID: Subject: Re: [PATCH v2 02/18] dt-bindings: auxdisplay: ht16k33: Document Adafruit segment displays To: Rob Herring Cc: Robin van der Gracht , Miguel Ojeda , Paul Burton , Greg Kroah-Hartman , Pavel Machek , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-leds , "open list:BROADCOM NVRAM DRIVER" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, Note that you commented on v2, while I posted v3 yesterday. On Wed, Jul 14, 2021 at 10:36 PM Rob Herring wrote: > On Fri, Jun 25, 2021 at 02:58:46PM +0200, Geert Uytterhoeven wrote: > > The Holtek HT16K33 LED controller is not only used for driving > > dot-matrix displays, but also for driving segment displays. > > > > Document compatible values for the Adafruit 7-segment[1] and > > 14-segment[2] FeatherWing expansion boards with red displays. According > > to the schematics, all other Adafruit 7-segment and 14-segment display > > backpack and FeatherWing expansion boards (including bare boards and > > boards fitted with displays) are compatible with these two boards. > > Add a "color" property to support the different color variants. > > > > [1] https://www.adafruit.com/product/3108 > > [2] https://www.adafruit.com/product/3130 > > > > Signed-off-by: Geert Uytterhoeven > > --- a/Documentation/devicetree/bindings/auxdisplay/holtek,ht16k33.yaml > > +++ b/Documentation/devicetree/bindings/auxdisplay/holtek,ht16k33.yaml > > @@ -14,14 +14,23 @@ allOf: > > > > properties: > > compatible: > > - const: holtek,ht16k33 > > + oneOf: > > + - items: > > + - const: adafruit,3108 # 0.56" 4-Digit 7-Segment FeatherWing Display (Red) > > + - const: holtek,ht16k33 > > + > > + - items: > > + - const: adafruit,3130 # 0.54" Quad Alphanumeric FeatherWing Display (Red) > > + - const: holtek,ht16k33 > > These 2 entries can be combined. Right. This split dates back from when I considered adding all possible compatible values. It can indeed be simplified to: - enum: - adafruit,3108 # 0.56" 4-Digit 7-Segment FeatherWing Display (Red) - adafruit,3130 # 0.54" Quad Alphanumeric FeatherWing Display (Red) - const: holtek,ht16k33 > Or make the comment a 'description'. What do you mean? > > > + > > + - const: holtek,ht16k33 # Generic 16*8 LED controller with dot-matrix display > > required: > > - compatible > > - reg > > - - refresh-rate-hz > > + > > +if: > > + properties: > > + compatible: > > + const: holtek,ht16k33 > > Isn't this always true? It is false if there is more than one compatible value. > > > +then: > > + required: > > + - refresh-rate-hz > > > > additionalProperties: false Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds