Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp775241ybl; Thu, 23 Jan 2020 07:32:01 -0800 (PST) X-Google-Smtp-Source: APXvYqxlwESbRoLujUzPOLsgf1TXCZfDhwKpT8lMVksmtdNnAKkjDwf3SdA8D6tMJDHt5vtlKiWy X-Received: by 2002:a54:4e96:: with SMTP id c22mr11194692oiy.110.1579793521760; Thu, 23 Jan 2020 07:32:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579793521; cv=none; d=google.com; s=arc-20160816; b=mH+bN7xH/SH6RzA+Xnh8feAcrb8OhyjEK/e4J/KOboNo7J8wnCJE/Mp6xwDrC85xDB 6KbZd7YrV2PpGKKUcQiwhkyHXgPodBwsZDVjJefNRhgScJRgvhLkFnL/MB9qw+t/PW4+ 2lP76oAf2SBPVoWytNDs1aB84fTesGVYsmmrjwen6vheaSbJH3E05Tq4RmJqw3qyJ+Fn RCZGgqeaBlVBqRlMrVUF/5XVYOGIu0DkMp49gpvKbk09Ur+zCcYLlRjmJ3RVeEqDZg8O cRZYbKg6SYAvwmx2ru5loswJQNhRro7r03epOy4HgTk7RfP2RhMWXBqRAozI1ffSi3WQ eX7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=YHqBGj/ukTPkl69zvdBgkmcYaLWB1N0Qj6YD43sxU/8=; b=1IA2oKwzpgRs0aP8vFJGWFX6ugxwReZm1u87L5+DvKRDXuwrGAsjmm8Sjs7Z3tPv8t 1IeGE/9r1AjSmxKLy1OaKSMBUxLawhK0+QMRBVLxNtwy5XsraTYwi6JfFn66+1/75kBr A2vQYb+dD3kiQmJR9YwUrANxB6jZ1wi589dQgcT8NTa/uJ3Rt8BmMM3AQBn8AKh4Qyih Ain0G2amlVPuBitxvNsqgjTU24vUSZGTLkS2XzSiwEiGviReaN92DiLyrj/x4KsS29xn YUo4sgzubd9G4n0ymAoTKorQU7Ock85ITLxBUiQhxxxg/xURRuLBqfUGRcRccCmu5rql XtpA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i20si1248601otk.270.2020.01.23.07.31.48; Thu, 23 Jan 2020 07:32:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728988AbgAWPaG (ORCPT + 99 others); Thu, 23 Jan 2020 10:30:06 -0500 Received: from mail-ot1-f66.google.com ([209.85.210.66]:44868 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727847AbgAWPaF (ORCPT ); Thu, 23 Jan 2020 10:30:05 -0500 Received: by mail-ot1-f66.google.com with SMTP id h9so3055890otj.11; Thu, 23 Jan 2020 07:30:05 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=YHqBGj/ukTPkl69zvdBgkmcYaLWB1N0Qj6YD43sxU/8=; b=QiVdXJGObleBcBNIEaA1pbFxONW2u86/MusGQU6g9mImTAT2BHsg4IIKpWCm/cYBEa uwIGutMcaFCxfphsVV/vUdFuAcYPjwsAwuYgQr9wcY+orXQs2BGfE1AJuzKtoVIfX6ic 8Pa88apJ6B+7vX/Qxl2MbGzBYpOVzt+GyLq20Ew2aWzYLDR7mU+VPnLaaozfd+kb0Qjb Gg9swqYG5Eg9LYmQ7g2vH/SSovebmkjwQjwp2n4N4JGUt2qYcHSXhpZ89By+RUOtweKO +w7PbKq7ECW+YFUVNxsJh+4n16aW/rXB+Cw/M30Y7RMRIRuNv7W+WUCLI//qM7gBq4vS 560w== X-Gm-Message-State: APjAAAVHvriC6GwCTb89rN40GmuKGhlH1BUs8xjWRjrdmXiQpx3P5pN5 i9DEvxWjdABzl2TNzSqVyQ== X-Received: by 2002:a05:6830:4ca:: with SMTP id s10mr11737763otd.268.1579793404638; Thu, 23 Jan 2020 07:30:04 -0800 (PST) Received: from rob-hp-laptop (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id p24sm891368oth.28.2020.01.23.07.30.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2020 07:30:04 -0800 (PST) Received: (nullmailer pid 12956 invoked by uid 1000); Thu, 23 Jan 2020 15:30:02 -0000 Date: Thu, 23 Jan 2020 09:30:02 -0600 From: Rob Herring To: Olivier Moysan Cc: jic23@kernel.org, lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, mark.rutland@arm.com, mcoquelin.stm32@gmail.com, lars@metafoo.de, devicetree@vger.kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, pmeerw@pmeerw.net, knaack.h@gmx.de, fabrice.gasnier@st.com, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] dt-bindings: stm32: convert dfsdm to json-schema Message-ID: <20200123153002.GA14241@bogus> References: <20200123083432.21997-1-olivier.moysan@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200123083432.21997-1-olivier.moysan@st.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 23, 2020 at 09:34:31AM +0100, Olivier Moysan wrote: > Convert the STM32 DFSDM bindings to DT schema format > using json-schema. > > Signed-off-by: Olivier Moysan > --- > The DT check still returns some warnings on this bindings: > dfsdm@4400d000: filter@4: 'st,adc-channels' is a required property > dfsdm@4400d000: filter@5: 'st,adc-channels' is a required property ... > > These warnings occur because some disabled nodes do not provides the > required properties. These nodes are included from SoC DT, > and do not provides by default the properties which are board dependent. We handle disabled nodes, but not when they are child nodes. > As workaround in DFSDM yaml bindings, the properties > (like st,adc-channels) could be defined as required, > only for the nodes which are in enabled state. We should handle this in the tooling, not the schemas. I entered an issue to track this[1]. > --- > .../bindings/iio/adc/st,stm32-dfsdm-adc.txt | 135 ------- > .../bindings/iio/adc/st,stm32-dfsdm-adc.yaml | 332 ++++++++++++++++++ > 2 files changed, 332 insertions(+), 135 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/iio/adc/st,stm32-dfsdm-adc.txt > create mode 100644 Documentation/devicetree/bindings/iio/adc/st,stm32-dfsdm-adc.yaml Applied. [1] https://github.com/devicetree-org/dt-schema/issues/32