Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1625104lqa; Mon, 29 Apr 2024 14:09:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW6ljTA20H+uX3kT8ksGPyGNaXrEwntz28r49b324KsKEcMpBrHbpo4qBMnxAiz+ah/qThRbteRzIVZuhQ5lTGWwSPNhdrO4BcnG11uiw== X-Google-Smtp-Source: AGHT+IFif3Y86EtE8Bttxss96qEcdetHbpbw2N+VSuWq5I1radg8A4DhAySTNM5SCywDCBn/EN+V X-Received: by 2002:a05:6e02:13a2:b0:36b:26df:cce9 with SMTP id h2-20020a056e0213a200b0036b26dfcce9mr1020321ilo.22.1714424951150; Mon, 29 Apr 2024 14:09:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714424951; cv=pass; d=google.com; s=arc-20160816; b=r0ZSa2PQjLPa5yv6WGZtLS2LQojEC9Cwxq3O3Qac3lJIQt6lrO0hemwwVN4BdjbNPI EY8z7WMj9E+bZPitCDzOYxj4YStvCvHVKw2b7r0YukuGOqRhVaoHDkIkDlJcDBzljloW QrphKxrziKonlcQ9UxHhmPm5HlatM8UlqVG95zBn374oJM/d/9Yv+2vmkr8dSI909RGR ciCFBxYXtdlbVQH+oJdpbR8R1c1xjJHZ8wunkC9jtr1VZp+j54apxrqjpUtl6FgrN3AW t5t8HDYL74vMVvipKlpabcF7XT5XNls8reRsb+X6xk2431CHQulvlnr7UErmPCfIpLw2 xXCg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=i4N/GVS2N3SxR6Bd0nLRGp60v6K7y1JqlZvTn+jf4Yc=; fh=h0VegV54Izt8Qd8QRJ8tKg36ikFhfGt+Cj1gLXGk4yo=; b=z+oM5yE2wnNRCqNsC0KCP2UCK7eORcXd8Hta9cMKKIqJZcF1iJFRkFGWOa6jhHm2yy 0f0A7z4xUIoT4S/o47rE3WE3RaqwQPZptN8X95lkZCb8iEJKli7HR69ODzqhX+uBSGnN ryc9a0j2bDr8R99p3h4Mwci/8cEwJlZljRSCi6xqwRFpc0m9igOpAiyY+NF95ZWLnF4a 1XG3QzAOj3YVm/D4RmH8b4nbTevj6TCZOsiTBTMIae1giVv7yN9acrYI2S0KOvhlMehJ EgyU1W7ulpSZP3Z3E/14K7jTqdD8tdHi5eeONOxz6eJu90hsuv8lYVQftMqp4mw9+ZO6 Oy+w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="sI1RYV/4"; 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-163043-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163043-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.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 k3-20020a654343000000b005d798062b8csi21179573pgq.499.2024.04.29.14.09.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 14:09:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-163043-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=@ibm.com header.s=pp1 header.b="sI1RYV/4"; 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-163043-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163043-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 6243E285258 for ; Mon, 29 Apr 2024 21:03:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A8E611802DD; Mon, 29 Apr 2024 21:01:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="sI1RYV/4" 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 E20B317BB3A; Mon, 29 Apr 2024 21:01:56 +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=1714424518; cv=none; b=raLRLv/kjlNEA9PKR0EN9qTy01fbF7EOMNMTBGZvSNIZJWIB8zHAh0Jyf9VXoFFZ2QcAAi5izbse6CBAT9TKrKG66Toz0zhqN/ctvGAXA0xyLk3b6bEI3fadDHCkqxdgAIgDBXhy7a4FJrTKVcyxt68JQXZ7VTIr9msFIhNo3XE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714424518; c=relaxed/simple; bh=rBUkSKP9yuCx9rHlg/Dn2yj4cLRpU1A/syewc/en/f0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=uKX/71R3Ck1pP2AYoAmOYE/Iml9UN9cvfpvILGME2vaLwWy+z2/0ralJ1BPlJVvOs2JtYTvrypPj8lTaCoLujt1p5hhjK9BvRn+g/RYrcD6H+SHyNKlOCW43hgYt/+jKYIHIyrDnP7/5AloJiK3CjxGAwdemzu+aikQAMz2xYnw= 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=sI1RYV/4; 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 43TL14t0018912; Mon, 29 Apr 2024 21:01:46 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 : content-transfer-encoding : mime-version; s=pp1; bh=i4N/GVS2N3SxR6Bd0nLRGp60v6K7y1JqlZvTn+jf4Yc=; b=sI1RYV/4MqdQK5s+BpInd9jOWcbai/b0ZqNQ+NtyjYxWuiPHrMAIDFMzAaZP6wdOaAuA 2WaG+KOiLysDMopwqhp3k/9kTyXfc+haTYXH1nwvAaQaQ/l1hJ1AYNOEoHRm6cTKoK1I EUz1vM1kWtprsbDwjuO528nB1PU1G049HUY2lzfXx1sInVsveslJ6OocLDJTSSoYVRyl lztbItJNVLEIF71QbenoZ4n+nUG9/Zai7O6v8nuIuwPra07YOfS/brUA2JhH4aKrJBaj f84vXFWyzSJzSEYtgzOD6QxdJ0/5hnl2K/az35HRGp4VGVFGS4MIY9hSVmkoXCe1qLZ4 MQ== 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 3xtjrrg18r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 29 Apr 2024 21:01:45 +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 43TJagQ4015582; Mon, 29 Apr 2024 21:01:45 GMT Received: from smtprelay07.wdc07v.mail.ibm.com ([172.16.1.74]) by ppma11.dal12v.mail.ibm.com (PPS) with ESMTPS id 3xsed2s475-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 29 Apr 2024 21:01:45 +0000 Received: from smtpav01.wdc07v.mail.ibm.com (smtpav01.wdc07v.mail.ibm.com [10.39.53.228]) by smtprelay07.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 43TL1frQ18547314 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 29 Apr 2024 21:01:43 GMT Received: from smtpav01.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 975095806C; Mon, 29 Apr 2024 21:01:41 +0000 (GMT) Received: from smtpav01.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D5D4E58065; Mon, 29 Apr 2024 21:01:40 +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:40 +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 10/17] dt-bindings: i2c: i2c-fsi: Convert to json-schema Date: Mon, 29 Apr 2024 16:01:24 -0500 Message-Id: <20240429210131.373487-11-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> X-TM-AS-GCONF: 00 X-Proofpoint-GUID: DyOZQJRCJvkqjJVpN1eqMB1CbuH6knyI X-Proofpoint-ORIG-GUID: DyOZQJRCJvkqjJVpN1eqMB1CbuH6knyI Content-Transfer-Encoding: 8bit X-Proofpoint-UnRewURL: 0 URL was un-rewritten Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 Convert to json-schema for the FSI-attached I2C controller. Signed-off-by: Eddie James --- Changes since v3: - Update MAINTAINERS - Change commit message to match similar commits .../devicetree/bindings/i2c/i2c-fsi.txt | 40 ------------- .../devicetree/bindings/i2c/ibm,i2c-fsi.yaml | 58 +++++++++++++++++++ MAINTAINERS | 2 +- 3 files changed, 59 insertions(+), 41 deletions(-) delete mode 100644 Documentation/devicetree/bindings/i2c/i2c-fsi.txt create mode 100644 Documentation/devicetree/bindings/i2c/ibm,i2c-fsi.yaml diff --git a/Documentation/devicetree/bindings/i2c/i2c-fsi.txt b/Documentation/devicetree/bindings/i2c/i2c-fsi.txt deleted file mode 100644 index b1be2ceb7e69..000000000000 --- a/Documentation/devicetree/bindings/i2c/i2c-fsi.txt +++ /dev/null @@ -1,40 +0,0 @@ -Device-tree bindings for FSI-attached I2C master and busses ------------------------------------------------------------ - -Required properties: - - compatible = "ibm,i2c-fsi"; - - reg = < address size >; : The FSI CFAM address and address - space size. - - #address-cells = <1>; : Number of address cells in child - nodes. - - #size-cells = <0>; : Number of size cells in child nodes. - - child nodes : Nodes to describe busses off the I2C - master. - -Child node required properties: - - reg = < port number > : The port number on the I2C master. - -Child node optional properties: - - child nodes : Nodes to describe devices on the I2C - bus. - -Examples: - - i2c@1800 { - compatible = "ibm,i2c-fsi"; - reg = < 0x1800 0x400 >; - #address-cells = <1>; - #size-cells = <0>; - - i2c-bus@0 { - reg = <0>; - }; - - i2c-bus@1 { - reg = <1>; - - eeprom@50 { - compatible = "vendor,dev-name"; - }; - }; - }; diff --git a/Documentation/devicetree/bindings/i2c/ibm,i2c-fsi.yaml b/Documentation/devicetree/bindings/i2c/ibm,i2c-fsi.yaml new file mode 100644 index 000000000000..8ff5585a3aa5 --- /dev/null +++ b/Documentation/devicetree/bindings/i2c/ibm,i2c-fsi.yaml @@ -0,0 +1,58 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/i2c/ibm,i2c-fsi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: IBM FSI-attached I2C controller + +maintainers: + - Eddie James + +description: + This I2C controller is an FSI CFAM engine, providing access to a number of + I2C busses. Therefore this node will always be a child of an FSI CFAM node. + +properties: + compatible: + enum: + - ibm,i2c-fsi + + reg: + items: + - description: FSI slave address + +required: + - compatible + - reg + +allOf: + - $ref: /schemas/i2c/i2c-controller.yaml# + +unevaluatedProperties: false + +examples: + - | + i2c@1800 { + compatible = "ibm,i2c-fsi"; + reg = <0x1800 0x400>; + #address-cells = <1>; + #size-cells = <0>; + + i2c-bus@0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <0>; + }; + + i2c-bus@1 { + reg = <1>; + #address-cells = <1>; + #size-cells = <0>; + + eeprom@50 { + compatible = "atmel,24c64"; + reg = <0x50>; + }; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index eea74166a2d9..9021e6ec4e6d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8924,7 +8924,7 @@ M: Eddie James L: linux-i2c@vger.kernel.org L: openbmc@lists.ozlabs.org (moderated for non-subscribers) S: Maintained -F: Documentation/devicetree/bindings/i2c/i2c-fsi.txt +F: Documentation/devicetree/bindings/i2c/ibm,i2c-fsi.yaml F: drivers/i2c/busses/i2c-fsi.c FSI-ATTACHED SPI DRIVER -- 2.39.3