Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp920753lqb; Wed, 29 May 2024 15:01:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWjMF+tq4Ujx6dGT7lQ4qq48vDAzlG4uWa9iCHTLAF1vNyGeFToQLJh22dDTSQaOLqTb0lHDTt7uv9mfK8zm9EH638PzvnRYFtdhwecKQ== X-Google-Smtp-Source: AGHT+IH6SBPp8fI+1BJMdFUpMYMomVK8zHPx6845bhI1SrOYbFtU/LFkskP4KJnejt6IYlIsq43E X-Received: by 2002:a17:90b:110f:b0:2bf:7d99:9ee1 with SMTP id 98e67ed59e1d1-2c1abc42114mr372587a91.30.1717020065533; Wed, 29 May 2024 15:01:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717020065; cv=pass; d=google.com; s=arc-20160816; b=yl9EPuurnhuxZ4e2CrdyUUGzuu/3njICdjeEUfY/9jxYc5zYDr9CZICP3iXmbDkHJ7 Z50zUp7HxhQhHxZYnrjeG71hqLpaVJ70cNX9uOe3d5vDMM/3TULOEF/tlMyDku91QcF0 EeKkAKfVozw59Pta0SkIlwei6l64lEnq12sG5MtqQ8HT0rpCrDxb9nUhBrlBkNrn8LA+ JrOjX/HoVnrOlsSZTCJ5RjFRw9EgLaxHChh8p59d8/iRJPepKsS5NlWXEFK/bdZ3vQu5 yUr2Ug/MWMNAmX7VDgODVQOLGhDyAtfbvUmlF5fxG+D0URO0rq3nVahIzKv1Dei6zLyI 7vIQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Fpk/X75yGmNLyRTKGore1BJYDGr66lspCD+xmIUCbRA=; fh=v5g/jM8LtXkxdDOZiY0auDT0qARIn/b9mdOLf8qLaog=; b=GHg7qfHBXDAKg/jg9jU2fuASAQL12VIgyIL/HdfeuDUTPd/Y5r2xX/5caEoae/cRuk KVLTgg6fhMd2C0IWXlDavYBmDk8yuL2wx+1zPjDBZp3uIrSbJqO+lw2tfiZmihgOlBf9 0qp+zI6+CsLAg+a4yFK8dJMdXBgRTIQm7r6ZHT4HJez8dcOORDjrSx8ttMFyQ1YqbdP+ 7R8I43MkP/tg/KBmy1vrwY3oi8lJucFmSheH6mfWI5qx2/IygJoetTiABWV3pVmP3Ov7 i84vn+Q+gerABo4PlPkrJSbmwfZr69NlyFtzO6SI7FCxm0bjx4qcaoBYEZkaehLAx5IY id7w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=XrpUyjeY; arc=pass (i=1 spf=pass spfdomain=marvell.com dkim=pass dkdomain=marvell.com dmarc=pass fromdomain=marvell.com); spf=pass (google.com: domain of linux-kernel+bounces-194719-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194719-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c1a7764d5asi348859a91.32.2024.05.29.15.01.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 15:01:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194719-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=XrpUyjeY; arc=pass (i=1 spf=pass spfdomain=marvell.com dkim=pass dkdomain=marvell.com dmarc=pass fromdomain=marvell.com); spf=pass (google.com: domain of linux-kernel+bounces-194719-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194719-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 3D04D281DE1 for ; Wed, 29 May 2024 22:01:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CAA6A1CB31A; Wed, 29 May 2024 22:00:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=marvell.com header.i=@marvell.com header.b="XrpUyjeY" Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 77E781667EB; Wed, 29 May 2024 22:00:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=67.231.156.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717020039; cv=none; b=kuBU/Ht1TVvmHwB1GxfVW1oLXKavBnbHkebdHePcyXso9esu9YT6gLozy9DHQ9phzmABF8LSL73Hw+W3G5V5zsLt/ZXsy51vU9xYAIZvTEfvxL90g8Y3ot1JH1riiJAW+v5Cyb8U21SEEKXZRhRJ17C+7jpJw2H8OuJPmPN+x9g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717020039; c=relaxed/simple; bh=BxOZNoJlz29HO8/YfLbPXMpM+KfhZfw+epg0zIGopN8=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=WEJDm7ZINpOIuVFy0GNHLmKK1COrLIaUkv0lHJv3zmyaGTNc5gtqjnvytHAg3TojcrZyvHbwAAjolZY9iFPYdPXltewlc7GosWYomMjJ3DdYi0Uq8yKoHPtrGyDOVrGMY/FkhdwaDBcyES580nVPggBwtV+6FKzemfRT2T4IlM8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=marvell.com; spf=pass smtp.mailfrom=marvell.com; dkim=pass (2048-bit key) header.d=marvell.com header.i=@marvell.com header.b=XrpUyjeY; arc=none smtp.client-ip=67.231.156.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=marvell.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=marvell.com Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 44TIdMZ5015558; Wed, 29 May 2024 15:00:32 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=pfpt0220; bh=F pk/X75yGmNLyRTKGore1BJYDGr66lspCD+xmIUCbRA=; b=XrpUyjeYu/2hKuFXM /FnfFjet6VO4SJ1HR7sGnoOt8WeS53Mzbou231MXMJJ01XZlma7qf+lHf5G9uxuU pueIfS3vAtROxNGJGV62jzQ8Vgw2V3CpaG6EF0yqyPSYkuMzCsEpvJWF3cZpzsUq mgPlt04zWQo/VKqa5yhOcs51aP7vAV80JEsjheSmc99NlR8x4r0QZIfhnwUUZJBY jQcawkFyM8wGPhl+f/Jo79o83OYtqTacZ1QsFr3iSb8FoHU3bcQ8or7FtpViigM3 32l0bSLY3ur7AF0VZQlO6lmlA2td+2ENrW+GoVhFvWZ+0bySQxJeNjwhD+XgByvv BtQlQ== Received: from dc5-exch05.marvell.com ([199.233.59.128]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3ye1r12k8j-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 29 May 2024 15:00:31 -0700 (PDT) Received: from DC5-EXCH05.marvell.com (10.69.176.209) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Wed, 29 May 2024 15:00:30 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Wed, 29 May 2024 15:00:30 -0700 Received: from Dell2s-9.sclab.marvell.com (unknown [10.110.150.250]) by maili.marvell.com (Postfix) with ESMTP id F15C75B6951; Wed, 29 May 2024 15:00:29 -0700 (PDT) From: Witold Sadowski To: , , CC: , , , , , Witold Sadowski Subject: [PATCH v7 1/4] spi: dt-bindings: cadence: Add Marvell overlay bindings documentation for Cadence XSPI Date: Wed, 29 May 2024 15:00:23 -0700 Message-ID: <20240529220026.1644986-2-wsadowski@marvell.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240529220026.1644986-1-wsadowski@marvell.com> References: <20240529220026.1644986-1-wsadowski@marvell.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: BFEQhuVY2sFJqhRktJbFmVYoZP7LtgmF X-Proofpoint-GUID: BFEQhuVY2sFJqhRktJbFmVYoZP7LtgmF X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.12.28.16 definitions=2024-05-29_16,2024-05-28_01,2024-05-17_01 Add new bindings for the v2 Marvell xSPI overlay: marvell,cn10-xspi-nor compatible string. This new compatible string distinguishes between the original and modified xSPI block. Also add an optional base for the xfer register set with an additional reg field to allocate the xSPI Marvell overlay XFER block. Signed-off-by: Witold Sadowski --- .../devicetree/bindings/spi/cdns,xspi.yaml | 32 ++++++++++++++++--- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/spi/cdns,xspi.yaml b/Documentation/devicetree/bindings/spi/cdns,xspi.yaml index eb0f92468185..49c6a2c82fc4 100644 --- a/Documentation/devicetree/bindings/spi/cdns,xspi.yaml +++ b/Documentation/devicetree/bindings/spi/cdns,xspi.yaml @@ -15,24 +15,27 @@ description: | single, dual, quad or octal wire transmission modes for read/write access to slaves such as SPI-NOR flash. -allOf: - - $ref: spi-controller.yaml# - properties: compatible: - const: cdns,xspi-nor + enum: + - cdns,xspi-nor + - marvell,cn10-xspi-nor reg: items: - description: address and length of the controller register set - description: address and length of the Slave DMA data port - description: address and length of the auxiliary registers + - description: address and length of the xfer registers + minItems: 3 reg-names: items: - const: io - const: sdma - const: aux + - const: xferbase + minItems: 3 interrupts: maxItems: 1 @@ -42,6 +45,27 @@ required: - reg - interrupts +allOf: + - $ref: spi-controller.yaml# + - if: + properties: + compatible: + contains: + enum: + - marvell,cn10-xspi-nor + then: + properties: + reg: + minItems: 4 + reg-names: + minItems: 4 + else: + properties: + reg: + maxItems: 3 + reg-names: + maxItems: 3 + unevaluatedProperties: false examples: -- 2.43.0