Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp470199lqb; Wed, 29 May 2024 00:41:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXBAuJQuxAg6RuIKBV7KNLbWoayCcVnzgHydV0zYRb3DykjCIC345mb+PVW5oaZErlZlp3T7SJEDj+8U15+fbDRiYEHDYWxCt6hWZjwDw== X-Google-Smtp-Source: AGHT+IFnu/nlK+YVzSWIb7tDwsIHIsluvmiQW8BzhmmhWuEFeItRaPIfA5Ldq9QzyRZD1NztVz8W X-Received: by 2002:a17:906:1db2:b0:a51:8d60:215a with SMTP id a640c23a62f3a-a62641dff4cmr1003082966b.27.1716968506453; Wed, 29 May 2024 00:41:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716968506; cv=pass; d=google.com; s=arc-20160816; b=h/Ue/bCuxGRYWEfY9ILtsXbZEIATVjePBodpyeO+Js9h7lOW+7f8jT56D0dHrgfc9h 6CRbC5Oz0/e2t9ATQVAN/NnSuUxTl18Dl2AhpLQ7lZKDYV871KbQs1l4qhKIVZzqxllq bVaq+qlG6haCs7w4yxC52nwZ0DqlOfsG37IsKmpkrOhuS0hBbr2J87h3iyweoqNMtiWU JamBvDEjYrxIrjrIQI7Pqpp4+2A60CkERZEsjXvd1Id86Bvm+yU2TwDikv9BgYOcYlgL R8dcQIoKt1hh7ENLllbuUESFo4Ttiki81jByIKPfaNsDYf9gzn/dhpD7Ev+tJZiV7xeh ua8g== 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=rRLECvJxnOfvaVlWa0fpYVpaIrpD8esKnFwYoKOVNrNLWhps3Ei0ot2eboXj9jfD7l Tff3yciR18vqM/bSfFozxQ8H1jN0b+sa1muw9dcm/Ati+tOaVcZVxFeRhHZWuZbCaDpT 7bhrNIvkpGVsIMBtL/R0EgMn1t+bY8zT9oHX/8wnxdr3dEbE9RcPzpbJMw5Wj88WDExQ zzYrZ0yda8j8phfGXaeJ5vNgTuFGexxyq0z6gri13PF0lQVLC3W3Ortlut47tvZdOZb/ /f4lp/3SZrOonDr7/OJ4OMjlW6YeReIzaQJgkQzcARgCrbtmkJv16H/uo4AmYX+uufDC 9TDA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=O1dDFA3B; 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-193607-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193607-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a62e5f5947esi361329166b.749.2024.05.29.00.41.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 00:41:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-193607-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=O1dDFA3B; 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-193607-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193607-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 2E9A21F245F7 for ; Wed, 29 May 2024 07:41:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 49E62169AE4; Wed, 29 May 2024 07:40:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=marvell.com header.i=@marvell.com header.b="O1dDFA3B" 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 D79D516936E; Wed, 29 May 2024 07:40:46 +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=1716968448; cv=none; b=ZEaFvZzRmE+Qau5vSG473olvNDail865cn0CSjDDzmY0X8ukx9xArag9yi8zgfvOxj1IRtExC8HtkoM1z9vz4A17CP6hDKrtFI1Q/gT0wurQvOYFaM5TdI4+vOSj5KV5oYv5GaY2TsYS1T31OGIG9xDJLwv2s4FtfzpnyYJa4Fs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716968448; 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=um8aVU1oaK1t1qJBFQg6kfwicbwTqDAeZh3oMPdZlzjXuOSQ4CgTnAHn8X/snWDG/qA/+TTbJ+ghi/bo6G4qucqXnz6PIgAvyzEYmfAbWUjFKJeQgV3mRc2gp1yaFhILP9ZVP3JvVt9K43bopQf3APmfHekNXuxDYjheB9ix844= 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=O1dDFA3B; 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 44T3mGtQ007681; Wed, 29 May 2024 00:40:42 -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=O1dDFA3B01P70ne0M mGnIGvzhyzc9e96+ETk2xH+x28zU90B5fkYj890IbTzEj8RKOVIgmz0t95tSQiuN eo6l1HwaAbI++HOA9FXOxHRlE3gKtIyZL4iypkuILoyITasimLW2eAa//kxTrJkT oZP/rsOxiVUaoYw+OEyQEIDzVKQTsES4QbiryuZt5nQVl8SILm4HqNJVCF2II4Nn /4avsH+N3CTk9vcXSOB8/G241UC+ibkuCdco6HpRwkeoamcDHgNtETCr+H8jKhUL YV0+CnEh0Rbmaoe3pFvwyfYxEQfyE487PliZJYd6X+tNysEfiIw8ZiIuSRptr8w3 uNfkQ== Received: from dc5-exch05.marvell.com ([199.233.59.128]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3yddnvc79e-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 29 May 2024 00:40:42 -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 00:40:41 -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 00:40:41 -0700 Received: from Dell2s-9.sclab.marvell.com (unknown [10.110.150.250]) by maili.marvell.com (Postfix) with ESMTP id C3CE13F70AE; Wed, 29 May 2024 00:40:40 -0700 (PDT) From: Witold Sadowski To: , , CC: , , , , , Witold Sadowski Subject: [PATCH v6 2/5] spi: dt-bindings: cadence: Add Marvell overlay bindings documentation for Cadence XSPI Date: Wed, 29 May 2024 00:40:33 -0700 Message-ID: <20240529074037.1345882-3-wsadowski@marvell.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240529074037.1345882-1-wsadowski@marvell.com> References: <20240529074037.1345882-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-GUID: uuSUBDXslT4LZQTiDV6VGykahe6bZGru X-Proofpoint-ORIG-GUID: uuSUBDXslT4LZQTiDV6VGykahe6bZGru 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-28_14,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