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 X-Spam-Level: X-Spam-Status: No, score=-10.5 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0B916C2D0DB for ; Thu, 23 Jan 2020 15:31:09 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8D64E2071E for ; Thu, 23 Jan 2020 15:31:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="XRHS/ES6" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8D64E2071E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id D5A7A1669; Thu, 23 Jan 2020 16:30:16 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz D5A7A1669 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1579793466; bh=VLi4nie3t7D3PtffVtIz3I1WtsANm1cLduXCNvZu3k8=; h=Date:From:To:References:In-Reply-To:Cc:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=XRHS/ES60V9aMsp1+cJ3sqhRT3gxfpRWMJ7LIJH1gkFlOmXfcPqQGD+OWe2K5l4V6 GCK/DCNEXyozaZqBP/KKh4XzAehgeNdg5OaaMpcN+avqHL/z6e9bzVAiL1Ttb+N00W j51C0FUH2O21Bihlc+yQF13rlIv8Hm+xw8bmB0XY= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 502D1F800E7; Thu, 23 Jan 2020 16:30:16 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 3078BF801D9; Thu, 23 Jan 2020 16:30:14 +0100 (CET) Received: from mail-ot1-f65.google.com (mail-ot1-f65.google.com [209.85.210.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 3BC2CF800BA for ; Thu, 23 Jan 2020 16:30:06 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 3BC2CF800BA Received: by mail-ot1-f65.google.com with SMTP id z9so3095191oth.5 for ; Thu, 23 Jan 2020 07:30:06 -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=uf/fVBlg7+4qbLEDkwJyzyIdS5N+7VqwSXOT9mZahqdy4sgae8bsGZW+1YCWj2iKFA QNuUBTijt1U5zKCHNj26JAEn6ZcAcxLpIFqrbgO4gMxSLtYUPJ+0Tp6Th9QZkcuFW7JZ I5iaiZ5OQUqk5tEF7Yig4S6wEd8FBlsr3EtWx1UFcGlsnGEwHr+tzt5HsdRpYbH5zSmC 6bxeC/rR00+GsTIa8HUXRszqy5Kt14j+/hL3XuZHoan95HaKn0TJU4p/gCjz7lIC5I9X QYcLBVz253TkbstsSRo4oYqdb36Osvszgvook8Xumzkp/nr+JFLYrOwqRooRvRof0Gmg jN1w== X-Gm-Message-State: APjAAAUMRPXRarFWdTjx8g/diGapg9+B5pKNGatxFMSL+kb6zGDxEhJ0 c0Z1SfILzgCzi+AWeNVSzw== X-Google-Smtp-Source: APXvYqxkWG8AeF8EXXnGTWZ4IdGe6xCc6yw9d5YQpXCkxvBsnWb6O8ACMvnxGdINcohg5IvNyDKtDQ== 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 Message-ID: <20200123153002.GA14241@bogus> References: <20200123083432.21997-1-olivier.moysan@st.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200123083432.21997-1-olivier.moysan@st.com> User-Agent: Mutt/1.10.1 (2018-07-13) Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, alsa-devel@alsa-project.org, lars@metafoo.de, pmeerw@pmeerw.net, fabrice.gasnier@st.com, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, tiwai@suse.com, lgirdwood@gmail.com, broonie@kernel.org, linux-arm-kernel@lists.infradead.org, mcoquelin.stm32@gmail.com, knaack.h@gmx.de, linux-stm32@st-md-mailman.stormreply.com, jic23@kernel.org Subject: Re: [alsa-devel] [PATCH] dt-bindings: stm32: convert dfsdm to json-schema X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" 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 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org https://mailman.alsa-project.org/mailman/listinfo/alsa-devel 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 X-Spam-Level: X-Spam-Status: No, score=-10.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AF9E0C33CB6 for ; Thu, 23 Jan 2020 15:30:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 88D7F2467F for ; Thu, 23 Jan 2020 15:30:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579793406; bh=/z3i8WitLNlWahmY5dE/I3JGerQilohr4h5y/bZjPTA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=eW2msRxFVYlxxLWLIS5x31S6IFQA8iFIgz6OsW3cj2TM6dn/I39tyNo5fSOTXQc8L YSTAy8lQkKQJ1LM14i2jn3riOo9L8e8a8EIO0GcYPUcNtiV+ipWICqtfHE9REOiLZR LFtk8uSbcuYb3El2XRrRJXFu3riDAZ0th4YLtGfo= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728921AbgAWPaF (ORCPT ); Thu, 23 Jan 2020 10:30:05 -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-Google-Smtp-Source: APXvYqxkWG8AeF8EXXnGTWZ4IdGe6xCc6yw9d5YQpXCkxvBsnWb6O8ACMvnxGdINcohg5IvNyDKtDQ== 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-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@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 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 X-Spam-Level: X-Spam-Status: No, score=-10.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9DB81C2D0DB for ; Thu, 23 Jan 2020 15:30:11 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5A9A42064C for ; Thu, 23 Jan 2020 15:30:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ArL7lSDP" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5A9A42064C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=brdYcsQJo4WWTHf9K52VknFJ0bQ3Fk68nA3eSQPIvzk=; b=ArL7lSDPAdKbjV I7XUE4eprJHefZfPOsvfZ8Ag1IRDtRhqAY+kkLDZ0hwhfamAtnX2H6bIwCtWzwJH6/Gh4NkcZfzzt vJYUoFJuHJ+ItaP3QHssf/qqnIyDkzaEOcHpLApd8xohtfb6IG+b5G6WA6DBz+f+8y9VaBf1SoBTq u8x2iGAIhjO2EmLzL7vS8wplWB48Xsmn2Kb6FCoftOL0cotjrKi5yvurY1GsgSDZ0sCIJHfDg69rX RCmYLG61Sof1jinJeaXAYKJnH3qRkBIfNKkYKbOp/FVwboonL7cf67j8oVSWga3BoAPlqKloFQibs MMBFH/oMMtm/xEmXUt8Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iueQs-0000wT-2D; Thu, 23 Jan 2020 15:30:10 +0000 Received: from mail-ot1-f66.google.com ([209.85.210.66]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iueQn-0000mI-HL for linux-arm-kernel@lists.infradead.org; Thu, 23 Jan 2020 15:30:08 +0000 Received: by mail-ot1-f66.google.com with SMTP id b18so3128357otp.0 for ; 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=cFNWbsZa3xVEJKSAUmkAGYkZdX1TM9mCA930kw1Lx/1F9TVfjQzZmIIgEgtGy/tLZL TrSPRZ7QgtIWHMrj1DuC2l7hsBn49Hqrh+4B0HRWobSRakqP2FCLz0xMzSJyZM0WETZp 3oImrfekyTwF0iqmHucCu9ZooB1P2QXo7DFp5gXK6qmTWBa+j/tuDu7ZWY2Qc8KcgWQD ftbvQqUlnLrXb0T1Izayd8UmIrlpCm0ilzBPT3GzQiW0/3LkDhdK81v/m6CmcRkyPh+g 6KcETQsIM35chHEjajKFgUjLfkf16wvuAB5yEf3X455W5eDsbjC9PJUnU70KSZW08qFW EAAA== X-Gm-Message-State: APjAAAV8bYx3DLBsShnRHYJ+nF9OFdVq51fbO5duGwDxvrF6psK16WlU FK1DRZ63irAfiFvjcF794A== X-Google-Smtp-Source: APXvYqxkWG8AeF8EXXnGTWZ4IdGe6xCc6yw9d5YQpXCkxvBsnWb6O8ACMvnxGdINcohg5IvNyDKtDQ== 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 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-Disposition: inline In-Reply-To: <20200123083432.21997-1-olivier.moysan@st.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200123_073005_577908_F95ED9DD X-CRM114-Status: GOOD ( 14.12 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, alsa-devel@alsa-project.org, lars@metafoo.de, pmeerw@pmeerw.net, fabrice.gasnier@st.com, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, tiwai@suse.com, lgirdwood@gmail.com, broonie@kernel.org, linux-arm-kernel@lists.infradead.org, mcoquelin.stm32@gmail.com, knaack.h@gmx.de, perex@perex.cz, linux-stm32@st-md-mailman.stormreply.com, jic23@kernel.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel