Message ID | 20230608021839.12769-3-billy_tsai@aspeedtech.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp616915vqr; Wed, 7 Jun 2023 19:20:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5p/RjP980pJyjX2rvfeHwkUhaFCapMaj3nk2n86ZMA/y3Kf87O/eUA2pY/BzCm4CmWbp9j X-Received: by 2002:aca:110f:0:b0:398:2c03:45fc with SMTP id 15-20020aca110f000000b003982c0345fcmr6185564oir.15.1686190842492; Wed, 07 Jun 2023 19:20:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686190842; cv=none; d=google.com; s=arc-20160816; b=TGvUew8DKtnK94RJdY6aAK5iUavuD27KWDeQjhB1nJh7hOJUOVtKFCyVzl6+CsB8Ja Cli5WaBF+d2ph/AxM20MJ4u1VYe5QbzGzcRpS+xfwY7LODNrQPQK/7LGjwuMCqVbYlup UHQl3kzPmH0KdvOVLiC8O8Ddjn+omU0G2qd34yxqRcqDn3XcSzvBeDWMqiZ9XK9S4wpE Pqby/qM3cZD6lJ+gjW55kDP/B7UKzcK7LGxabmn0Ct/hj0PoZGpM3nCOpcDdDUaPg1es +MDuuPW3JEcdPjCuRhRfY/5eii/AvjjCWDeEEFGbPczTKi9IoqGKzNGazH3g39K/L4qZ K4iA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from; bh=XrZF/fJ5607/Mbvv+ay1VNJJmuv3rAKzSFAo0Chw5wY=; b=CLIAxhxeDwNTDzt1p4qbkZlw+0pu3j7vVX+EwT00qKEalFfKzV5A3KGKlj9SQ2bgIJ M/MmVWL6d1rGQD4M+bzJ3zvW32Nfozqynn7ZMQp0CyTfF00WwZkia6P75jsv1DNWnRKO 5+lIDji7+IZT3q6LfUBlDhLs2Yp07j7ND1d49EFP4mej0Ii3CoP5NpLEjZCn2/dB2A+C VJvJ0pDGgsNNIC/Jl2lfvWjasiJ93TD7y2FtWpDJeeGR4SPSNW+pk6jtye7S/6gxH17k em0inEHdh5R2+sOwBMdKid+mZ88c1QEII45LWUfS79wopj+04NVpzRfWVvK/ft1rCUSW RUNg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y190-20020a638ac7000000b0053fb186c6a1si216623pgd.355.2023.06.07.19.20.28; Wed, 07 Jun 2023 19:20:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232401AbjFHCQg (ORCPT <rfc822;literming00@gmail.com> + 99 others); Wed, 7 Jun 2023 22:16:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233249AbjFHCQc (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 7 Jun 2023 22:16:32 -0400 Received: from mail.aspeedtech.com (mail.aspeedtech.com [211.20.114.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 038461984; Wed, 7 Jun 2023 19:16:30 -0700 (PDT) Received: from BillyTsai-pc.aspeed.com (192.168.1.221) by TWMBX02.aspeed.com (192.168.0.24) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 8 Jun 2023 10:16:21 +0800 From: Billy Tsai <billy_tsai@aspeedtech.com> To: <jdelvare@suse.com>, <linux@roeck-us.net>, <robh+dt@kernel.org>, <krzysztof.kozlowski+dt@linaro.org>, <joel@jms.id.au>, <andrew@aj.id.au>, <thierry.reding@gmail.com>, <u.kleine-koenig@pengutronix.de>, <corbet@lwn.net>, <p.zabel@pengutronix.de>, <billy_tsai@aspeedtech.com>, <linux-hwmon@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linux-aspeed@lists.ozlabs.org>, <linux-kernel@vger.kernel.org>, <linux-pwm@vger.kernel.org>, <linux-doc@vger.kernel.org>, <patrick@stwcx.xyz> Subject: [v6 2/4] dt-bindings: hwmon: Add ASPEED TACH Control documentation Date: Thu, 8 Jun 2023 10:18:37 +0800 Message-ID: <20230608021839.12769-3-billy_tsai@aspeedtech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230608021839.12769-1-billy_tsai@aspeedtech.com> References: <20230608021839.12769-1-billy_tsai@aspeedtech.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [192.168.1.221] X-ClientProxiedBy: TWMBX02.aspeed.com (192.168.0.24) To TWMBX02.aspeed.com (192.168.0.24) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768099248736298258?= X-GMAIL-MSGID: =?utf-8?q?1768099248736298258?= |
Series |
Support pwm/tach driver for aspeed ast26xx
|
|
Commit Message
Billy Tsai
June 8, 2023, 2:18 a.m. UTC
Document the compatible for aspeed,ast2600-tach device.
Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
---
.../bindings/hwmon/aspeed,ast2600-tach.yaml | 32 +++++++++++++++++++
1 file changed, 32 insertions(+)
create mode 100644 Documentation/devicetree/bindings/hwmon/aspeed,ast2600-tach.yaml
Comments
On 6/7/23 19:18, Billy Tsai wrote: > Document the compatible for aspeed,ast2600-tach device. > > Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com> > --- > .../bindings/hwmon/aspeed,ast2600-tach.yaml | 32 +++++++++++++++++++ > 1 file changed, 32 insertions(+) > create mode 100644 Documentation/devicetree/bindings/hwmon/aspeed,ast2600-tach.yaml > > diff --git a/Documentation/devicetree/bindings/hwmon/aspeed,ast2600-tach.yaml b/Documentation/devicetree/bindings/hwmon/aspeed,ast2600-tach.yaml > new file mode 100644 > index 000000000000..627aa00f2e92 > --- /dev/null > +++ b/Documentation/devicetree/bindings/hwmon/aspeed,ast2600-tach.yaml > @@ -0,0 +1,32 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +# Copyright (C) 2021 Aspeed, Inc. > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/hwmon/aspeed,ast2600-tach.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Aspeed Ast2600 Tach controller > + > +maintainers: > + - Billy Tsai <billy_tsai@aspeedtech.com> > + > +description: | > + The Aspeed Tach controller can support upto 1 fan input. > + The code says: In Aspeed AST2600 SoC features 16 TACH controllers, with each controller capable of supporting up to 1 input. which is a bit different. I guess there are no examples anymore, but I'd really like to see how this looks like in the devicetree file, and how the driver is supposed to distinguish/select the 16 inputs. > +properties: > + compatible: > + enum: > + - aspeed,ast2600-tach > + > + clocks: > + maxItems: 1 > + > + resets: > + maxItems: 1 > + > +required: > + - compatible > + - clocks > + - resets > + > +additionalProperties: false
On 08/06/2023 04:18, Billy Tsai wrote: > Document the compatible for aspeed,ast2600-tach device. This is a friendly reminder during the review process. It seems my previous comments were not fully addressed. Maybe my feedback got lost between the quotes, maybe you just forgot to apply it. Please go back to the previous discussion and either implement all requested changes or keep discussing them. Thank you. > > Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com> > --- > .../bindings/hwmon/aspeed,ast2600-tach.yaml | 32 +++++++++++++++++++ > 1 file changed, 32 insertions(+) > create mode 100644 Documentation/devicetree/bindings/hwmon/aspeed,ast2600-tach.yaml > > diff --git a/Documentation/devicetree/bindings/hwmon/aspeed,ast2600-tach.yaml b/Documentation/devicetree/bindings/hwmon/aspeed,ast2600-tach.yaml > new file mode 100644 > index 000000000000..627aa00f2e92 > --- /dev/null > +++ b/Documentation/devicetree/bindings/hwmon/aspeed,ast2600-tach.yaml > @@ -0,0 +1,32 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +# Copyright (C) 2021 Aspeed, Inc. > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/hwmon/aspeed,ast2600-tach.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Aspeed Ast2600 Tach controller > + > +maintainers: > + - Billy Tsai <billy_tsai@aspeedtech.com> > + > +description: | > + The Aspeed Tach controller can support upto 1 fan input. > + > +properties: > + compatible: > + enum: > + - aspeed,ast2600-tach > + > + clocks: > + maxItems: 1 > + > + resets: > + maxItems: 1 NAK, not true based on previous discussions. Device does not come with resets and clocks. Best regards, Krzysztof
On 6/7/23 23:21, Billy Tsai wrote: > > The code says: > > > In Aspeed AST2600 SoC features 16 TACH controllers, with each > > > controller capable of supporting up to 1 input. > > > which is a bit different. I guess there are no examples anymore, > > > but I'd really like to see how this looks like in the devicetree file, > > > and how the driver is supposed to distinguish/select the 16 inputs. > > Hi Roeck, > > The node in the devicetree file will looks like following: > > tach0: tach0@1e610008 { > > compatible = "aspeed,ast2600-tach"; > > reg = <0x1e610008 0x8>; > > #address-cells = <1>; > > #size-cells = <0>; > > pinctrl-names = "default"; > > pinctrl-0 = <&pinctrl_tach0_default>; > > clocks = <&syscon ASPEED_CLK_AHB>; > > resets = <&syscon ASPEED_RESET_PWM>; > > status = "disabled"; > > }; > Neither reg nor pinctrl is mentioned in the bindings. Maybe that is not needed nowadays, but I find it confusing. Either case, it is highly unusual that there would be 16 instances of this device instead of one. Why is this done ? It doesn't really make sense to me. Guenter
diff --git a/Documentation/devicetree/bindings/hwmon/aspeed,ast2600-tach.yaml b/Documentation/devicetree/bindings/hwmon/aspeed,ast2600-tach.yaml new file mode 100644 index 000000000000..627aa00f2e92 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/aspeed,ast2600-tach.yaml @@ -0,0 +1,32 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (C) 2021 Aspeed, Inc. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/aspeed,ast2600-tach.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Aspeed Ast2600 Tach controller + +maintainers: + - Billy Tsai <billy_tsai@aspeedtech.com> + +description: | + The Aspeed Tach controller can support upto 1 fan input. + +properties: + compatible: + enum: + - aspeed,ast2600-tach + + clocks: + maxItems: 1 + + resets: + maxItems: 1 + +required: + - compatible + - clocks + - resets + +additionalProperties: false