Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2457611imu; Thu, 17 Jan 2019 14:44:30 -0800 (PST) X-Google-Smtp-Source: ALg8bN4Pd7d89rEA3I8X2oIotHoEnte664rZ5igWNJguCZTBUCRmGILOUXeK10DEq5b8wEDa5Nyq X-Received: by 2002:a17:902:12f:: with SMTP id 44mr17008851plb.74.1547765070731; Thu, 17 Jan 2019 14:44:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547765070; cv=none; d=google.com; s=arc-20160816; b=iizGP8s40hgUOXHVY1QEsA5R7NaWDsLtvrtgtHGss0U+Iz3lWDgar6vK15xJppbWa+ P/bi+Idc+ESOcOWNj7C+3DDIoFpmP78ONUNspPeRG8mdtMhiObzeOpSHMXfWGanr8lo6 z9TLOGtduw0tpeOcdV98ud0OTAKF6+p5x2xPnnIfxveb0jF0f4DRuoWxxcMG4EEqciXs 7vEvTEv86lwlYcyRB29N67Vd1+S4EmUjA5Fwrl7pkKq6GGKYXEzBjyF9Ivh8BW8WXeBa oVEwWlqcD4kFPVxuJT7DmL3jpK8fEPqpVkOngun2G9nw5Zc3sISQ4eHaredEKd32q3Px SSTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=oA/l91TG8ETDak797MOk1KTEdnhvwZuqadQ+xYGHSb8=; b=F1efP+lTc8ucvL/qEMMm5SnWcs95hhsi/ScmpabWNkturPEwrzf3IZRTvEXTHdsZM7 6OXXp7JVKiJJKHofp+kPUJYJQXrEsWhluzLliT+cD709K1IeCSdi5w8sJJiCIP+VLDqc 34D0YDOayjVAvX0/Pj4JX6BQZ07uRKkcBKwBTSt1Xqu9sVPOgKznivAoy75QgLfOYkQ2 v4eN6hbXw+s5CYS8cA9xickspBjg7CsJVxkwKi5a1ZIo2bNbJKfqiv7qhmzEo/coDhQ0 fr7TQREMsOHxwX6ln0V3wvRMx86zY4kJHQqvgfbjbMOhjQ1k1Po5VUj/jep0/7w6vhAd TiWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=gomQyUPN; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f10si2450547pgo.356.2019.01.17.14.44.11; Thu, 17 Jan 2019 14:44:30 -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=@googlemail.com header.s=20161025 header.b=gomQyUPN; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726550AbfAQWme (ORCPT + 99 others); Thu, 17 Jan 2019 17:42:34 -0500 Received: from mail-oi1-f196.google.com ([209.85.167.196]:47091 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725784AbfAQWme (ORCPT ); Thu, 17 Jan 2019 17:42:34 -0500 Received: by mail-oi1-f196.google.com with SMTP id x202so7484465oif.13; Thu, 17 Jan 2019 14:42:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=oA/l91TG8ETDak797MOk1KTEdnhvwZuqadQ+xYGHSb8=; b=gomQyUPNQqGZ9dH4ylz4ZA4h+lyFageSXjzbbxNey062bSTs4jGBPwPRIL7RqnQrox Bg/M+w3hgeWWP7O0WJNESi8fEy+kLHOnCibttWx6yP8515MaqH73FD3xQzqDvMuRuNQE YLQA7wlbEKkoyPwbOtikIzoRXo3TqZD4lyXhmJjc1nBA0N2l9WAjOg3c9O/XLK0omeM9 BnF7LPSSob+W2FwYulNi2gGA8mUzPQNrEwz/Y1LEuGWknfzqcga6cE7hvXwjFUpnflS9 YvdudD/vog+5ogCjAMiTvG/6Ilwn0cmNx9nWOnJjWWDgjnik4bmunG2UectNdRLcSWaR oZVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=oA/l91TG8ETDak797MOk1KTEdnhvwZuqadQ+xYGHSb8=; b=HfdMscqS45OZRG8Q/buYscZIwD8Wul17dFKZQSmA0o1B9z2N63cVQiR5rC4XoTIOuY 5CKiukFZG0ySBkTMxXvQBvlM2ncRCpQYS/5gh13VtwZPVFZVqfbntjSrkwRRfj7wKvlB 7n5es1Z/fFsndtY8iVkQQLo/qp9e3AZZMu0/roxV6YIJOUfOa18Ze3/S/eEE0h88Qagp jHoNff5xeRv6Cz45tj8oWlyD33+wO3I4HvOEA7MIs0uwgac3SyzHhIl71Rz1ZOhwtxmj sK7Yw9p8QP3G7sopyVmqCY498mJ4xmUObdqfv95OlpbCGa2NrG/pIN+1EB0cGNmelaTZ 37pA== X-Gm-Message-State: AJcUukfwP6kNUZq59EVrTFfK11ddHhexsRE9jXEN+KfcH82hO2u2kUyt oHo5HzIX1PVz1qOXrQvLV/wxayRBbz6s+NtTXbnSs/LC X-Received: by 2002:aca:5b43:: with SMTP id p64mr4583642oib.41.1547764952828; Thu, 17 Jan 2019 14:42:32 -0800 (PST) MIME-Version: 1.0 References: <20190116165236.8330-1-jbrunet@baylibre.com> <0dcd4c655bd9477d7adf2c6e32a1f0ebab18cee0.camel@baylibre.com> In-Reply-To: <0dcd4c655bd9477d7adf2c6e32a1f0ebab18cee0.camel@baylibre.com> From: Martin Blumenstingl Date: Thu, 17 Jan 2019 23:42:22 +0100 Message-ID: Subject: Re: [PATCH] arm64: dts: meson: fix g12a buses To: Jerome Brunet Cc: Kevin Hilman , linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, jianxin.pan@amlogic.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > > - 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 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) > 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