From patchwork Wed Mar 22 14:03:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eddie James X-Patchwork-Id: 73449 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2367450wrt; Wed, 22 Mar 2023 07:19:25 -0700 (PDT) X-Google-Smtp-Source: AK7set/BljnRzPbdpfNE5R2OjyZ7NxsopTi0TAS1CvllMPYr84Xd3+2i+YedGh8Z8XZgnYLgfA0I X-Received: by 2002:a17:90b:384e:b0:23d:10f2:bda2 with SMTP id nl14-20020a17090b384e00b0023d10f2bda2mr4379277pjb.30.1679494764959; Wed, 22 Mar 2023 07:19:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679494764; cv=none; d=google.com; s=arc-20160816; b=GbFGDlfXhxNuA6EWBq3e8+7QC8qrsn0vrisbAoGNmoF+JwGSAPeyAR682LMf8PO6I7 uWfO1yQmzIIYETb1w2DcsB8AL2OnVjHCzbN4uz4M4YwQr+ryt/p7/EjoTteEgKqjeIGi u1NcyRgWdRAsl50orRx8qA1K6X8MpEiP3Pw1IC/M6XvPJOETJEhHr2X8a9oNgA4MtWW3 IjD/HxgAitJeC9fD+7ZyL+RtT3d7Wo6hxz5SHAHNpFo6gmdFNIG765vzzpSfM0d21kUF Q8fkGL4wpZXt7RoR4YGMea+/cz2AMizOZskg5zqtjHmzBMWqUIBWj66sjOt77ahLSqn7 0ykw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GrcH9OwGP0s3q2kLc5+IBzkO2QsYs64mhVYB9WCnCTo=; b=M2BmlWR8OxAtTwTVrDeBLCAJVN8Uti//e3y7NTZyShmwK27cRGsy1q+wCcrARE18zl G6rBdBEfvTXI8vMV+FTAo+yObc2FFmK9ofp3ru/tjVvJ3K/6KCbgjQWpGfVzj/dwlUGL bTnk0PhLsMtd5nBHSMq101cuAIy2wf/QXQHrNH/CFlLySMlfGhgNqIUd/H4nmt3JTk0a Bb5q+OdDQKaOvDgKJ8HXyfGaFIWesZ3KEv7AR3DrxPTHnWJLKLO+d9eJXSm+JxUNHFhQ QMM6dVoN6x1TBVZnrfJAldrubiXuyTuu6kYBHqLz4fN04jBwatciLd5LJuL+tEK2Yw8H QPtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=D0Rqq9WW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h8-20020a17090a710800b0023cfb718146si15841414pjk.30.2023.03.22.07.19.12; Wed, 22 Mar 2023 07:19:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=D0Rqq9WW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231220AbjCVOER (ORCPT + 99 others); Wed, 22 Mar 2023 10:04:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230157AbjCVOEN (ORCPT ); Wed, 22 Mar 2023 10:04:13 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 790A624733; Wed, 22 Mar 2023 07:04:12 -0700 (PDT) Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 32MBsZHX010968; Wed, 22 Mar 2023 14:04:00 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=GrcH9OwGP0s3q2kLc5+IBzkO2QsYs64mhVYB9WCnCTo=; b=D0Rqq9WWsl37PwiQijrdYKNpEy5V4j9V4o0X8/1crceAWBbEPij3B5x1U7ibiqoNI+Hl qIeLYS7ldNwDOpPxMHEffs20qPW7cw8vgqb2x9aF1Hnpuk+bAmlhAnE0AFfOfOpYSjBx cOrY6hgLeC0O+WFxbLAIe4MlYOl2mgjDtkdBcaLcOBuH/PdIcZ6Jkit5UofoZN9H1T21 F8gYB2jX/BAUm5shQiQ7qGUSC0U+tRTB+UYnwlvjNzW8hpGKkanJD5P8ZX4dLzoij/Na J+2uFmmwWHQNBtUfYv4vNIo8EHc+nqgO915FUwLlSx7Wp8L5mJjuqtZCBBOwqzU2c5lL 7w== Received: from ppma04wdc.us.ibm.com (1a.90.2fa9.ip4.static.sl-reverse.com [169.47.144.26]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3pg17dumh3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 22 Mar 2023 14:03:59 +0000 Received: from pps.filterd (ppma04wdc.us.ibm.com [127.0.0.1]) by ppma04wdc.us.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 32MDkB2N001051; Wed, 22 Mar 2023 14:03:58 GMT Received: from smtprelay01.wdc07v.mail.ibm.com ([9.208.129.119]) by ppma04wdc.us.ibm.com (PPS) with ESMTPS id 3pd4x78m0u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 22 Mar 2023 14:03:58 +0000 Received: from smtpav03.wdc07v.mail.ibm.com (smtpav03.wdc07v.mail.ibm.com [10.39.53.230]) by smtprelay01.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 32ME3vnv29491896 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 22 Mar 2023 14:03:57 GMT Received: from smtpav03.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 493F15806F; Wed, 22 Mar 2023 14:03:57 +0000 (GMT) Received: from smtpav03.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C3E9E5805A; Wed, 22 Mar 2023 14:03:55 +0000 (GMT) Received: from slate16.aus.stglabs.ibm.com (unknown [9.77.129.242]) by smtpav03.wdc07v.mail.ibm.com (Postfix) with ESMTP; Wed, 22 Mar 2023 14:03:55 +0000 (GMT) From: Eddie James To: linux-kernel@vger.kernel.org Cc: linux-aspeed@lists.ozlabs.org, devicetree@vger.kernel.org, andrew@aj.id.au, joel@jms.id.au, krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org, arnd@arndb.de, gregkh@linuxfoundation.org, Eddie James Subject: [PATCH v3 3/4] eeprom: ee1004: Add OF matching support Date: Wed, 22 Mar 2023 09:03:47 -0500 Message-Id: <20230322140348.569397-4-eajames@linux.ibm.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20230322140348.569397-1-eajames@linux.ibm.com> References: <20230322140348.569397-1-eajames@linux.ibm.com> MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: PwtGncKZ4mGumoWJR2aDyULX4TL5DaKm X-Proofpoint-GUID: PwtGncKZ4mGumoWJR2aDyULX4TL5DaKm X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-22_11,2023-03-22_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 adultscore=0 mlxlogscore=999 phishscore=0 lowpriorityscore=0 priorityscore=1501 bulkscore=0 impostorscore=0 clxscore=1015 suspectscore=0 spamscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303150002 definitions=main-2303220103 X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761077902421221034?= X-GMAIL-MSGID: =?utf-8?q?1761077902421221034?= Add an OF match table for devicetree instantiation of the AT30TSE004A EEPROM. Signed-off-by: Eddie James --- Changes since v2: - Use full model number - Fix commit name drivers/misc/eeprom/ee1004.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/misc/eeprom/ee1004.c b/drivers/misc/eeprom/ee1004.c index 0aed5760e370..b7566c1d6edd 100644 --- a/drivers/misc/eeprom/ee1004.c +++ b/drivers/misc/eeprom/ee1004.c @@ -58,6 +58,12 @@ static const struct i2c_device_id ee1004_ids[] = { }; MODULE_DEVICE_TABLE(i2c, ee1004_ids); +static const struct of_device_id ee1004_of_match[] = { + { .compatible = "atmel,at30tse004a" }, + {} +}; +MODULE_DEVICE_TABLE(of, ee1004_of_match); + /*-------------------------------------------------------------------------*/ static int ee1004_get_current_page(struct ee1004_bus *bus) @@ -269,6 +275,7 @@ static struct i2c_driver ee1004_driver = { .driver = { .name = "ee1004", .dev_groups = ee1004_groups, + .of_match_table = ee1004_of_match, }, .probe_new = ee1004_probe, .remove = ee1004_remove,