From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E0794E77188 for ; Tue, 14 Jan 2025 22:17:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=H9FTzMRGKReVo8rRd51mMDR1WUTZm8UGLKzKl1Ziuew=; b=M0L93MOtgI85qflLtt3xbqoov5 ifQT+xQ9NtDhSv9Db4kfq6+c5j7tQX4OltHlTmoYA9UaVVVMUrrlbbZ81rt++5ZwoeirvtUnr1ztv x6q5FsyibVYkUCJMZXOtHLNLChczFVRMsGZk6amjPuKpjiQixO5fPKeqP5R/AnutFXtbFhQRUlUVS zHAIrPMFE/6uB+AE6MmNLcdIAxFVqIFKxsgY+lo6gN137wVEXEmg3YNSyqvt/WpZZ7BRuHBCNROPQ h/RopI9wGKs4mWgsowJfpvQaHvk1L7GrS/RwKYhy92kBwGZ/r+vShQvTpJSIUrEW7KoSeMyeRTNs5 7SUKh79g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tXpEC-00000009us4-36bB; Tue, 14 Jan 2025 22:17:40 +0000 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tXp5C-00000009th0-2kWt for linux-arm-kernel@lists.infradead.org; Tue, 14 Jan 2025 22:08:23 +0000 Received: from pps.filterd (m0360083.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 50EFUS7u020161; Tue, 14 Jan 2025 22:08:00 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=pp1; bh=H9FTzM RGKReVo8rRd51mMDR1WUTZm8UGLKzKl1Ziuew=; b=rzD4kMaQ+5YxCEChLLPEXm W6guXK23lS9Fn9Uv4NQ5UaODFoctFHzatf8ruqrMX2XLg5+HDXTB2DLjyTnk3Q3I J0Lb5vsOjO+5V/cl3pxC71UwDhEhnZ8XbMtJX4mnotc7f0DciITaDpaTqy4UyNp0 5Ki5BM8U+xXaP/wqhOjG79+l2MmrnitWTUpjS6FzrXCb1HslWN2V6uMJumGIWmtc +HTvzG7Wnf5DIjDpsdaHyL942COFy+2uKZ9ms72AlN59FjmFiLypqOa2CiIwIFnn 35yb4UHbo8OoKUTAgGPWfavgjGzu3WJd5nrw3dgl9prok8M2kmpNyCB3hmEz4Xlg == Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 445tmghpby-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 14 Jan 2025 22:07:59 +0000 (GMT) Received: from m0360083.ppops.net (m0360083.ppops.net [127.0.0.1]) by pps.reinject (8.18.0.8/8.18.0.8) with ESMTP id 50EM7pTd011791; Tue, 14 Jan 2025 22:07:59 GMT Received: from ppma13.dal12v.mail.ibm.com (dd.9e.1632.ip4.static.sl-reverse.com [50.22.158.221]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 445tmghpbv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 14 Jan 2025 22:07:59 +0000 (GMT) Received: from pps.filterd (ppma13.dal12v.mail.ibm.com [127.0.0.1]) by ppma13.dal12v.mail.ibm.com (8.18.1.2/8.18.1.2) with ESMTP id 50EIvnK6001110; Tue, 14 Jan 2025 22:07:58 GMT Received: from smtprelay03.wdc07v.mail.ibm.com ([172.16.1.70]) by ppma13.dal12v.mail.ibm.com (PPS) with ESMTPS id 44456jw2r8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 14 Jan 2025 22:07:58 +0000 Received: from smtpav03.wdc07v.mail.ibm.com (smtpav03.wdc07v.mail.ibm.com [10.39.53.230]) by smtprelay03.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 50EM7vp428050170 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 14 Jan 2025 22:07:57 GMT Received: from smtpav03.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7373558054; Tue, 14 Jan 2025 22:07:57 +0000 (GMT) Received: from smtpav03.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 43E5C5805A; Tue, 14 Jan 2025 22:07:56 +0000 (GMT) Received: from [9.61.120.113] (unknown [9.61.120.113]) by smtpav03.wdc07v.mail.ibm.com (Postfix) with ESMTP; Tue, 14 Jan 2025 22:07:56 +0000 (GMT) Message-ID: <6eb91fb6-eac9-4386-98c8-196ac3d51e7b@linux.ibm.com> Date: Tue, 14 Jan 2025 16:07:55 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 2/9] bindings: ipmi: Add binding for IPMB device intf To: corey@minyard.net Cc: minyard@acm.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, openipmi-developer@lists.sourceforge.net, netdev@vger.kernel.org, joel@jms.id.au, andrew@codeconstruct.com.au, devicetree@vger.kernel.org, eajames@linux.ibm.com, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org References: <20250113194822.571884-1-ninad@linux.ibm.com> <20250113194822.571884-3-ninad@linux.ibm.com> Content-Language: en-US From: Ninad Palsule In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: C0WHlT9TpC8xSLH_NeldTho0i_3p3X2Z X-Proofpoint-ORIG-GUID: isMDwKsHEYgDk1WkKrzf-SSVOFPHI0hO X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-01-14_07,2025-01-13_02,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 impostorscore=0 lowpriorityscore=0 malwarescore=0 priorityscore=1501 suspectscore=0 adultscore=0 mlxlogscore=999 mlxscore=0 spamscore=0 phishscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2501140166 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250114_140822_704284_A408E6FB X-CRM114-Status: GOOD ( 31.23 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hello Corey, Thanks for the review. On 1/14/25 10:46, Corey Minyard wrote: > On Mon, Jan 13, 2025 at 01:48:12PM -0600, Ninad Palsule wrote: >> Add device tree binding document for the IPMB device interface. >> This device is already in use in both driver and .dts files. >> >> Signed-off-by: Ninad Palsule >> --- >> .../devicetree/bindings/ipmi/ipmb-dev.yaml | 55 +++++++++++++++++++ >> 1 file changed, 55 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/ipmi/ipmb-dev.yaml >> >> diff --git a/Documentation/devicetree/bindings/ipmi/ipmb-dev.yaml b/Documentation/devicetree/bindings/ipmi/ipmb-dev.yaml >> new file mode 100644 >> index 000000000000..136806cba632 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/ipmi/ipmb-dev.yaml >> @@ -0,0 +1,55 @@ >> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/ipmi/ipmb-dev.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: The Intelligent Platform Management Bus(IPMB) Device >> + >> +description: | >> + The IPMB is an I2C bus which provides interconnection between Baseboard > "Baseboard -> "a Baseboard" Fixed. > >> + Management Controller(BMC) and chassis electronics. The BMC sends IPMI >> + requests to intelligent controllers like Satellite Management Controller(MC) >> + device via IPMB and the device sends a response back to the BMC. > device -> devices > "a response" -> responses Fixed > >> + This device binds backend Satelite MC which is a I2C slave device with the BMC > You use IPMB devices on both the BMC and the MCs. The sentence above is > a little confusing, too. How about: > > This device uses an I2C slave device to send and receive IPMB messages, > either on a BMC or other MC. Changed > >> + for management purpose. A miscalleneous device provices a user space program > Misspelling: miscellaneous Fixed. > >> + to communicate with kernel and backend device. Some IPMB devices only support > "kernel" -> "the kernel" Fixed > >> + I2C protocol instead of SMB protocol. > the I2C protocol and not the SMB protocol. > > Yes, the English language uses way too many articles... > > That is a lot of detail, but it looks good beyond what I've commented > on. Changed. > >> + >> + IPMB communications protocol Specification V1.0 >> + https://www.intel.com/content/dam/www/public/us/en/documents/product-briefs/ipmp-spec-v1.0.pdf >> + >> +maintainers: >> + - Ninad Palsule >> + >> +properties: >> + compatible: >> + enum: >> + - ipmb-dev >> + >> + reg: >> + maxItems: 1 >> + >> + i2c-protocol: >> + description: >> + Use I2C block transfer instead of SMBUS block transfer. >> + type: boolean >> + >> +required: >> + - compatible >> + - reg >> + >> +additionalProperties: false >> + >> +examples: >> + - | >> + i2c { >> + #address-cells = <1>; >> + #size-cells = <0>; >> + >> + ipmb-dev@10 { >> + compatible = "ipmb-dev"; >> + reg = <0x10>; > I'm not sure of the conventions around device tree here, but the reg is > not used in the driver and it will always be the I2C address that > already in that node just one level up. It does not serve any purpose > that I can see. My suggestion would be to remove it. There are some boards already using reg so I will not be able to remove but I have updated the example which reflects what those boards are doing  which indicates that node address is ORed with I2C slaved address. Regards, Ninad > > -corey > >> + i2c-protocol; >> + }; >> + }; >> -- >> 2.43.0 >>