From patchwork Sun Apr 10 16:35:51 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: 559838 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0F8CFC433EF for ; Sun, 10 Apr 2022 16:36:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243602AbiDJQiK (ORCPT ); Sun, 10 Apr 2022 12:38:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229646AbiDJQiI (ORCPT ); Sun, 10 Apr 2022 12:38:08 -0400 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A81F13A5EC for ; Sun, 10 Apr 2022 09:35:57 -0700 (PDT) Received: by mail-wr1-x435.google.com with SMTP id e8so3298036wra.7 for ; Sun, 10 Apr 2022 09:35:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1/Utui5eCGbt/cTGPsyHeox51v+ypYBCzwgfJpm/a/0=; b=Tu9EfS/FLoaXHYekRIu5ejY09iVKbWmv/OdGWl37doJqnCj7wfIr6Wjaph8dGe4McT 38/tqpKQUUYVFBi3TUXsVQ1O/FF6VsdGShhGVdCx13qABPjf4wjgzcDrqygESrVPRTXk bCSr3kXWXsAc4qb1ya58pKgucSW2zMl68/p6cpOE8l+KBvJeOYYJsNLIABcLsJSuvp/3 e0UzKzcdB+b51L2vBzZzcm1ChS+ZlB8bSyAI8IBYyY8NwditsoVY6Y/6pFoP6IStKo8a iN4xRYPzIJCgimWuCyl51Yl+lk7XyhjKAI7HI6qgUmCSndhOl4nL9ceZXOhb6Vj0bWaO 3JOw== 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:mime-version :content-transfer-encoding; bh=1/Utui5eCGbt/cTGPsyHeox51v+ypYBCzwgfJpm/a/0=; b=SPO7KnglzPGBf0+cvMAqoDg6Ux9FPT5B8kZdF0I+o+oMl8ncT7Qr4FrffdIwNd1OdC IZktHriDzeJZ4epXEAiUPpKVVdOE74++NhlB4/tcQnIj9FvBH3Pl9brAYz/kyLNakO2C GXE9W50IRJUh+IAzeBapi7v9Y8xuxOFi7etIKYyE5PfjhAtTzjxi9DgKUmoa8XKZrIMS vdJAWFEvnEe7paB86KCDSQTvpk91Dthr+YHgazb8jO8iKzH5TZ40wqN4jnlv0v1O/TtS 42fznBC0QWgIIq45WIOnL/R0NWrqakOJyBxLPlUqSop+TROcoPdzJETaq3dqix1eWbhs X9gg== X-Gm-Message-State: AOAM531pnU0GJUxQQOpIX9345tI2py9aNezAh2yNraKW4lok/Ob2AjnL BvqyiUxlx5pDBbNrm07kfy4l4g== X-Google-Smtp-Source: ABdhPJxKi/kWR8tbpojQUeV47W9wPXDebZ1a1ZDHjBW+9N4Wmff0KKuTzpe+YMyaG27OwDlzDMeHkA== X-Received: by 2002:adf:da49:0:b0:204:1548:2a58 with SMTP id r9-20020adfda49000000b0020415482a58mr21865396wrl.664.1649608556098; Sun, 10 Apr 2022 09:35:56 -0700 (PDT) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id a7-20020adffb87000000b00207982c7f4dsm6500126wrr.67.2022.04.10.09.35.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Apr 2022 09:35:55 -0700 (PDT) From: Bryan O'Donoghue To: paul.j.murphy@intel.com, daniele.alessandrelli@intel.com, mchehab@kernel.org, linux-media@vger.kernel.org, devicetree@vger.kernel.org Cc: robert.foss@linaro.org, hfink@snap.com, jgrahsl@snap.com, dmitry.baryshkov@linaro.org, vladimir.zapolskiy@linaro.org, bryan.odonoghue@linaro.org Subject: [RESEND PATCH 0/2] media: i2c: imx412: Add regulator control to imx412 Date: Sun, 10 Apr 2022 17:35:51 +0100 Message-Id: <20220410163553.3501938-1-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org The imx412 has three regulators which depending on platform may need to be individually enabled. - dovdd - avdd - dvdd Existing code for an Intel platform doesn't appear to need to enable these rails directly. On my reference hardware, a Qualcomm Thundercomm RB5 some of these rails do need to be enabled individually. Add in the above named rails as optional in the YAML in the first patch along with code to switch them on in the second patch. Existing imx412 users should get dummy regulators populated which the regulator_bulk_enable()/regulator_bulk_disable() code can safely ignore. Resend + devicetree@vger.kernel.org Bryan O'Donoghue (2): media: dt-bindings: imx412: Add regulator descriptions media: i2c: imx412: Add bulk regulator support .../bindings/media/i2c/sony,imx412.yaml | 12 ++++++ drivers/media/i2c/imx412.c | 38 +++++++++++++++++++ 2 files changed, 50 insertions(+)