{"id":2233419,"url":"http://patchwork.ozlabs.org/api/1.1/covers/2233419/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/cover/20260506123507.2081751-1-mwalle@kernel.org/","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/1.1/projects/18/?format=json","name":"U-Boot","link_name":"uboot","list_id":"u-boot.lists.denx.de","list_email":"u-boot@lists.denx.de","web_url":null,"scm_url":null,"webscm_url":null},"msgid":"<20260506123507.2081751-1-mwalle@kernel.org>","date":"2026-05-06T12:34:09","name":"[v2,00/11] Generic powerpc fixes and NXP board cleanup","submitter":{"id":86646,"url":"http://patchwork.ozlabs.org/api/1.1/people/86646/?format=json","name":"Michael Walle","email":"mwalle@kernel.org"},"mbox":"http://patchwork.ozlabs.org/project/uboot/cover/20260506123507.2081751-1-mwalle@kernel.org/mbox/","series":[{"id":502979,"url":"http://patchwork.ozlabs.org/api/1.1/series/502979/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/list/?series=502979","date":"2026-05-06T12:34:09","name":"Generic powerpc fixes and NXP board cleanup","version":2,"mbox":"http://patchwork.ozlabs.org/series/502979/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/covers/2233419/comments/","headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=UKYdrJJf;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)","phobos.denx.de;\n dmarc=pass (p=quarantine dis=none) header.from=kernel.org","phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de","phobos.denx.de;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.b=\"UKYdrJJf\";\n\tdkim-atps=neutral","phobos.denx.de; dmarc=pass (p=quarantine dis=none)\n header.from=kernel.org","phobos.denx.de;\n spf=pass smtp.mailfrom=mwalle@kernel.org"],"Received":["from phobos.denx.de (phobos.denx.de\n [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g9ZcW6F6jz1yJq\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 06 May 2026 22:36:11 +1000 (AEST)","from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 659A8848A1;\n\tWed,  6 May 2026 14:36:03 +0200 (CEST)","by phobos.denx.de (Postfix, from userid 109)\n id 251B7848A1; Wed,  6 May 2026 14:36:02 +0200 (CEST)","from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id AB57C848BC\n for <u-boot@lists.denx.de>; Wed,  6 May 2026 14:35:59 +0200 (CEST)","from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58])\n by tor.source.kernel.org (Postfix) with ESMTP id 7FEF960103;\n Wed,  6 May 2026 12:35:58 +0000 (UTC)","by smtp.kernel.org (Postfix) with ESMTPSA id 6F7B7C2BCC4;\n Wed,  6 May 2026 12:35:54 +0000 (UTC)"],"X-Spam-Checker-Version":"SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,\n DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,\n RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham\n autolearn_force=no version=3.4.2","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n s=k20201202; t=1778070958;\n bh=4V28DwE44FdMXc76T54UDs5c47xAvux45jGfM+/Tpl4=;\n h=From:To:Cc:Subject:Date:From;\n b=UKYdrJJf7TdvEpVdWMu/VPadDH7WZRcnCu/FHApSKdYcw5iJ7/Ez4xnaH88AEYxD2\n gt/H1EWMmMI9ccEUBb1MKmVp69lqHNtzOqDMPZ8h98/KoXUsiXYAnrcu/lpVltXDZC\n egc8WHvx5vR7sXCI6AQr474iQLQsN/tfy+UAwG0lB7jdnKwWNnGTLh3k3U1wA5ExpK\n j0rr/avfYMnohyNWPmwd7ybm3WWj+RDVuNTqbW6071oECQg3lwfp6fDvAyuauTELH7\n unTJso2Py5WeMLpbrO9jm3kzGeIHf9k4vLrS+x/s6LAJIXz/zOCbwkxxXjWK/ej0z0\n /eNUGePXTNyAw==","From":"Michael Walle <mwalle@kernel.org>","To":"=?utf-8?q?Marek_Beh=C3=BAn?= <kabel@kernel.org>,\n Tom Rini <trini@konsulko.com>, Pramod Kumar <pramod.kumar_1@nxp.com>,\n Vladimir Oltean <olteanv@gmail.com>, Alison Wang <alison.wang@nxp.com>,\n Tang Yuantian <andy.tang@nxp.com>, Mingkai Hu <mingkai.hu@nxp.com>,\n Priyanka Jain <priyanka.jain@nxp.com>, Wasim Khan <wasim.khan@nxp.com>,\n Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>,\n TsiChung Liew <Tsi-Chung.Liew@nxp.com>, Stefano Babic <sbabic@nabladev.com>,\n Fabio Estevam <festevam@gmail.com>,\n \"NXP i . MX U-Boot Team\" <uboot-imx@nxp.com>, Peng Fan <peng.fan@nxp.com>,\n Shengzhou Liu <Shengzhou.Liu@nxp.com>","Cc":"Tomas Alvarez Vanoli <tomas.alvarez-vanoli@hitachienergy.com>,\n Jerome Forissier <jerome.forissier@arm.com>, u-boot@lists.denx.de,\n Michael Walle <mwalle@kernel.org>","Subject":"[PATCH v2 00/11] Generic powerpc fixes and NXP board cleanup","Date":"Wed,  6 May 2026 14:34:09 +0200","Message-ID":"<20260506123507.2081751-1-mwalle@kernel.org>","X-Mailer":"git-send-email 2.47.3","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.39","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<https://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>","X-Virus-Scanned":"clamav-milter 0.103.8 at phobos.denx.de","X-Virus-Status":"Clean"},"content":"While working on an ancient P2041 based board, I've encountered\nseveral issues.\n\ncpu_init_r wasn't called anymore, but u-boot was still somehow\nworking. CAAM was reading/writing on address 0 because pamu_init()\nis never called if secure boot isn't enabled.\n\nSince legacy ethernet was removed, board_eth_init() and\nfdt_fixup_board_enet() won't be called anymore, but the functions\nare still defined. I've just removed the ones for the NXP boards,\nthough I think the code there did something useful. But given that\nit wasn't called for two years now and nobody complained, it can't\nbe that important.\n\nLastly, because I have a p2041rdb, move that to a upstream DTS.\nKeep in mind, that the uboot dts doesn't define an UART, so any\noutput was broken since the move to DM provided serial support.\n\nv2:\n - new patch\n   p2041rdb: convert README to rst\n - fix build errors, tested all commits with buildman\n\nMichael Walle (11):\n  powerpc: fix call to cpu_init_r\n  caam: don't write memory at 0 on PPC\n  spi: fsl_espi: fix read transactions\n  boards: remove dead fman code\n  boards/nxp: remove board_eth_init()\n  boards/nxp: remove empty fdt_fixup_board_enet()\n  p2041rdb: use the upstream device tree\n  p2041rdb: support SDcard boot\n  p2041rdb: update README and fix typos\n  p2041rdb: remove NAND defconfig\n  p2041rdb: convert README to rst\n\n arch/powerpc/cpu/mpc85xx/cpu_init.c           |   6 +-\n arch/powerpc/dts/Makefile                     |   1 -\n arch/powerpc/dts/p2041.dtsi                   | 138 ----\n arch/powerpc/dts/p2041rdb-u-boot.dtsi         |  19 +\n arch/powerpc/dts/p2041rdb.dts                 | 127 ---\n arch/powerpc/dts/p2041si-post.dtsi            |  43 --\n board/nxp/ls1012afrdm/eth.c                   |  10 -\n board/nxp/ls1012ardb/eth.c                    |  12 -\n board/nxp/ls1021atsn/ls1021atsn.c             |   5 -\n board/nxp/ls1021atwr/ls1021atwr.c             |   5 -\n board/nxp/ls1028a/ls1028a.c                   |   5 -\n board/nxp/ls1043aqds/Makefile                 |   3 -\n board/nxp/ls1043aqds/eth.c                    | 501 ------------\n board/nxp/ls1043aqds/ls1043aqds.c             |   4 -\n board/nxp/ls1043ardb/Makefile                 |   1 -\n board/nxp/ls1043ardb/eth.c                    |  77 --\n board/nxp/ls1046afrwy/eth.c                   |  57 --\n board/nxp/ls1046aqds/Makefile                 |   3 -\n board/nxp/ls1046aqds/eth.c                    | 431 -----------\n board/nxp/ls1046aqds/ls1046aqds.c             |   4 -\n board/nxp/ls1046ardb/eth.c                    |  71 --\n board/nxp/ls2080ardb/eth_ls2080rdb.c          |  19 -\n board/nxp/lx2160a/eth_lx2160aqds.c            |  18 -\n board/nxp/lx2160a/eth_lx2160ardb.c            |  17 -\n board/nxp/lx2160a/eth_lx2162aqds.c            |  18 -\n board/nxp/m5253demo/m5253demo.c               |   7 -\n board/nxp/mx6sxsabreauto/mx6sxsabreauto.c     |  52 --\n board/nxp/mx6sxsabresd/mx6sxsabresd.c         |  78 --\n board/nxp/p2041rdb/Makefile                   |   1 -\n board/nxp/p2041rdb/README                     | 138 ----\n board/nxp/p2041rdb/README.rst                 | 147 ++++\n board/nxp/p2041rdb/eth.c                      | 210 -----\n board/nxp/p2041rdb/p2041rdb_rcw_sd.cfg        |  11 +\n ...{rcw_p2041rdb.cfg => p2041rdb_rcw_spi.cfg} |   0\n board/nxp/t102xrdb/Makefile                   |   1 -\n board/nxp/t102xrdb/eth_t102xrdb.c             | 149 ----\n board/nxp/t102xrdb/t102xrdb.c                 |   1 -\n board/nxp/t102xrdb/t102xrdb.h                 |   1 -\n board/nxp/t104xrdb/Makefile                   |   1 -\n board/nxp/t104xrdb/eth.c                      |  91 ---\n board/nxp/t104xrdb/t104xrdb.h                 |   1 -\n board/nxp/t208xqds/Makefile                   |   2 +-\n board/nxp/t208xqds/eth_t208xqds.c             | 723 ------------------\n board/nxp/t208xqds/t208xqds.c                 |   1 -\n board/nxp/t208xqds/t208xqds.h                 |   1 -\n board/nxp/t208xrdb/eth_t208xrdb.c             |   5 -\n board/nxp/t208xrdb/t208xrdb.c                 |   1 -\n board/nxp/t208xrdb/t208xrdb.h                 |   1 -\n board/nxp/t4rdb/Makefile                      |   1 -\n board/nxp/t4rdb/eth.c                         | 152 ----\n board/nxp/t4rdb/t4240rdb.c                    |   1 -\n board/nxp/t4rdb/t4rdb.h                       |   1 -\n common/board_r.c                              |   2 +-\n configs/P2041RDB_NAND_defconfig               | 117 ---\n configs/P2041RDB_SDCARD_defconfig             |   6 +-\n configs/P2041RDB_SPIFLASH_defconfig           |   6 +-\n configs/P2041RDB_defconfig                    |   4 +-\n drivers/spi/fsl_espi.c                        |   6 +-\n include/configs/P2041RDB.h                    |   2 +\n 59 files changed, 200 insertions(+), 3316 deletions(-)\n delete mode 100644 arch/powerpc/dts/p2041.dtsi\n create mode 100644 arch/powerpc/dts/p2041rdb-u-boot.dtsi\n delete mode 100644 arch/powerpc/dts/p2041rdb.dts\n delete mode 100644 arch/powerpc/dts/p2041si-post.dtsi\n delete mode 100644 board/nxp/ls1043aqds/eth.c\n delete mode 100644 board/nxp/ls1043ardb/eth.c\n delete mode 100644 board/nxp/ls1046aqds/eth.c\n delete mode 100644 board/nxp/p2041rdb/README\n create mode 100644 board/nxp/p2041rdb/README.rst\n delete mode 100644 board/nxp/p2041rdb/eth.c\n create mode 100644 board/nxp/p2041rdb/p2041rdb_rcw_sd.cfg\n rename board/nxp/p2041rdb/{rcw_p2041rdb.cfg => p2041rdb_rcw_spi.cfg} (100%)\n delete mode 100644 board/nxp/t102xrdb/eth_t102xrdb.c\n delete mode 100644 board/nxp/t104xrdb/eth.c\n delete mode 100644 board/nxp/t208xqds/eth_t208xqds.c\n delete mode 100644 board/nxp/t4rdb/eth.c\n delete mode 100644 configs/P2041RDB_NAND_defconfig"}