Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3015801pxu; Tue, 8 Dec 2020 00:54:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJyK+Ujc9nrNzqu7lK8FN8JyxCYDBV4KzUopkB2boO/DQ0ozeGORfBjo+fc2NKm94M5gKHqA X-Received: by 2002:aa7:cd9a:: with SMTP id x26mr23126801edv.226.1607417672574; Tue, 08 Dec 2020 00:54:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607417672; cv=none; d=google.com; s=arc-20160816; b=lE2+ugUoZDYYR02Y2dQC2MPj2p+XgX5bbO1x+fY5YUB/TOt84I469GBp05529akhWy 4ZV/KwnhjeG9LqIyOOFWbstP1RudaXp0+RXOwqBKZPPMIxSc+ecjfYTuxfh+Sez2fFT0 dy31joMeWcr7ddciuOdFoNV5Wyq/ehy8AGVuG+1EreEF70Lkeq/Nw8KGYNL3nfG0tfbA 7uWFhAGorXhs3AED+9PzXz5tVVJi2NeHRdBIpF1s27ma4ppaSi3h8Zy1O8EJHXsad9V4 T8beTqAcSCnsF5cHVmAYOeWAB7QzwWgppg9dNPERUNT9u/tDRcHXV6TOUtggH2ULbzR6 +9Ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=y0koPcLMtfqbktCsAIiMm4tX7WZXNRVhbxZdAvcr+Xk=; b=xLlosdWviYtOyt863TAofzXJl7gbdRCGcbs7Gk7DhVZuHJyMtFwLSfeHhgaJt1NLnd b37/3sJ71HCNBhhmxWYK3Sepnc/ljZHiUIz3WiETI95GFX/NsvnSM23TurdXS+3IoKVd /Bhc7BvOlp+v/7Mbta8T9itz72Or4skiywAjzIvsV6pEqd+e0dqbfck7Vx8HbgoThWsF fa9ACSiadfkOJ6+QUnLnf8VTWtq/x5Vh79LtkMi7QWgQNSnV8BsTcnU2nAzNbOXdwMD1 d1uORgQ+x1yE9+wyzTF7AHDOmk0PL00YVao39T4V5seC4YYpYyIrO41ZmJbKLYXxV6K/ 9Zcw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e25si7010608ejt.153.2020.12.08.00.54.10; Tue, 08 Dec 2020 00:54:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728458AbgLHIuu (ORCPT + 99 others); Tue, 8 Dec 2020 03:50:50 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:44760 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725927AbgLHIuu (ORCPT ); Tue, 8 Dec 2020 03:50:50 -0500 Received: by mail-wr1-f66.google.com with SMTP id x6so11475894wro.11; Tue, 08 Dec 2020 00:50:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=y0koPcLMtfqbktCsAIiMm4tX7WZXNRVhbxZdAvcr+Xk=; b=jMgygRW1PoGVXYJgnW4T6YlaJY6D8PNSSYXK6+5AffAJmpJR8wuvaaOx6h95XqKK/q 63j4dm7KQnGHWzGXzTbvavHC/um42b7EuAMJI6MqeS87h8BSZnIHOXOQ73dEzkrGOGB2 VCtIauzz/bbkDQAbcmk4ENojLJhO8EpO9PoAib9nI8He9e7wNJ9ukgOtUtWzkdW8Yrtg xCpmNgIN69HQHEnG+Nb0ZkLrQbKXC3GTWJ13DTWkCXTf7M9mVFRSrQPmLpYrgs5RPvSa BjoJfmoML+AqH4plUt8brZMxV3wuGRF2Dm/NfLJe6SBVzh8CQR2lLqrPzpj0DiT264Gl 3nTA== X-Gm-Message-State: AOAM533QfWiRa7cc53TmImdEJSMZjT7VKghOArONsgtcEMQ2Ekh9Zrp/ 5pyM+YNVA0a9ZSP0HbqA4uk= X-Received: by 2002:a5d:5552:: with SMTP id g18mr24607916wrw.145.1607417408037; Tue, 08 Dec 2020 00:50:08 -0800 (PST) Received: from kozik-lap (adsl-84-226-167-205.adslplus.ch. [84.226.167.205]) by smtp.googlemail.com with ESMTPSA id n14sm18421046wrx.79.2020.12.08.00.50.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Dec 2020 00:50:06 -0800 (PST) Date: Tue, 8 Dec 2020 09:50:05 +0100 From: Krzysztof Kozlowski To: "S.j. Wang" Cc: "robh+dt@kernel.org" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , dl-linux-imx , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] arm64: dts: imx8mn: Fix duplicate node name Message-ID: <20201208085005.GA7654@kozik-lap> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 08, 2020 at 08:44:51AM +0000, S.j. Wang wrote: > > > > > > > > > > On Mon, Dec 07, 2020 at 02:21:40PM +0100, Krzysztof Kozlowski wrote: > > > > > > On Mon, Dec 07, 2020 at 02:53:24PM +0800, Shengjiu Wang wrote: > > > > > > > Error log: > > > > > > > sysfs: cannot create duplicate filename > > > > > '/bus/platform/devices/30000000.bus' > > > > > > > > > > > > > > The spba bus name is duplicate with aips bus name. > > > > > > > Refine spba bus name to fix this issue. > > > > > > > > > > > > > > Fixes: 970406eaef3a ("arm64: dts: imx8mn: Enable Asynchronous > > > > > > > Sample Rate Converter") > > > > > > > Signed-off-by: Shengjiu Wang > > > > > > > --- > > > > > > > arch/arm64/boot/dts/freescale/imx8mn.dtsi | 2 +- > > > > > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > > > > > > > > > diff --git a/arch/arm64/boot/dts/freescale/imx8mn.dtsi > > > > > > > b/arch/arm64/boot/dts/freescale/imx8mn.dtsi > > > > > > > index fd669c0f3fe5..30762eb4f0a7 100644 > > > > > > > --- a/arch/arm64/boot/dts/freescale/imx8mn.dtsi > > > > > > > +++ b/arch/arm64/boot/dts/freescale/imx8mn.dtsi > > > > > > > @@ -246,7 +246,7 @@ aips1: bus@30000000 { > > > > > > > #size-cells = <1>; > > > > > > > ranges; > > > > > > > > > > > > > > - spba: bus@30000000 { > > > > > > > + spba: spba-bus@30000000 { > > > > > > > > > > > > The proper node name is "bus" so basically you introduce wrong > > > > > > name to other problem. Introducing wrong names at least requires a > > comment. > > > > > > > > > > I just noticed that my message was barely understandable... so let me > > fix it: > > > > > > > > > > The proper node name is "bus" so basically you introduce wrong > > > > > name to _fix_ other problem. Introducing wrong names at least > > requires a comment. > > > > > > > > > > > However the actual problem here is not in node names but in > > addresses: > > > > > > > > > > > > aips1: bus@30000000 { > > > > > > spba: bus@30000000 { > > > > > > > > > > > > You have to devices with the same unit address. How do you share > > > > > > the address space? > > > > > > > > > > > > I think this should be rather fixed. > > > > > > > > > > And again, hungry keyboard ate a letter, so: > > > > > > > > > > You have _two_ devices with the same unit address. How do you > > > > > share the address space? > > > > > I think this should be rather fixed. > > > > > > > > > > > > > spba is the first block of aips1 space, so it has same start address > > > > as aips1. > > > > > > The reference manual describes it "Reserved for SDMA2 internal > > > memory", so indeed it is first address but does it have to be mapped? > > > Anyway, why don't you use ranges to remove the conflict? > > > > The IO address space remapping could be a solution but there is another > > problem - the hardware representation in DT does not match what reference > > manual is saying. > > > > The AIPS bus @30000000 has several IPs: > > - SAI2@30020000 > > - ... > > - GPIO1@30200000 > > > > However in DTS you will find additional SPBA bus for 30000000 - 300c0000. > > It's not really the SDMA, as SDMA is at different address. It is rather an > > address space which SDMA should map... but it is not a bus with children. > > Adding spba-bus@30000000 with its children does not look like correct > > representation of HW in DTS. > > > > In the RM, it says AIPS-1 (s_b_1, via SPBA) Glob. Module Enable. > Range is (30000000 - 300FFFFF) No, AIPS-1 is till 303F_FFFF. > > SPBA is a sub-bus under AIPS1. The SAI2@30020000 - ASRC@300c0000 > Are the devices under SPBA bus. Where did you find SPBA bus description in the Reference Manual? Best regards, Krzysztof