Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3590793imu; Fri, 18 Jan 2019 13:09:00 -0800 (PST) X-Google-Smtp-Source: ALg8bN5rk93mxdqZ4KSYd3f/la9phsUVUSM2CC7HjaL5nIQbBGoCJkTnRDldAZH6lDn5qLLoNVCq X-Received: by 2002:a63:1560:: with SMTP id 32mr18957208pgv.383.1547845740453; Fri, 18 Jan 2019 13:09:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547845740; cv=none; d=google.com; s=arc-20160816; b=LokjBy2l9EHnH15Y4+d+fRHAJPtcqaqurS6RIbVv63oLptQKLU2ojzTjZibzagELN1 X8gX370zzHdvBX3mIqv4y711OYY4vG8O2DOo3DETAxvb6xvyTB7FoM3k3N785eTfJN7I yfwPyFYtV9Od+7Q5c8qEtS76YgtvIJBTlTjomQgZcoojT6/VMd3dTOg0WF8h005IdCHe fXjajbvASm/T8bDDbYaBHE+txfVVoc813NIFKJRAZPilRid53q3Kasqun1xEYOowpTrh dqfSQhVg6F9FXK3tczoHvGqlsxW6v6xppCS0qzCfEgJIHoxVdKqXFodmBZZi9ZP8xZR+ 9v/Q== 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=fIPuQo45ozsSJ6dAGKPJwbGMqPWQ/JDqMzTlwh+7PyA=; b=ZFEmHXxBLvRnHKmK7XPlpLjwJXS0wFXj9tYINDDT77ve+nPcb2o1vRfgNJuZW8wuSt TZhFxIZq9zaEnG+G6fx15yirB1FuY1p6hZQeNJR4g9cekX9JIrjBhXuINSnuH0Ch0b/s MvqN0xymVAYf4AqnCS6+s8n00OmLQ3n4vkwi6RTqPizmpHUG/qaSyiW1uNBGu5wvZIt8 6I2qxrR5Kpppp8ABmiQSAKr7N3wJOlbItUpi889ciivEh+knUY2Engh39YecBntICIoD 9vBTFhtEGIqS+ChjWrkEaDV4UtZTOEyrUfbCbHnJRnKNgozbMJfrXf03w1iMSX2zUNeM YTSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=QMMdtyx2; 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 k7si5385063pgm.462.2019.01.18.13.08.41; Fri, 18 Jan 2019 13:09:00 -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=QMMdtyx2; 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 S1729601AbfARVG1 (ORCPT + 99 others); Fri, 18 Jan 2019 16:06:27 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:37442 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729506AbfARVG1 (ORCPT ); Fri, 18 Jan 2019 16:06:27 -0500 Received: by mail-wr1-f66.google.com with SMTP id s12so16730015wrt.4 for ; Fri, 18 Jan 2019 13:06:25 -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=fIPuQo45ozsSJ6dAGKPJwbGMqPWQ/JDqMzTlwh+7PyA=; b=QMMdtyx2FlKw8KVIIupz+wVJLEtjrrVQX85iwMvMW/UZ1qWrD6ECv522qGHbEB6Uav yxTMEyAtyeyk0DCYRUGCK1BHyNteqej8X6YFRYSLYHa7Uy8PcAgJDRnvgSZ3EZ/7osP6 N/B/1d/MtcdijAQaKFEqIQcYQmRcZ10BDhu5nD4Kb9DlDlPgyMMLgtCm6AApcsEm36SI CC++i/E/vPrpaFn5yfyPo1oza6/FAbNiaK3IItOLhoP2Q9ekitLdheBxIUT6sGhvBiNa ++sR6/hmEwfvHHOnTqheaKcEBn1EbE+8a0M+bHzm79i7nHXScgRHV8aD/V61URzRlQpJ c8pw== 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=fIPuQo45ozsSJ6dAGKPJwbGMqPWQ/JDqMzTlwh+7PyA=; b=cEYj4aykQOWGAj2wwOGNq5OnteRpp1xPCYV0nCit2FMTLpH7bpuVK+ZxmSIww+mw39 zcgceER+cz15MsAwS03jTQMrmdVeXY5tmMnFafyyedZtjDEEiq2UXIfo205yW9v1gAqF iDMEchQFW+zbQKST7WKxKKJisVlc77xg+RIDAoncK9sY0yPtLstk+uS66pVQTcntAfO8 dtwoOeRhG3FaJuTPdY4pj9BdoBhEM5W5cNEc3kzY4/bM4a/PXa/rCJdDioMufXqkgRv2 xYP7XhRk1261djpfisP3KFmCYwB+RGF41QiuIqWrNFPFvPPeFLz6khH8MPUWGk/DNa5f WSrg== X-Gm-Message-State: AJcUuke0CCHarhzHl5WdH+IYQVdV17tsSEr/yB+jCo8eQdooFqjE11eu 9axFK8NpJOr4z1ni6hvNZGDesw== X-Received: by 2002:adf:f390:: with SMTP id m16mr17477949wro.71.1547845584522; Fri, 18 Jan 2019 13:06:24 -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 n6sm42836118wmk.9.2019.01.18.13.06.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 Jan 2019 13:06:23 -0800 (PST) Message-ID: <09d31d456e727a27bab66c89004f1d6c42588fd9.camel@baylibre.com> Subject: Re: [PATCH] arm64: dts: meson: fix g12a buses From: Jerome Brunet To: Jianxin Pan , Martin Blumenstingl Cc: Kevin Hilman , linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Victor Wan Date: Fri, 18 Jan 2019 22:06:21 +0100 In-Reply-To: <98166e2c-f5f8-55b9-6acb-7374bf10d80c@amlogic.com> References: <20190116165236.8330-1-jbrunet@baylibre.com> <98166e2c-f5f8-55b9-6acb-7374bf10d80c@amlogic.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 Sat, 2019-01-19 at 02:09 +0800, Jianxin Pan wrote: > Hi Martin and Jerome, > > On 2019/1/18 5:20, 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 > > - 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 > > > > 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? > > > 1. "aobus: bus@ff800000" describes the following registers: > ahb ao_reg reserved 980 FF80B000 > ahb ao_reg ao_mailbox 4 FF80A000 > ahb ao_reg sar_adc 4 FF809000 > ahb ao_reg ir_dec 4 FF808000 > ahb ao_reg pwm_ab 4 FF807000 > ahb ao_reg i2c_s 4 FF806000 > ahb ao_reg i2c_m 4 FF805000 > ahb ao_reg uart2 4 FF804000 > ahb ao_reg uart 4 FF803000 > ahb ao_reg pwm_cd 4 FF802000 > ahb ao_reg reserved 4 FF801000 > ahb ao_reg rti 4 FF800000 > > > 2. "cbus: bus@ffd00000" describes the following registers: > capb3 cbus reserved 872 FFD26000 FFDFFFFF > capb3 cbus sc 4 FFD25000 FFD25FFF > capb3 cbus uart0 4 FFD24000 FFD24FFF > capb3 cbus uart1 4 FFD23000 FFD23FFF > capb3 cbus uart2 4 FFD22000 FFD22FFF > capb3 cbus reserved 4 FFD21000 FFD21FFF > capb3 cbus reserved 4 FFD20000 FFD20FFF > capb3 cbus i2c_m0 4 FFD1F000 FFD1FFFF > capb3 cbus i2c_m1 4 FFD1E000 FFD1EFFF > capb3 cbus i2c_m2 4 FFD1D000 FFD1DFFF > capb3 cbus i2c_m3 4 FFD1C000 FFD1CFFF > capb3 cbus pwm_ab 4 FFD1B000 FFD1BFFF > capb3 cbus pwm_cd 4 FFD1A000 FFD1AFFF > capb3 cbus pwm_ef 4 FFD19000 FFD19FFF > capb3 cbus msr_clk 4 FFD18000 FFD18FFF > capb3 cbus reserved 4 FFD17000 FFD17FFF > capb3 cbus reserved 4 FFD16000 FFD16FFF > capb3 cbus spicc_1 4 FFD15000 FFD15FFF > capb3 cbus spifc 4 FFD14000 FFD14FFF > capb3 cbus spicc_0 4 FFD13000 FFD13FFF > capb3 cbus reserved 4 FFD12000 FFD12FFF > capb3 cbus reserved 4 FFD11000 FFD11FFF > capb3 cbus reserved 4 FFD10000 FFD10FFF > capb3 cbus isa 4 FFD0F000 FFD0FFFF > capb3 cbus parser 4 FFD0E000 FFD0EFFF > capb3 cbus reserved 4 FFD0D000 FFD0DFFF > capb3 cbus sana 4 FFD0C000 FFD0CFFF > capb3 cbus stream 4 FFD0B000 FFD0BFFF > capb3 cbus async_fifo 4 FFD0A000 FFD0AFFF > capb3 cbus async_fifo2 4 FFD09000 FFD09FFF > capb3 cbus assist 4 FFD08000 FFD08FFF > capb3 cbus mipi_dsi_host 4 FFD07000 FFD07FFF > capb3 cbus stb 4 FFD06000 FFD06FFF > capb3 cbus aififo 4 FFD05000 FFD05FFF > capb3 cbus reserved 4 FFD04000 FFD04FFF > capb3 cbus reserved 4 FFD03000 FFD03FFF > capb3 cbus reserved 4 FFD02000 FFD02FFF > capb3 cbus reset 4 FFD01000 FFD01FFF > capb3 cbus reserved 4 FFD00000 FFD00FFF Hu Jianxin, Thanks for sharing this. Any other region we should know about ? what about the apb region that isn't documented either ? > > 3. In public data sheet, I can only found memory map about sub-regions of > each bus. > And no information about the bus itself. > > > Regards > > Martin > > > > . > >