Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2820538pxb; Fri, 5 Nov 2021 05:21:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6zUSK0+EwaG6mzpeyW7BR21zZ2aNomv9w5JICyu5jZg6OtqmkYhYSfDnImuHSsXPN8GlL X-Received: by 2002:aa7:c041:: with SMTP id k1mr77178021edo.330.1636114893588; Fri, 05 Nov 2021 05:21:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636114893; cv=none; d=google.com; s=arc-20160816; b=VoWL/p+i6MRXwDwnOWT46tVem1Fq6bwv6B7GF99ZFlrNjS99YwbLOzVHPthgdAuupQ g1TGhr8jEMmJXrOAv0Rg/kaNi9bFf9WoG2v73xoA+FQ2nPjjEAIV6RYGi8GR5nbfJ+GF VMMZjxFMobUUeP7h33uwconws4mcsz8EXyZuX3Ef79Xgk3w8yRjsw+fGbzyQ98HZ+KJ6 dJoU5YLgw4hJvd9jnlQjlj7yaAQgY+2ex1GO39gppQ7Me+tMZh1ni7BdD641zOlOXOBx n78qKh7YrESm55x6LU0Gq74+J+oXWRtw5Zap2pCsymwf5rl9ugouN/jYQ4fwJLn7IA+p VZJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=12mEO0A1yX4YO0aWrAlKQ0oriRzb3rtWJiL1gUaAlOA=; b=esIpBKYxChz4YP9y4PsqRR01jNM0wotmgrmkL5+roKFUrxRSAA/vUa8e1vG6Ro/lRg 43C7FI4ZUpXhBwzykR+CwHbfdbHcYgAEsXmMeOWKSH4m2zS6Vbx5y94tbhVRzsCG4Mas DuCLFuCckbujVK2SJqMQDC196YJ/O2GMccBGEPKP8O/QWAYAEacPF7iOPKCXhZ8z8d96 YoDMy+WDjiP9L+xzbU+xFQLXeEZXKAYxcgRffRJlKxCixhcCbRhAI744ykTYGgTeTXj/ MynjqDBICRQ/n47veX7Ys+qpvD7ZFJmnWQNbRnY4NJ4Lj6n479ycz08HskyskScOegqH 9Gkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=aA4o7St4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sg15si15816340ejc.353.2021.11.05.05.21.02; Fri, 05 Nov 2021 05:21:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=aA4o7St4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232103AbhKELQQ (ORCPT + 99 others); Fri, 5 Nov 2021 07:16:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231312AbhKELQQ (ORCPT ); Fri, 5 Nov 2021 07:16:16 -0400 Received: from mail-ua1-x930.google.com (mail-ua1-x930.google.com [IPv6:2607:f8b0:4864:20::930]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0879C061714; Fri, 5 Nov 2021 04:13:36 -0700 (PDT) Received: by mail-ua1-x930.google.com with SMTP id e2so16357856uax.7; Fri, 05 Nov 2021 04:13:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=12mEO0A1yX4YO0aWrAlKQ0oriRzb3rtWJiL1gUaAlOA=; b=aA4o7St44Lci26wMleyUlqgl5aYdmfY5x/LnQtxQ13XFz8sIwHp8ToXCVFvAzKf3v9 qqh9KwimkjqqHBMYDg2OvDHu9cR17gxjuuZ8oNmmskMono2it4Kaqjo1TnikfTuX0Wq1 +ujl5OZjJlhTFxuvOT/dxrOtPDe28kAWDCzfQjEnmX1zmYZOahrAG+Ooax7/PlGzVGuE SfSkqbpWaFeJ3GfXnioiciHAyJQjzFDTnyLZ0NgboHn6Qq8Z8Rid2FWbd4P129Apiguu 0uD4WY3xayW7NE7w+GW3tXKw8UFRakiEjh0yf/r6rxdpnusJYG8CU5Sx0yX6A92Vw85T JTGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=12mEO0A1yX4YO0aWrAlKQ0oriRzb3rtWJiL1gUaAlOA=; b=zqLvG9yv1fE9gkHbilj0qRefXIzz4DMiZweeJg7JLxTYPXLq6jI0BoblHyqSqSqeiq PEevNcA7dFCeU6n5uL3Mlrm2kLC/d5RMMN9gK32o9vA1J+mcatrV4DoFdk2EA8ETgeyC 7qjhjKT7r3Oy0bBEbT2W1KRU6hs91/75HCcJisRPbclb4os0vfN7e1RJhZl/+tBTvvRy 2mYoWxbGX7KlrFYbwZl0sqwuQm0ehFGFQ1Hud2hCQ6Hp41m4FCOGRJTxkQZgOs8bePgS AtCYAOmazzri9SIM7tIqFppeQpg0W5CPk6sWXyUJ/aJRrfny1WpLE6kZKJaYkH0cN7NP +xzA== X-Gm-Message-State: AOAM5331nt1UEcQD2gDVvI5TyCWeY0S/BPCHgcT+JEou2788cpEiLCug VA0w9eJsFE3fc0dqoBv2T5pq2J1ePt2Oc2dDQGc= X-Received: by 2002:a05:6102:3e84:: with SMTP id m4mr70542087vsv.51.1636110815434; Fri, 05 Nov 2021 04:13:35 -0700 (PDT) MIME-Version: 1.0 References: <20211023203457.1217821-1-aford173@gmail.com> In-Reply-To: From: Fabio Estevam Date: Fri, 5 Nov 2021 08:13:24 -0300 Message-ID: Subject: Re: [RFC V2 0/5] arm64: dts: imx8mm: Enable CSI and OV5640 Camera To: Adam Ford Cc: Tim Harvey , Frieder Schrempf , Laurent Pinchart , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linux-media , cstevens@beaconembedded.com, Adam Ford-BE , Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , NXP Linux Team , Catalin Marinas , Will Deacon , linux-kernel , Lucas Stach Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Adam, On Fri, Nov 5, 2021 at 1:14 AM Adam Ford wrote: > +Lucas Stach > I think I found the issue of the camera hanging. It appears to be > related to the disp-blk-ctrl virtual power domains. > > In the NXP kernel, the dispmix power domain in ATF sets bits 16 and 17 > of 32e2_8008 (GPR_MIPI_RESET_DIV), but the disp-blk-ctl driver only > configures 32e2_8000 (SFT_RSTN_CSR) and 32e2_8004 (CLK_EN_CSR). As > soon as I set those extra bits, the hanging went away, and I got an > image and the image looked good. I'll try to work on this tomorrow or > the weekend to submit a patch with a fixes tag to make sure the > IMX8MM_DISPBLK_PD_MIPI_CSI power domain properly configures the extra > register. > > With this change, I didn't need to modify either the CSI-bridge driver > nor the mipi_csi driver, so when I get the blk-ctrl fix, I'll resubmit > this series on top of that with the corrections suggested as a proper > patch without the RFC. That's great news! Thanks a lot for your good work. Cheers