Message ID | 20240208165937.2221193-15-andriy.shevchenko@linux.intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-58434-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp411536dyd; Thu, 8 Feb 2024 11:45:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IGsF9PENgPT6EwCK1f9fftHxzEz+JTpwxBVT+78NspR6RiJZ9w2cEDZS8SuZ3wrlyt8dQDT X-Received: by 2002:a05:620a:1263:b0:785:4f3b:f9c0 with SMTP id b3-20020a05620a126300b007854f3bf9c0mr523086qkl.54.1707421527729; Thu, 08 Feb 2024 11:45:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707421527; cv=pass; d=google.com; s=arc-20160816; b=M1Mir9M6hF9tySSpwmViaaqzA2GNTCa/bOZ2l8DX25OA3JTemvR8f0qNpmOxWjW6/r DNyZxCMWswfAgtn/baH/MY/P9HZJGOH+ssQKvIbc1jf5ti3/FYuflckaaDm8D3wJkrAL FvbZu1nb0Lwtq4RYvubNlgJFnSghd+uCF5FpqG4/BfP0nZHoMnF85iAUkaIquflQBWWN UTRTgN/dugn9sE9Cvkd59O2pVoXT740JHGwBvxqL4rKDFkizJWFbZ+AEjZSH39NmqQEU Np7DtIepb8D7AOsbCdXLI4AeC9/RDHftdRzvWCaaj7tBHEcjuk58rXwmiLbCcGarJeKA 8Djg== 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=o8OW6rgAVY/+qAoGwDGdOof0EXHfbB3/JF/gcW3+PdA=; fh=t604/leFZyfzfB4eqOjTJPnJ5XHCErRjO7dfYQmYiKA=; b=wEONjMLDmMKaa4Af3WAaa7Kg0ysozkXhAbnToDHgseuRRjtCnQ2fnFcS6qP18uEjiX 6USPQ9ypHZ+EJjpMOSPnxhAEjbZFdstN/oKq1y1DIj0WE/N76XFh+wV4s0RhsF5YtNXT +KtTgny+8P4kvbYufY4hXPDMA3axIZYswbFVDVWyrLJvZ4qFxyTAPJbf1iG3CFRki+S9 Go263ax2vWJNm77qlLcsLRKjb6cuJtldfQiQ5y9BBz8yB4qMfb0z3R4iZGeOV/lpdOtJ a8Wc4J4dkz/Ib1L3rG9h0+vyTU22hIK5baXyAKo6wvXNrjxUL1jrWIGdJXKdEpxUZMHd 9kBg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=fVsW2fPu; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-58434-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58434-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=2; AJvYcCXK2yQHXLNha2GsePD9rxzmpwAN5RbYiDb2f3egchHi0o9n850/EbNTZzSXZ733SnuPOv+lifORLHyJUV9hDdf4IG2mFQ== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id wa24-20020a05620a4d1800b00785997a7593si287955qkn.410.2024.02.08.11.45.27 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 11:45:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58434-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=fVsW2fPu; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-58434-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58434-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 877841C24B7B for <ouuuleilei@gmail.com>; Thu, 8 Feb 2024 17:18:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8631A82D8C; Thu, 8 Feb 2024 17:17:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="fVsW2fPu" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.16]) (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 005EB81AAA; Thu, 8 Feb 2024 17:17:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.16 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707412653; cv=none; b=nWdvk0U51g76fnmLnOK6G4Co8PK2StV7Jz6zQo621uefYVyWlYuUr1kZzm82ndOdmse7A+02NgKDt0Jmj/53G0SWwFL6usbTNOKlNQf0swdKMW/HS03V1g/oQcz4sDxbIHSDzXBQpOqr/HRd84JcnDJF5dSqhiuGgeqxPCFemAo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707412653; c=relaxed/simple; bh=xwQv8uq+9wANm7Kp3tnfC+qRvpRyTa5vpEt37Og3eA0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Q2w8G5WazjFI+npjVGfd56gLpTuZwFImHNk4+q/FggEe5ZgMk88xP9NpI6VpopSfNrRwsFqENdGYn73mnol4lJ/tpj/9D2Xi/pcZOvi8z6ywPfqKHoqhfxlglLlchpNtnnuwLgpTAPa4N8jttBk+1IULLkmC0r9DVGtu8+3ko4k= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=fVsW2fPu; arc=none smtp.client-ip=192.198.163.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1707412652; x=1738948652; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=xwQv8uq+9wANm7Kp3tnfC+qRvpRyTa5vpEt37Og3eA0=; b=fVsW2fPu6Wt4oEluiIUrQEpRY63dAi5Jkx3Zspqs+4bXHSQrDm6knJqW IfAtuGWi2kVtVaJoBdNu2sis9OyfS1MVDspFEZ91NbtizdM4XvBUrCxT3 CH+nA6IV70lY183aFYXMGm4XrbKBHOdM5WMDFgkdyNUbgWrKBqrSs6nsu rHSUtnNUgmiEf4TcPAlIcoAiHgsnT6+mFXGSG3yWJ4CSD6ZOE7tF6j/Oq lHmFnBdWMNaWW/9OlvizBJmNJBUF3wRNsyxoMIYtaAF547NbKQO1K4G2R bmM6SPU8XqhjEPQVLYP8myagwTUc/oiIMDLHtieoQmkY8w8Fbfhl6jEz/ Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10978"; a="1565643" X-IronPort-AV: E=Sophos;i="6.05,254,1701158400"; d="scan'208";a="1565643" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmvoesa110.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2024 09:17:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10978"; a="934195355" X-IronPort-AV: E=Sophos;i="6.05,254,1701158400"; d="scan'208";a="934195355" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 08 Feb 2024 09:17:26 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id A7AEB168C; Thu, 8 Feb 2024 18:59:41 +0200 (EET) From: Andy Shevchenko <andriy.shevchenko@linux.intel.com> To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Miguel Ojeda <ojeda@kernel.org>, Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Robin van der Gracht <robin@protonic.nl>, Paul Burton <paulburton@kernel.org>, Geert Uytterhoeven <geert+renesas@glider.be> Subject: [PATCH v1 14/15] dt-bindings: auxdisplay: Add Maxim MAX6958/6959 Date: Thu, 8 Feb 2024 18:58:57 +0200 Message-ID: <20240208165937.2221193-15-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1.gbec44491f096 In-Reply-To: <20240208165937.2221193-1-andriy.shevchenko@linux.intel.com> References: <20240208165937.2221193-1-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790354354658994363 X-GMAIL-MSGID: 1790361235873008541 |
Series |
auxdisplay: linedisp: Clean up and add new driver
|
|
Commit Message
Andy Shevchenko
Feb. 8, 2024, 4:58 p.m. UTC
Add initial device tree documentation for Maxim MAX6958/6959.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
.../bindings/auxdisplay/maxim,max6959.yaml | 35 +++++++++++++++++++
1 file changed, 35 insertions(+)
create mode 100644 Documentation/devicetree/bindings/auxdisplay/maxim,max6959.yaml
Comments
On Thu, Feb 08, 2024 at 08:16:56PM +0200, Andy Shevchenko wrote: > On Thu, Feb 08, 2024 at 05:50:51PM +0000, Conor Dooley wrote: > > On Thu, Feb 08, 2024 at 06:58:57PM +0200, Andy Shevchenko wrote: > > > Add initial device tree documentation for Maxim MAX6958/6959. > > > > Why "initial"? Are there elements this display that you've not > > documented yet? > > s/documented/implemented/ Oh no, I meant documented. Whether or not you implement support in the driver doesn't really matter, but you should endeavour to document as much of the hardware as possible. Certainly simple things like interrupts. > There are features of the hardware that may need additional properties. > > > > +title: MAX6958/6959 7-segment LED display controller with keyscan > > > > > +properties: > > > + compatible: > > > + const: maxim,max6959 > > > > Where's the max6958's compatible? I don't see it in your driver either. > > For now, see above, there is no need. I don't know what I am supposed to see above. > Moreover, there is no need at all > as we have autodetection mechanism. I don't see why we should have two > compatible strings just for the sake of having them. > > > It seems that the max6959 has some interrupt capabilities that are not > > available on the max6958, so a dedicated compatible seems suitable to > > me. > > So, please clarify the DT's p.o.v. on the hardware that can be autodetected. > Do we need to still have different compatible strings? What for? I don't > see the need, sorry for my (silly) questions. If there's an auto-detection mechanism, which is a valid justification, you need to put it in the commit message. If you don't it just looks like you're missing a compatible. The advantage of a dedicated compatible is restricting the properties that would only apply to either the 6958 or 6959 to just that device. You've only partially documented these devices though, so it is not clear how much of a divergence there'd actually be. cheers, Conor
On 08/02/2024 18:50, Conor Dooley wrote: > On Thu, Feb 08, 2024 at 06:58:57PM +0200, Andy Shevchenko wrote: >> Add initial device tree documentation for Maxim MAX6958/6959. > > Why "initial"? Are there elements this display that you've not > documented yet? > Why there are multiple versions of this patchset? This leads to different reviewers commenting in different patchsets? Andy, please implement feedback given to all your patchsets... Best regards, Krzysztof
diff --git a/Documentation/devicetree/bindings/auxdisplay/maxim,max6959.yaml b/Documentation/devicetree/bindings/auxdisplay/maxim,max6959.yaml new file mode 100644 index 000000000000..49ce26176797 --- /dev/null +++ b/Documentation/devicetree/bindings/auxdisplay/maxim,max6959.yaml @@ -0,0 +1,35 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/auxdisplay/maxim,max6959.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MAX6958/6959 7-segment LED display controller with keyscan + +maintainers: + - Andy Shevchenko <andriy.shevchenko@linux.intel.com> + +properties: + compatible: + const: maxim,max6959 + + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + max6959: max6959@38 { + compatible = "maxim,max6959"; + reg = <0x38>; + }; + };