Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2525073imu; Thu, 17 Jan 2019 16:14:09 -0800 (PST) X-Google-Smtp-Source: ALg8bN7SxY74vng7JW/n/bb93TSjZdIKaOTYHa0cIO3c9m/n2I6cFI+AA/uj4Jav8KnOL+twFjDI X-Received: by 2002:a17:902:e085:: with SMTP id cb5mr16869986plb.24.1547770449487; Thu, 17 Jan 2019 16:14:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547770449; cv=none; d=google.com; s=arc-20160816; b=Jyj6ygHPbu4ZaHzasR2vsZCmbNtJtCuy+tBaj8GwT+/NfqOIIrIjElmFpHmsLp5lWt UfjIDRqpdZ3mRjX8ucluNlezzC3bGfC8Gk8IkpWnL3HgbzmgxJJ/s3RLv4JJIdyDXhvt P/QabRtudy2SmFv73lIYAIc5Yo5GXi2HB3sfHKZ/Wg7pPDQMdU7ebPDaClzKy0gPOF5v janna/ExVzld/3UgW4ewPVD9MK3dViKn9Rhea7btJot7j6G/eYYwAdIc8Dh+oRSvMpG/ zslprZ/piO5taUMb2SW3YRKT2T5m7CFHSD0DTozVeLI21Vc12pOifwJ/GK3CliJGNScq hKSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=U7MCz0bERkjh4Lwv8meusPJ4WPo+0D11n/B6+zeBFlA=; b=rlsBPDBloFMXd+gRrqasKdsbjeNBAz2ZMvjUmtk+L1JllNHdw3cP5oNOReCsb8SU1V UHH4V1sRewacBxSEjJ5sF1IwQ+QhG1w3LmMFvvUbYqyD5aYKrAcdEGSBw5D2mm93OfFM oZ1VJdqogWiDFK42WsosCv+Mp8bE94GKGvnBNT0Lhb/f2romoGSoNHrBuiucsCaRHx6i F6g/MBOqwcIGzCpVqaHmIQt6JIo+jNT6GXoB/8N4PzDbqcQ7SSlLb9M1YIQhJuc9dU5/ p15QOKRR52qrDlJUrocJ3sNKc8X61qDHcwWkfuxR2s7mh12VxbC71rbKsaL7wIW1D8dS MAiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=IbTIPOOY; 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 c8si3178124pfe.243.2019.01.17.16.13.49; Thu, 17 Jan 2019 16:14:09 -0800 (PST) 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; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=IbTIPOOY; 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 S1727017AbfAQXDt (ORCPT + 99 others); Thu, 17 Jan 2019 18:03:49 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:39835 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726968AbfAQXDt (ORCPT ); Thu, 17 Jan 2019 18:03:49 -0500 Received: by mail-wm1-f65.google.com with SMTP id y8so2790693wmi.4 for ; Thu, 17 Jan 2019 15:03:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=U7MCz0bERkjh4Lwv8meusPJ4WPo+0D11n/B6+zeBFlA=; b=IbTIPOOY0KpkQPQOdOJzS2KCsYZw4TmRaaEUvweD85OytfsW/Z+AaDlOTMxIxryW6P C9i4wLfeBFYU1op9iZSAzTnMYdOxWLNOBZhbyjkw/m/YkS1y+Y0czT1cgGH4a8QO+9rW OOAu2hYhJpe73BLt8IHHOSFPP12w/nwi0rb99SCg6FPP+gXPnklnhz2kxq3Nc2tf7swV lVKHO0nVxnoJS60fTazZn4DPuNVYdws/GhTzIafoKNw2TE8HL2gl074qKgb0ugix/cpA chvnL6OKmrvf8VscqBZHT8MyFjSD0Jptbjw3m4HJu1C/rNBWr6nhW+U38hQ00sdkLvWC 6lIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=U7MCz0bERkjh4Lwv8meusPJ4WPo+0D11n/B6+zeBFlA=; b=da7Zt7gHYFTVTIH0wZLhVmAQcM4J3Ef/2sZJm757birtbcM+N7Q20lEnQEUJ0XG+aR JUs7Ps9FPpzecOFg3M3HdPeVZxP6QbjOxZouy7CIedSJNiqIPBpDapLN481nAm+XIXEr hB4jgvWEq2DkREolfCu1yjEa74JR6EvX5AgxIocadTMRMexw7pnNaoyD11CrPp94xROs A5CA31CUKeG0Tg6HCuS/ZQPbyZcpo3i4uFzp46YfpU/bSKaSrU8fuMEV0wglbOaGcOvr PAtb15mhVHwn5HsiyTVVlQQKiNdO7WELhvVxAmxcDlfpCqwu4j66Bo/p4N28trxP1EHU gpHA== X-Gm-Message-State: AJcUukfltZS/Mya7unoM+HzzspRHIGsWKtLTlVw9BBlbdqIxG2nBfu0q CauleWazyXiEY6VaZcuqT1E/cA== X-Received: by 2002:a1c:400b:: with SMTP id n11mr13922665wma.85.1547766226754; Thu, 17 Jan 2019 15:03:46 -0800 (PST) Received: from boomer.baylibre.com (cag06-3-82-243-161-21.fbx.proxad.net. [82.243.161.21]) by smtp.gmail.com with ESMTPSA id w16sm88818150wrp.1.2019.01.17.15.03.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Jan 2019 15:03:45 -0800 (PST) Message-ID: <61b854605207ee30969d25b1e16948e7a84d331a.camel@baylibre.com> Subject: Re: [PATCH] arm64: dts: meson: fix g12a buses From: Jerome Brunet To: Martin Blumenstingl Cc: Kevin Hilman , linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, jianxin.pan@amlogic.com Date: Fri, 18 Jan 2019 00:03:44 +0100 In-Reply-To: References: <20190116165236.8330-1-jbrunet@baylibre.com> <0dcd4c655bd9477d7adf2c6e32a1f0ebab18cee0.camel@baylibre.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.4 (3.30.4-1.fc29) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2019-01-17 at 23:42 +0100, Martin Blumenstingl wrote: > On Thu, Jan 17, 2019 at 10:45 PM Jerome Brunet wrote: > > On Thu, 2019-01-17 at 22:20 +0100, Martin Blumenstingl wrote: > > > On Thu, Jan 17, 2019 at 9:39 PM Jerome Brunet > > > wrote: > > > > On Thu, 2019-01-17 at 21:27 +0100, Martin Blumenstingl wrote: > > > > > OK, but we had incorrect documentation in the past. did you check > > > > > this > > > > > with someone from Amlogic? > > > > > > > > > > I'm curious because there seem to be two different approaches here: > > > > > 1) hiubus name and offsets are being fixed within this patch > > > > > 2) aobus is being dropped here and re-introduced with a different > > > > > name > > > > > later > > > > > on > > > > > > > > > > > > > because hiu exist and aobus does not, for which both the name and size > > > > was > > > > wrong > > > > > > > > > approach 1) can also be used for the "rti" region (at least in my > > > > > opinion, the patch doesn't explain why it can't be done): > > > > > > > > THe patch remove aobus (instead of fixing name and size) because, of > > > > the > > > > multiple region documented covered by this 'made region', I did not > > > > anticipate > > > > which one will be required and I did not want to add them all. > > > > > > > > Better to add them as needed, which is want I done for pinctrl as you > > > > pointed > > > > out > > > > > > > > > rename "aobus" to "rti" and change the size to either 0x1000 or > > > > > 0xb000 > > > > > (both values can be found in mesong12a.dtsi from > > > > > buildroot_openlinux_kernel_4.9_fbdev_20180706) > > > > > > > > RTI is added here: > > > > https://lkml.kernel.org/r/20190117103151.3349-1-jbrunet@baylibre.com > > > > > > > > I don't really understand the problem ? result is the same > > > the actual problem is "me" as I have conflicting information: > > > - Amlogic's buildroot kernel (for G12A) uses similar bus definitions > > > as the GX SoCs (for which there are public datasheets) - this is how > > > Jianxin added it to meson-g12a.dtsi originally > > > > And it was the same for the GX family. AOBUS in the DT while there nothing > > about this in the memory map. Keep wrong patterns does not make them > > right. > > > > I'm merely reading the memory map here > can you explain which "memory map" you are reading exactly? > > my source is the "memory map" section in the public S905X and S912 > datasheets: > - "S912_Datasheet_V0.220170314publicversion-Wesion.pdf" page 48 > - "S905X_Datasheet V0.3 20170314publicversion-Wesion.pdf" page 43 Those section yes > > > > - this patch does it different - but cannot check if this is correct > > > (no public datasheet is available for G12A or AXG) nor do I have a > > > "big picture" of upcoming changes > > > > Yes it does it differently. We should have picked up on this a while ago, > > since gxbb at least, and we did not. There reason to create bus that don't > > exist in the memory map of any recent SoC. > in the GXL and GXM datasheets from above there is: > range: 0xC8100000 - 0xC81FFFFF > name: RTI So we apparently agree that aobus does not exist RTI simply goes fron 0xff800000 - 0xff800fff on the G12a doc, it is as simple as that - as done in the pinctrl. > > thus in my opinion, based on the two datasheets from above: > - the bus definition (start, size) in meson-gx.dtsi is fine > - probably have the wrong name for this bus in meson-gx.dtsi > - (assuming that GXBB, GXL and GXM are all the same - I only compared > the last two) I still dont understand this focus on aobus which simply does not exist in the map, whether it is by name of size or offset. Same goes cbus and apb. > > > Creating bus should at least require a start and end offset explained > > somewhere. Copying vendor DT is not enough > I fully agree on this one! > > > Regards > Martin