From patchwork Wed Apr 3 19:04:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13616602 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4AA62CD1288 for ; Wed, 3 Apr 2024 19:04:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=WyWmjEsVVfAVAuxN4uLacQNkrAdWynhe1UaMCd00SLY=; b=l5CUbB7R+g9mlp 5ha0JJ0PdPzc5yQ2ISE1ZDL0GFNZ2rXxlxdv8AzZq7Z7LwJKwQA4ODPJfpHNQCgzCksERS1puvff/ Dorip4g8p2FjSSx7Qqe7oEpcpGqOftCTCP9XoFYnzQyXlOlVzrUiWXYvhSfauuUckW/BGVqBv4u0b VAO2ypH+8p3C09A4g+CtaD64EsVQOutsNqJJNwqa74eIzpZE3DihsNm/YYKX4swrGtpyGUAXjUFgl /poGPldWCzW9xIdREGX/te9C8nRAb2OP1f6U/R8asO0P8tlYkTq4LXzWzAQl58no2/XpopsQZuO3s JKbaYd1pQrxBlYg0ZPpw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rs5uI-0000000HVLZ-2Sa0; Wed, 03 Apr 2024 19:04:22 +0000 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rs5uF-0000000HVJp-1ZCH for linux-arm-kernel@lists.infradead.org; Wed, 03 Apr 2024 19:04:21 +0000 Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-6e694337fffso18601b3a.1 for ; Wed, 03 Apr 2024 12:04:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712171057; x=1712775857; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=JNPFFL8oP046EogGc5eQ6rohNSa+elKk3WfzCZ89lQQ=; b=dL/XX9f+AwxtMjkRs8+3OZQ7X9NNybCP/c8MNOFI/vAUbQ3BLtj/Mgo6gkeicJTEGR YwRlJ0MU0bp6UKB4o1g638m1qQs1OxFV6WPmFOxB4yPMbyvoexAf8Qd8Drhe+HEx4Y9M sDLZIA+v8oDzu3tp4OTRo5eujpEVZDFduVfSHTixp9a1I8p1u7iOJRbSKCov1TQW2kJp nfc2ioaKX81muPSseg8fRsrm0rJ5uwrF1xoZ07Pip58SBtNpErNehUpiW4srwIK7bicv FUAOaCgt8QZ1ORibNrtHwE85G3pS+cjsCKvInKuurJ/LwLwKQo1W70D2d7Xd/UqWgA9T Y/Hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712171057; x=1712775857; 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:message-id:reply-to; bh=JNPFFL8oP046EogGc5eQ6rohNSa+elKk3WfzCZ89lQQ=; b=dAO5AjPprfUH2roJx4aA5hEnchShKZrSkcVMc44DuobbKq11rM05rB8vtHXmENPJZp bJAR0RhshYkEHByP36Vecxd63ZravBvmAAEIeF66uhfU6PdEoTfReF2FCLQfZJydrwrK YXoPY+XtYn1ecdrjrwXCIMuqrGIH/+muQdK+Hp8xNmDbVXTfYzotgXM2NeXaiJVRkiGt ylavj6o8uMTFQP2kSFtAlz3QRpUd8Ouz7cYqtE1w3SVRrPCZcShcRx1cxJk4uCUx5wEV x+oOCzm7b1SZ5xEfTw35Ub9ilqcEaPWTrLHafCBXbUPvWw4ju9sNUaJE3J/vlkhrydoA aYkA== X-Forwarded-Encrypted: i=1; AJvYcCUDAtCfH2dPx/vGEyTB+5esOPnkjAiKMElsIMDNFq57hX3YvCKR1lKIg5s2PibVG13Gn53clkBUtXhQSuGESbX7SX5FDh6pJuSDFopSVGP9SNQLP/o= X-Gm-Message-State: AOJu0YyUBHCHn0XpLvvbT02tHFfcFZVkPjpv6uuJt8+G1FXXfO8yUp7Y EfaUL2kuENwjFwxKphbJDFs40emvhkj/rS8Ftxd7h4pjw2CUNaDVJCwfK+TQ X-Google-Smtp-Source: AGHT+IEXn7gqVUt/YycNdJZLdsL7xBBY9igAV+WRtPZD/rVPZSh0XC9NGonOuKU2ECaKHmh9cOxfSQ== X-Received: by 2002:a05:6a00:1d8f:b0:6ea:6f18:887a with SMTP id z15-20020a056a001d8f00b006ea6f18887amr452724pfw.1.1712171057117; Wed, 03 Apr 2024 12:04:17 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b61:dbdb:4185:2ffc:f19b]) by smtp.gmail.com with ESMTPSA id gu5-20020a056a004e4500b006ead4eb1b09sm12108841pfb.124.2024.04.03.12.04.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 12:04:16 -0700 (PDT) From: Fabio Estevam To: shawnguo@kernel.org Cc: victor.liu@nxp.com, linux-arm-kernel@lists.infradead.org, Fabio Estevam Subject: [PATCH 2/3] arm64: dts: imx8mn-evk: Describe the OV5640 supplies Date: Wed, 3 Apr 2024 16:04:08 -0300 Message-Id: <20240403190409.446522-2-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240403190409.446522-1-festevam@gmail.com> References: <20240403190409.446522-1-festevam@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240403_120419_456959_7B57BDD1 X-CRM114-Status: GOOD ( 11.41 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Fabio Estevam Per ovti,ov5640.yaml, the OV5640 power supplies are mandatory properties. Describe them to fix dt-schema warnings. As there are two different PMICs used on the imx8mn-evk variants, describe the OV5640 power supplies in each board devicetree. Signed-off-by: Fabio Estevam --- .../boot/dts/freescale/imx8mn-ddr3l-evk.dts | 6 ++++++ .../arm64/boot/dts/freescale/imx8mn-ddr4-evk.dts | 6 ++++++ arch/arm64/boot/dts/freescale/imx8mn-evk.dts | 6 ++++++ arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi | 16 ++++++++++++++++ 4 files changed, 34 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mn-ddr3l-evk.dts b/arch/arm64/boot/dts/freescale/imx8mn-ddr3l-evk.dts index 9ebd81e7eb7c..d25032e3ceab 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn-ddr3l-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx8mn-ddr3l-evk.dts @@ -122,3 +122,9 @@ hdmi@3d { v1p2-supply = <&buck5>; }; }; + +&i2c3 { + camera@3c { + DOVDD-supply = <&buck5>; + }; +}; diff --git a/arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dts b/arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dts index 1a4ac39ebde8..6d85a0b052c9 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dts @@ -168,3 +168,9 @@ hdmi@3d { v1p2-supply = <&buck5_reg>; }; }; + +&i2c3 { + camera@3c { + DOVDD-supply = <&buck5_reg>; + }; +}; diff --git a/arch/arm64/boot/dts/freescale/imx8mn-evk.dts b/arch/arm64/boot/dts/freescale/imx8mn-evk.dts index 6f7f409c4181..41330210a05f 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx8mn-evk.dts @@ -135,3 +135,9 @@ hdmi@3d { v1p2-supply = <&buck5>; }; }; + +&i2c3 { + camera@3c { + DOVDD-supply = <&buck5>; + }; +}; diff --git a/arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi b/arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi index c06bcf86bb73..690da24a4335 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi @@ -52,6 +52,20 @@ reg_usdhc2_vmmc: regulator-usdhc2 { enable-active-high; }; + reg_1v5: regulator-1v5 { + compatible = "regulator-fixed"; + regulator-name = "VDD_1V5"; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <1500000>; + }; + + reg_1v8: regulator-1v8 { + compatible = "regulator-fixed"; + regulator-name = "VDD_1V8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + reg_vddext_3v3: regulator-vddext-3v3 { compatible = "regulator-fixed"; regulator-name = "VDDEXT_3V3"; @@ -287,6 +301,8 @@ camera@3c { assigned-clock-rates = <24000000>; powerdown-gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>; reset-gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + AVDD-supply = <®_1v8>; + DVDD-supply = <®_1v5>; port { ov5640_to_mipi_csi2: endpoint {