Message ID | 20221019125254.952588-3-mitja@lxnav.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp354061wrs; Wed, 19 Oct 2022 07:19:52 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6+zwYojvEzYXEQuc8e5AeyxcvdqGHClZ1yLoJLYefsHmUefvJah155p8RLNGcdtjcx6XMv X-Received: by 2002:a17:902:7404:b0:17f:7fe6:7197 with SMTP id g4-20020a170902740400b0017f7fe67197mr8748438pll.94.1666189192639; Wed, 19 Oct 2022 07:19:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666189192; cv=none; d=google.com; s=arc-20160816; b=WVGuc+UFzDjD+DGFcavJyRoIcCCxUapwW4eyNtKooS8FBLNQZr0LDAiUcBDxAOi6xJ QuZTtOuUhCoXc+V7GJ4VfXPBr39AM/d9y8llyKzDJQRX2TOFrE7001PBDC1AdXU1kVbL 8bgXGYf3flpaiXLVeFLD4e1qAEH6qNFolT4Zq+KiM3zx41y6EXDa6J5MqCXeRo/9Sg7r /f2MCCGYiwyaDskcBbZ3a21tjKW0M4bF8VS0zA4QvzdFPSyh04KZNuMVaa88F0ajNCyr E56DiFGwJsdXE71MokQCDO+Gnb7OmcYQ1Tgyd2Ww6t8R2sBqBe9jO8bYf+6GN2ym6t3+ wO2A== 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:cc:to:from :dkim-signature; bh=URJvSDdj3A8sCZTu24AcBhZBWiNAekT3eymuvA4CTvQ=; b=XHL7BnFTEt6Rhv38kr5QADyT2ltKPsuo/D/Pk1cXbBwadHTFHlbzuk5VB+Orgtbv1u vaW3V+sJ/xHtRe9bRluDHTKFfpMICi/f1Y0EOoqbEscn27UjkN4Fw+iaQ1EFoWwhueM4 NLdUIv5QQsqDksyWGxrw0p6JZVgzlIMFW4DoErSR9E3GuCzbEOa8T9iUY38BsjSdm35D S3PViZc6O/D2fpOMzMeGyU8a767j2FFIseRYdU3MJL/x25xk6qpiFj881dHMcNeKyCW6 iO5fcMZJ+Rq7PPrGnb3+BxPW1cx9Hk9YqrHmuirntoRXSEcmxSej9JtnC9VmfAx9DO8A m28A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lxnav.com header.s=dhl header.b=nk5pD0nB; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=lxnav.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b5-20020a170902e94500b00176d89d640asi17683226pll.440.2022.10.19.07.19.36; Wed, 19 Oct 2022 07:19:52 -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; dkim=pass header.i=@lxnav.com header.s=dhl header.b=nk5pD0nB; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=lxnav.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233102AbiJSOSD (ORCPT <rfc822;samuel.l.nystrom@gmail.com> + 99 others); Wed, 19 Oct 2022 10:18:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232229AbiJSORp (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 19 Oct 2022 10:17:45 -0400 X-Greylist: delayed 2124 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 19 Oct 2022 07:00:53 PDT Received: from dhl.lxnav.com (dhl.lxnav.com [IPv6:2a01:4f8:c010:2f07::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9126EC09AD; Wed, 19 Oct 2022 07:00:52 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id E7D5E40760; Wed, 19 Oct 2022 14:55:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lxnav.com; s=dhl; t=1666184110; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=URJvSDdj3A8sCZTu24AcBhZBWiNAekT3eymuvA4CTvQ=; b=nk5pD0nBky1Ni3TLvDrlFvI6m6eWQGc6nEoWEDZdiTKwoJmeJfKGBk2EjaojXTPaDgb3Jj xVXTiL6+DVMOh/YH2zjkuiS80pqpW5hKPZwmWAr7OubLfLzo9YqHa6Ym1Ytd1RKM+V7gmA Elr0EfpItibsuX0WgFeVlqXw/Wq/kFivh7TqvACLES4SND+3Ph0fWzM8X3Gc/ZlVzIxKEM VNn9Lt4139dmnJyd1IGOjDHTrdfqZ5lvg8FolIcVEBXlnLp5nN9iP0RZ1SEZWWjPXxPwFA 1I4kD0uVVLY3IF9sOIc9gPoUW87g7rKZI0TChJQgApFNuPcQUo9Sye6fHOr5bQ== From: Mitja Spes <mitja@lxnav.com> To: linux-iio@vger.kernel.org, Jonathan Cameron <jic23@kernel.org> Cc: Mitja Spes <mitja@lxnav.com>, Lars-Peter Clausen <lars@metafoo.de>, Rob Herring <robh+dt@kernel.org>, Andy Shevchenko <andy.shevchenko@gmail.com>, Tomasz Duszynski <tduszyns@gmail.com>, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] doc: iio: pressure: ms5611: added max SPI frequency setting to the example Date: Wed, 19 Oct 2022 14:52:52 +0200 Message-Id: <20221019125254.952588-3-mitja@lxnav.com> In-Reply-To: <20221019125254.952588-1-mitja@lxnav.com> References: <20221019125254.952588-1-mitja@lxnav.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS 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?1747123501643737425?= X-GMAIL-MSGID: =?utf-8?q?1747125998732615249?= |
Series |
[1/3] iio: pressure: ms5611: fixed value compensation bug
|
|
Commit Message
Mitja Špes
Oct. 19, 2022, 12:52 p.m. UTC
Added max SPI frequency setting to the example. It is now honored by the
driver.
Signed-off-by: Mitja Spes <mitja@lxnav.com>
---
Documentation/devicetree/bindings/iio/pressure/meas,ms5611.yaml | 1 +
1 file changed, 1 insertion(+)
Comments
On Wed, Oct 19, 2022 at 3:55 PM Mitja Spes <mitja@lxnav.com> wrote: > > Added max SPI frequency setting to the example. It is now honored by the > driver. Is it possible to add a constraint here? So the schema validator will issue the warning / error if the speed is too high.
On 19/10/2022 08:52, Mitja Spes wrote: > Added max SPI frequency setting to the example. It is now honored by the > driver. Use subject prefixes matching the subsystem (git log --oneline -- ...). Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC. It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel. > > Signed-off-by: Mitja Spes <mitja@lxnav.com> > --- > Documentation/devicetree/bindings/iio/pressure/meas,ms5611.yaml | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/Documentation/devicetree/bindings/iio/pressure/meas,ms5611.yaml b/Documentation/devicetree/bindings/iio/pressure/meas,ms5611.yaml > index 4f06707450bf..08bd06e6dabe 100644 > --- a/Documentation/devicetree/bindings/iio/pressure/meas,ms5611.yaml > +++ b/Documentation/devicetree/bindings/iio/pressure/meas,ms5611.yaml > @@ -52,6 +52,7 @@ examples: > compatible = "meas,ms5611"; > reg = <0>; > vdd-supply = <&ldo_3v3_gnss>; > + spi-max-frequency = <20000000>; Whether it is honored by driver it matters less. More important is how hardware can handle it. This should be included in the bindings/properties. Best regards, Krzysztof
On Wed, Oct 19, 2022 at 3:23 PM Andy Shevchenko <andy.shevchenko@gmail.com> wrote: > > On Wed, Oct 19, 2022 at 3:55 PM Mitja Spes <mitja@lxnav.com> wrote: > > > > Added max SPI frequency setting to the example. It is now honored by the > > driver. > > Is it possible to add a constraint here? So the schema validator will > issue the warning / error if the speed is too high. The constraint is already there: https://github.com/torvalds/linux/blob/master/Documentation/devicetree/bindings/iio/pressure/meas%2Cms5611.yaml ``` spi-max-frequency: maximum: 20000000 ``` But in any case the patch 2/3 limits the max frequency. Kind regards, Mitja Spes
On Wed, Oct 19, 2022 at 5:49 PM Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> wrote: > Use subject prefixes matching the subsystem (git log --oneline -- ...). Will do. > Whether it is honored by driver it matters less. More important is how > hardware can handle it. This should be included in the bindings/properties. The hardware handles frequencies up to 20MHz. That constraint is already written in meas,ms5611.yaml. What my patch 2 does is allow the user to set a lower frequency and the patch 3 just emphasises that in the example. Kind regards, Mitja
On 20/10/2022 01:40, Mitja Špes wrote: > On Wed, Oct 19, 2022 at 5:49 PM Krzysztof Kozlowski > <krzysztof.kozlowski@linaro.org> wrote: > >> Use subject prefixes matching the subsystem (git log --oneline -- ...). > > Will do. > >> Whether it is honored by driver it matters less. More important is how >> hardware can handle it. This should be included in the bindings/properties. > > The hardware handles frequencies up to 20MHz. That constraint is already > written in meas,ms5611.yaml. > What my patch 2 does is allow the user to set a lower frequency and the patch > 3 just emphasises that in the example. Then I am not sure whether it is worth changing. This is just an example. Old value is correct. Best regards, Krzysztof
diff --git a/Documentation/devicetree/bindings/iio/pressure/meas,ms5611.yaml b/Documentation/devicetree/bindings/iio/pressure/meas,ms5611.yaml index 4f06707450bf..08bd06e6dabe 100644 --- a/Documentation/devicetree/bindings/iio/pressure/meas,ms5611.yaml +++ b/Documentation/devicetree/bindings/iio/pressure/meas,ms5611.yaml @@ -52,6 +52,7 @@ examples: compatible = "meas,ms5611"; reg = <0>; vdd-supply = <&ldo_3v3_gnss>; + spi-max-frequency = <20000000>; }; }; ...