Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1621694lqa; Mon, 29 Apr 2024 14:02:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUKoNRBKs/B6/lKdwni/zkGQK5qxbGkYcB3GUN8ocoliSUW93IPqpqIA4dfGMAg64rvGPohFm9r3P1Mk2EbtIe/26VUDdWHX8yqNhl/Aw== X-Google-Smtp-Source: AGHT+IGNAP0B3cBAZQmMUhX2i1HgLJHGr+DgpwgW0bPe9rppTIGSj3uzAW7+3B7CRtVVv27DE1Fa X-Received: by 2002:a17:906:dfc5:b0:a58:bd1b:a05f with SMTP id jt5-20020a170906dfc500b00a58bd1ba05fmr7893053ejc.68.1714424550901; Mon, 29 Apr 2024 14:02:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714424550; cv=pass; d=google.com; s=arc-20160816; b=tLaVsW0LrHwRxDkCV447g9OKVtfkTfSpEAhUWMunWGykxORas7dKrvtCAYjyJy/Uxm 3H8cV3bLH86IZRWnCgRcEcNeflsW4ePmBnbYDakm2vrIJEzNDq9Y9zd86ISr0Qpser2n wm9itvCKuVvphBdrfCDgUUG4vytKNciwY7OATdDke0IFsVKr5RDAC139FoF8GJuUZbmx Qr6P3EwqbRdxzlCaInfhlB8MbDofFdIYfz86JzxGgOF5hew0f+DsOa1gLLBJMJpw6JkZ mLa7B352HmZOUsdrkm+H3p6bYpj9mF5TgpnoL/0IJMEtpMkvul8c4VA9mRuaokcS0+Vj RZlA== 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=6c1TCEQs9gZ+Y3ncosYoigtRD3qDitcaSq8+vFlxO8g=; fh=h0VegV54Izt8Qd8QRJ8tKg36ikFhfGt+Cj1gLXGk4yo=; b=g2XU9eOnpL3g3R65uBvAKSfmxbCGAVhRAu0sReCQZxVczJn6FAy/0Us776dgR5BMsI fdw4H1NbsemjXD7dWfL/k3xg3TvMYmxrsEouh79EAFASZiJJ2+KSE52N9ZjOxvMGQETV Ff3JfJGiMBV9vtRQ+Be7eaM+wlBPDGNeRGn16JJ8YLHqM/TzsrS34+gJPE9fdIWi8w8f W3WIszX7+vOQ7rbgbyGio4rlhTKNQMKq5woVpfGfhs4WkBqoa8ftJkpQtPG6m3+Q/xF3 dDpihGmNDusOgKqpB+rAd0XKp1gBvdjJsSTFOrg5UfHlRQhiESVbeh4ZdH1jHBgB+TTR c67g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=naqXmfdo; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-163037-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163037-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.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 ne14-20020a1709077b8e00b00a55a5f4d6a1si11781923ejc.590.2024.04.29.14.02.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 14:02:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-163037-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=@ibm.com header.s=pp1 header.b=naqXmfdo; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-163037-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163037-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.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 87AD81F21775 for ; Mon, 29 Apr 2024 21:02:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 30A4517B4EB; Mon, 29 Apr 2024 21:01:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="naqXmfdo" Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (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 C9D67178CC4; Mon, 29 Apr 2024 21:01:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.158.5 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714424514; cv=none; b=lfaCkzkmDuUeaseyza66SLvoJcxdQdGFHMXyk52obxzmheomK/eDJjaiRWvhmooVmDmkW7RGv6YtH8coxqHejVgeUVmhGkhGWL6gkypZGwqIhfQKvrStOxR/y7jlnaG1OeHzMOcW5Uecd1tHx/OWk+1qvjkhLkkgD6OdqJ55VEg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714424514; c=relaxed/simple; bh=S2id2mSzTJHmKif08Ne90A9pEZH5qY9ml0fVzkVtNrc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=K20kE2ec7FUr3qdTdQUJlu50Zrl7WiglHinslfUfBS6K/YZk5SBJUIJjNREHSFz68NxgLf966GGeoooUCiq7TAnwSc/dR+J8Hhc/YmC7Lw3J8l63cyfWeNdcVVErlP5wJjIy4dPOD1Br/9+z7xvq2q+u/VGkzEDp36/GBlr6BRE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=naqXmfdo; arc=none smtp.client-ip=148.163.158.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Received: from pps.filterd (m0356516.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 43TL18bo018990; Mon, 29 Apr 2024 21:01:39 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pp1; bh=6c1TCEQs9gZ+Y3ncosYoigtRD3qDitcaSq8+vFlxO8g=; b=naqXmfdooz6h24rAmfEwyUQ7nlU9WmgaKKi4fZSKho0Qshz/skaj38zQxZxDwLzyPbif dnVQHPmZAnhgq+ogp/XMW4JFUey2aE559iLOIOXxZfRuZBdX6wGQ/lHwSchbTLYsVfo+ EHSzxqDc8dOUAIHGjfDV50TpAw3PzEzlcyJH86UUh9RUVtwXYjDqtrzQAIKnJTPfev7t 8cWtPpvatrfx8ABdtDPg2GzQ1c+fyYbd3KcPMCEa2vsGOZQhv14F94N016KcnI1xyTIi pyxjxJrKswOwQJtVO4gYGWQTXtc52PbBHF4HVYM0gE8FiEkeHUdrFSFSs6rd96Z5BdMq NA== Received: from ppma21.wdc07v.mail.ibm.com (5b.69.3da9.ip4.static.sl-reverse.com [169.61.105.91]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3xtjrrg186-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 29 Apr 2024 21:01:38 +0000 Received: from pps.filterd (ppma21.wdc07v.mail.ibm.com [127.0.0.1]) by ppma21.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 43TIDivP003210; Mon, 29 Apr 2024 21:01:38 GMT Received: from smtprelay07.dal12v.mail.ibm.com ([172.16.1.9]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3xscpp9gb4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 29 Apr 2024 21:01:38 +0000 Received: from smtpav01.wdc07v.mail.ibm.com (smtpav01.wdc07v.mail.ibm.com [10.39.53.228]) by smtprelay07.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 43TL1Y4Q39649562 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 29 Apr 2024 21:01:37 GMT Received: from smtpav01.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id CB68158063; Mon, 29 Apr 2024 21:01:34 +0000 (GMT) Received: from smtpav01.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1081358065; Mon, 29 Apr 2024 21:01:34 +0000 (GMT) Received: from slate16.aus.stglabs.ibm.com (unknown [9.61.151.254]) by smtpav01.wdc07v.mail.ibm.com (Postfix) with ESMTP; Mon, 29 Apr 2024 21:01:33 +0000 (GMT) From: Eddie James To: linux-aspeed@lists.ozlabs.org Cc: eajames@linux.ibm.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsi@lists.ozlabs.org, linux-spi@vger.kernel.org, linux-i2c@vger.kernel.org, lakshmiy@us.ibm.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, joel@jms.id.au, andrew@codeconstruct.com.au, andi.shyti@kernel.org Subject: [PATCH v4 02/17] dt-bindings: fsi: fsi2spi: Document SPI controller child nodes Date: Mon, 29 Apr 2024 16:01:16 -0500 Message-Id: <20240429210131.373487-3-eajames@linux.ibm.com> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20240429210131.373487-1-eajames@linux.ibm.com> References: <20240429210131.373487-1-eajames@linux.ibm.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 X-TM-AS-GCONF: 00 X-Proofpoint-GUID: Blvp46_nAUJj_qUX_ZV9vIYWOW2bN_I7 X-Proofpoint-ORIG-GUID: Blvp46_nAUJj_qUX_ZV9vIYWOW2bN_I7 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1011,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-04-29_18,2024-04-29_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 bulkscore=0 mlxscore=0 priorityscore=1501 adultscore=0 mlxlogscore=999 suspectscore=0 clxscore=1015 phishscore=0 malwarescore=0 lowpriorityscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2404010000 definitions=main-2404290138 The FSI2SPI bridge has several SPI controllers behind it, which should be documented. Also, therefore the node needs to specify address and size cells. Signed-off-by: Eddie James --- .../devicetree/bindings/fsi/ibm,fsi2spi.yaml | 36 ++++++++++++++++--- 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/fsi/ibm,fsi2spi.yaml b/Documentation/devicetree/bindings/fsi/ibm,fsi2spi.yaml index e2ca0b000471..ad5c83f48425 100644 --- a/Documentation/devicetree/bindings/fsi/ibm,fsi2spi.yaml +++ b/Documentation/devicetree/bindings/fsi/ibm,fsi2spi.yaml @@ -9,11 +9,10 @@ title: IBM FSI-attached SPI controllers maintainers: - Eddie James -description: | +description: This binding describes an FSI CFAM engine called the FSI2SPI. Therefore this - node will always be a child of an FSI CFAM node; see fsi.txt for details on - FSI slave and CFAM nodes. This FSI2SPI engine provides access to a number of - SPI controllers. + node will always be a child of an FSI CFAM node. This FSI2SPI engine provides + access to a number of SPI controllers. properties: compatible: @@ -24,6 +23,17 @@ properties: items: - description: FSI slave address + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + +patternProperties: + "^spi@[0-9a-f]+$": + type: object + $ref: /schemas/spi/ibm,spi-fsi.yaml + required: - compatible - reg @@ -35,4 +45,22 @@ examples: fsi2spi@1c00 { compatible = "ibm,fsi2spi"; reg = <0x1c00 0x400>; + #address-cells = <1>; + #size-cells = <0>; + + spi@0 { + compatible = "ibm,spi-fsi"; + reg = <0>; + #address-cells = <1>; + #size-cells = <0>; + + eeprom@0 { + compatible = "atmel,at25"; + reg = <0>; + address-width = <24>; + pagesize = <256>; + size = <0x80000>; + spi-max-frequency = <1000000>; + }; + }; }; -- 2.39.3