From patchwork Thu Aug 31 07:12:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudio Carvalho X-Patchwork-Id: 808078 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xjYYv0XVSz9sMN for ; Thu, 31 Aug 2017 17:15:47 +1000 (AEST) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3xjYYt5fLqzDqV5 for ; Thu, 31 Aug 2017 17:15:46 +1000 (AEST) X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Received: from mx0a-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 lists.ozlabs.org (Postfix) with ESMTPS id 3xjYVb4mcVzDqjm for ; Thu, 31 Aug 2017 17:12:55 +1000 (AEST) Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id v7V79mPl017253 for ; Thu, 31 Aug 2017 03:12:52 -0400 Received: from e16.ny.us.ibm.com (e16.ny.us.ibm.com [129.33.205.206]) by mx0b-001b2d01.pphosted.com with ESMTP id 2cpa77x8jd-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Thu, 31 Aug 2017 03:12:52 -0400 Received: from localhost by e16.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 31 Aug 2017 03:12:52 -0400 Received: from b01cxnp22036.gho.pok.ibm.com (9.57.198.26) by e16.ny.us.ibm.com (146.89.104.203) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 31 Aug 2017 03:12:50 -0400 Received: from b01ledav005.gho.pok.ibm.com (b01ledav005.gho.pok.ibm.com [9.57.199.110]) by b01cxnp22036.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v7V7CoQv29294786; Thu, 31 Aug 2017 07:12:50 GMT Received: from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 94140AE043; Thu, 31 Aug 2017 03:13:14 -0400 (EDT) Received: from legolas.ibm.com (unknown [9.85.193.48]) by b01ledav005.gho.pok.ibm.com (Postfix) with ESMTP id E8474AE034; Thu, 31 Aug 2017 03:13:13 -0400 (EDT) From: Claudio Carvalho To: skiboot@lists.ozlabs.org Date: Thu, 31 Aug 2017 04:12:35 -0300 X-Mailer: git-send-email 2.7.4 In-Reply-To: <1504163557-14432-1-git-send-email-cclaudio@linux.vnet.ibm.com> References: <1504163557-14432-1-git-send-email-cclaudio@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 17083107-0024-0000-0000-000002C83686 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00007640; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000226; SDB=6.00910094; UDB=6.00456508; IPR=6.00690374; BA=6.00005562; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00016938; XFM=3.00000015; UTC=2017-08-31 07:12:52 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17083107-0025-0000-0000-00004544B53F Message-Id: <1504163557-14432-4-git-send-email-cclaudio@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-08-31_02:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000 definitions=main-1708310109 Subject: [Skiboot] [PATCH v2 3/5] hdata/i2c: update the list of known i2c devs as of version 2 X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" Some i2c devices are not properly identified during the HDAT parsing. This fixes that by updating the list of known i2c devices as of the i2c array version 2. Signed-off-by: Claudio Carvalho Reviewed-by: Oliver O'Halloran --- hdata/i2c.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/hdata/i2c.c b/hdata/i2c.c index bfb5b48..14650b6 100644 --- a/hdata/i2c.c +++ b/hdata/i2c.c @@ -91,8 +91,14 @@ struct hdat_i2c_type { }; struct hdat_i2c_type hdat_i2c_devs[] = { + { 0x1, "gpio", "nxp,pca9551" }, /* XXX: Please verify that all VPD EEPROMs are of this type */ - { 0x2, "eeprom", "atmel,24c128" } + { 0x2, "eeprom", "atmel,24c128" }, + { 0x3, "tpm", "nuvoton,npct650" }, + { 0x6, "gpio", "nxp,pca9552" }, + { 0x7, "gpio", "nxp,pca9553" }, + { 0x8, "gpio", "nxp,pca9554" }, + { 0x9, "gpio", "nxp,pca9555" } }; struct hdat_i2c_label { @@ -103,11 +109,14 @@ struct hdat_i2c_label { struct hdat_i2c_label hdat_i2c_labels[] = { { 0x1, "9551-led-controller" }, { 0x2, "seeprom" }, + { 0x4, "tpm" }, { 0x5, "module-vpd" }, { 0x6, "dimm SPD" }, { 0x7, "proc-vpd" }, { 0x8, "sbe-eeprom" }, - { 0x9, "planar-vpd" } + { 0x9, "planar-vpd" }, + { 0xd, "secure-window-open-gpios" }, + { 0xe, "physical-presence-gpios" } }; /*