Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1542714pxb; Thu, 28 Oct 2021 05:48:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrho2NQObjbXYmSfnAxzZMvUVlbGago1exz95vsg4lmO+uKZy1cCPEQpD4ujlHPS/gH+jK X-Received: by 2002:a17:907:72c9:: with SMTP id du9mr5280066ejc.124.1635425285718; Thu, 28 Oct 2021 05:48:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635425285; cv=none; d=google.com; s=arc-20160816; b=WDxm2VL6WmVBgOpKz4eA58gumUifjyiwM5BbXlATzoD73XE3n1Ua+cAMQvwwDhrN+L xrmMJdmP4dsUjGfLQ10Ssig4BZOnHBYy/D/DK85W1cbcGJYbRBhOyHPMxORzgGthKuNX KE5t/uKyXK5Mkg5I56YrUvmzylyLPr9FXrB3ApISMjvDMWE5bVkYMWZ8zuwSwcS6kNv4 OwxBu/+f6fnt6WmFiq2FQhrRXgD0oYjho8gEr1/V29NsfY6/wcA7IA7a/c2CLrwpQ+h2 /9GKU6ZemHvrFrQljKBpvmufHbE9yt695jgF24iqOWyit7J9KLNXBEo7PIoEuTnVWOAo 2XDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=NtVjaK3NVDc5/FgFPK++Bri10Kvkgs6XU03tEJ+YQ0c=; b=L5fA5DkK+CD0D8AkU5/hhLjMKfV2MmvQ/tmu/QKBwDyasvGtmXRbU6xadioxYLM3g+ 0BclT1c2LNQAVP40Yoo+w0fLcfrgjo30UJ4igDZzixT/ZS/S8wxYd290j8YQWeChXSQ9 aOjYpntvSAq3U0ik1wLRinLY0icVetP5u55udxe1zO9hRVDcJmRmalC8gWJJSI+1KcmS H925ofoEp45pGo5O2hINPJsS7Mv6F51IJdawuNVCeU0fWbhAee7xUzxE3ZpCv0VA8tMF b5N2p8iW2gSTZOGRJDvuuSuc+GqSYpoaoYm6bRp5KhSvS9MJheYKg5lMEzagwsKUBxra qgNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Vo0L4UGh; 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 bv14si578217ejb.213.2021.10.28.05.47.38; Thu, 28 Oct 2021 05:48:05 -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=Vo0L4UGh; 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 S230243AbhJ1MsN (ORCPT + 99 others); Thu, 28 Oct 2021 08:48:13 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:45444 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229946AbhJ1MsM (ORCPT ); Thu, 28 Oct 2021 08:48:12 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 19SCjOuE046426; Thu, 28 Oct 2021 07:45:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1635425124; bh=NtVjaK3NVDc5/FgFPK++Bri10Kvkgs6XU03tEJ+YQ0c=; h=From:To:CC:Subject:Date; b=Vo0L4UGhARwXYeRKxOVVyJnLvlxMBykznrkdrPhOG8WrLDC9rDRpTiPQYo4/BtUCi VCX3Ma71P7Lfyl52NlD4SWrXCP+DohVdO4jihOzPjWA7TFFYVtQHPEEHpKT7LzHXxu wI1QczV5rlyWgjGB/ufySkewPQnlTYZcPsbZKr4s= Received: from DFLE109.ent.ti.com (dfle109.ent.ti.com [10.64.6.30]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 19SCjOD2119937 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 28 Oct 2021 07:45:24 -0500 Received: from DFLE106.ent.ti.com (10.64.6.27) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Thu, 28 Oct 2021 07:45:23 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) 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 via Frontend Transport; Thu, 28 Oct 2021 07:45:23 -0500 Received: from pratyush-OptiPlex-790.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 19SCjJbA115317; Thu, 28 Oct 2021 07:45:20 -0500 From: Pratyush Yadav To: Rob Herring CC: Mark Brown , Nishanth Menon , Michael Walle , Miquel Raynal , Pratyush Yadav , Richard Weinberger , Tudor Ambarus , Vignesh Raghavendra , , , , Subject: [PATCH v2 0/3] Add bindings for slave-specific SPI controller properties Date: Thu, 28 Oct 2021 18:15:15 +0530 Message-ID: <20211028124518.17370-1-p.yadav@ti.com> X-Mailer: git-send-email 2.33.1.835.ge9e5ba39a7 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This series adds bindings for slave-specific SPI controller properties. See patch 1 for more info on the motivations behind this. This is the best approach that I came up with with my limited knowledge of JSON schema. It has some limitations that are mentioned in patch 1. I don't know of any better ways to model this. Suggestions are welcome! Changes in v2: - Move other subnode properties listed in spi-controller.yaml to spi-slave-props.yaml - Move the Cadence controller-specific properties out of spi-slave-props.yaml. They will be added in a separate file. - Add a reference to spi-slave-props.yaml in spi-controller.yaml. - Update description. Pratyush Yadav (3): spi: dt-bindings: add schema listing slave-specific properties spi: dt-bindings: cdns,qspi-nor: Move slave-specific properties out dt-bindings: mtd: spi-nor: Add a reference to spi-slave-props.yaml .../bindings/mtd/jedec,spi-nor.yaml | 3 +- .../spi/cdns,qspi-nor-slave-props.yaml | 42 +++++++++ .../bindings/spi/cdns,qspi-nor.yaml | 33 ------- .../bindings/spi/spi-controller.yaml | 69 +------------- .../bindings/spi/spi-slave-props.yaml | 93 +++++++++++++++++++ 5 files changed, 139 insertions(+), 101 deletions(-) create mode 100644 Documentation/devicetree/bindings/spi/cdns,qspi-nor-slave-props.yaml create mode 100644 Documentation/devicetree/bindings/spi/spi-slave-props.yaml -- 2.33.1.835.ge9e5ba39a7