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 B088EC77B73 for ; Tue, 6 Jun 2023 11:10:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235791AbjFFLKC (ORCPT ); Tue, 6 Jun 2023 07:10:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235562AbjFFLJd (ORCPT ); Tue, 6 Jun 2023 07:09:33 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28051100 for ; Tue, 6 Jun 2023 04:09:11 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-5147a478c38so8447172a12.0 for ; Tue, 06 Jun 2023 04:09:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686049749; x=1688641749; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=qHk4lqJIMcJBU3trXI4CY2TRCxArO5+ul5qmG1V8eqo=; b=G15eD3KJMo3aFVqvegLN3NDwVxTxKL++spzhKVfGJ83neywWRLBRRNVPJZhl291VRQ svnJLFZalIbHpcw47QVCUjguT3fC9zvyAW7UGl6b5hzg/8ZpftPlg/TjY1wVjqg3kRaK uKVqnsiw3aDHP3h8PZaARSp9hJe5zQwNbn5/txstfPi1TiZYSk/CwZyk9MdIjIqy3Qso iO7J4tcc4fBPTHTMSPMmC89gepIeWJ3bL245t4L78Z0cWx3ozw+eHO5jiJteKTRuBn9X pQ/IJDwrEcM4B9Iv7+taNYv0pxpJUm+5IGE6P00CatGu+9jiI+8yOvXTSyoz5auwaYd/ kfxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686049749; x=1688641749; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=qHk4lqJIMcJBU3trXI4CY2TRCxArO5+ul5qmG1V8eqo=; b=ONcscEQBMLc0Lo1dVJ+bQwrm0la7LEah5TGtAlJqBp+ZnAU/50lObWBxT4X/iFbMtv a19ZFKGpdZYSs5Uu7dV8e5C9GJPppLwXl3pQVM4wBgoV7x/VOUR2fdIdaTJdK5ks4CXM L+to3EUMZN/Fd9Cym7lDGBQY/2/GmgDt7avsOB9ZA1c7vQVTwMiA2c2B0TV8KT0RvYAj cbuuY9Oh42Y1aNRfKEMxJ+qoNs3r/1CROs/doglyNSbNL+IUcxuL1CwAFr7NVbDV3UCf RiJ8ao30BdxEjEbNhWAteQvr0HeoMBfmnjMkUWmR2RVfEki1f3tM8F+pHDtCywEK7FcQ BK/g== X-Gm-Message-State: AC+VfDy4+Dc5ESZAFZ5GWk32btJ6DGdfjQxSITIi62rSzFNkwjMtVaBS pdQa0pvC6K9a7n/LQW7XMhfczg== X-Google-Smtp-Source: ACHHUZ6Td/Zq2iecy9zyqO0qmTu5v5uoKcssxEATLV/trUubfg0NXZMg4drbubb11J+fBRgW9tHqwA== X-Received: by 2002:a17:907:60d5:b0:962:582d:89d7 with SMTP id hv21-20020a17090760d500b00962582d89d7mr1784234ejc.38.1686049749621; Tue, 06 Jun 2023 04:09:09 -0700 (PDT) Received: from [192.168.1.20] ([178.197.219.26]) by smtp.gmail.com with ESMTPSA id d21-20020a056402517500b0050bc6c04a66sm4952793ede.40.2023.06.06.04.09.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 06 Jun 2023 04:09:09 -0700 (PDT) Message-ID: <5bfb5573-2de4-887b-0f10-e4dd6f084c39@linaro.org> Date: Tue, 6 Jun 2023 13:09:06 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [PATCH v8 3/3] dt-bindings: mtd: marvell-nand: Convert to YAML DT scheme Content-Language: en-US To: Miquel Raynal Cc: Chris Packham , "richard@nod.at" , "vigneshr@ti.com" , "robh+dt@kernel.org" , "krzysztof.kozlowski+dt@linaro.org" , "conor+dt@kernel.org" , "andrew@lunn.ch" , "gregory.clement@bootlin.com" , "sebastian.hesselbarth@gmail.com" , "conor@kernel.org" , "linux-mtd@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "enachman@marvell.com" , Vadym Kochan References: <20230531234923.2307013-1-chris.packham@alliedtelesis.co.nz> <20230531234923.2307013-4-chris.packham@alliedtelesis.co.nz> <785368df-1881-e62e-6172-d902cee814a8@alliedtelesis.co.nz> <4ea0b16e-0cec-00db-c598-e0364a7edef8@alliedtelesis.co.nz> <9fc57052-5049-ed50-ca95-cfd1d0420dd9@alliedtelesis.co.nz> <20230606094855.1ab005eb@xps-13> <845924ba-d9bf-d0ec-e1f2-f721366f43c0@linaro.org> <20230606122812.411b223a@xps-13> <20230606125724.126a4685@xps-13> From: Krzysztof Kozlowski In-Reply-To: <20230606125724.126a4685@xps-13> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On 06/06/2023 12:57, Miquel Raynal wrote: > >> >> Now for actual paragraph: >> >> "If yes, then it means we would need to list *all* the nand chip >> properties in each schema," >> >> No, why? I don't understand. Use the same pattern as all other bindings, >> this is not special. Absolutely all have the same behavior, e.g. >> mentioned leds. You finish with unevaluatedProps and you're done, which >> is what I wrote here long, long time ago. > > Maybe because so far we did not bother referencing another schema in > the NAND chip nodes? For your hint to work I guess we should have, in > each controller binding, something along: > > patternProperties: > "^nand@[a-f0-9]$": > type: object > + $ref: nand-chip.yaml# > properties: > > If yes, please ignore the series sent aside, I will work on it again > and send a v2. nand-controller.yaml has it, so ideally each device binding should not need it, because it already references nand-controller.yaml. However if it doesn't work, then you need nand-chip in each device binding. Best regards, Krzysztof