Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2659980pxb; Fri, 8 Oct 2021 12:15:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwlfZyDH6T7NNP+PpBP19THNjXTEPBOR/YBADKS++iTeu9nJdA23cXfoYT+VShCbyJjVwmu X-Received: by 2002:a17:907:7848:: with SMTP id lb8mr6311167ejc.494.1633720545087; Fri, 08 Oct 2021 12:15:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633720545; cv=none; d=google.com; s=arc-20160816; b=n/1KIynhcdAJu880l4dnEQ4skEr8OE/TlYah3MP9/tqj6v1hwODG4VoOohHPloEFM+ b1mT40olmbwzl6lH+tdEdJcUPSg1+ISh5njR1YAKsbISh/GGdnVdB6FW9crsHqbtqieq +3nRKlI7IkPY8osfZ1AVZOofwIQLWJEyI44HUDBjx6qAbmQGIqpOrgoAxkFZRVd145Ky Rf22Ja7UJSLxuY26D2GLeSsoGYBZKn++/rnGwOJcKYce+AveqZUSUE9ZAuJgQQdsI7q0 fDBuQr3OApOk9UFqHUFnevPzmbM9jjc9unhgTsiH8JbpXrPhiodfIArsITDG84c36ige Y5mQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=nmOMves4+ZbqtHrrI6yarW2Q2hXBHafHkCbUOabudXo=; b=GtYdTyj3eN+DKgDm/n6Lajlj3GCmbEAENDs4zwyPDsB1JrAPsXQcFBgRg42t1EScw5 1skJrh6Bh0XrJoiT7yFyYHSrZ84gufgHOB+PLdAvlMNFnRXMYDkkPXfGK633QVOj/8n3 8K0fFUkjmYsQJYlUrTg20GRIeZiRu0EFIorkE9wJRZUP1JGt28LyS01rQMHqdkbgylEC NtuMGu7RQmbyqaWqh3CpGluFZlyeqi0hoj1OLvn8dKWQpcT79DQmXJH33+mWlkX2DSfB AxJrrUNKCtoZXPRMlXIy0IxlgLshDi03VrawxPjPlitlR1yt8SxRJW9BYJHCvNJaMXgG TpAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dk6yvwYY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qq4si263404ejb.662.2021.10.08.12.15.21; Fri, 08 Oct 2021 12:15:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dk6yvwYY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241703AbhJHTP4 (ORCPT + 99 others); Fri, 8 Oct 2021 15:15:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:53152 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231407AbhJHTPf (ORCPT ); Fri, 8 Oct 2021 15:15:35 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0C21D61038; Fri, 8 Oct 2021 19:13:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1633720420; bh=AC8mlvl5rpF4l6tOqjjPamQgwiRioSA2m1qyyv95PCQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=dk6yvwYY35lLQNJOG6jJoBC18AUEpzfo7iIUP9XGBBjLELZYLKT6Jm9RnH05rrPnY Ft1jaVk8qJ3cmjAuI9NUEwSJH3FMjclwv667zC09NslNOQMdbVpZI753XwRKYdGtqn prNNDc9CE9a3Lf5m3gokvzKKS3fxwtEeP+/RV0Dh4R89CIvw63OH689QO6NIbe0cxI HAfth3XHvI75Vzd2beCbPov9yVPhPGEliZwp37faJkA38ng9zeiw06BTWpId87rUvU AuUWOwEE/76FBPnjxHV5Z3BSHW91aE3rfGgKiUDvAmXf9zrmODwYO/gblboRVK7cin 9EjDnI1PLv+dw== Received: by mail-ed1-f48.google.com with SMTP id x7so38184871edd.6; Fri, 08 Oct 2021 12:13:39 -0700 (PDT) X-Gm-Message-State: AOAM531sbuBKiV0yi+7/aHHeTm1kNz7WgkFaDDn5trp1kuNHQHm3Sphg w7ir88Eh4NczedmPizGKWM93Zd4zUx1wjpgu9Q== X-Received: by 2002:a05:6402:27d2:: with SMTP id c18mr8693395ede.271.1633720418392; Fri, 08 Oct 2021 12:13:38 -0700 (PDT) MIME-Version: 1.0 References: <20211007134641.13417-1-vincent.whitchurch@axis.com> <20211007134641.13417-3-vincent.whitchurch@axis.com> <1633661172.633248.1409599.nullmailer@robh.at.kernel.org> <20211008135610.GA16402@axis.com> In-Reply-To: From: Rob Herring Date: Fri, 8 Oct 2021 14:13:25 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 2/3] dt-bindings: iio: io-channel-mux: Add property for settle time To: Peter Rosin Cc: Vincent Whitchurch , kernel , "linux-iio@vger.kernel.org" , "lars@metafoo.de" , "jic23@kernel.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 8, 2021 at 10:27 AM Peter Rosin wrote: > > On 2021-10-08 15:56, Vincent Whitchurch wrote: > > On Fri, Oct 08, 2021 at 04:46:12AM +0200, Rob Herring wrote: > >> On Thu, 07 Oct 2021 15:46:40 +0200, Vincent Whitchurch wrote: > >>> Hardware may require some time for the muxed analog signals to settle > >>> after the muxing is changed. Allow this time to be specified in the > >>> devicetree. > >>> > >>> Signed-off-by: Vincent Whitchurch > >>> --- > >>> .../devicetree/bindings/iio/multiplexer/io-channel-mux.yaml | 5 +++++ > >>> 1 file changed, 5 insertions(+) > >>> > >> > >> Running 'make dtbs_check' with the schema in this patch gives the > >> following warnings. Consider if they are expected or the schema is > >> incorrect. These may not be new warnings. > > > > Yes, these are not new warnings. > > > >> Note that it is not yet a requirement to have 0 warnings for dtbs_check. > >> This will change in the future. > >> > >> Full log is available here: https://patchwork.ozlabs.org/patch/1537724 > >> > >> > >> adc0mux: '#io-channel-cells' does not match any of the regexes: 'pinctrl-[0-9]+' > >> arch/arm/boot/dts/aspeed-bmc-ampere-mtjade.dt.yaml > >> > >> adc10mux: '#io-channel-cells' does not match any of the regexes: 'pinctrl-[0-9]+' > >> arch/arm/boot/dts/aspeed-bmc-ampere-mtjade.dt.yaml > > [...] > > > > I think the fix for these is to add a "#io-channel-cells": const 1 to > > the schema. > > Agreed. > > >> envelope-detector-mux: channels: ['', '', 'sync-1', 'in', 'out', 'sync-2', 'sys-reg', 'ana-reg'] has non-unique elements > >> arch/arm/boot/dts/at91-tse850-3.dt.yaml > > > > This one looks like an error in that particular devicetree. > > > The double '' is intentional; this mux is 8-way but only 6 legs are > connected, with the first two unused. I don't know how or where to make > changes to dodge the warning. I don't want to put names on things that > do not exist, and the iio-mux driver is using empty names as a hint to > not configure any child channel for those indices that have empty names. > If e.g. channels 0-5 are in use, then this is not a problem since you > can just end early with 6 names instead of 8, but alas, channels 2-7 > was what the hw-crowd fancied in this case. There's a specific string type for this: non-unique-string-array Unfortunately, no way to say unique or empty strings. Rob