Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2414917imu; Thu, 17 Jan 2019 13:50:31 -0800 (PST) X-Google-Smtp-Source: ALg8bN5MZpfFH58SDlpmL9Bt3vxb2g/7BQOPhteGBGhG/KB/dKnRoaaalvBbeNYQdWl1T2KRxXyr X-Received: by 2002:a63:504d:: with SMTP id q13mr15197640pgl.319.1547761831105; Thu, 17 Jan 2019 13:50:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547761831; cv=none; d=google.com; s=arc-20160816; b=oPRQbgsLajG0uhOe+DrBtQ4kv8tviuLxIrQFZh48Pz2nwetQOsx3BxiT714H5B30Gn ZrgtWKjRZE2t6V+Aedz3TJ9o3iaUhAZ4nx/HNYlX0D/n5magRb5M1oaNVDyueKLouQGk 9fHBcjtxUowGPspEMG2CfaAh2smZdK9QUDY3W4vupKyjplUhoJu5CP/IRTVp5naswsfC IzzVA/7nBkCyIPzGAsA9RyFgWDgXCqiq8OxF/51h/W/WfnGxOJwPQRhd/5GebjM18A2I K1JzStqNX8uyi2N+FMDf7RhXh6vuSaS7OK3JHUJZAnlvRPAnRseP16TMdI+jWQzxqUlW Q/5g== 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=rPL21ki1aX4oJLzX3r8m+1Cfs4ZHb3I5O5QskE3L8Ro=; b=llftlxSFGz+PDwAc9ZTEZmFtwpopM9Qhn+BnXYTlqimrMW4Ve4sW9O8EIu9b+Yi4Xr EwimLM5/xEY0iFwXHwNbdbZtWymVPsVz0C1AM/RMqaaYLCuZLUVZHZvidtyrIMXqgtnw PkXUb9NCklSH4hRNCDIl2GPfZWq9wXo1OsB++7U9YbxDU6YaUZgDdXTC0axzSyKYryLD rleqmRvjf+ChOmx2pmW0ELixiScyPmZQ38/kYllg9iyLsfyQUR3N1dFQafXaxVUKi4/C 5QC1FEDD9Iw7bFrkJypsoA+v/wuZj2qAF4qLWbg8XrvnBoI/tbwbXY/V2H4xTqeevhZ0 vXhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=LWBTFxmt; 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 b10si2582011plz.233.2019.01.17.13.50.12; Thu, 17 Jan 2019 13:50:31 -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=LWBTFxmt; 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 S1727868AbfAQVpW (ORCPT + 99 others); Thu, 17 Jan 2019 16:45:22 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:36246 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727248AbfAQVpW (ORCPT ); Thu, 17 Jan 2019 16:45:22 -0500 Received: by mail-wr1-f66.google.com with SMTP id u4so12739444wrp.3 for ; Thu, 17 Jan 2019 13:45:21 -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=rPL21ki1aX4oJLzX3r8m+1Cfs4ZHb3I5O5QskE3L8Ro=; b=LWBTFxmtoOfyZbWPElrNoiBI+uVNot+yh7tmwVW+3pKXPkJoeQa5ZmjNXa0hNE3N5Q bozQo2NBA7zD7t8tHdeajCje2oESw/ASW86WgsIW+KC2RMhXKYwuDsLDJyuXUQ2aJUrl XU9yEFyCO4sACCAZHngXc98XpanFrWkOXqz4k5Qgbw8si96LGwUc6mVObpWKiJbwX9U3 ASZQTawU6GROgFKk1XOl7UkhZ8JFOvrIxn0+EQPcpWrTUqyzELf1oApYGLXhY4Gb7zjY K2AlthgtxOrYA5beCcMsykRqdEKmI1gc85bgxxat8zan/lZuUVEMp+LaXQuOCfcHBKp6 CXqA== 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=rPL21ki1aX4oJLzX3r8m+1Cfs4ZHb3I5O5QskE3L8Ro=; b=sAyZ8TzFG5p3+qfQ3EWlnVo/rMmjxZkRjB3C585ZC1s6uWK590YJ1afMooAShIFq+I 5k9XTlwFCWO7hjwVinAS1lM3sQv1u0oqzCX6sKSpf/4KJLjmEGYFT3UYWVuts+uitkt2 xUxyNmFbnFBWZ0mFA28mXQtgHY8rKTvCuQhqf3RwBl9TExPrm6MgmAhIwYZJRbMGTvHB Y+zYG8NK/uGVz9xb4av4FA+NpKI83DnmoSxWSR7zutFN+hQSEpDhFFWPoS5Pw4vT5viP /ZKX9FbrifhSYCVLh6qT4ncuAoxagRFP2YuhVcG9ldaV4xl60VxWL9WWkXwiAMXsmMS9 k/xA== X-Gm-Message-State: AJcUukdahT2haGSEBQDQxd4H7aiyVf5uKwUdmcMmdZCMh3Gef9lS2qo9 waPBjsnQr6ijJv/FtGX6XZG+Dw== X-Received: by 2002:a5d:568c:: with SMTP id f12mr12828997wrv.101.1547761520408; Thu, 17 Jan 2019 13:45:20 -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 p139sm78005569wmd.31.2019.01.17.13.45.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Jan 2019 13:45:19 -0800 (PST) Message-ID: <0dcd4c655bd9477d7adf2c6e32a1f0ebab18cee0.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: Thu, 17 Jan 2019 22:45:18 +0100 In-Reply-To: References: <20190116165236.8330-1-jbrunet@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 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 > - 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. Creating bus should at least require a start and end offset explained somewhere. Copying vendor DT is not enough > > Cc'ing Jianxin: can you please review Jerome's patch and give some > more details on the memory map on G12A so further contributions can be > reviewed easier? > > > Regards > Martin