Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp566250lqp; Wed, 22 May 2024 12:28:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCURq3gsyVjS7pTulReOBy/61Oc9/27mVYoVgPWsm6ig57SLEJwWhYyrZg2wJyz9WV7NCUL+Y7e/SmOdvnZRukbJtlobGvV80TRN75h9OA== X-Google-Smtp-Source: AGHT+IF4IhqHPIwNzmR6Mq2jEkqFlgeVhH//Yl4ljQrYCHhbNB2BNIHSl/8ZNBWCseYgb11D+j95 X-Received: by 2002:ac2:47e2:0:b0:51c:348:3ba9 with SMTP id 2adb3069b0e04-526bee935b3mr1796811e87.22.1716406137252; Wed, 22 May 2024 12:28:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716406137; cv=pass; d=google.com; s=arc-20160816; b=RncZeQ9Zt07tlxAAL7nMoUmQx+ijF3o/lcEs8V4OQNkq+HUDzZqcETQlApj+9qu9Hb TNJlTHySy5Ly40JrUoNguPx72wndgBC/0pxDBTM9U3g3dGnoNhvpLNteGWQB0Ux91b4f TJJBL7DtcNywf8HHBffpbv0QYrrsDLpFDu2r7Nre4er8Zsi0xmqqDEMxb1ZOmJHEFvWb wqXi8mn8mo9k1zhU2SOMTYQ5eQMOdEJ869fO/7yOBUjX159boTi1yl45Vyv7kooSRXwW YIg2WXoL1U9pcmyfkZOKKMG5TD/7oMEeH/VIo71LiVYO9hmaoBVj1Qmd1GLS4tjVU7Ur I9AA== 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=oOQR3EwumdQdngc1R11QpJeuiet2OobvalhEs0uw1Nk=; fh=fuUsOn8sqioWxqQMjS/Yz49SJoUsXedCpn3NrOQmAmg=; b=PvCpIuxNG2SggibZEapFU1SwvbuQ6JdunYuebbqd3xL4+IMS+eqob6C1p0mVvDypmY Xhz3qSZmq1ncn0i9tQcJKfAhCUW+ZOg7Y+rVoGvDE17Zb+fmoMUuZTwAZlspIg8g6EgE R0suqsL6fT9qPiL4eIVSDgbiTj26pwhHkEsE0xmDQeAuHhJ4Dp2wp85JBexJVuHrecB/ QOe7yKvS4Rtkx0n2aT/3MONSGUXO23Q4B+ruUxxO+ytN08z8/gkerBz3WqjIicqSNqV5 pU9rTSF3nNo4WyUQxdLmSimVzgsDDD+94lgACBWvBkxKocIn1vIy9Xum772EWgy1wDLT mclg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=LT7H4e6n; 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-186655-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186655-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 a640c23a62f3a-a5a17b21925si1513640666b.283.2024.05.22.12.28.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 12:28:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186655-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=LT7H4e6n; 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-186655-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186655-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 EFA991F226E4 for ; Wed, 22 May 2024 19:28:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 48C10149C73; Wed, 22 May 2024 19:26:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="LT7H4e6n" 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 B79CC146A7D; Wed, 22 May 2024 19:26:43 +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=1716406005; cv=none; b=pTJfpVyuuMDdJKzZy1VNOa+zJcRwOuNRIe0ryoLjUxccudj90Zy+jIXkFW6y3KIqaXqSSVzuadtwWBAq1X/hpj9/kNlvuQjYbuLCvX9mPfc4k8Ane09CWOgx2nOgLROHl5RvScFdbG+2toHJiywtL1mS5yDWGHbqtl95aYBBQ+E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716406005; c=relaxed/simple; bh=SacTIrg6gNYHbG9r/twpu8I1AtLsd5h+OFo1bpOsUwc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Uv1RIhz9utdKwGX7aPe+WOfuuP7vtW576b7bWTvlLpd2+B7GvG4dE/IhHvvkjokNjnzOamosZttooZZEaufodaaL7+UYpSaAjWNgGUp95GY9vb3OQk9vvn19u6oe0GinSA+P5mTYgJEXW4FacN8c2dwldnaoOCIuhPuqPzBotRQ= 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=LT7H4e6n; 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 (m0353724.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 44MGw8t2002338; Wed, 22 May 2024 19:25:29 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=oOQR3EwumdQdngc1R11QpJeuiet2OobvalhEs0uw1Nk=; b=LT7H4e6noHYKs12u9uz14Lw1kMlV5KPCAC1cJs6tscL3/pbVb90V28bKQXkfgiVcWMQU betF4r3X2zNVV91O6HPLdwtQGZQKsnLJYilOAsOZKNc9KOwCsrWmTNMY29JnIh1W71CZ 9P5jrvs1InC3+2ar8MXxPJjyXUiFk82SUqBnOQEh9I9NMti2PuPLAMUyaTuCjzS2XL4g vgljYqAGscgvZ1UMv9qWGYV9KQNJxfgwZfdPw3pqEVMPPfkrA7s8GG6w+glT6MVx0wkC uuYU77FIbP4CqRYaZ+4RJk+qTogjge0eUr+ZFsb57uF7fkZ+XpoyS74JXph2ahP8tye0 Ng== Received: from ppma11.dal12v.mail.ibm.com (db.9e.1632.ip4.static.sl-reverse.com [50.22.158.219]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3y9mp70bhy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 22 May 2024 19:25:29 +0000 Received: from pps.filterd (ppma11.dal12v.mail.ibm.com [127.0.0.1]) by ppma11.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 44MJAHrM008100; Wed, 22 May 2024 19:25:28 GMT Received: from smtprelay03.dal12v.mail.ibm.com ([172.16.1.5]) by ppma11.dal12v.mail.ibm.com (PPS) with ESMTPS id 3y79c359a5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 22 May 2024 19:25:28 +0000 Received: from smtpav01.dal12v.mail.ibm.com (smtpav01.dal12v.mail.ibm.com [10.241.53.100]) by smtprelay03.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 44MJPPwm53412130 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 22 May 2024 19:25:27 GMT Received: from smtpav01.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C2BA658063; Wed, 22 May 2024 19:25:25 +0000 (GMT) Received: from smtpav01.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 72EFB58059; Wed, 22 May 2024 19:25:25 +0000 (GMT) Received: from slate16.aus.stglabs.ibm.com (unknown [9.61.104.209]) by smtpav01.dal12v.mail.ibm.com (Postfix) with ESMTP; Wed, 22 May 2024 19:25:25 +0000 (GMT) From: Eddie James To: linux-fsi@lists.ozlabs.org Cc: eajames@linux.ibm.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ninad@linux.ibm.com, lakshmiy@us.ibm.com, linux-i2c@vger.kernel.org, linux-spi@vger.kernel.org, linux-aspeed@lists.ozlabs.org, andrew@codeconstruct.com.au, joel@jms.id.au, robh@kernel.org, conor+dt@kernel.org, krzk+dt@kernel.org, andi.shyti@kernel.org, broonie@kernel.org Subject: [PATCH v6 02/20] dt-bindings: fsi: fsi2spi: Document SPI controller child nodes Date: Wed, 22 May 2024 14:25:06 -0500 Message-Id: <20240522192524.3286237-3-eajames@linux.ibm.com> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20240522192524.3286237-1-eajames@linux.ibm.com> References: <20240522192524.3286237-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-ORIG-GUID: mCvHjNxr4_1fuoLDUoOd4b9hExumqjyr X-Proofpoint-GUID: mCvHjNxr4_1fuoLDUoOd4b9hExumqjyr 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-22_10,2024-05-22_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 impostorscore=0 lowpriorityscore=0 adultscore=0 spamscore=0 clxscore=1015 mlxlogscore=999 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000 definitions=main-2405220134 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 Reviewed-by: Krzysztof Kozlowski --- .../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 e2ca0b0004714..ad5c83f484255 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