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 X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 16E48C48BDF for ; Fri, 11 Jun 2021 02:38:10 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6CC6B61364 for ; Fri, 11 Jun 2021 02:38:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6CC6B61364 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A6E8B82F38; Fri, 11 Jun 2021 04:37:35 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="gQfAD4PK"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8DC2782ECD; Fri, 11 Jun 2021 04:37:29 +0200 (CEST) Received: from mail-qv1-xf34.google.com (mail-qv1-xf34.google.com [IPv6:2607:f8b0:4864:20::f34]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 6ECA582EB2 for ; Fri, 11 Jun 2021 04:37:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=twoerner@gmail.com Received: by mail-qv1-xf34.google.com with SMTP id l3so8765584qvl.0 for ; Thu, 10 Jun 2021 19:37:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=mBtRQnHPKxjtqra810DjwPiu1Vp0igGUm73RZ3qV4XM=; b=gQfAD4PKN9bB5TSdrbJVbZIHHXBnYbe9Z9lyRL1vzwTUeUEDlF0qfD4zvWFbZlVXN4 jTlPuLC/sfec6PUmUJnoTRuPSLZ6gMYpvuEIfqb5zfUaNnP4djGS2p07ysF/+UhnEI/q 7bXxrWmvhGE6yslD84jqpXvJV+XD8t5UC0i9lEW4qGtENQ/zVwSMcfgxDxUKLO9cwrXZ j4Xu2i4fKb5rUF6WZ7m46P5S9ULVsKKwIqY/+uibKvPt/Y34llKxCsrbu70l1akz6CYm 0JRTm3CLdb2wVJrjL/0S4hxiy1HA0FXAlfu70BIDnD12LZ46w4qmpsN8lvIOWLfR0WmZ Ji9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=mBtRQnHPKxjtqra810DjwPiu1Vp0igGUm73RZ3qV4XM=; b=WNUPumVk+KLciDp1+vLSC9QpEGMhe8QYzoptRBMor2Mw3wqClX05o64xv8Q0fM2j71 yo0tDU98byPhuNEAoF6HogK64rHHh2Aa2D2Gkpc7Ao84HeNy/D9Jp0xCv9uwrQi6Zo/q pPV2pX9vUb2HxoXyeel/kcm7igcuEBykd6Od5T+8ebwXQNX7ADxcETcyEOK7Djh/91zf 9pNJm9anbuXIc7Rw/kN5jut6Bs4Xqao5AhhGw6OmSm/8xsBKRsiCGmlHQrwKf3l/1ERd njnYujJyYINgwb9hFyneCfHNBmKsqtFiF8Vc9D8SoeBTDXlb8Mv8IN/MU3EtApxsOBr3 opYA== X-Gm-Message-State: AOAM532wyREIJNGdPaX6aQ2YXoPe1FMGTvOlCjHu6Iab0KCRy0S5OnCD dewPARYvvUl9FolQgszUHcCqluXZopHRew== X-Google-Smtp-Source: ABdhPJyLjtch+Cgk3qsDsTA146KYZZcZ3qqdY/ocfd0uFRaGNbdF3VzeMkpio9EopPfMCGfse1/q7Q== X-Received: by 2002:a05:6214:12c7:: with SMTP id s7mr2696808qvv.44.1623379042159; Thu, 10 Jun 2021 19:37:22 -0700 (PDT) Received: from localhost.localdomain (pppoe-209-91-167-254.vianet.ca. [209.91.167.254]) by smtp.gmail.com with ESMTPSA id m189sm3602444qkd.107.2021.06.10.19.37.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Jun 2021 19:37:21 -0700 (PDT) From: Trevor Woerner To: U-Boot Mailing List Cc: Heiko Schocher Subject: [PATCH v2 6/8] lpc32xx: i2c: finish DM/OF code Date: Thu, 10 Jun 2021 22:37:07 -0400 Message-Id: <20210611023710.35203-6-twoerner@gmail.com> X-Mailer: git-send-email 2.30.0.rc0 In-Reply-To: <20210611023710.35203-1-twoerner@gmail.com> References: <20210611023710.35203-1-twoerner@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean Add the of_match/compatible string to the lpc32xx i2c driver so it works correctly with device-tree. Signed-off-by: Trevor Woerner --- Changes in v2: - added drivers/i2c/lpc32xx_i2c.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/lpc32xx_i2c.c b/drivers/i2c/lpc32xx_i2c.c index 6abff263bd..774129ad8e 100644 --- a/drivers/i2c/lpc32xx_i2c.c +++ b/drivers/i2c/lpc32xx_i2c.c @@ -348,9 +348,15 @@ static const struct dm_i2c_ops lpc32xx_i2c_ops = { .set_bus_speed = lpc32xx_i2c_set_bus_speed, }; +static const struct udevice_id lpc32xx_i2c_ids[] = { + { .compatible = "nxp,pnx-i2c" }, + { } +}; + U_BOOT_DRIVER(i2c_lpc32xx) = { - .id = UCLASS_I2C, .name = "i2c_lpc32xx", + .id = UCLASS_I2C, + .of_match = lpc32xx_i2c_ids, .probe = lpc32xx_i2c_probe, .ops = &lpc32xx_i2c_ops, }; -- 2.30.0.rc0