Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3055086iog; Mon, 27 Jun 2022 08:14:15 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u53zSi4CIqneGJxL3Uj7R9sXc86/9ysHCYtAPtHfDGdm0TQ1ShSWMBWTn3sAr04VVq0U8I X-Received: by 2002:a17:907:761c:b0:6d6:e553:7bd1 with SMTP id jx28-20020a170907761c00b006d6e5537bd1mr13647544ejc.5.1656342855075; Mon, 27 Jun 2022 08:14:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656342855; cv=none; d=google.com; s=arc-20160816; b=xQCaKUVf8FkTj9TRb/08o7cJhhfXXvPRPyCqpmil35BSUIQVAPgQx7HdckrxvsBwfm DhHeSCCDpZ23QEjPWoRGPNm+of6+WeG4LEI8yb5tDt8qCgG2g6tKm2Um/Bg65FiMJ+Dy TDY4ny0lTvjyJ77wT8r1UFexi+ZK6F8cD8Z1xuiGzd9yDEM8I/jDdD5W9n5y6AJ6Grnu rIHYoBiOfXt3j8JgmVNQ3PABaDdTgI+Bn2+yTXhXntWS8e6H0CIsFuQtiqeUMs3zE7Q/ LHwBXGrz2fr9N3OlC34h8EgnOxo+Z+E1dzUotn/FA2Rxm+CPZqzhcRyxHAjqqci7bBSG dSPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=xYWlc/wQ018OwOnNA+AyeCt3Ba+fxR9sI/D7eVEieKk=; b=IjaSMmDWOJ3+JTc32w3JHCdoHE0i6MtNsEIvThQm893mUe5h0wfvpA3IilL2Im3TNi 9PUCAzBxJBRykJFhaItE04LNsfC3WVYBiUxlMyxo2QAaJSJ0z6BMfs930jW3ROTF5C9X LG1HtOXkgJ6Txh4oLFwAai3/DToW1IR2FtqMTZu2X9z3LdETQ90LiWQVf1cfzJXit9LU Wy/j+e0M7uWGg2qOCr9PaA2weso09VxrQDFwe80nmziwZ2ifpxAAHs+TO6bMQ/KlRpiz 9cucxREV7mTG7kCtuIhUbY3in4QD13YcdtQlYgXncNUnbuq71GZgbOk7C5ijU0Ux97Xq gC6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@amarulasolutions.com header.s=google header.b=oIMyRqLb; 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=fail (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z27-20020a50f15b000000b004356b4883bbsi13570440edl.385.2022.06.27.08.13.49; Mon, 27 Jun 2022 08:14:15 -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=fail header.i=@amarulasolutions.com header.s=google header.b=oIMyRqLb; 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=fail (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237676AbiF0PFV (ORCPT + 99 others); Mon, 27 Jun 2022 11:05:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237637AbiF0PFJ (ORCPT ); Mon, 27 Jun 2022 11:05:09 -0400 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48EC917A8D for ; Mon, 27 Jun 2022 08:05:06 -0700 (PDT) Received: by mail-wm1-x330.google.com with SMTP id l68so574458wml.3 for ; Mon, 27 Jun 2022 08:05:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=xYWlc/wQ018OwOnNA+AyeCt3Ba+fxR9sI/D7eVEieKk=; b=oIMyRqLbbNcQeDmGyzit2hoWXaACc6GAE/IMnjYVAbnHJQ6q5o/Gj7o+kOwoAz/Ach dv+JkhuPgsPBPfduG/ElG1gb9r+ZuBWDtWmTXEq86+g722shXGWd9j1CyWKgOKiNALOu JcMrRwJykwsRu9UtQGriXChqD34mkNQtWZ8Gk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=xYWlc/wQ018OwOnNA+AyeCt3Ba+fxR9sI/D7eVEieKk=; b=tYHjUQrshkSyZJofZC2S8EVF7qjQKkbsBkJYJHVfxpdqdxqluaqcTH7RvlR9BcZV9M snsOo24yGE3BcZwmwg0L4xw7udzJf0c38kMX5UhgUDBjyYpdQXYzz0FgPNZ0jvQoTXgh Iv/sTzy4CW+GAxAqAm6hLhN2B4T3S6V13s+0EywcEvP6UWJFS990U3LUxlzWr0/FBbPj jq+7LyLzIk34iDZjCJBMMMkTHOdXxxEt01nIPK/rBQ+anRwimhS8ZGyJEceQ2G2o7p0/ WEQsQp8y6HMIDDg4rlqNAOrqmNw3iImJRIwn4G2dlqhESmbgKcQfuIEgd4IajFOufVTY 1Y6A== X-Gm-Message-State: AJIora/+kxzY+akIvq2yHvV4fH3XM3a3HVKnSfJEYER8pvE/XkKq7LoU wOCg9PW+hDnlPFfNaFMwEpbNmQ== X-Received: by 2002:a05:600c:a18a:b0:3a0:2978:30d2 with SMTP id id10-20020a05600ca18a00b003a0297830d2mr15765046wmb.173.1656342305771; Mon, 27 Jun 2022 08:05:05 -0700 (PDT) Received: from tom-ThinkPad-T14s-Gen-2i.station (net-188-217-58-216.cust.vodafonedsl.it. [188.217.58.216]) by smtp.gmail.com with ESMTPSA id d18-20020adfe852000000b0021ba3d1f2a0sm10581250wrn.48.2022.06.27.08.05.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jun 2022 08:05:05 -0700 (PDT) From: Tommaso Merciai Cc: linuxfancy@googlegroups.com, linux-amarula@amarulasolutions.com, quentin.schulz@theobroma-systems.com, Tommaso Merciai , Dario Binacchi , Daniel Scally , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 6/7] media: ov5693: add ov5693_of_match, dts support Date: Mon, 27 Jun 2022 17:04:52 +0200 Message-Id: <20220627150453.220292-7-tommaso.merciai@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220627150453.220292-1-tommaso.merciai@amarulasolutions.com> References: <20220627150453.220292-1-tommaso.merciai@amarulasolutions.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add ov5693_of_match. Device tree support Reviewed-by: Dario Binacchi --- drivers/media/i2c/ov5693.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/media/i2c/ov5693.c b/drivers/media/i2c/ov5693.c index 273caef467fe..0854226dc140 100644 --- a/drivers/media/i2c/ov5693.c +++ b/drivers/media/i2c/ov5693.c @@ -1532,10 +1532,17 @@ static const struct acpi_device_id ov5693_acpi_match[] = { }; MODULE_DEVICE_TABLE(acpi, ov5693_acpi_match); +static const struct of_device_id ov5693_of_match[] = { + { .compatible = "ovti,ov5693", }, + { /* sentinel */ }, +}; +MODULE_DEVICE_TABLE(of, ov5693_of_match); + static struct i2c_driver ov5693_driver = { .driver = { .name = "ov5693", .acpi_match_table = ov5693_acpi_match, + .of_match_table = ov5693_of_match, .pm = &ov5693_pm_ops, }, .probe_new = ov5693_probe, -- 2.25.1