Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3245480pxk; Mon, 28 Sep 2020 12:07:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXLW4usNRXCdT6YG56WbtNRbieH53p/GPsxFf8aArypnqcLY95+vInJY7JsPH/4GgrEZi1 X-Received: by 2002:a17:906:a256:: with SMTP id bi22mr205930ejb.375.1601320049241; Mon, 28 Sep 2020 12:07:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601320049; cv=none; d=google.com; s=arc-20160816; b=rlItdUogFIzm8mZskJKY+1uiXPGalxzQnFAoBpBTRQdznpdTboyigLSQg7uDlvvOPs uUQX2u8kcaJxh8wWDjqWtv6FPLTkAJLJ/B4b2/eyVjSO4kJr62UmmI2y+07gD4dpTTqS d6QpGDAtz/7wufhWrM1wEe3Cs0VSX6kAN88Fd2xJqFrWAWB22h7wdYL/P8z6vPyW8Rxv QH34vdevlVPSsDaKPW7epWe/49Ut0CiSVAM9UhboJrKq9lzOPMh52Al5Wd3IitqR8qsE uTikdZXjB4waV1gB0YfNQEqiBw4/q+Vz6r2gHwL3cUxPRbyBNtZh8thlrSfqcdKIhgQl zSag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=ZzljQZVi/9Ycu9QJy0skf4SrBICxQI+hjdCk5IUk+LM=; b=VPt8TsqUT0YQIPE1bo539QGgeHFzWWkHwz5ZxeBESJer02Mw5JtKrPNsQjQP2ZT980 ReOjGwLGhi4XOLEbLIZ3ANjtKMg9056fykfZeJv/ZLcjVnCUIPEWTSm69wD7ew7wUQU5 VFC6HjIiIyV3+2hQKvuc3xFNnFemnUDRYLAeo9KDWlFg4rsfkpQdxa0naqlMAfBpAgv2 p9YBHOPHmVR91PBKKyXrgMT7ftRtmyWlFS9jUauO0KGKFEHX04boLFxWSl7L3PcigRtC dOQJuySRR1pLd9gT6uj+OMG2stYeJCvkbpcx0vJW8rEfcJh6Ham6mbiDSh5IGG7z+08g Rozg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c11si1238121edw.277.2020.09.28.12.07.06; Mon, 28 Sep 2020 12:07:29 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726497AbgI1TDv (ORCPT + 99 others); Mon, 28 Sep 2020 15:03:51 -0400 Received: from asavdk3.altibox.net ([109.247.116.14]:42150 "EHLO asavdk3.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726328AbgI1TDv (ORCPT ); Mon, 28 Sep 2020 15:03:51 -0400 Received: from ravnborg.org (unknown [188.228.123.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by asavdk3.altibox.net (Postfix) with ESMTPS id 62EBC20058; Mon, 28 Sep 2020 21:03:42 +0200 (CEST) Date: Mon, 28 Sep 2020 21:03:41 +0200 From: Sam Ravnborg To: "Alex G." Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, Jernej Skrabec , Mauro Carvalho Chehab , Neil Armstrong , David Airlie , Mark Brown , Jonas Karlman , linux-kernel@vger.kernel.org, Andrzej Hajda , Rob Herring , Thomas Bogendoerfer , Laurent Pinchart Subject: Re: [PATCH 1/2] drm/bridge: sii902x: Enable I/O and core VCC supplies if present Message-ID: <20200928190341.GA673726@ravnborg.org> References: <20200924200507.1175888-1-mr.nuke.me@gmail.com> <20200926184919.GB98875@ravnborg.org> <9c3ce766-743c-705f-7926-21e753c2d02d@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9c3ce766-743c-705f-7926-21e753c2d02d@gmail.com> X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=CaYmGojl c=1 sm=1 tr=0 a=S6zTFyMACwkrwXSdXUNehg==:117 a=S6zTFyMACwkrwXSdXUNehg==:17 a=kj9zAlcOel0A:10 a=pGLkceISAAAA:8 a=n0pIf5krzdTGiaSpMTQA:9 a=CjuIK1q_8ugA:10 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alex. On Mon, Sep 28, 2020 at 12:35:01PM -0500, Alex G. wrote: > On 9/26/20 1:49 PM, Sam Ravnborg wrote: > > Hi Alexandru > > > > On Thu, Sep 24, 2020 at 03:05:05PM -0500, Alexandru Gagniuc wrote: > > > On the SII9022, the IOVCC and CVCC12 supplies must reach the correct > > > voltage before the reset sequence is initiated. On most boards, this > > > assumption is true at boot-up, so initialization succeeds. > > > > > > However, when we try to initialize the chip with incorrect supply > > > voltages, it will not respond to I2C requests. sii902x_probe() fails > > > with -ENXIO. > > > > > > To resolve this, look for the "iovcc" and "cvcc12" regulators, and > > > make sure they are enabled before starting the reset sequence. If > > > these supplies are not available in devicetree, then they will default > > > to dummy-regulator. In that case everything will work like before. > > > > > > This was observed on a STM32MP157C-DK2 booting in u-boot falcon mode. > > > On this board, the supplies would be set by the second stage > > > bootloader, which does not run in falcon mode. > > > > > > Signed-off-by: Alexandru Gagniuc > > > > One nitpick here. The binding should be present in the tree before > > you start using it. So this patch should be applied after the binding. > > It is :) > * arch/arm/boot/dts/stm32mp15xx-dkx.dtsi This is the device tree. So essentially there is part of the device tree that is not yet documented - so in a perfect world all parts of the device tree is documented in bindings (Documentation/devicetree/bindings/* ) before the device tree is committed. Sam