Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2045273pxb; Mon, 20 Sep 2021 10:55:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpKzt/YOrs01kSMdnqVocuU7vAdEam0S9bmK0yPKENQMDzb0gEisq/ffYoohwso5aYCchN X-Received: by 2002:a5d:8d1a:: with SMTP id p26mr19785245ioj.141.1632160529641; Mon, 20 Sep 2021 10:55:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632160529; cv=none; d=google.com; s=arc-20160816; b=ORbofKvYAFC7nFopXbYebb3z8MgwrmAndu9b+Qwni19/5ENqLTgPHKgU0+B/HbzaKE STvRbah5dy30qR9mZ1cyORAPeEbztfQaMFd1iQQOvogeMCPYV5WEMfYBaIA/1a7iiPWR pQWKGkrT9jpil8m8547lkIPIXzEuNnedQxCVS8X3Na16DyFQHf1/DvujFuS3xKE0Fd/r ovTAVNetdscu8I3MTL/VjksoZiIIIA38K8V8IkjpcMXpYOgvIIOvFyEi2HQTgeJ2rAez Qo7x/dXoBBzZAx//5CIcc233S4/94X9CKsedL28/om8h73IKJ6gqKZtDfLlvJWThDulz MvbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=JehA/AdZ62AVPkLLoqCPDg/CoSo8j/lugoyiuCZiRnQ=; b=dA68kzPxlZZLgkybsaEiKkO8cB+zqokHajUrsSJ9uX3itAKCJOdYLv5DolidjkfCnR HFwptsxQNtYuVGGjAzumztLmlTIM/BmgMG2Q+dk5UpT3VtwL2sW+1ZhSuuL1O5YrozG8 DNZYl5HfyhWbKHMxddO3nbV+mLKMn3kDQ5K2XBnnnCXiQor3xojJgHQ5woLioegHQBTx TiKilTSQ6pbHDF82uQN1YK80GYmtS9X6FW1kw1ZcbTGlLY2IJgEKJudBoGun2Nvx4Bcx EK2f9hp6iBx54TMSsm1H7XNeTIOulpWQWliIAGVMg8zrtLrW7fKgi9I7erlJuqVy+FWy 9Ybg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=elLuM0fs; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s11si14456477ild.14.2021.09.20.10.54.55; Mon, 20 Sep 2021 10:55:29 -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=@ti.com header.s=ti-com-17Q1 header.b=elLuM0fs; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348790AbhITRkZ (ORCPT + 99 others); Mon, 20 Sep 2021 13:40:25 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:48390 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346366AbhITRh6 (ORCPT ); Mon, 20 Sep 2021 13:37:58 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 18KHaIG1046675; Mon, 20 Sep 2021 12:36:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1632159378; bh=JehA/AdZ62AVPkLLoqCPDg/CoSo8j/lugoyiuCZiRnQ=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=elLuM0fsfzsZXoNfsPZJ0028D7v8svy0M1v3N4mDFayb5MTLhASXfrWpE2DcT/yoD WGlkPW2v5JXRjlJ+8vSgrXy46vPhiVWP+gdmAj98X9HdZ/gy750TskcPWB4z95ngrz xwvhFeKniuXdJWpfkPtVNklXp2F7FHxn83oJw1Vo= Received: from DFLE106.ent.ti.com (dfle106.ent.ti.com [10.64.6.27]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 18KHaIA1042167 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 20 Sep 2021 12:36:18 -0500 Received: from DFLE112.ent.ti.com (10.64.6.33) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Mon, 20 Sep 2021 12:36:17 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Mon, 20 Sep 2021 12:36:17 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 18KHaGp4011525; Mon, 20 Sep 2021 12:36:17 -0500 Date: Mon, 20 Sep 2021 23:06:15 +0530 From: Pratyush Yadav To: Serge Semin CC: Apurva Nandan , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Rob Herring , Mark Brown , , , , , Subject: Re: [PATCH v2 1/2] dt-bindings: mtd: spi-nand: Convert to DT schema format Message-ID: <20210920173613.oqk6lnmipabkt25s@ti.com> References: <20210920142713.129295-1-a-nandan@ti.com> <20210920142713.129295-2-a-nandan@ti.com> <20210920150651.vvdhennblwhdi3jw@mobilestation> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20210920150651.vvdhennblwhdi3jw@mobilestation> User-Agent: NeoMutt/20171215 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20/09/21 06:06PM, Serge Semin wrote: > Hello Apurva > > On Mon, Sep 20, 2021 at 07:57:12PM +0530, Apurva Nandan wrote: > > Convert spi-nand.txt binding to YAML format with an added example. > > > > Signed-off-by: Apurva Nandan > > --- > > .../devicetree/bindings/mtd/spi-nand.txt | 5 -- > > .../devicetree/bindings/mtd/spi-nand.yaml | 62 +++++++++++++++++++ > > 2 files changed, 62 insertions(+), 5 deletions(-) > > delete mode 100644 Documentation/devicetree/bindings/mtd/spi-nand.txt > > create mode 100644 Documentation/devicetree/bindings/mtd/spi-nand.yaml [...] > > > + spi-max-frequency: true > > + spi-rx-bus-width: true > > + spi-tx-bus-width: true > > + rx-sample-delay-ns: true > > Since it's an SPI-client device there are more than these properties > could be set for it. See the SPI-controller bindings schema: > Documentation/devicetree/bindings/spi/spi-controller.yaml > So there is two possible ways to make it more generic: > 1) Detach the spi-client part from the spi-controller.yaml bindings > into a dedicated DT-schema file and refer to that new scheme from > here. > 2) Forget about these controller-specific properties and let the > parental SPI-controller bindings parsing them. Of course there must be > at least one of the next properties declared for it to work: > {unevaluatedProperties, additionalProperties}. I proposed a patch series [0] to fix this for SPI NOR, which can be used here as well. A re-roll is long overdue though. Let me see when I can find time to get to it. In the meantime, this should be fine IMO. [0] https://patchwork.kernel.org/project/spi-devel-general/list/?series=497129&state=%2A&archive=both -- Regards, Pratyush Yadav Texas Instruments Inc.