From patchwork Thu Jun 16 19:36:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tommaso Merciai X-Patchwork-Id: 2095 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 979E43F0B6 for ; Thu, 16 Jun 2022 21:36:12 +0200 (CEST) Received: by mail-ej1-f69.google.com with SMTP id hg21-20020a1709072cd500b00718cd4dcf6esf991980ejc.19 for ; Thu, 16 Jun 2022 12:36:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1655408172; cv=pass; d=google.com; s=arc-20160816; b=pL1RLl+dVTAv22dc/+PTGRpQydWZV9xNuCQ482LuoeAgzf3L9qPH97zu6QAcYZvsDn /FZvsDekXQ3SloihxAZzYXt07XaE3PXJC8jRxrx5MH2dsufkTROfzYu1Ndze4esv8fxV TEcL+qkB8cL0LAEYHkHS1fl3G/mhbGLBpIw0e7BhiMwD6BLhH4XBERxgBJMLs5jJeE+v 90qP5+UM0cpChgq9PhUVe3cXLewr65yqixM2vSTnWYFPlvcvdAvwtOuvIJ3lMkEXakdE K+NcjTXoE/6JQo9CroxIIdqFpnq8q1Ho6Efnh2dXvsNlkbHpeRxNCplX4b7NI9ZmFQyb 4xxw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=sHJrRbcO+9gUYCw4T9s4Rwc51B5POzESb2ojQGPAaSo=; b=pvPIrsktdzoOfEOwVjX2MR4Kok7wsyn29nQCfRUlxwNIEzln7AOIcanbQjwAn9iNZh k1NZGaTZJ1WVmJnArgVkpuangwjg7A5jYqOtoGPOT2GnoZees7CxLTnXkb8h+aAKih5W 2eu57wj81EW961uPhfeJRNWx044i46CiUaaRnJWNBGg8JyIpDwrLGoHPNctDO8qKyTy5 lViY9M5qehJ4IwANigw3WBR8+uPnwc4yXRTX/95qqvrEaRiYZgr0zFLTiVvXKIg8isjW UQCyCTUSKJ81fM5Z0uVENiQpIaxLveF4QrHWpXWfhWfohM95e/J9t//o38ZTlhUS/hH1 uIfA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=kqGrP6Na; spf=pass (google.com: domain of tommaso.merciai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=tommaso.merciai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com 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:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=sHJrRbcO+9gUYCw4T9s4Rwc51B5POzESb2ojQGPAaSo=; b=CQOqMdJKoaWk7hzk6bIshSYyuFe8RHTUph5tOxOYnukJErzBI78Chm4e3cpxwDOMtq +HnKOeySFIfkhFqNNyYzwLJTsd2DGPMci7c2WDjXor4aaOeLXzkPK/gStCdKRTQlg+/J Ai+780M9qEtF0FrMXYtIRHTwjfG/Xps7AW/XE= 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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=sHJrRbcO+9gUYCw4T9s4Rwc51B5POzESb2ojQGPAaSo=; b=L88ADZl2zqNz8hW/XsX9znHYpkvP7e2KAWdi19Al64mxcPZ6ysP4Qnl7nbzqg1ixul 8v22unwQ1JRlyMwkYYbLbC7pHdXK9QA9gmiifKJ4Bzi9E4wkIj9vTQ6UaqaJ/N+Yenqk vUNSwRU6fGZDYWkof7+uJIxw5pWuQXmevJsfbaLy2RVs7T/acN0XCG4fyBILzORG1COi HG3lm7DXE0W/ll5GIHE0/m4objAXwEypwyqqq/J0USyS0dR2GV5CB1k2M9p6UWpptwzF NaHufR9H/xwcsTpL6AuYV2Dl9pEUckPgxiJmkrz4J0hxeXERlqlmZ0dsgycvcvhzXdC+ 4GRA== X-Gm-Message-State: AJIora9YrEL6cHqsxtB+31facUMFbdo+CM3IlriPyz0KXJseRZemmcvn 4BjheoFmHHraeo4RaOposi+4/bZg X-Google-Smtp-Source: AGRyM1tuHyA1EtKaW+eoyLH9cNmq8soRJnaUIDr+S9sUufsZNtjBV+SaDnXjncmyBO/GTcVjLQoxIQ== X-Received: by 2002:a17:906:2f92:b0:711:cfe6:b117 with SMTP id w18-20020a1709062f9200b00711cfe6b117mr5734261eji.665.1655408172397; Thu, 16 Jun 2022 12:36:12 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:907:97c4:b0:711:d2c2:9fa4 with SMTP id js4-20020a17090797c400b00711d2c29fa4ls150119ejc.9.gmail; Thu, 16 Jun 2022 12:36:11 -0700 (PDT) X-Received: by 2002:a17:906:1018:b0:718:dd3f:f28c with SMTP id 24-20020a170906101800b00718dd3ff28cmr6088525ejm.55.1655408171286; Thu, 16 Jun 2022 12:36:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655408171; cv=none; d=google.com; s=arc-20160816; b=VNUtKdOMoys6lMYtkf9eYOp3InnYb/ovt0dlkDYa+PCkDRhqobfklJ0Vs68ChiphnF wHHCMINate606ZDLJakU3vLorF7V9+s4tMwNysujvE7zQ+1g2opQgTQVBYCOokKJdt6k mO2xbdnCxQVBEGeOuVUF3cdkksHFEmYR0vFU5TAMLyNYw/O7yN7ojY74UpC1kpohhcgA V/p+dswUKfJ7kLbWduBEjDi+KgjZZxw8XJGpng8fNZ0Uk4d2tnzx88VP9wdfUut0O/KB aMu4oQ7ID88yPRkPKFeVkcZ2eoC2lTripr7WCVQPGrw6F89APb8tyVvp2frejomHt7H1 WUTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=8a3jxjwuLV/vO5C4NVPChWfokDcoIRW2Z6C3TphMEgw=; b=w75vUwXAzYUgVEbm+rC0L8lYI0yhs5CITSDdkJMVM81p66Bfj2ZftFRTOVdjiDe5Vx XZjWZ9Q6zd0vKKAngWo+SCijqWQgJ01KI/ArNvFqyOHjGNX3DXP+QQfluDHL6FDrFbFS JYEPc4HB5d9DzhLQDAx+jdFgK/lKhaoiSbJNR0Ga0uga1dAvb4B2kfPPqVkCzgXVcsoZ Bw+JuU75aFZ8BILK6Qn4EIFJXE+5RNm75OhI7tdVLlGZWKzku9SBqWJX44Dr8VrvbG+k xuaUh+RsU6lPZkmdr+6QoKdquEnpY4iw5fuVHlh9h7SqzEg/YLNsfqGkRfD7+9Fo658Y MZsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=kqGrP6Na; spf=pass (google.com: domain of tommaso.merciai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=tommaso.merciai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id a24-20020aa7d758000000b0042db6e89d12sor1909297eds.17.2022.06.16.12.36.11 for (Google Transport Security); Thu, 16 Jun 2022 12:36:11 -0700 (PDT) Received-SPF: pass (google.com: domain of tommaso.merciai@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a05:6402:1f0f:b0:42d:d4a5:a38c with SMTP id b15-20020a0564021f0f00b0042dd4a5a38cmr8366291edb.140.1655408170944; Thu, 16 Jun 2022 12:36:10 -0700 (PDT) Received: from tom-ThinkPad-T14s-Gen-2i.station (net-188-217-51-34.cust.vodafonedsl.it. [188.217.51.34]) by smtp.gmail.com with ESMTPSA id x24-20020a170906711800b006fec2097d53sm1130255ejj.118.2022.06.16.12.36.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jun 2022 12:36:10 -0700 (PDT) From: Tommaso Merciai To: Cc: linux-amarula@amarulasolutions.com, michael@amarulasolutions.com, dario.binacchi@amarulasolutions.com, angelo@amarulasolutions.com, Tommaso Merciai Subject: [PATCH v2 6/6] media: ov5693: add ov5693_of_match, dts support Date: Thu, 16 Jun 2022 21:36:00 +0200 Message-Id: <20220616193600.1835-7-tommaso.merciai@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220616193600.1835-1-tommaso.merciai@amarulasolutions.com> References: <20220616193600.1835-1-tommaso.merciai@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: tommaso.merciai@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=kqGrP6Na; spf=pass (google.com: domain of tommaso.merciai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=tommaso.merciai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add ov5693_of_match. Device tree support Reviewed-by: Dario Binacchi Signed-off-by: Tommaso Merciai --- Changes since v1: - Add reviewed by tag 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,