From patchwork Tue Dec 3 22:31:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 180750 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp2153134ile; Tue, 3 Dec 2019 14:47:20 -0800 (PST) X-Google-Smtp-Source: APXvYqwsNtpSpUZfEHG2vhIethYafs5a2+XK8JpVNm4xuckpGoaO7guTUwm/dtNBjsfYYa3xZJYH X-Received: by 2002:a05:6808:3c5:: with SMTP id o5mr11004oie.142.1575413240402; Tue, 03 Dec 2019 14:47:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575413240; cv=none; d=google.com; s=arc-20160816; b=Rv7VePY9GyMssv3N2/zi9JmNj7LWFDuazvE59M2MS6dRYzP6G33m310ygSJHoi1GpY OOF0NY3ORh5+Bt8YWnmu7gUtETxwn/RcGKUFMNGS3rBG7mieUraskkNPMaBhv+5/jiBd wyOHH1vGQiYobboPPtINl7Rl5qw/oXAW5NNCVKor5usIIOPm67hCxl8Mshz0Lm7rzdiO q4mwts/7u9E9jBy/yEBm1ITp2+dn3AdJB7TpgaD7TxsuMe2n/LRGwGMXNK3Xz/DPMY9L MNIJXK2GrWgecqk9rpALxgGfCWhM1CecgJng/SkFVRs330KHt09Asd0MBT0OqRylHsqP AR+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=usC9QY10WBBAU0643ziDo3loevkWUFOnugZmyiWqlsY=; b=zvo76DwNrirqCDQe6dg0Fp80so4v2pv2uSX6R8WsT7bZZSjb8HT320MZT2ce/wRmQU KfVf3lE1YH7MBwb+zlPMJQ67UXpF9meP8ZTcWJfmy9wTKNvwmPK1LfDMesUitXOsKT5p xlrrGnMHbALb/Z6V6a+eF2BZfd9WNM7/Owg8KYgIAOCnjrqOlFW2JAFigMWuhPBy4Tgv HkaYPU9Yp33rGogHQtZe7ot5rWzZCiMullJ9YJuEKEsswa24LjcHtWg74s5hew9vxrNb xuXLrdRiAiRhKld4886KZoXdDvIV8yAtouNKJbAqj74hUmdjyiCkBgoYL2oVXFyiVTEf oT6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jh5WenqY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v1si2292960otq.141.2019.12.03.14.47.19; Tue, 03 Dec 2019 14:47:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jh5WenqY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729031AbfLCWrR (ORCPT + 27 others); Tue, 3 Dec 2019 17:47:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:37378 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729284AbfLCWrP (ORCPT ); Tue, 3 Dec 2019 17:47:15 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BBA842084B; Tue, 3 Dec 2019 22:47:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575413234; bh=qxxjYPnh4PQsTATEX/9F4QwWxNBeIk0vs4XPtZpHA2E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jh5WenqYfk6PzSORCcFjFpHfMkxz++upRbcxiI3xBFXBjwOjVoBaLKdtA+2YpvMp8 53E+8hr/our4Cho14CqC4tAP41JibMJutTx85aMx5ujjZWehMYsY7TSp3Nf9IQhmb0 OwKgP42wk4YBQFCrYrwTXoxALa0K+jTgjxOeoDfk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Linus Walleij , Sasha Levin Subject: [PATCH 4.19 051/321] ARM: dts: Fix up SQ201 flash access Date: Tue, 3 Dec 2019 23:31:57 +0100 Message-Id: <20191203223429.817549855@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191203223427.103571230@linuxfoundation.org> References: <20191203223427.103571230@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Linus Walleij [ Upstream commit d88b11ef91b15d0af9c0676cbf4f441a0dff0c56 ] This sets the partition information on the SQ201 to be read out from the RedBoot partition table, removes the static partition table and sets our boot options to mount root from /dev/mtdblock2 where the squashfs+JFFS2 resides. Signed-off-by: Linus Walleij Signed-off-by: Sasha Levin --- arch/arm/boot/dts/gemini-sq201.dts | 37 ++++-------------------------- 1 file changed, 5 insertions(+), 32 deletions(-) -- 2.20.1 diff --git a/arch/arm/boot/dts/gemini-sq201.dts b/arch/arm/boot/dts/gemini-sq201.dts index 3787cf3763c41..e9e4a8a02600b 100644 --- a/arch/arm/boot/dts/gemini-sq201.dts +++ b/arch/arm/boot/dts/gemini-sq201.dts @@ -20,7 +20,7 @@ }; chosen { - bootargs = "console=ttyS0,115200n8"; + bootargs = "console=ttyS0,115200n8 root=/dev/mtdblock2 rw rootfstype=squashfs,jffs2 rootwait"; stdout-path = &uart0; }; @@ -138,37 +138,10 @@ /* 16MB of flash */ reg = <0x30000000 0x01000000>; - partition@0 { - label = "RedBoot"; - reg = <0x00000000 0x00120000>; - read-only; - }; - partition@120000 { - label = "Kernel"; - reg = <0x00120000 0x00200000>; - }; - partition@320000 { - label = "Ramdisk"; - reg = <0x00320000 0x00600000>; - }; - partition@920000 { - label = "Application"; - reg = <0x00920000 0x00600000>; - }; - partition@f20000 { - label = "VCTL"; - reg = <0x00f20000 0x00020000>; - read-only; - }; - partition@f40000 { - label = "CurConf"; - reg = <0x00f40000 0x000a0000>; - read-only; - }; - partition@fe0000 { - label = "FIS directory"; - reg = <0x00fe0000 0x00020000>; - read-only; + partitions { + compatible = "redboot-fis"; + /* Eraseblock at 0xfe0000 */ + fis-index-block = <0x1fc>; }; };