Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3168717pxa; Tue, 25 Aug 2020 13:25:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyx881UKh9OTDXeWL18XQYE8zAefCdVV58CyRFZ85D2NjpyLFhvmc+TOeriqojsLHchT40O X-Received: by 2002:a05:6402:1708:: with SMTP id y8mr8066541edu.236.1598387127351; Tue, 25 Aug 2020 13:25:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598387127; cv=none; d=google.com; s=arc-20160816; b=UREzJeWKEcPGRT4JvLYw3rDK3GSWjoNxTahS9Q+a3tFaPtJ3JK79S8drFeX/MQfnvY ZeyXHJhTH4StHJMeCiffY/FlvzWQey4xw7yoEtfe9Hxd9AQThUDcxS7LUIxnDiE7T8Gk SRX5qRLzMNbc81fg25i/NBTviTeuJFFd1wBvKxPgV32C9yXiJlrHoMKbWTGjowwiEPmi u1cf9Cfj0BPAlt1DDrJjhL8uHO6pePBihNsr7jkxnx7QQxPFGvkFNqyRXalZb/eH/DFj tZ9uXGN8MVxmo3CczO/9/AR/yIXXJOdd3rEqqb+SlWREZJjodnaLCFGUXBmJQlFE5mFo SmqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=STHRdKDiwUhm9MsuBLAlXPkMuEj82Sz/mpAR/svDHx0=; b=O8e2+Jbaa12rr9A9h79R/5CUJsWWT/jtUOPnHrytxSlb7GF4Kh+CI3uEU1k6U/qKUI AHHPIPxkwHJH2wtrEZ+uqZiwShpGH++Mt1TRdS16ayOSzP1oP+Kg2IGgshEngpoRoeq0 gqpFYz2KBb2YKW9qwSaKuBwXGqOJBmLeQflE2kyjZYgnZ9PfSIcciCj3gFUBnNuadS/G KWugd7BbZNXSZbY9Y316DCWQyrkfREgFQox8MlxkNbGRXHpUuHNQcXM/AE1TFf9yeEgN 9SzSodASkeiz2j9bCseB+1RVK8AEzrnJGoKCQZM+GG9w/GJddcNSpWNPVxLEvhzbBTrf nzyA== 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 i22si86864eja.737.2020.08.25.13.25.02; Tue, 25 Aug 2020 13:25:27 -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 S1726656AbgHYUWG (ORCPT + 99 others); Tue, 25 Aug 2020 16:22:06 -0400 Received: from asavdk3.altibox.net ([109.247.116.14]:49118 "EHLO asavdk3.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726149AbgHYUWF (ORCPT ); Tue, 25 Aug 2020 16:22:05 -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 199B620024; Tue, 25 Aug 2020 22:21:54 +0200 (CEST) Date: Tue, 25 Aug 2020 22:21:53 +0200 From: Sam Ravnborg To: Mauro Carvalho Chehab , Laurent Pinchart Cc: Greg Kroah-Hartman , Neil Armstrong , Xinliang Liu , Wanchun Zheng , linuxarm@huawei.com, dri-devel , Andrzej Hajda , Laurent Pinchart , devel@driverdev.osuosl.org, Daniel Borkmann , John Fastabend , Xiubin Zhang , Wei Xu , David Airlie , Xinwei Kong , Tomi Valkeinen , Bogdan Togorean , Laurentiu Palcu , linux-media@vger.kernel.org, devicetree@vger.kernel.org, Liwei Cai , Jesper Dangaard Brouer , Manivannan Sadhasivam , Chen Feng , Alexei Starovoitov , linaro-mm-sig@lists.linaro.org, Rob Herring , Jakub Kicinski , mauro.chehab@huawei.com, Rob Clark , linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Liuyao An , Rongrong Zou , bpf@vger.kernel.org, "David S. Miller" Subject: Re: [PATCH 00/49] DRM driver for Hikey 970 Message-ID: <20200825202153.GA237836@ravnborg.org> References: <20200819152120.GA106437@ravnborg.org> <20200819174027.70b39ee9@coco.lan> <20200819173558.GA3733@ravnborg.org> <20200821155801.0b820fc6@coco.lan> <20200821155505.GA300361@ravnborg.org> <20200824180225.1a515b6a@coco.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200824180225.1a515b6a@coco.lan> X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=f+hm+t6M c=1 sm=1 tr=0 a=S6zTFyMACwkrwXSdXUNehg==:117 a=S6zTFyMACwkrwXSdXUNehg==:17 a=kj9zAlcOel0A:10 a=e5mUnYsNAAAA:8 a=jmfwfdV-BNFhccFjUE8A:9 a=CjuIK1q_8ugA:10 a=pBTelFdiagIA:10 a=Vxmtnl_E_bksehYqCbjh:22 a=pHzHmUro8NiASowvMSCR:22 a=xoEH_sTeL_Rfw54TyV31:22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mauro. Laurent and I discussed this driver a little on irc. Some highlights: This parts could use register names: + writel(0x2, noc_dss_base + 0xc); + writel(0x2, noc_dss_base + 0x8c); + writel(0x2, noc_dss_base + 0x10c); + writel(0x2, noc_dss_base + 0x18c); The two nodes in the DT for DPE and DSI uses overlapping range for reg entries. It looks like a syscon node or some iommu thing is needed to do this properly. The chain will lok like this: DPE -> DSI -> video mux -> {adv7533, panel} But drm_bridge has not yet support for such non-linear setup. The recommendation is to focus on the HDMI prat. Then we can later come up with support for a video mux. The video mux should have a dedicated node with one input node and two output nodes. Which is also where the gpio should be. The DSI node references two DPHY instances - should it be PHY driver(s)? Does the DSI part contain one or two instances. Clocks looks duplicated. Does the DPE and DSI share a lot of register blocks - or does it just look like this from a first point of view? You can read though the logs here: https://people.freedesktop.org/~cbrill/dri-log/index.php Could you please try to get back on some of the points above so we can help you move forward in the right direction. Thanks, Sam