From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 04097C4332F for ; Thu, 20 Oct 2022 05:31:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229872AbiJTFb6 (ORCPT ); Thu, 20 Oct 2022 01:31:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229489AbiJTFb4 (ORCPT ); Thu, 20 Oct 2022 01:31:56 -0400 Received: from mail-qk1-x730.google.com (mail-qk1-x730.google.com [IPv6:2607:f8b0:4864:20::730]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD9E9193EEA for ; Wed, 19 Oct 2022 22:31:55 -0700 (PDT) Received: by mail-qk1-x730.google.com with SMTP id a18so12201921qko.0 for ; Wed, 19 Oct 2022 22:31:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lxnav.com; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Ke+DoHhz1XKy9xeNSiWO0Eq/IHfSDBUW8TnozKir+yg=; b=TySompZSaWj8ilygpbslEMOvJTyRDnsYlgZ7bhvmjaCxBESJPZDRCdfrFYuDYx9oZu 451dsTbKp4i9rwAtT+BFxZzipZwyc8Wv3aoE3j08Z07k+CF6nvXckaV1k9uOf97oZxiC FhrlGnntM2FeFAOCw5dwNL8d8s3NbsokJObDs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Ke+DoHhz1XKy9xeNSiWO0Eq/IHfSDBUW8TnozKir+yg=; b=cO73QndkBQq54NXqvphrKR/TFtqeUaksblqgudHT+FWEufpvFSicmPbd5OyYVEtkQ8 hmrYP5+T00RiWeDbxNaE+qe4xA5DADJmA9WlLStxS/ACOobvUOxot76aiLbkT+GP1xJb YHBilrekaXitKjx/cwbGwO05Zz0+28PzPDh69QNeLFFWKM5lSoJrNYs2YvsB3zOnV3Rs AY7+FjbWTYvnjztCGi0k1ex2lQ8Wdvs7kCe5Kpn9wTQZTLNqPqKKYJSEYSV7+oNz/uBY zhO+hODi8OANZKQXrnWtj47/4nBJwcJzKDJD/huxCa5Jdf79LevCT9saHtPm4+JBE9io Kbvw== X-Gm-Message-State: ACrzQf2Qu6kwSgg4x28E8B0MA3Q5A9xZHCkVJqCJGSoUSRWC5Gu4iLu3 KCiKz1hsvayvueDVQp9r/JUEOSZH4vYHjgDy+EaRzQ== X-Google-Smtp-Source: AMsMyM7rbr3SeVf2uq/UjmCaSllheYSnF+G+Nq3nkPhZYx70376dLOjGbkDbvp1MKM63ck4gxD61zyrIdQpk52EU2bQ= X-Received: by 2002:a05:620a:4510:b0:6ee:e6de:828d with SMTP id t16-20020a05620a451000b006eee6de828dmr8382571qkp.70.1666243914644; Wed, 19 Oct 2022 22:31:54 -0700 (PDT) MIME-Version: 1.0 References: <20221019125254.952588-1-mitja@lxnav.com> <20221019125254.952588-3-mitja@lxnav.com> In-Reply-To: From: =?UTF-8?Q?Mitja_=C5=A0pes?= Date: Thu, 20 Oct 2022 07:31:28 +0200 Message-ID: Subject: Re: [PATCH 3/3] doc: iio: pressure: ms5611: added max SPI frequency setting to the example To: Andy Shevchenko Cc: linux-iio@vger.kernel.org, Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Tomasz Duszynski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Wed, Oct 19, 2022 at 3:23 PM Andy Shevchenko wrote: > > On Wed, Oct 19, 2022 at 3:55 PM Mitja Spes 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