Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4519972ybg; Mon, 21 Oct 2019 10:12:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqykWKrERg49j5Zc6NBGEyB2xS7cxXKFqeZeBvhSVF+3vCeL+icizvzNrbWQsQeEUn+yQsRI X-Received: by 2002:a05:6402:21e8:: with SMTP id ce8mr26444489edb.32.1571677971950; Mon, 21 Oct 2019 10:12:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571677971; cv=none; d=google.com; s=arc-20160816; b=gD+/1cihXo9uwoHJ1ZJnlL8DEVWXlxeUev/QDRC1DFjXH5WmkYw22gVjMeY/EABd2l XoBpBL6/36fJhVvgdH1zK11IvuyJ5p+xxi1e0VD5BUUNPpH3CCE+kPOsw5BGEvh2jigp yEn7OeCOGWtdXvU5EyEHc6ABwwdZ+FkYzdygnaZnBKGMzD+cygVgideoOlXu32IRMoYW bgyBhkJi/ca+svSbms4M9LB0AOT7274HmiuR7u/8t3TDqoGqNfuzr1D/Qlqht8a3EqK9 WQVCQSncAwriq+AWhZln40bgUk7Mo4fFp39vhlsWd/z0m+7R+A6sb7aL0SrZQnuuJrDA rfzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=KaKBRDEMk8hwaVsMSbXf4OwTqwtEVbmGRHeC335OZD0=; b=bAgETfoTVcYbw4mXZ2DvXvGBF3zOJf1oUMoJCOM5cC9+I+coMjsnuxUmBr6cnByded my6lawP9+ZFTOfYbzBYXPe5eW2aF+yrvXFLf6pbRMKOeeXFeKQF9hmt7+VcYdVv3nMHD /G4nYK9YBZH6VZS9Yl+K9a9oLNlxexinldkcMaXiXHlV8sG1RjV6PP17UFXDz8iAz/pQ 21Y4WuLbJyQBvvSUFzCu51dteyXs+VzNCTsWLwgvOxkj2hlFikS74W4wJbLS4zI1ZAqv Kk6yZP3Hz4UUFyrMTM1884yCdAm3N5p8ui4rzjCwkNGheUVgbS2sZWfo+NQwAeIePp/W EJKg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ch26si9060496ejb.190.2019.10.21.10.12.28; Mon, 21 Oct 2019 10:12:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728267AbfJURKR (ORCPT + 99 others); Mon, 21 Oct 2019 13:10:17 -0400 Received: from muru.com ([72.249.23.125]:38456 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727110AbfJURKR (ORCPT ); Mon, 21 Oct 2019 13:10:17 -0400 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id C5A3980CC; Mon, 21 Oct 2019 17:10:50 +0000 (UTC) Date: Mon, 21 Oct 2019 10:10:13 -0700 From: Tony Lindgren To: "H. Nikolaus Schaller" Cc: Rob Herring , David Airlie , Daniel Vetter , Mark Rutland , =?utf-8?Q?Beno=C3=AEt?= Cousson , dri-devel , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , linux-omap , Discussions about the Letux Kernel , kernel@pyra-handheld.com Subject: Re: [PATCH 1/7] dt-bindings: gpu: pvrsgx: add initial bindings Message-ID: <20191021171013.GX5610@atomide.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * H. Nikolaus Schaller [191021 15:46]: > > Am 21.10.2019 um 17:07 schrieb Rob Herring : > > On Fri, Oct 18, 2019 at 1:46 PM H. Nikolaus Schaller wrote: > >> +- reg: Physical base addresses and lengths of the register areas. > > > > How many? > > I assume there is only one. At least it suffices to make the existing > driver work with it. > > > > >> +- reg-names: Names for the register areas. > > > > If only 1 as the example suggests, then you don't need this. > > ok. My guess is that sgx is just a private interconnect instance with few control modules like mmu and clocks, and the driver(s) should consist of independent modules like iommu and clock driver. So yeah I agree, it's best to leave reg names out of the dts at least for now. > >> + compatible = "ti,sysc-omap4", "ti,sysc"; > >> + reg = <0x5600fe00 0x4>, > >> + <0x5600fe10 0x4>; > > > > How does it work that these registers overlap the GPU registers? > > Both drivers have access to these registers. Likely, the gpu driver > ignores them and does access other ranges. Unfortunately TI is stuffing the interconnect target module control registers at random places within the unused register space of the child module(s). So the module control registers are all over the map at various offsets. Adding holes for each module control register to the child nodes seems like an overkill to work around this IMO. Especially considering many drivers only understand one IO range currently. Regards, Tony