Message ID | 20240208184919.2224986-15-andriy.shevchenko@linux.intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-58574-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp414171dyd; Thu, 8 Feb 2024 11:51:04 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX7qYSmzCRwJpBYciRF/Ub+PJS7i8iqsT+/QZJhYSNzYGQY4aWzPKmoZ8hB7YFIcLraItBxp9PEmNI5LqH2AWGTz1Uy9w== X-Google-Smtp-Source: AGHT+IGCJ7b/3aJSFyD4FGCLGKNYIQhQiFWdp+CPBeXaUI9GV+oUjMiSdnMxx5TWeOjS6VQw6JZw X-Received: by 2002:aca:190d:0:b0:3bf:f066:ca0f with SMTP id l13-20020aca190d000000b003bff066ca0fmr333825oii.46.1707421864357; Thu, 08 Feb 2024 11:51:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707421864; cv=pass; d=google.com; s=arc-20160816; b=TfDEEujWk0t0FsIwfJO/KPJcsNSnQ3in9hH35bQmEe+/zAo8ZyWGqD9PyL+TJXqGeu DFkpa/xeowJua1RMOf7tIzW+3KZfuEhZPrHoctr4GWGeRvdXV9Zk958ilJeP1F+uClC6 yxexnVAs+FVNcwWMCEptg1Xw+pHBkLY0czdt/k0Y/cLe4drrzVRXHISIAZ36ehKGwZOW 43NUWrdCRLxCVl7IfntJasTa911Ppt03qye3bKz9wrAZhxOXFR0hAV35pNCgTB3CCNck er1fBCgV7ByaluAa7BJzQieLKE/RXqBZCm1jrwhgSt+KGemf8XhXTAzdM2gZ0yPliEiQ zYxw== 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=SkOM/TsZCxCboFTDDLY36ln3DDd99x1Ivnh/2nwHtXY=; b=JmVB6r/XjCIdedF+rQkKouUdpeINm1czk+syDSHygvmLPPMtjWrHD0SH7wwNikefHJ jBWQRiUJehBPHK3xFxOee6T/hp0+2vsPDAZMfrtQNzmJmWFJP8UioxjMKXvuUDBS5J0O Id2kCL1N51EqR6loDbQw3R4GQMIpgW2sFszQ3TFo4dq09l1LEKpf3SaNcCbgSemQDF3/ +jrd2AiyVZWprFnuFcGYrzmCULwEWJZwnPv2dwgql73h6zRiruJC/0CPFilPRcQ5xa5Z KcqZ5QBTLb6ZzscNV8Dyx3+PnKI+crOecE5CSP73FBg+RzCpbjTqp2G6yV8dv9ZGHAdp nDxA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KPpVkpOw; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-58574-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58574-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=2; AJvYcCVshLtcqfdC72OHAFi3HdfRtiVVDvKXDQggxgRtZqBuWMSpuUHAarh5v9Bq+e/6ABFm8JuFNy9qr+arBex2h9fGKguJng== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id o18-20020a05622a045200b0042c2812fa40si163295qtx.757.2024.02.08.11.51.04 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 11:51:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58574-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=KPpVkpOw; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-58574-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58574-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 15EE71C29BA8 for <ouuuleilei@gmail.com>; Thu, 8 Feb 2024 18:57:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EB3A54F5FA; Thu, 8 Feb 2024 18:49:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="KPpVkpOw" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) (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 CDB1B36AE1; Thu, 8 Feb 2024 18:49:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.19 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707418177; cv=none; b=Yt4z4mqEwKZOENMev72htaE3ycuKJaGyZqz+t6rqM1hufnEE1dCDPW8vHhAEjXirdN8TQ0eJINkLoJQoPBCmJ86ieIYEe0V3q4n0GAFnINUICT0u55021fpLlXnTTKTo89q8Xwbg7chikdZhC+rfdWAeKfhK5NS/yq6ViJK0QTE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707418177; c=relaxed/simple; bh=xwQv8uq+9wANm7Kp3tnfC+qRvpRyTa5vpEt37Og3eA0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=NmtedN/pFCbYVpQKWQkl/hlMakijeAK80rLrX9goH1Deu7FXp6DdqpGY5fb2c1KeL+f4iaRU5N72dD54qHflPWd8K3yUPxQnQt3yGps4D4SRbdzwxQTJIBOyP9br82FN3xxKP+x9hg+ghXY0OsByMsS7xuF8krg77D3WSwntwpQ= 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=KPpVkpOw; arc=none smtp.client-ip=192.198.163.19 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=1707418175; x=1738954175; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=xwQv8uq+9wANm7Kp3tnfC+qRvpRyTa5vpEt37Og3eA0=; b=KPpVkpOwmpcbJaEuStBBJXt9pcDyw0Yp21ENfTOk3WWVq0SuxU1K9G0+ 694OQtFllPE+ThKBqsS+dqOuZGZTi+Nt1s+hOVi/yCA5ZXjj0s4Xd+dJo /8gpsSpXXGmOY0ONR+q1WypL+1mJO9J70UrMvsWMzjj1bhND6+uk3WfHU ur2qQwGbR3JxHg567nzcRNqdwb3jjgNg1tIjDHNW+FBorwuLoSWtnkW8I oqwVFS/PbVyZoSs1O/uY0CaggrCsegxSf2OchqwGKBwVFHcHFfxdx5eH2 455QXbR7NIGFQE3Q09iWlV1GzxyrvuA/y/wcZL09mEHoXwDvVRb6xIJpT g==; X-IronPort-AV: E=McAfee;i="6600,9927,10978"; a="1186141" X-IronPort-AV: E=Sophos;i="6.05,254,1701158400"; d="scan'208";a="1186141" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2024 10:49:29 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10978"; a="934215540" X-IronPort-AV: E=Sophos;i="6.05,254,1701158400"; d="scan'208";a="934215540" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 08 Feb 2024 10:49:26 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id BBA6112FC; Thu, 8 Feb 2024 20:49:21 +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 20:48:12 +0200 Message-ID: <20240208184919.2224986-15-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1.gbec44491f096 In-Reply-To: <20240208184919.2224986-1-andriy.shevchenko@linux.intel.com> References: <20240208184919.2224986-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: 1790361588468974540 X-GMAIL-MSGID: 1790361588468974540 |
Series |
auxdisplay: linedisp: Clean up and add new driver
|
|
Commit Message
Andy Shevchenko
Feb. 8, 2024, 6:48 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 08/02/2024 19:48, Andy Shevchenko wrote: > 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 > > 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> > + Please describe the device, e.g. bus/interface. > +properties: > + compatible: > + const: maxim,max6959 Your title said also max6958, so I would expect it to be here as well. Cam be followed by 6959 fallback compatible, if they are compatible. > + > + reg: > + maxItems: 1 No power supplies? No reset pins? > + > +required: > + - compatible > + - reg > + > +additionalProperties: false > + > +examples: > + - | > + i2c { > + #address-cells = <1>; Use 4 spaces for example indentation. 2 is also fine. > + #size-cells = <0>; > + > + max6959: max6959@38 { Node names should be generic. See also an explanation and list of examples (not exhaustive) in DT specification: https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation e.g. display-controller or display > + compatible = "maxim,max6959"; > + reg = <0x38>; > + }; > + }; Best regards, Krzysztof
On Fri, Feb 09, 2024 at 09:02:44AM +0100, Krzysztof Kozlowski wrote: > On 08/02/2024 19:48, Andy Shevchenko wrote: > > Add initial device tree documentation for Maxim MAX6958/6959. .. > Please describe the device, e.g. bus/interface. OK. .. > > +properties: > > + compatible: > > + const: maxim,max6959 > > Your title said also max6958, so I would expect it to be here as well. > Cam be followed by 6959 fallback compatible, if they are compatible. Same question as I asked before, why should we have them separated? The hardware features can be autodetected. What's the reason for (unneeded in my opinion and duplicative) compatible? .. > > + reg: > > + maxItems: 1 > > No power supplies? No reset pins? No power supplies, no reset pins. At least there is no as such in the datasheet. Do you see them there? .. > > +examples: > > + - | > > + i2c { > > + #address-cells = <1>; > > Use 4 spaces for example indentation. 2 is also fine. Sure. Btw, this is copy&pasted from the existing YAML. Are you going to fix them? > > + #size-cells = <0>; > > + > > + max6959: max6959@38 { > > Node names should be generic. See also an explanation and list of (Same remark: it's a pattern from the existing code. Are you going to fix that?) > examples (not exhaustive) in DT specification: > https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation > e.g. display-controller or display Sure, thanks for review! > > + compatible = "maxim,max6959"; > > + reg = <0x38>; > > + }; > > + };
On 09/02/2024 14:59, Andy Shevchenko wrote: > On Fri, Feb 09, 2024 at 09:02:44AM +0100, Krzysztof Kozlowski wrote: >> On 08/02/2024 19:48, Andy Shevchenko wrote: >>> Add initial device tree documentation for Maxim MAX6958/6959. > > ... > >> Please describe the device, e.g. bus/interface. > > OK. > > ... > >>> +properties: >>> + compatible: >>> + const: maxim,max6959 >> >> Your title said also max6958, so I would expect it to be here as well. >> Cam be followed by 6959 fallback compatible, if they are compatible. > > Same question as I asked before, why should we have them separated? > The hardware features can be autodetected. What's the reason for (unneeded > in my opinion and duplicative) compatible? And which part of device description in the binding, or at least commit msg but better description, explained it? For every unexplained deviation from common rules - and documenting compatibles is explicitly asked in writing bindings document - you will get questions from reviewers... Please add this information to description. > > ... > >>> + reg: >>> + maxItems: 1 >> >> No power supplies? No reset pins? > > No power supplies, no reset pins. At least there is no as such in > the datasheet. Do you see them there? How do I know? I don't have datasheets and I don't have really time to investigate each datasheet of every device people send bindings for. Several people make mistakes of not putting such stuff because "driver does not need it", so how can I know that here it was not the case? > > ... > >>> +examples: >>> + - | >>> + i2c { >>> + #address-cells = <1>; >> >> Use 4 spaces for example indentation. 2 is also fine. > > Sure. Btw, this is copy&pasted from the existing YAML. Are you going to > fix them? I fixed several of them. At some point I might fix all of them, but that's lower priority. I wished I have all the time for this :) > >>> + #size-cells = <0>; >>> + >>> + max6959: max6959@38 { >> >> Node names should be generic. See also an explanation and list of > > (Same remark: it's a pattern from the existing code. Are you going to fix > that?) > Same answer. 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>; + }; + };