From patchwork Mon Apr 11 01:31:29 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: 560155 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 C6495C433F5 for ; Mon, 11 Apr 2022 01:31:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243149AbiDKBdt (ORCPT ); Sun, 10 Apr 2022 21:33:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229834AbiDKBds (ORCPT ); Sun, 10 Apr 2022 21:33:48 -0400 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E82E33E5E8 for ; Sun, 10 Apr 2022 18:31:35 -0700 (PDT) Received: by mail-wr1-x431.google.com with SMTP id e8so4431394wra.7 for ; Sun, 10 Apr 2022 18:31:35 -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=CSxhmVmqjVu0+wRdeaKu7iJXMPwjGKSYtT5uODsHuMI=; b=A+S+TZ4VQBZCVqfPvROZ9q2/PehrS7GEyg1boF6ipdT1mkqhwZyQznapqXLlfORK+g YZF3UYXr+UKy3dLHgEfDs0y9BlelHJpekhCof+ZnYSwOpMjkyUlRTcRkB0XkPBjB4WpI nwzuE69yS5PYh55mvuBrLsCuKl7tMz4VbI90qTAR85uMHs0wAr1X7dOVympQgLWp58u0 TBJtHRtw2sPfx5nmvvYr82YT7YAnBGzYWrngDhbCqVHV+i14w09NUk7nLkwrbekoYuxo MGMSVmo6YxDNkvZAIwy+ggZwbU51Zv2usSTF8ziU1lc+Ac4OCNyKK/cyvllWN/gpXMqa Pktw== 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=CSxhmVmqjVu0+wRdeaKu7iJXMPwjGKSYtT5uODsHuMI=; b=6wePvdO391e7mNhmpQviQhfqcsoraDEpr8T8lTmYtAv0m4mjL9VLRPP2GHUH6M4bPG dGAlgZH0Ks+u1XHea8MTYhLCZjgs1j/4B6UaDrTKeb0Y3P9dX05g/vkbPrgvkke/jg7d eEO75PZJLP1i5nX4y03yVVglRJ89Xa03i7e0xv308hDsxTFK4DcbwOfaKZoucwk4STll EoLWKR7ur062XRWgF2VZT3vgVvwCOfL0MFPkDJF9+wNODQD8n1g7Y413JVzpRNGrBwB4 1l6z3cflqVYBrZA8/ahHPwR2QThGSoMzsRcVcYY4js74Sxi02h5ofOYXwb2D8LEam7Rq t0Qw== X-Gm-Message-State: AOAM5333DwdU6XXwgvoC2H2I+GGPXMqa/8vs2O9jJt2ude6fCLpDLy7P j0S2IqcVUvYac+J4OVqXArv0Mg== X-Google-Smtp-Source: ABdhPJw90xyqsAIQOpUD5QpKSVPZtafWnFCuMECn9I687JeY87BRKUyCakQ3dEJT6mvHA6GjcpUWJw== X-Received: by 2002:a05:6000:100c:b0:207:a2aa:8d15 with SMTP id a12-20020a056000100c00b00207a2aa8d15mr4742827wrx.394.1649640694564; Sun, 10 Apr 2022 18:31:34 -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 w1-20020a5d6081000000b002061b616b83sm15862934wrt.39.2022.04.10.18.31.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Apr 2022 18:31:33 -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: [PATCH v2 0/2] media: i2c: imx412: Add regulator control to imx412 Date: Mon, 11 Apr 2022 02:31:29 +0100 Message-Id: <20220411013131.3553098-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 V2: - Drops redundant verbage "Defintion of the" from each of the newly defined regulators - Krzysztof Kozlowski - Adds Acked-by: Krzysztof Kozlowski - "description: thing described" to the same line in new additions following the established way of doing it in this file - bod V1: 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. 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 | 30 +++++++++++++++++++ 2 files changed, 42 insertions(+)