Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752839AbdF0R2a (ORCPT ); Tue, 27 Jun 2017 13:28:30 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:56227 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751731AbdF0R2V (ORCPT ); Tue, 27 Jun 2017 13:28:21 -0400 Subject: Re: [PATCH 6/6] Documentation/devicetree: Add FSI-attached I2C master dt bindings To: Jeremy Kerr , linux-kernel@vger.kernel.org Cc: linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, wsa@the-dreams.de, robh+dt@kernel.org, gregkh@linuxfoundation.org, joel@jms.id.au, andrew@aj.id.au, "Edward A. James" References: <1498505375-1454-1-git-send-email-eajames@linux.vnet.ibm.com> <1498505375-1454-7-git-send-email-eajames@linux.vnet.ibm.com> From: Eddie James Date: Tue, 27 Jun 2017 12:28:14 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-TM-AS-GCONF: 00 x-cbid: 17062717-0020-0000-0000-00000C402EF3 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00007286; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000214; SDB=6.00879518; UDB=6.00438358; IPR=6.00659672; BA=6.00005445; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00015977; XFM=3.00000015; UTC=2017-06-27 17:28:18 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17062717-0021-0000-0000-00005CFC8ADC Message-Id: <901bb9e4-a7b1-ce24-c68b-d96b61e1b274@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-06-27_10:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1703280000 definitions=main-1706270280 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1328 Lines: 50 On 06/26/2017 08:06 PM, Jeremy Kerr wrote: > Hi Eddie, > >> +Required properties: >> + - compatible = "ibm,i2cm-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 ports off the I2C >> + master. >> + >> +Child node required properties: >> + - reg = < port number > : The port number on the I2C master. >> + >> +Examples: >> + >> + i2cm@1800 { >> + compatible = "ibm,i2cm-fsi"; >> + reg = < 0x1800 0x400 >; >> + #address-cells = <1>; >> + #size-cells = <0>; >> + >> + port@0 { >> + reg = <0>; >> + }; >> + >> + port@1 { >> + reg = <1>; >> + }; >> + }; > Those child nodes represent the downstream i2c buses, and so also > contain the i2c slave devices, right? If so, you may want to document > that, and/or add a simple device to that example (say, an EEPROM). Yes, good point, but the driver currently wouldn't do anything with that device information. It doesn't keep a list of populated devices on the bus or anything. Still worth adding them to the device tree? Thanks, Eddie > > Cheers, > > > Jeremy >