Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2149CC7EE2F for ; Mon, 12 Jun 2023 19:52:26 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C091385F13; Mon, 12 Jun 2023 21:52:22 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=collabora.com header.i=@collabora.com header.b="BWwSiOFM"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0FB8086128; Mon, 12 Jun 2023 21:52:18 +0200 (CEST) Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id BF76285DFC for ; Mon, 12 Jun 2023 21:52:14 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=detlev.casanova@collabora.com Received: from arisu.mtl.collabora.ca (mtl.collabora.ca [66.171.169.34]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: detlev) by madras.collabora.co.uk (Postfix) with ESMTPSA id 97E236606EAE; Mon, 12 Jun 2023 20:52:13 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1686599534; bh=1KoC9q8wksK+NCvtxr+KOYg2dtGxuLvfo/qo4pN9tn4=; h=From:To:Cc:Subject:Date:From; b=BWwSiOFML/JNcVe9Im6mMcApG9mamdDUdQuTN7qiivm4R1qQUnOdjJb2EXWn+CqQf YXIzx13HxMYBxpjAvwoO7MUb2bW20vGh6SE1zoneZBvq2+3K6+weAhQcxuyn+c1zr7 vOYDc8nXkDz61U5Kz1eBxD3M0eyduJWWZh53ioxWd+qGJfsjkr19bhCGJ0tsetZTi/ qGvQ2mnpebZ5R3t+0eLSMMBfW3iuyvwjJeIMhNp4v7qQr6BrenWp3ysdnYNb9wi5Qt NyBbLQPzAqMwv4iCuQSvUwDSBJmf25ehWgrzHT0gw4KH09k9XBIpPIfRUcT3ZR3+SU 3aDsMyTTCywvw== From: Detlev Casanova To: u-boot@lists.denx.de Cc: Marek Vasut , Hai Pham , Tam Nguyen , Detlev Casanova Subject: [PATCH v2 0/3] rcar: Select the correct device tree Date: Mon, 12 Jun 2023 15:51:04 -0400 Message-Id: <20230612195107.171748-1-detlev.casanova@collabora.com> X-Mailer: git-send-email 2.39.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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean The R-Car Starter Kit Premier(H3e WS3.0) uses the r8a779m1-ulcb.dtb. As u-boot can detect the board id and revision, let's use this to set the correct device tree for that board when using pxe. Changes since v1: * Also expose the board revision in sysinfo * Set the dtb depending on board revision * Move RCar board IDs definitions to sys_proto.h * fix checkpatch.pl warnings Detlev Casanova (3): renesas: rcar3: Expose the board id in sysinfo renesas: rcar3: Expose the board revision in sysinfo renesas: rcar3: Load the correct device tree .../arm/mach-rmobile/include/mach/sys_proto.h | 21 +++++ board/renesas/ulcb/ulcb.c | 59 ++++++++++++ configs/rcar3_ulcb_defconfig | 1 + drivers/sysinfo/rcar3.c | 90 +++++++++++-------- 4 files changed, 133 insertions(+), 38 deletions(-) -- 2.39.3