From patchwork Sun May 14 09:22:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 93669 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp6206486vqo; Sun, 14 May 2023 02:38:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5WpW5prgf2llz79veAx588y+LUL5JNK5NJvi7ovl7iIhl8SoSWmqPom06R6E8Vylwffb7k X-Received: by 2002:a17:90a:2f05:b0:250:3652:55bd with SMTP id s5-20020a17090a2f0500b00250365255bdmr34844129pjd.14.1684057120139; Sun, 14 May 2023 02:38:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684057120; cv=none; d=google.com; s=arc-20160816; b=hY9saaL/mHkQq0NiXTeZjNFpmKDAeyAY/z63SWiAxlXDzWxiK6uC/yaFQyHuBhIO1b fuPfHabDR+SrgC31a9hdKknOM16OfKdhWhy6shm51Jg+Pu4OMW/9sRwz0+FVbyYzSbR4 K0SpE3nT+/IThbiWTyxOM0cpCRnFx+PGpUtPT6gwwprxvkLf87973P4TVyYKpLmwNmRE 80aabv8hQhw9Sz7Cb/hTSHCujKkb+oD9WA2ArjWGUHlIQh/eO5GLd0YBJjaO5Ln/iYHC p8l+QDprhFeRNAf/KuJ5zQLdR0RsyEXn5sQss0n6YQ/sN2cVCsivcTVnu6XRZ44oRBnY pnGA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=QyJZkM092es5SuKaPv1VdYj7Twe8UaB3b6Uh7zMaOf0=; b=QZr6zbaXmiBrcYsqw8n9ZCIQu0ytMsaI5WOTb83ACqUVcb6cw0h5vIVhOZnetezSkw cFH6Vc0vU6UlPR4JJeGYmgTl9iLvAM9mFYpYDh39se8vEAE4565FKHLyK/q+ko09/n4K I75hiUQ/UmNUPcsdJyUAA+hcGj3aGU3g9Q/A07YooIKEfEUGbXA95rr0bu4kyRBn69pk 3MtstTJ8+nYbCqLk9zF913v0VvIy3joq2RC5DRsyxMh4z73wLmhl3OIutAF9/7ivgFGJ 8TmBS+293HBLHXXTn3e4sap7jS5vwtczrZJYdUKwMtthnC6sPjQDLFD3kiZ0CZ3rGXT6 aBgQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u64-20020a17090a51c600b0024e2d70d28asi28857603pjh.140.2023.05.14.02.38.24; Sun, 14 May 2023 02:38:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236997AbjENJXe (ORCPT + 99 others); Sun, 14 May 2023 05:23:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233239AbjENJXR (ORCPT ); Sun, 14 May 2023 05:23:17 -0400 Received: from mail11.truemail.it (mail11.truemail.it [217.194.8.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B01A51FF6; Sun, 14 May 2023 02:23:14 -0700 (PDT) Received: from francesco-nb.pivistrello.it (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id 21D9421326; Sun, 14 May 2023 11:23:12 +0200 (CEST) From: Francesco Dolcini To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Cc: Andrejs Cainikovs , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Shawn Guo , Rob Herring , Krzysztof Kozlowski , Sascha Hauer , Marcel Ziswiler , Francesco Dolcini Subject: [PATCH v2 4/4] arm64: dts: colibri-imx8x: delete adc1 and dsp Date: Sun, 14 May 2023 11:22:46 +0200 Message-Id: <20230514092246.9741-5-francesco@dolcini.it> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230514092246.9741-1-francesco@dolcini.it> References: <20230514092246.9741-1-francesco@dolcini.it> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765861878643571630?= X-GMAIL-MSGID: =?utf-8?q?1765861878643571630?= From: Andrejs Cainikovs i.MX8, i.MX8X, i.MX8XP and i.MX8XL SOC device trees are all based on imx8-ss-*.dtsi files. For i.MX8X and i.MX8XP these device trees should be updated with some peripherals removed or updated, similar to i.MX8XL (imx8dxl-ss-*.dtsi files). However, it looks like only i.MX8 and i.MX8XL are up to date, but for i.MX8X and i.MX8XP some of the peripherals got inherited from imx8-ss-*.dtsi files, but in reality they are not present on SOC. As a result, during resource partition ownership check U-Boot receives messages from SCU firmware about these resources not owned by boot partition. In reality, these resources are not owned by anyone, as they simply does not exist, but are defined in Linux device tree. This change removes those peripherals, which are listed during U-Boot resource partition ownership check as warnings: ## Flattened Device Tree blob at 9d400000 Booting using the fdt blob at 0x9d400000 Loading Device Tree to 00000000fd652000, end 00000000fd67efff ... OK Disable clock-controller@59580000 rsrc 512 not owned Disable clock-controller@5ac90000 rsrc 102 not owned Starting kernel ... Fixes: ba5a5615d54f ("arm64: dts: freescale: add initial support for colibri imx8x") Signed-off-by: Andrejs Cainikovs Signed-off-by: Francesco Dolcini --- v2: Fixed patch From: --- arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi b/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi index b0d6f632622c..49d105eb4769 100644 --- a/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi @@ -769,3 +769,10 @@ pinctrl_wifi: wifigrp { fsl,pins = ; }; }; + +/* Delete peripherals which are not present on SOC, but are defined in imx8-ss-*.dtsi */ + +/delete-node/ &adc1; +/delete-node/ &adc1_lpcg; +/delete-node/ &dsp; +/delete-node/ &dsp_lpcg;