Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4075191pxb; Tue, 10 Nov 2020 07:22:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJxrL27ruOdUNs4EaAuMQQHXbzTPRm3iIH9jtJb4zH0IA7cy/A0aZGiAq7AnHWt2eEjYJQQZ X-Received: by 2002:a50:99d6:: with SMTP id n22mr21859648edb.261.1605021774702; Tue, 10 Nov 2020 07:22:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605021774; cv=none; d=google.com; s=arc-20160816; b=tWOe7F/DVp5BJ1I6GUUrhKn8v/oB3pzgX3PTiqD+dhaM+l0twU4p5CBSdz30DJfWAT gX2rsYMiPdyJs6gFA2XYcAMGjRxV0tGgUTx4KSvrPrjgilU4+POwbb4LecXNIHy5WfQD Yjp0jPdpax+FshaqxtjpnfqTVBtgOXvVDnABQz7iE8SkKhrApX5ce8fcURQjKgr7Mv/C o3BAW9+t8XcYeND0qAYjkDExfzgLFP/QFUjKPE9iN7DJn60GVliTZYqLtzrUv/vcXSmF EPjHgIWW4pCRK9SBYWckpqfByexkt3jzZuspmWX07rCPAnpEb3EvFNdfofkd0/4OJfwm 307A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=SMNbGLi2Q4/xVsAortlccPXTjS9R1PWvo/pybl2OsXY=; b=ZuoEK9yAN3ijDkSh59OE6eFuhsycWHZEoT2pGSC43MBWvk5UJpyPJPjRB9R4Vn/sQQ ymYYgcz8L5pjz/M9n61b/Gr8AFNpl9CfxTLapxdR7V0Hf6hm/PzK9xeaSyydF2ADhUBC xcUj7vlo6S2s62OyLGY+cE46bqhLgY8RQzALdOweuQQlQ06l7HkOHnd+PFgdYCJIMWFu gIJYKjrelmCmziwRavl4NMuEUe8ulPZtyV1hRCSOpNBK8XIfUjpwMt2cvUlVvtt/xOLw C2oV5q9nwuFlsdjQvEEP2PjqjymZvQMMmD2a+i94zcQImPEQnzIGwswI8GTlF5Ue+4GE WC3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=e9x07HiS; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v11si9053146ejx.648.2020.11.10.07.22.25; Tue, 10 Nov 2020 07:22:54 -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; dkim=pass header.i=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=e9x07HiS; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731152AbgKJPU5 (ORCPT + 99 others); Tue, 10 Nov 2020 10:20:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730368AbgKJPU4 (ORCPT ); Tue, 10 Nov 2020 10:20:56 -0500 Received: from mail-ed1-x544.google.com (mail-ed1-x544.google.com [IPv6:2a00:1450:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D18EC0613D1 for ; Tue, 10 Nov 2020 07:20:55 -0800 (PST) Received: by mail-ed1-x544.google.com with SMTP id k9so13122948edo.5 for ; Tue, 10 Nov 2020 07:20:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=SMNbGLi2Q4/xVsAortlccPXTjS9R1PWvo/pybl2OsXY=; b=e9x07HiS2tn6aNtybXD/R8/ilWG3oIDrDzv8eVGu9iJgWimMKhpRyjxu1KbktXFGJl 8XN4aXLRAj1mwsrHfiwUgNOr3nZVvomT2R5kYefqfGl5o0Mr9WJj26YSCpasuRCcvM4Y hp5avp96COv8xMdTf2+htoym/F1/W1Sc/azDo86Wt+QM+Ph/sStL1yAT49G/29f9Er3Y UmDlNNCTZT1l4F5S32AjDXyVnTXT74kSVefM9QmezIKdG2l/+Cy6H1kKGNx8sU4qmdv6 XVmaVsOv8C0ebNX3tEq/wZ93ZhYkP3BWVEkUaF7Ic2dU1NnPrSq5uJszykgfVWtnj+gY nT1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=SMNbGLi2Q4/xVsAortlccPXTjS9R1PWvo/pybl2OsXY=; b=Lxys3vIrsX/3s5Cj5KoCZhhrr2DQcO7rz1FUXXISalu8dyqFiXzV/wDlS4oSFjuq02 2vVNytoy8KtwPZ9L5rABAQ6r+qCxiu56cEOQQnkxVUPLGNm1tpE4iJZG/DlH70nlzqio yibDdT5GEqUq3UW21SELpMF2w1bh7NyZrDoWN6vvSwo9BduRglLv6xhURMrBCIPaXL+o LxJ376vRLaE6rAoR0BvXUAJyvuuqmqe8Mk/Nqc8L61kcjo4REeMl61AwwCee96GRZIZQ siXMMWMkvdDS7IwJgfHfzvrti9zcxmswdJfQ3dv8THYMcfq5s2cqzCZasjSZVkkIQub2 P3tQ== X-Gm-Message-State: AOAM530lbiTF1rq8wxvJqdgBVBcXzWMyOum0Lkejn5cZpbF5Xd97Kbh9 9hVEW9ILh26jDCyojmgs0BUaVFkXb+IMh1SA X-Received: by 2002:a05:6402:144b:: with SMTP id d11mr21724069edx.195.1605021653284; Tue, 10 Nov 2020 07:20:53 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id s26sm6133267edy.1.2020.11.10.07.20.51 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 10 Nov 2020 07:20:51 -0800 (PST) Sender: Michal Simek From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu, michal.simek@xilinx.com, git@xilinx.com Cc: Paul Thomas , Krzysztof Kozlowski , Laurent Pinchart , Manish Narani , Rajan Vaja , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH] arm64: zynqmp: Move gic node to axi bus Date: Tue, 10 Nov 2020 16:20:46 +0100 Message-Id: X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The reason for this change is that after change from amba to axi U-Boot started to show error like: Unable to update property /axi/ethernet@ff0e0000:mac-address, err=FDT_ERR_NOTFOUND Unable to update property /axi/ethernet@ff0e0000:local-mac-address, err=FDT_ERR_NOTFOUND The reason is implementation in fdt_nodename_eq_() which is taken from dtc to the kernel and to the U-Boot. Especially DTC commit d2a9da045897 ("libfdt: Make unit address optional for finding nodes") which is in DTC from 2007. The part of commit description is " This is contrary to traditional OF-like finddevice() behaviour, which allows the unit address to be omitted (which is useful when the device name is unambiguous without the address)." The kernel commit dfff9066e60e ("arm64: dts: zynqmp: Rename buses to be align with simple-bus yaml") changed amba-apu/amba to axi@0/axi but fdt_nodename_eq_() detects /axi/ as match for /axi@0/ because of commit above. That's why it easier to fix one DT inside the kernel by moving GIC node from own bus to generic axi bus as is done by others SoCs. This will avoid incorrect match because the unit address is omitted. Reported-by: Paul Thomas Signed-off-by: Michal Simek --- arch/arm64/boot/dts/xilinx/zynqmp.dtsi | 31 ++++++++++---------------- 1 file changed, 12 insertions(+), 19 deletions(-) diff --git a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi index 771f60e0346d..515b15ed634a 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi +++ b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi @@ -182,25 +182,6 @@ fpga_full: fpga-full { ranges; }; - amba_apu: axi@0 { - compatible = "simple-bus"; - #address-cells = <2>; - #size-cells = <1>; - ranges = <0 0 0 0 0xffffffff>; - - gic: interrupt-controller@f9010000 { - compatible = "arm,gic-400"; - #interrupt-cells = <3>; - reg = <0x0 0xf9010000 0x10000>, - <0x0 0xf9020000 0x20000>, - <0x0 0xf9040000 0x20000>, - <0x0 0xf9060000 0x20000>; - interrupt-controller; - interrupt-parent = <&gic>; - interrupts = <1 9 0xf04>; - }; - }; - amba: axi { compatible = "simple-bus"; #address-cells = <2>; @@ -339,6 +320,18 @@ fpd_dma_chan8: dma@fd570000 { power-domains = <&zynqmp_firmware PD_GDMA>; }; + gic: interrupt-controller@f9010000 { + compatible = "arm,gic-400"; + #interrupt-cells = <3>; + reg = <0x0 0xf9010000 0x0 0x10000>, + <0x0 0xf9020000 0x0 0x20000>, + <0x0 0xf9040000 0x0 0x20000>, + <0x0 0xf9060000 0x0 0x20000>; + interrupt-controller; + interrupt-parent = <&gic>; + interrupts = <1 9 0xf04>; + }; + /* LPDDMA default allows only secured access. inorder to enable * These dma channels, Users should ensure that these dma * Channels are allowed for non secure access. -- 2.29.2