From patchwork Wed May 30 10:11:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 10438333 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2C823601E9 for ; Wed, 30 May 2018 10:12:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1BA58288ED for ; Wed, 30 May 2018 10:12:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 101F6288F1; Wed, 30 May 2018 10:12:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, MAILING_LIST_MULTI autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 54829288ED for ; Wed, 30 May 2018 10:12:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=OPHMXaIIAcknKVqxD/havSvO8SKvKjv8ErJ3bYwbUmo=; b=Dq+ hF1r+CiBLD7lgZt5zrVMlqTt81L43XLFceJ8x8iaDBdWH5QEHfX0l5t1G2WWldKoSufMyblPNKj5d HVh9vuUQPHc7ZQb5kdMsEnda2+MLSEVuEvfhBYlYymiASB0qXkVvKGzNsStGcyTV9qarOwCuVDt+f lPmukxT70pBHTOA4UfJKnWW5j9PdbE1Mzvu4RDzz3/aiURRWhpqsVLD/PsXxzp4GYCM6H5kZTt2q5 KAFeOqapJzpgalFLKu8qWLPCGJPM06FCya/9j2Kux0dOOohkdB8bkdX/2tARKpBwdLDoQ0OZGgjtC /Rlud8NCmlsopNEoNdHIwZmLQTbns7Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fNy58-0004ft-Fb; Wed, 30 May 2018 10:11:50 +0000 Received: from mail-wr0-x244.google.com ([2a00:1450:400c:c0c::244]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fNy55-0004eR-1c for linux-arm-kernel@lists.infradead.org; Wed, 30 May 2018 10:11:48 +0000 Received: by mail-wr0-x244.google.com with SMTP id f16-v6so13590029wrm.3 for ; Wed, 30 May 2018 03:11:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=rM3QnA9hn7eH3F18xbYZHGTHOmKFHpLlQe/bYjyeaes=; b=BY8O/44f2i3tCt5xldYU0eHTU2xj4PocVPZC330m1hjubZQk6wJDdOByBs4UoCSN8b BQ3fTOkjs4sZlYHK6oZBmGr1yLiRjOk5z0G30qbezZqhHAqSa4Ag6tc9q/t+CZb8uJTK Fq9QSykOGAKdjKQs3tIMiTwX+5RZEJJwraG1nCwmyWBeabl2n80xS3Kx6k0GCNyKFXs7 CWSs65XkBISfxa7Bo0hubPt0g/FFio1MLF8ou/oyIIC1E+VBSvtq4AU4H1otAiLpxuAm RVOOKKSzpLmOKaaTGBxuWhhFIzyBKGRf3JMSuWI2ojZE2VTPyRJbCLdz15fSrRmVBz6I Lqgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=rM3QnA9hn7eH3F18xbYZHGTHOmKFHpLlQe/bYjyeaes=; b=ChNitEcJT6cuOO61ERvQui0S0vaQLCbBmBiM/RJGRvSYoumy2rdS9vA58oG1Mr16oB a+z/xGCygU2ozbmUz7Hegt9Eco7QnasbZc/HlshcIDVTcQzunE1rTfckTLbC5GQyIzHe rLSnTaP37ykbUWodfa/6chfAbgiTI71sAq6Smsy8yqSqDYo7ToIEuzH24YHhuC1sSUlY Kow8qZ1x3FhDCp1FEG3kZOyFgkSBxyG7TSkqGYZlp2W2Ns8fGDamqRnZ42UV4mcWn7hi 9e0C3nnTIofmQoCCN2t1OvlV/RsjYjY20URCmZPaSlxBtUGIj5wXS3Gyvu4YpEDvYLV5 xDSw== X-Gm-Message-State: ALKqPwdxFRAk7iW4lTRz4MQx7wMIlna9qhfP77C3wxQa5OGZ+8H3gSxJ 9m99Wc7Blh4YTjn9Fa50v7JQvZE0 X-Google-Smtp-Source: ADUXVKJlR3h0RyQO5fqRfshx23mY03BVHR5/qbEseg3ZUlcmEFa/CPdafIZCNbQZBKOG54gyPzvDLQ== X-Received: by 2002:adf:80d0:: with SMTP id 74-v6mr1666050wrl.273.1527675094718; Wed, 30 May 2018 03:11:34 -0700 (PDT) Received: from localhost.localdomain (cst-prg-9-157.cust.vodafone.cz. [46.135.9.157]) by smtp.gmail.com with ESMTPSA id 109-v6sm33290024wra.32.2018.05.30.03.11.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 May 2018 03:11:34 -0700 (PDT) From: Marek Vasut X-Google-Original-From: Marek Vasut To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: dts: rmobile: Drop MTD partitioning from DT Date: Wed, 30 May 2018 12:11:30 +0200 Message-Id: <20180530101130.3566-1-marek.vasut+renesas@gmail.com> X-Mailer: git-send-email 2.17.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180530_031147_113643_F9AE3142 X-CRM114-Status: GOOD ( 13.54 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Geert Uytterhoeven , Wolfram Sang , linux-renesas-soc@vger.kernel.org, Laurent Pinchart , Simon Horman , Marek Vasut MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Drop the MTD partitioning from DT, since it does not describe HW and to give way to a more flexible kernel command line partition passing. To retain the original partitioning, assure you have enabled CONFIG_MTD_CMDLINE_PARTS in your kernel config and add the following to your kernel command line: lager: mtdparts=spi0.0:256k(loader),4m(user),-(flash) stout: mtdparts=spi0.0:512k(loader),256k(uboot),256k(uboot-env),-(flash) koelsch: mtdparts=spi0.0:512k(loader),5632k(user),-(flash) porter: mtdparts=spi0.0:256k(loader_prg),4m(user_prg),-(flash_fs) wheat: mtdparts=spi0.0:256k(loader),4m(user),-(flash) gose: mtdparts=spi0.0:256k(loader),4m(user),-(flash) alt: mtdparts=spi0.0:256k(loader),256k(system),-(user) silk: mtdparts=spi0.0:256k(loader),4m(user),-(flash) Signed-off-by: Marek Vasut Acked-by: Wolfram Sang Reviewed-by: Geert Uytterhoeven Tested-by: Geert Uytterhoeven on Koelsch Cc: Geert Uytterhoeven Cc: Laurent Pinchart Cc: Simon Horman Cc: Wolfram Sang Cc: linux-renesas-soc@vger.kernel.org --- V2: Drop the @0 anchor from the commit message, use 4m V3: Squash the patches into one as requested by the higher ups --- arch/arm/boot/dts/r8a7790-lager.dts | 21 --------------------- arch/arm/boot/dts/r8a7790-stout.dts | 26 -------------------------- arch/arm/boot/dts/r8a7791-koelsch.dts | 21 --------------------- arch/arm/boot/dts/r8a7791-porter.dts | 21 --------------------- arch/arm/boot/dts/r8a7792-wheat.dts | 21 --------------------- arch/arm/boot/dts/r8a7793-gose.dts | 21 --------------------- arch/arm/boot/dts/r8a7794-alt.dts | 21 --------------------- arch/arm/boot/dts/r8a7794-silk.dts | 21 --------------------- 8 files changed, 173 deletions(-) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index 092610e3f953..7c95e62efd46 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts @@ -710,27 +710,6 @@ spi-cpha; spi-cpol; m25p,fast-read; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "loader"; - reg = <0x00000000 0x00040000>; - read-only; - }; - partition@40000 { - label = "user"; - reg = <0x00040000 0x00400000>; - read-only; - }; - partition@440000 { - label = "flash"; - reg = <0x00440000 0x03bc0000>; - }; - }; }; }; diff --git a/arch/arm/boot/dts/r8a7790-stout.dts b/arch/arm/boot/dts/r8a7790-stout.dts index a13a92c26645..dc65519d53ab 100644 --- a/arch/arm/boot/dts/r8a7790-stout.dts +++ b/arch/arm/boot/dts/r8a7790-stout.dts @@ -211,32 +211,6 @@ spi-cpha; spi-cpol; m25p,fast-read; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "loader"; - reg = <0x00000000 0x00080000>; - read-only; - }; - partition@80000 { - label = "uboot"; - reg = <0x00080000 0x00040000>; - read-only; - }; - partition@c0000 { - label = "uboot-env"; - reg = <0x000c0000 0x00040000>; - read-only; - }; - partition@100000 { - label = "flash"; - reg = <0x00100000 0x03f00000>; - }; - }; }; }; diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts b/arch/arm/boot/dts/r8a7791-koelsch.dts index 8ab793d8b2fd..406d5d29e29c 100644 --- a/arch/arm/boot/dts/r8a7791-koelsch.dts +++ b/arch/arm/boot/dts/r8a7791-koelsch.dts @@ -724,27 +724,6 @@ spi-cpha; spi-cpol; m25p,fast-read; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "loader"; - reg = <0x00000000 0x00080000>; - read-only; - }; - partition@80000 { - label = "user"; - reg = <0x00080000 0x00580000>; - read-only; - }; - partition@600000 { - label = "flash"; - reg = <0x00600000 0x03a00000>; - }; - }; }; }; diff --git a/arch/arm/boot/dts/r8a7791-porter.dts b/arch/arm/boot/dts/r8a7791-porter.dts index a01101b49d99..45d89e064407 100644 --- a/arch/arm/boot/dts/r8a7791-porter.dts +++ b/arch/arm/boot/dts/r8a7791-porter.dts @@ -344,27 +344,6 @@ spi-tx-bus-width = <4>; spi-rx-bus-width = <4>; m25p,fast-read; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "loader_prg"; - reg = <0x00000000 0x00040000>; - read-only; - }; - partition@40000 { - label = "user_prg"; - reg = <0x00040000 0x00400000>; - read-only; - }; - partition@440000 { - label = "flash_fs"; - reg = <0x00440000 0x03bc0000>; - }; - }; }; }; diff --git a/arch/arm/boot/dts/r8a7792-wheat.dts b/arch/arm/boot/dts/r8a7792-wheat.dts index db01de7a3811..93f78716225a 100644 --- a/arch/arm/boot/dts/r8a7792-wheat.dts +++ b/arch/arm/boot/dts/r8a7792-wheat.dts @@ -217,27 +217,6 @@ spi-cpol; spi-cpha; m25p,fast-read; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "loader"; - reg = <0x00000000 0x00040000>; - read-only; - }; - partition@40000 { - label = "user"; - reg = <0x00040000 0x00400000>; - read-only; - }; - partition@440000 { - label = "flash"; - reg = <0x00440000 0x03bc0000>; - }; - }; }; }; diff --git a/arch/arm/boot/dts/r8a7793-gose.dts b/arch/arm/boot/dts/r8a7793-gose.dts index aa209f6e5d71..b2dd54fbe40c 100644 --- a/arch/arm/boot/dts/r8a7793-gose.dts +++ b/arch/arm/boot/dts/r8a7793-gose.dts @@ -676,27 +676,6 @@ spi-cpol; spi-cpha; m25p,fast-read; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "loader"; - reg = <0x00000000 0x00040000>; - read-only; - }; - partition@40000 { - label = "user"; - reg = <0x00040000 0x00400000>; - read-only; - }; - partition@440000 { - label = "flash"; - reg = <0x00440000 0x03bc0000>; - }; - }; }; }; diff --git a/arch/arm/boot/dts/r8a7794-alt.dts b/arch/arm/boot/dts/r8a7794-alt.dts index e17027532941..1d044ed598f3 100644 --- a/arch/arm/boot/dts/r8a7794-alt.dts +++ b/arch/arm/boot/dts/r8a7794-alt.dts @@ -419,26 +419,5 @@ spi-cpol; spi-cpha; m25p,fast-read; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "loader"; - reg = <0x00000000 0x00040000>; - read-only; - }; - partition@40000 { - label = "system"; - reg = <0x00040000 0x00040000>; - read-only; - }; - partition@80000 { - label = "user"; - reg = <0x00080000 0x03f80000>; - }; - }; }; }; diff --git a/arch/arm/boot/dts/r8a7794-silk.dts b/arch/arm/boot/dts/r8a7794-silk.dts index 7808aaee6644..b8163a0e2190 100644 --- a/arch/arm/boot/dts/r8a7794-silk.dts +++ b/arch/arm/boot/dts/r8a7794-silk.dts @@ -444,27 +444,6 @@ spi-cpol; spi-cpha; m25p,fast-read; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "loader"; - reg = <0x00000000 0x00040000>; - read-only; - }; - partition@40000 { - label = "user"; - reg = <0x00040000 0x00400000>; - read-only; - }; - partition@440000 { - label = "flash"; - reg = <0x00440000 0x03bc0000>; - }; - }; }; };