Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1016847pxv; Thu, 22 Jul 2021 19:27:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuddxJy+Bn3LANjywWcZL+1zLs3QS2182tVyZvNSOHvjpR/1juZ5Szxe6pJMfcc38vl/T4 X-Received: by 2002:a92:d790:: with SMTP id d16mr1994487iln.185.1627007237312; Thu, 22 Jul 2021 19:27:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627007237; cv=none; d=google.com; s=arc-20160816; b=a078ntlaK2RCTtl3HScJ+3re2+3X4FEZq5kbN4YV4b1RSZKgqpQuhJItyhtPS3HrXU +hLWeqvKNKYfKjkpx1CSDygOjaGOVVs14BQPOLQcyI/dyoA0tarpemnpUPAEq1wZYqEN NDPUJ9/vFe2XpZCEOWkw3uGBZyLq5FTOmBYx3aQJix/zlKrh+QMnfOwOHnxBV4z2DWDl fu40w785IQ0UsOiwpsQrKkdgAfmD8HxvPrOORwHlUGuE/9vrBGeOoR8XQ5QJO3PfMb3r F8JdVgtfUuRDYSuCjOuwbdEv345qC5U37isduI4ylVR09iucK+qbV4T08uO1lBaxn50h XBtQ== 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 :dkim-signature:dkim-signature; bh=r3qhoAmAxV9Zf2wb/yIVFCBti1RuuU/Z06V8xV+UraI=; b=LvH0WuMGqmgsxav9Hptsqv0TsagJw2HuuDWrieHH/dQzG5Z39RzzzBYQOyG0a/iMpr TaD7GnoW8ibB/fE5bEhexAvBQeIPYT0zdlV0GVwrk2yqoXCZ5aW2QSfCouvIvfLJ0Pcb jpo80l63qeMlGfdFJieVvDz9NXLN2InAkDGFJENtAwirtP81eSld7ScqWa1yEA4RdT0s 12fPf643e2NAE4uFo58Hkh9JmEF+a8lk1CMZv1HIyZc8XNX16yw8kqIuoTECcd7Oyyuh D8KNLeIGlFJkna/X0NEUvETRCUmBBonxAS/Q88X+yPNJ1GIjSG6Qgnay5WYNDZoOWTHl DGdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm2 header.b=p5ZOJ7D+; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=DLFit7QT; 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 y8si14509601iov.46.2021.07.22.19.27.05; Thu, 22 Jul 2021 19:27:17 -0700 (PDT) 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=@flygoat.com header.s=fm2 header.b=p5ZOJ7D+; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=DLFit7QT; 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 S233253AbhGWBpf (ORCPT + 99 others); Thu, 22 Jul 2021 21:45:35 -0400 Received: from new4-smtp.messagingengine.com ([66.111.4.230]:52653 "EHLO new4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233193AbhGWBpe (ORCPT ); Thu, 22 Jul 2021 21:45:34 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.nyi.internal (Postfix) with ESMTP id 412245808F4; Thu, 22 Jul 2021 22:26:08 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Thu, 22 Jul 2021 22:26:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm2; bh=r3qhoAmAxV9Zf 2wb/yIVFCBti1RuuU/Z06V8xV+UraI=; b=p5ZOJ7D+0J/Gw2/dghARH2KUv0XUm AFwIb4l/P3CGr6EVf2Z5jo1lOKfElwpdNZuMaWCuT/Gw3jehGPTsM/5qMPrvtM5A HLwliLFoeIHW5CJJe3JlKYadjdeBV6s+nDnLMi1Pu5Nx2oOwJEj204x1XBF886gO 3XxtBFEhWfNkFOzTEZAY3cvo0jJjKkIKeOCeys091ajFHCAkz9QGpaC+tWhfvPLF igUn2SKET18MtYMw5GTYR+cBC7h5klENOp9IMQYc7rHyjowPQtN2S+NE9iq4Ogha iJMTD5NbYaJf5LDMhVaxAGE8HyoFiX5FiKW1HRnkKBPjr2tdzsR8aa/rg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=r3qhoAmAxV9Zf2wb/yIVFCBti1RuuU/Z06V8xV+UraI=; b=DLFit7QT Tshudkr7nOp6t1VqGyb1OZnnniS8Niq4idE6tLB3I265Zrf3gxmjAH6hvkSPy70o IESYRL9D1VTGit1tMFZaWzyxpcULBF3OnIR4Hhv4/GoyDKQFtS8UzZsE5Ngh4dTr J7sz9yNjuFtAxtSyHnrHzDy9qOXGfXO27WiYQKM/gfXatO2aCY3vKG9RLOF0Xhue Vmxhg9ECDMbyc3zRgN//nK0q8RC4SzdbCfq8I+VG9XIhIdAgu9UlCc0dvWYG4xPk oS7iy6+m40fjjSfrBSE5jLTiWdw6fTvUzXXy8YPiHu9rdqgdBMyzZ1QJHVrm7FY3 H/vVhWRht2cvCg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrfeejgdehgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffojghfggfgsedtkeertd ertddtnecuhfhrohhmpeflihgrgihunhcujggrnhhguceojhhirgiguhhnrdihrghnghes fhhlhihgohgrthdrtghomheqnecuggftrfgrthhtvghrnheplefghfdtjeeftdfhtdefud dtleevveehteetffdvuefgtdejffegkeeigfdufeelnecuffhomhgrihhnpehithhsrdhs sgenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehjih grgihunhdrhigrnhhgsehflhihghhorghtrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 22 Jul 2021 22:26:03 -0400 (EDT) From: Jiaxun Yang To: linux-mips@vger.kernel.org Cc: tsbogend@alpha.franken.de, mturquette@baylibre.com, daniel.lezcano@linaro.org, linus.walleij@linaro.org, vkoul@kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, Jiaxun Yang Subject: [PATCH v4 1/9] MIPS: generic: Allow generating FIT image for Marduk board Date: Fri, 23 Jul 2021 10:25:35 +0800 Message-Id: <20210723022543.4095-2-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210723022543.4095-1-jiaxun.yang@flygoat.com> References: <20210723022543.4095-1-jiaxun.yang@flygoat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Marduk is based on IMG pistachio SoC. The platform is using MIPS UHI booting protocol and does have a proper devicetree implement, thus it could be a part of generic kernel. Signed-off-by: Jiaxun Yang --- arch/mips/boot/dts/Makefile | 1 + arch/mips/boot/dts/img/Makefile | 2 ++ arch/mips/generic/Kconfig | 6 ++++++ arch/mips/generic/Platform | 1 + arch/mips/generic/board-marduk.its.S | 22 ++++++++++++++++++++++ 5 files changed, 32 insertions(+) create mode 100644 arch/mips/generic/board-marduk.its.S diff --git a/arch/mips/boot/dts/Makefile b/arch/mips/boot/dts/Makefile index 60bd7d2a9ad8..188301164d9e 100644 --- a/arch/mips/boot/dts/Makefile +++ b/arch/mips/boot/dts/Makefile @@ -2,6 +2,7 @@ subdir-$(CONFIG_BMIPS_GENERIC) += brcm subdir-$(CONFIG_CAVIUM_OCTEON_SOC) += cavium-octeon subdir-$(CONFIG_MACH_PISTACHIO) += img +subdir-$(CONFIG_FIT_IMAGE_FDT_MARDUK) += img subdir-$(CONFIG_FIT_IMAGE_FDT_BOSTON) += img subdir-$(CONFIG_MACH_INGENIC) += ingenic subdir-$(CONFIG_LANTIQ) += lantiq diff --git a/arch/mips/boot/dts/img/Makefile b/arch/mips/boot/dts/img/Makefile index 441a3c16efb0..24f6bbeadd48 100644 --- a/arch/mips/boot/dts/img/Makefile +++ b/arch/mips/boot/dts/img/Makefile @@ -1,5 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 dtb-$(CONFIG_FIT_IMAGE_FDT_BOSTON) += boston.dtb +dtb-$(CONFIG_FIT_IMAGE_FDT_MARDUK) += pistachio_marduk.dtb + dtb-$(CONFIG_MACH_PISTACHIO) += pistachio_marduk.dtb obj-$(CONFIG_MACH_PISTACHIO) += pistachio_marduk.dtb.o diff --git a/arch/mips/generic/Kconfig b/arch/mips/generic/Kconfig index 657dd93c5e76..7dc5b3821cc6 100644 --- a/arch/mips/generic/Kconfig +++ b/arch/mips/generic/Kconfig @@ -58,6 +58,12 @@ config FIT_IMAGE_FDT_BOSTON enable this if you wish to boot on a MIPS Boston board, as it is expected by the bootloader. +config FIT_IMAGE_FDT_MARDUK + bool "Include FDT for IMG Pistachio Marduk (CI40) boards" + help + Enable this to include the FDT for the IMG Pistachio Marduk (CI40) + from Imagination Technologies in the FIT kernel image. + config FIT_IMAGE_FDT_NI169445 bool "Include FDT for NI 169445" help diff --git a/arch/mips/generic/Platform b/arch/mips/generic/Platform index b871af16b5b6..e1abc113b409 100644 --- a/arch/mips/generic/Platform +++ b/arch/mips/generic/Platform @@ -24,3 +24,4 @@ its-$(CONFIG_FIT_IMAGE_FDT_LUTON) += board-luton.its.S its-$(CONFIG_FIT_IMAGE_FDT_JAGUAR2) += board-jaguar2.its.S its-$(CONFIG_FIT_IMAGE_FDT_SERVAL) += board-serval.its.S its-$(CONFIG_FIT_IMAGE_FDT_XILFPGA) += board-xilfpga.its.S +its-$(CONFIG_FIT_IMAGE_FDT_MARDUK) += board-marduk.its.S diff --git a/arch/mips/generic/board-marduk.its.S b/arch/mips/generic/board-marduk.its.S new file mode 100644 index 000000000000..4f633794db90 --- /dev/null +++ b/arch/mips/generic/board-marduk.its.S @@ -0,0 +1,22 @@ +/ { + images { + fdt-marduk { + description = "img,pistachio-marduk Device Tree"; + data = /incbin/("boot/dts/img/pistachio_marduk.dtb"); + type = "flat_dt"; + arch = "mips"; + compression = "none"; + hash { + algo = "sha1"; + }; + }; + }; + + configurations { + conf-marduk { + description = "Marduk Linux kernel"; + kernel = "kernel"; + fdt = "fdt-marduk"; + }; + }; +}; -- 2.32.0