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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 66064ECAAD5 for ; Mon, 12 Sep 2022 14:33:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc: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=7niyHzQtDCVX7V/BqhGeVepqxg1D2seg9ieBS3UXqIw=; b=CMmOcnbgVmCsvU GNFS9Uv1lp3Gi9DITZxzLuUAvgBKiQ2T37wmWxfoKsZ0IeyCZotRqYGCaHL/kiKUh4G9temtt+peM LOBrIBLPC1a7M6nfe5BMMMvSwnDsC6Mv6AObYR7JRWvKrb0aA3GMIeEUwQiBexwkSbcaw2sg/2e6n fpPxbjHeQsDAqeRW+87kZgDCxTfQp6VnyDiyonoLAZBh5e2FaVZG2vHOapcvZNBuB9GfAW5tpC/xK qPpJJR2gap1LmvXvObUKRAJri3vWDihF/EWF+I3NtwTUwoLiQ//1aWxuSyEwZ7bHZDEpOefMLpcdN HpsCFMpG4yaDzp4cv/uw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oXkU6-00Ah55-HP; Mon, 12 Sep 2022 14:32:26 +0000 Received: from mail-ot1-f49.google.com ([209.85.210.49]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oXkU3-00Ah2Z-GZ for linux-arm-kernel@lists.infradead.org; Mon, 12 Sep 2022 14:32:24 +0000 Received: by mail-ot1-f49.google.com with SMTP id c39-20020a05683034a700b006540d515722so5983378otu.5 for ; Mon, 12 Sep 2022 07:32:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=t2YwspAUEJbS9bWldAsROuxOz8niEIm2reQgAgYzGCU=; b=fb7+uVH1pp8SMxrpvcYRYouao0uX35eA/9tgQ/mN5ZEqqgPmrQWPN48hOWQOGPkfNk dQs3O9T4GV0S9nSPKN+gLI96Ud2Wyap7xM6mHh/6KX8nvbFoASo5qlGVi3GFVIw3kDGQ OK/EPM1Er8ue5fv1Re9FrR6mkHxaHzYHyFb6+id2EHIibbtd6XFPkEfM9Fo31+5ehTy0 4WerEHzWbwtp4NuGtM5kEHBh/4ChsZ/hzzvX1tL+/Qi0HD15rXekGHodu7oUmEppW1BW zJwd7rHWpS2fdq00babic+DB3hAQHlcoij5NPy8fcS73fFY2i7shb2Rtn6jNaK+DauCa 3PCw== X-Gm-Message-State: ACgBeo0i7/Q/JJUs1hwX0jxdCQnW60199whHxJ1hAFepZp1EBGMYbE+u SOBeKcJvVGtriN405dfmgQ== X-Google-Smtp-Source: AA6agR5Tj+MTUbTBejFb9zYKTm4S39/GS0kXs6RYH4dvSuF3fD+tbpg+JtOz6Zz6P872LY5aRUZ7VQ== X-Received: by 2002:a05:6830:1496:b0:639:648a:55f4 with SMTP id s22-20020a056830149600b00639648a55f4mr10557961otq.370.1662993141339; Mon, 12 Sep 2022 07:32:21 -0700 (PDT) Received: from robh.at.kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id t6-20020a4a8246000000b0044b491ccf97sm4142572oog.25.2022.09.12.07.32.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Sep 2022 07:32:20 -0700 (PDT) Received: (nullmailer pid 1227261 invoked by uid 1000); Mon, 12 Sep 2022 14:32:19 -0000 Date: Mon, 12 Sep 2022 09:32:19 -0500 From: Rob Herring To: Serge Semin Cc: Krzysztof Kozlowski , Michal Simek , Borislav Petkov , Mauro Carvalho Chehab , Tony Luck , Krzysztof Kozlowski , Manish Narani , Serge Semin , Alexey Malahov , Michail Ivanov , Pavel Parkhomenko , Punnaiah Choudary Kalluri , Dinh Nguyen , James Morse , Robert Richter , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski Subject: Re: [PATCH v2 03/15] dt-bindings: memory: snps: Convert the schema to being generic Message-ID: <20220912143219.GC1170702-robh@kernel.org> References: <20220910195659.11843-1-Sergey.Semin@baikalelectronics.ru> <20220910195659.11843-4-Sergey.Semin@baikalelectronics.ru> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220910195659.11843-4-Sergey.Semin@baikalelectronics.ru> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220912_073223_568658_A9511A95 X-CRM114-Status: GOOD ( 15.61 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sat, Sep 10, 2022 at 10:56:47PM +0300, Serge Semin wrote: > At the current state the DW uMCTL2 DDRC DT-schema can't be used as the > common one for all the IP-core-based devices due to the compatible string > property constraining the list of the supported device names. In order to > fix that we suggest to update the compatible property constraints so one > would permit having any value aside with the generic device names. At the > same time the generic DT-schema selection must be restricted to the > denoted generic devices only so not to permit the generic fallback > compatibles. Finally since the generic schema will be referenced from the > vendor-specific DT-bindings with possibly non-standard properties defined > it must permit having additional properties specified. > > Signed-off-by: Serge Semin > > --- > > Note alternatively we could drop the "additionalProperties" keyword > modification since currently there is no actual device available with the > properties not listed in the generic DT-schema. Normally, this has required 2 schema files. However, I think you can do something like this: if: compatible: enum: - snps,ddrc-3.80a - snps,dw-umctl2-ddrc - xlnx,zynqmp-ddrc-2.40a then: unevaluatedProperties: false But please make sure that actually catches undocumented properties because unevaluateProperties under 'then' is not something I've tried. Rob _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel