From patchwork Thu Sep 15 00:35:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 86091 X-Patchwork-Delegate: sakari.ailus@iki.fi Received: from vger.kernel.org ([23.128.96.18]) by www.linuxtv.org with esmtp (Exim 4.92) (envelope-from ) id 1oYcrm-00AKvd-IH; Thu, 15 Sep 2022 00:36:30 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230128AbiIOAgN (ORCPT + 1 other); Wed, 14 Sep 2022 20:36:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230161AbiIOAfw (ORCPT ); Wed, 14 Sep 2022 20:35:52 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 127301F8 for ; Wed, 14 Sep 2022 17:35:36 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id az24-20020a05600c601800b003a842e4983cso12754153wmb.0 for ; Wed, 14 Sep 2022 17:35:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=JNCmhNSjDRtqxh4AkIUZa3/ErH32E1DP7RCQQKbBQVo=; b=PaXiV6Opti5taGzpFNOh9MHEkdywlbYavjfBYBd7rHHVzF++7rw1chOVLBQPMKfJ6b v8pZOeTLILKICEN8tWoKgS/7lxmvyddCHTgeurPm8T1gUBQkDZrQClUxuIQA0qE+51Zr cyEtbFzG3pZ1BnEHDp9Dh4llR11PK6Qdc11MF9hSsDJiwRZ0u04bGHSBGPT4P9ZRzRSg 1NOQykDecP2tMoSnGsD6Is5sgniKkVayF4tcuEzKfWwJlwPaPXJqpBKMkF1BJK9ElpoU y6hWMpihNa1bsLggFV/VG/2GRsuFHEuLXQpFepZa7ECVZruWCG8A4XkGKiPCA8csVi79 AM2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=JNCmhNSjDRtqxh4AkIUZa3/ErH32E1DP7RCQQKbBQVo=; b=U7Tw17JyyJ6Q5cOUhGNigm1zlHCwDqS5PsDaWsMU4AOHyhciY8dWNAzOLNNfD6BhhV dZdJsT0Gps2w6LLCpcN2kU4Y0S4X6OcK9UqYwoaw+5nFUnIBCXMBrxFWwq2H9GvC0zm7 jhrge+prCK/zJvCK1vV0KegrGHboUo3PKBlI4toxdg8LKNrErBibIxsBThtf0/VgUCgc gGjsjycUn6ttUrfqGavp7herDMXZW5+uWv4jac1SjH8xoFayZvfnP/BslKpLNjXDrxUg Gee1lSUoPlRjBprC0NS1KOtXkeYsphtDSe0z23tU4Txf2YTG06YpyF0/tonKFgZrOD38 +2Kw== X-Gm-Message-State: ACgBeo3dHZrwsLWSmdOf2aU9rg0B8ko7jbXvdVaIYOOpYFJRoBLpnwiD xJI7zb1pXjlxQnfsyaSDq8lBBg== X-Google-Smtp-Source: AA6agR5/NKkEluKvl5X9RFAAHj5K3AZ7fbkCUfK7XMQJwYZOxKM7kGf3c6jtgY8oNgNJizSH3/A+NA== X-Received: by 2002:a05:600c:1906:b0:3a5:f9e0:fcb6 with SMTP id j6-20020a05600c190600b003a5f9e0fcb6mr5041533wmq.157.1663202134666; Wed, 14 Sep 2022 17:35:34 -0700 (PDT) Received: from planet9.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id d8-20020adff848000000b002253af82fa7sm905235wrq.9.2022.09.14.17.35.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Sep 2022 17:35:34 -0700 (PDT) From: Bryan O'Donoghue To: sakari.ailus@iki.fi, jacopo@jmondi.org, paul.j.murphy@intel.com, daniele.alessandrelli@intel.com, mchehab@kernel.org, linux-media@vger.kernel.org Cc: bryan.odonoghue@linaro.org Subject: [PATCH v3 1/5] media: dt-bindings: imx412: Add imx477 compatible string Date: Thu, 15 Sep 2022 01:35:18 +0100 Message-Id: <20220915003522.1227073-2-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220915003522.1227073-1-bryan.odonoghue@linaro.org> References: <20220915003522.1227073-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 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 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-LSpam-Score: -2.5 (--) X-LSpam-Report: No, score=-2.5 required=5.0 tests=BAYES_00=-1.9,DKIM_SIGNED=0.1,DKIM_VALID=-0.1,DKIM_VALID_AU=-0.1,HEADER_FROM_DIFFERENT_DOMAINS=0.5,MAILING_LIST_MULTI=-1 autolearn=ham autolearn_force=no The Sony imx477 uses the same silicon enabling reference code from Sony in the available examples provided. Add an imx477 compatible string to allow for chip differentiation and accurate description of hardware in dts. Signed-off-by: Bryan O'Donoghue --- Documentation/devicetree/bindings/media/i2c/sony,imx412.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/media/i2c/sony,imx412.yaml b/Documentation/devicetree/bindings/media/i2c/sony,imx412.yaml index 26d1807d0bb6..a0da469995db 100644 --- a/Documentation/devicetree/bindings/media/i2c/sony,imx412.yaml +++ b/Documentation/devicetree/bindings/media/i2c/sony,imx412.yaml @@ -19,7 +19,10 @@ description: properties: compatible: - const: sony,imx412 + items: + - enum: + - sony,imx412 + - sony,imx477 reg: description: I2C address maxItems: 1 From patchwork Thu Sep 15 00:35:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 86092 X-Patchwork-Delegate: sakari.ailus@iki.fi Received: from vger.kernel.org ([23.128.96.18]) by www.linuxtv.org with esmtp (Exim 4.92) (envelope-from ) id 1oYcrn-00AKvd-Dc; Thu, 15 Sep 2022 00:36:31 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230132AbiIOAgP (ORCPT + 1 other); Wed, 14 Sep 2022 20:36:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229921AbiIOAfw (ORCPT ); Wed, 14 Sep 2022 20:35:52 -0400 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F406111C for ; Wed, 14 Sep 2022 17:35:37 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id e16so28290320wrx.7 for ; Wed, 14 Sep 2022 17:35:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=f6Npvi8/NWrXQxCIyqdaN4rjBSJKqkkMMS7LnmDZ6C8=; b=xMHEfMXy8WVE5nDg+dxgoGFgvT288BB3rGGq9loBC+rMr2crROLswUAbWEUVHaF5np X9k7pwuEQWiensbarUNFzCv8ee2Ql7z9iTYwbjybV9A4L40NzKv2gze+FEOMfhzIxQwv VjrZyVDEqQc/s3H8FCLRuTnymv6y+SLSnnbGp5Zpy9ze/x8zAKH/ojYgX79DjwdINIBV +IVKcS8Y4xcj2RXNXaNhYs8fRsogpcradOBrDWNBW7UbZpwb9/pcLCcrsCvgViaX8YQm upMkJ0iLjUWP1o1SVy2E2CD+Be5PlWDDL/nDlXidw8itRYJA4u7yVmQy3kER8rGvpcrz WCxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=f6Npvi8/NWrXQxCIyqdaN4rjBSJKqkkMMS7LnmDZ6C8=; b=EPTUR+wv8YWS5n6MGxbUxdpgXg6PyQ6wnUohKxI4EkOs7NhlcWssABKus4RDnkB8rI RBMb+kt6426E5vFUtYGjchJsiyDc61WnJUCtsrWywZpzFFKdiJsPuj4WGeDY5uAdEcHm UcvTdMw7MHeB0pIapd9OYnz0hPWwgZIAX+A5/wn1IIIB0PUzbQNTsdAiP2YdNj1ep6IB Kn6hFqb0oFo3ZafHmlCzcCBB6LKqezWLErt6h7cWxZ5YQiEiRselnk6ByPMbkI2HJYcy oeyQ60cge3Q7Ds0ODm5/Dn/SB3o4fvU1beO/FInU7YPPtrvWJCdgc4e/A+7bSSFgY6SC OOaA== X-Gm-Message-State: ACgBeo0IvBlJ0bdlXvzGsaISPhbhtrvPuCtSGWpy2f7vuyECja8Smucj zMcz4Won6cGhqAH0wf3P6fpsiw== X-Google-Smtp-Source: AA6agR7nesGFT2pLde1k1MIc0501S/t2tM8bE5e/9HV3JY79yknNlLKqPQ8VZaVNXYf4ArUh69+i9w== X-Received: by 2002:a05:6000:552:b0:228:6296:3b33 with SMTP id b18-20020a056000055200b0022862963b33mr24363423wrf.615.1663202136548; Wed, 14 Sep 2022 17:35:36 -0700 (PDT) Received: from planet9.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id d8-20020adff848000000b002253af82fa7sm905235wrq.9.2022.09.14.17.35.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Sep 2022 17:35:36 -0700 (PDT) From: Bryan O'Donoghue To: sakari.ailus@iki.fi, jacopo@jmondi.org, paul.j.murphy@intel.com, daniele.alessandrelli@intel.com, mchehab@kernel.org, linux-media@vger.kernel.org Cc: bryan.odonoghue@linaro.org Subject: [PATCH v3 2/5] media: dt-bindings: imx412: Add imx577 compatible string Date: Thu, 15 Sep 2022 01:35:19 +0100 Message-Id: <20220915003522.1227073-3-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220915003522.1227073-1-bryan.odonoghue@linaro.org> References: <20220915003522.1227073-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 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 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-LSpam-Score: -2.5 (--) X-LSpam-Report: No, score=-2.5 required=5.0 tests=BAYES_00=-1.9,DKIM_SIGNED=0.1,DKIM_VALID=-0.1,DKIM_VALID_AU=-0.1,HEADER_FROM_DIFFERENT_DOMAINS=0.5,MAILING_LIST_MULTI=-1 autolearn=ham autolearn_force=no The Sony imx577 uses the same silicon enabling reference code from Sony in the available examples provided. Add an imx577 compatible string to allow for chip differentiation and accurate description of hardware in dts. Signed-off-by: Bryan O'Donoghue --- Documentation/devicetree/bindings/media/i2c/sony,imx412.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/media/i2c/sony,imx412.yaml b/Documentation/devicetree/bindings/media/i2c/sony,imx412.yaml index a0da469995db..ebb649c5e4c5 100644 --- a/Documentation/devicetree/bindings/media/i2c/sony,imx412.yaml +++ b/Documentation/devicetree/bindings/media/i2c/sony,imx412.yaml @@ -23,6 +23,7 @@ properties: - enum: - sony,imx412 - sony,imx477 + - sony,imx577 reg: description: I2C address maxItems: 1 From patchwork Thu Sep 15 00:35:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 86093 X-Patchwork-Delegate: sakari.ailus@iki.fi Received: from vger.kernel.org ([23.128.96.18]) by www.linuxtv.org with esmtp (Exim 4.92) (envelope-from ) id 1oYcro-00AKvd-8l; Thu, 15 Sep 2022 00:36:32 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229601AbiIOAgR (ORCPT + 1 other); Wed, 14 Sep 2022 20:36:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230106AbiIOAfx (ORCPT ); Wed, 14 Sep 2022 20:35:53 -0400 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32E60E42 for ; Wed, 14 Sep 2022 17:35:42 -0700 (PDT) Received: by mail-wm1-x32f.google.com with SMTP id bg5-20020a05600c3c8500b003a7b6ae4eb2so16622027wmb.4 for ; Wed, 14 Sep 2022 17:35:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=gCZyhrIVxKOUQevpKLXir1oy1yrvMRbNs/w8Pxbuo2Y=; b=d6YVcn3Yxos353wWPqhHlTheXT04P7IEg0Qk9PX41kZZ0phdyL4ap0t+0235pYUhwX ckFZAu/Ca+pB4ri7jpBlF8n006PDnB3Gkv/BgAvmIm0EN7fJ9FQZlyy+JDmiu4mz6Qly Rswcb9w7EIZIeSSVRHONFICBT3LQUtTGsYaryEGOOEI/gdogA488fefBO+wDQQdcozC/ bExGNU2T4zu7qhS/bEEsv/4l4ZJnuX9XcAzKkdljSdTGucXyEpzs4+j7UKE864Oteipe A/p1XFBG0E64hMDbvsn6g0g/uUNLuUWYB5i//5sGpbSZvYKVyP/OE9lTt0F/UWoO4KOC tJ1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=gCZyhrIVxKOUQevpKLXir1oy1yrvMRbNs/w8Pxbuo2Y=; b=a+pVNfPZN6f7dAfxrVFX+QuleHPzfDEFmMBYI05btloM8gg7MKuui3P0J3w75fmi6a kJbcswXYvZka0HXpTSnQ3Sro30CXOlWZM6c11wsuD55Fz7iXFyVYAoVzNDCr/rmdNuRw bb0d9o3HVKPOYPisEewpiurV1pgaMslVYzoNTxYf/dR9mw7HiG46tzp3f7174VUqy2Ga zwZJx2iZFYrlj8fFUEyOAYpOUs4yT+Mm4M2Eh9gJinS1dZ2kxhnD39RFTjGGdSs7dqtu IHN9KwyGNvlgtBd7GJ6tKDMYAN0WTP2Vnvxn0M8ZfMoVaUqDtf4v7HEJLD8rYFHXjfyD M+ZA== X-Gm-Message-State: ACgBeo1ZzsvH0lfIZJZlBXWqbACm7XE+H6EcNlKeHw4V9rVxnkGqP4dC AjRtk1ClW6yFNhX9ElYPutYuX6QvmNKLgQ== X-Google-Smtp-Source: AA6agR7KHCxHozytgMNRKGmaxROj3FDNwUZzHu+xYM9OgaaSPLvaez2zHae18x4RxOtBQ3da8z51xg== X-Received: by 2002:a05:600c:198c:b0:3b4:a6c4:3e09 with SMTP id t12-20020a05600c198c00b003b4a6c43e09mr2267214wmq.121.1663202140784; Wed, 14 Sep 2022 17:35:40 -0700 (PDT) Received: from planet9.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id d8-20020adff848000000b002253af82fa7sm905235wrq.9.2022.09.14.17.35.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Sep 2022 17:35:40 -0700 (PDT) From: Bryan O'Donoghue To: sakari.ailus@iki.fi, jacopo@jmondi.org, paul.j.murphy@intel.com, daniele.alessandrelli@intel.com, mchehab@kernel.org, linux-media@vger.kernel.org Cc: bryan.odonoghue@linaro.org Subject: [PATCH v3 3/5] media: i2c: imx412: Assign v4l2 device subname based on compat string Date: Thu, 15 Sep 2022 01:35:20 +0100 Message-Id: <20220915003522.1227073-4-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220915003522.1227073-1-bryan.odonoghue@linaro.org> References: <20220915003522.1227073-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 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 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-LSpam-Score: -2.5 (--) X-LSpam-Report: No, score=-2.5 required=5.0 tests=BAYES_00=-1.9,DKIM_SIGNED=0.1,DKIM_VALID=-0.1,DKIM_VALID_AU=-0.1,HEADER_FROM_DIFFERENT_DOMAINS=0.5,MAILING_LIST_MULTI=-1 autolearn=ham autolearn_force=no imx412, imx477 and imx577 all return the same chip-id when interrogated via i2c. I've confirmed this myself by - Looking at the code in Qcom and Nvidia stacks - Running the upstream imx412 driver on imx577 with a Qcom sm8250 RB5 - Running the downstream Qcom stack on the same hardware. This uses a commercial licensed stack with a driver/userspace pair that make no differentiation between imx412, imx477 and imx577. - Running the imx412 and imx577 on a Nvidia Nano with cameras from Leopard Imaging. Again this is a commercial non-upstream user-space/kernel-space pairing and again the same imx driver, works for both parts. Sakari suggested we should add a new compat but that the compat string should also set the media entity name also https://patchwork.kernel.org/project/linux-media/patch/20220607134057.2427663-3-bryan.odonoghue@linaro.org/#24894500 Set up the .data parameter of of_device_id to pass a string which we use to set the media entity name. Once done we can add in imx477 and imx577 as compatible chips with the media names reflecting the directed compat string. Signed-off-by: Bryan O'Donoghue --- drivers/media/i2c/imx412.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/media/i2c/imx412.c b/drivers/media/i2c/imx412.c index a1394d6c1432..bc7fdb24235f 100644 --- a/drivers/media/i2c/imx412.c +++ b/drivers/media/i2c/imx412.c @@ -1172,6 +1172,7 @@ static int imx412_init_controls(struct imx412 *imx412) static int imx412_probe(struct i2c_client *client) { struct imx412 *imx412; + const char *name; int ret; imx412 = devm_kzalloc(&client->dev, sizeof(*imx412), GFP_KERNEL); @@ -1179,6 +1180,10 @@ static int imx412_probe(struct i2c_client *client) return -ENOMEM; imx412->dev = &client->dev; + if (dev_fwnode(&client->dev)) + name = device_get_match_data(&client->dev); + else + return -ENODEV; /* Initialize subdev */ v4l2_i2c_subdev_init(&imx412->sd, client, &imx412_subdev_ops); @@ -1218,6 +1223,8 @@ static int imx412_probe(struct i2c_client *client) imx412->sd.flags |= V4L2_SUBDEV_FL_HAS_DEVNODE; imx412->sd.entity.function = MEDIA_ENT_F_CAM_SENSOR; + v4l2_i2c_subdev_set_name(&imx412->sd, client, name, NULL); + /* Initialize source pad */ imx412->pad.flags = MEDIA_PAD_FL_SOURCE; ret = media_entity_pads_init(&imx412->sd.entity, 1, &imx412->pad); @@ -1281,7 +1288,7 @@ static const struct dev_pm_ops imx412_pm_ops = { }; static const struct of_device_id imx412_of_match[] = { - { .compatible = "sony,imx412" }, + { .compatible = "sony,imx412", .data = "imx412" }, { } }; From patchwork Thu Sep 15 00:35:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 86095 X-Patchwork-Delegate: sakari.ailus@iki.fi Received: from vger.kernel.org ([23.128.96.18]) by www.linuxtv.org with esmtp (Exim 4.92) (envelope-from ) id 1oYcrq-00AKvd-3u; Thu, 15 Sep 2022 00:36:34 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229723AbiIOAgS (ORCPT + 1 other); Wed, 14 Sep 2022 20:36:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230163AbiIOAfz (ORCPT ); Wed, 14 Sep 2022 20:35:55 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36EAF2719 for ; Wed, 14 Sep 2022 17:35:45 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id bo13so11785379wrb.1 for ; Wed, 14 Sep 2022 17:35:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=YuHJH10c8FvtUXJ2438gkG0TC72ZsbeaRJJji5SO8kM=; b=v5aDTc9EIdBMVqWhIV2meGDDjEsn+nnm2h7qGYgin0xh+NywFA6KJSqhxpNuYScY26 P1jBGHJkEG2BszQuUQM/CEfmaU2TKzcf9+JBZkV8wRjzRn0CyenIBS8gkme8n8Y09JfS 3ori6LDzNRmDAigrP3GAQmNndPqnCg3fRQRGDAOrv8LbsFuZOWdyMQE94Jj2ocUqOgrG nvj7FEzhrgw08MXQVW+6lj1AftRwqJdx7/RlFE7y7z+aGXCkEb5k41tI3Ih+kwDz5YFq OFEpzS7SrmQRvB+ldYuBuf1JUBjIpDuvP7BCogZbbdxzNLuvEVw+3aHM5zwZCJ/YQ5Nq S2Vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=YuHJH10c8FvtUXJ2438gkG0TC72ZsbeaRJJji5SO8kM=; b=Oyx1TvTo2TbtZPV0QUzW2NiBiOQKVKRconf02EHsQfLB+kg77zDycVPqFf/Ahlu8Yw cGHFFqEnPi0orqOmuSJ8W/XVOc8z/cIJZernSg2/OnTavFHnBBjQuiJTQoJKfUm+2bYq LmF2kMJJaqQaer1zmWAvxOOwGoSqYoQtlRXZAYW5+J90K7Ma3oOPZe9ZOlPTAwpIjNhN yWZs7B8JA3oSBAkZeW/T3WksIUPWOOu2cEhc0m3YJ6hYwn0gn4nywSzGjc03CSBuN09b AaewIgI7HMFgvEccEiCxotMlbVnOweWg16H6VcRwv1EmaYRlXrZX+8A3LzINE4P2YFCS 4h5A== X-Gm-Message-State: ACgBeo3HpjiuhWbVuP1JBZg6E/wE17KJoX7aKAOjfpM6XrpXFu5kwL6x SjPmboPImMXAhlEo4+azB08DAQ== X-Google-Smtp-Source: AA6agR5bin1Zk0UtmpSYrXkwpRlsm1H0dnLVWBUq8tixcTjNcqNZyGwvdsJBRBQd/hs+Ygke2R6/Fg== X-Received: by 2002:a05:6000:1ac7:b0:22a:906d:3577 with SMTP id i7-20020a0560001ac700b0022a906d3577mr10690016wry.33.1663202143762; Wed, 14 Sep 2022 17:35:43 -0700 (PDT) Received: from planet9.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id d8-20020adff848000000b002253af82fa7sm905235wrq.9.2022.09.14.17.35.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Sep 2022 17:35:43 -0700 (PDT) From: Bryan O'Donoghue To: sakari.ailus@iki.fi, jacopo@jmondi.org, paul.j.murphy@intel.com, daniele.alessandrelli@intel.com, mchehab@kernel.org, linux-media@vger.kernel.org Cc: bryan.odonoghue@linaro.org Subject: [PATCH v3 4/5] media: i2c: imx412: Add imx477 compatible string Date: Thu, 15 Sep 2022 01:35:21 +0100 Message-Id: <20220915003522.1227073-5-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220915003522.1227073-1-bryan.odonoghue@linaro.org> References: <20220915003522.1227073-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 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 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-LSpam-Score: -2.5 (--) X-LSpam-Report: No, score=-2.5 required=5.0 tests=BAYES_00=-1.9,DKIM_SIGNED=0.1,DKIM_VALID=-0.1,DKIM_VALID_AU=-0.1,HEADER_FROM_DIFFERENT_DOMAINS=0.5,MAILING_LIST_MULTI=-1 autolearn=ham autolearn_force=no The Sony imx477 uses the same silicon enabling reference code from Sony in the available examples provided. Add an imx477 compatible string and re-use the existing imx412 code. Signed-off-by: Bryan O'Donoghue --- drivers/media/i2c/imx412.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/imx412.c b/drivers/media/i2c/imx412.c index bc7fdb24235f..1013a5afc85f 100644 --- a/drivers/media/i2c/imx412.c +++ b/drivers/media/i2c/imx412.c @@ -1289,6 +1289,7 @@ static const struct dev_pm_ops imx412_pm_ops = { static const struct of_device_id imx412_of_match[] = { { .compatible = "sony,imx412", .data = "imx412" }, + { .compatible = "sony,imx477", .data = "imx477" }, { } }; From patchwork Thu Sep 15 00:35:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 86094 X-Patchwork-Delegate: sakari.ailus@iki.fi Received: from vger.kernel.org ([23.128.96.18]) by www.linuxtv.org with esmtp (Exim 4.92) (envelope-from ) id 1oYcrp-00AKvd-6l; Thu, 15 Sep 2022 00:36:33 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229518AbiIOAgS (ORCPT + 1 other); Wed, 14 Sep 2022 20:36:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230135AbiIOAfz (ORCPT ); Wed, 14 Sep 2022 20:35:55 -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 636712AE8 for ; Wed, 14 Sep 2022 17:35:46 -0700 (PDT) Received: by mail-wm1-x330.google.com with SMTP id e18so6601995wmq.3 for ; Wed, 14 Sep 2022 17:35:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=jXugpAupLZiYipHRjeQT6CVLpAIE0nevhX3M4kGLyQQ=; b=Aa0wVqfxAlLIqaaH6CHjaCK0IVCT6/3LH7L2yEJwPJwu1+nM6z/v/ej9eXfl8otaSy cy5zJvo+ZGKPxNcae1fuGzIV7I+rwiwZKu4Qr/z4WEaMeUIn8hvmT2zLsR6vhwwq2BSw PhCpxY+FBPjzlY7Mbx61OPgyC9Jvd+ChaJ83d8OIagy1oJ5Q4xVPH4ehT1gtaZFrIDs7 MC8C4Ms13HA2oo+ZdrdhnbSFYPS9h7ooiB36ZJr07J6cHqh+jFLAO+0XWRncbyEFIEBO 5NYZnKWQk7ZwXF/pS9Aw81H3Zak6NGCgqLFcyWxzpWzsmYmbA1sda5zCJdi8sOjx75MP aEBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=jXugpAupLZiYipHRjeQT6CVLpAIE0nevhX3M4kGLyQQ=; b=KRZ2NcPx1mVFq3kiqoFDMGmAW9hR+ZEMHq4kmwBvpGXilYbs/jQfRL6MkovAlHnvjd 5LvQv07YRC35nBaaHR8eoo7VfbOkJL24eVG6JzAgV96SvWV4dyjmPWb3MNwXq3ZHIXZY Ojd3vbJkW8Xgr5MN5B1+4fNZN9QMSJXttCkDm2RL9nMu6rCC/kuvlrGx6t6WrKSp/C39 3G5ZSfXemH2Ro5Xjt4cra8N0q+T8dtU+PROKjprXHg/50Ir9QYcgb5kSZDbd1YQfuiHN m2VBCUt1RA1V1UXG6zhOiwagzwubyH9i/OQ+sb0xNpm13kHLkgcJxY0IYptiOd4QI/O2 h1ow== X-Gm-Message-State: ACgBeo2LFof8EAnXnJPleyXw4Xyycnb5q9K+VsZK+x6lw9KA/IGCyDhT dkXwWI+XtnDEiC4qyfEzOL6DFA== X-Google-Smtp-Source: AA6agR4fKuYKoQlPFF2FeDuzqEjPcoKEDyron2k2bQ8MMM/FO1H6E6sJ5IghMMcvgLrkhezsuHjCWw== X-Received: by 2002:a1c:7415:0:b0:3b4:6198:f71b with SMTP id p21-20020a1c7415000000b003b46198f71bmr4751199wmc.87.1663202144746; Wed, 14 Sep 2022 17:35:44 -0700 (PDT) Received: from planet9.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id d8-20020adff848000000b002253af82fa7sm905235wrq.9.2022.09.14.17.35.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Sep 2022 17:35:44 -0700 (PDT) From: Bryan O'Donoghue To: sakari.ailus@iki.fi, jacopo@jmondi.org, paul.j.murphy@intel.com, daniele.alessandrelli@intel.com, mchehab@kernel.org, linux-media@vger.kernel.org Cc: bryan.odonoghue@linaro.org Subject: [PATCH v3 5/5] media: i2c: imx412: Add imx577 compatible string Date: Thu, 15 Sep 2022 01:35:22 +0100 Message-Id: <20220915003522.1227073-6-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220915003522.1227073-1-bryan.odonoghue@linaro.org> References: <20220915003522.1227073-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 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 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-LSpam-Score: -2.5 (--) X-LSpam-Report: No, score=-2.5 required=5.0 tests=BAYES_00=-1.9,DKIM_SIGNED=0.1,DKIM_VALID=-0.1,DKIM_VALID_AU=-0.1,HEADER_FROM_DIFFERENT_DOMAINS=0.5,MAILING_LIST_MULTI=-1 autolearn=ham autolearn_force=no The Sony imx577 uses the same silicon enabling reference code from Sony in the available examples provided. Add an imx577 compatible string and re-use the existing imx412 code. Signed-off-by: Bryan O'Donoghue --- drivers/media/i2c/imx412.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/imx412.c b/drivers/media/i2c/imx412.c index 1013a5afc85f..776cc058edf2 100644 --- a/drivers/media/i2c/imx412.c +++ b/drivers/media/i2c/imx412.c @@ -1290,6 +1290,7 @@ static const struct dev_pm_ops imx412_pm_ops = { static const struct of_device_id imx412_of_match[] = { { .compatible = "sony,imx412", .data = "imx412" }, { .compatible = "sony,imx477", .data = "imx477" }, + { .compatible = "sony,imx577", .data = "imx577" }, { } };