From patchwork Mon May 7 08:35:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 909598 X-Patchwork-Delegate: blogic@openwrt.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="K6N8uhPz"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="c4/yEMG5"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40fbZc5YWnz9s27 for ; Mon, 7 May 2018 18:36:56 +1000 (AEST) 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:MIME-Version:Message-Id:Date: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=h11abfVG3dZ3Tbe1f9pla0nFek5hHaVzDqfjQWwHM8M=; b=K6N8uhPzNosLLc inK2i6eleJjnBmNK2YZaDU3VgYUbxnGkhS87j5EFfkomq9RfZlDzIM3mZs4AIG3ZH0qVWvwNnUMIN wBV/qmusHEiWOULf1xzYUyav0kUhtg6FoqbVx8TL8QP22EBJJuPEqqVdR6aYqLVm0sCLOIaluhpcB h0PJdh4zPnTlhvtoy1r3v8CevPtFJIAovOH49TZt9GpFOZ9UAxkkaDg68vkqzWp9ttHLZos0bJxq2 LHd6lt432M4mB/ky0bYOrlo8LAuGf+860pIgmvml5XZJ5KmX6DkoI8f16orwZPGAwj9xwdbdisSq9 NBUL8ILc4ZKop3Mx068A==; 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 1fFbde-0000Qg-IZ; Mon, 07 May 2018 08:36:54 +0000 Received: from mail-lf0-x241.google.com ([2a00:1450:4010:c07::241]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fFbda-0000Ps-QD for lede-dev@lists.infradead.org; Mon, 07 May 2018 08:36:52 +0000 Received: by mail-lf0-x241.google.com with SMTP id t129-v6so47054lff.3 for ; Mon, 07 May 2018 01:36:40 -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:mime-version :content-transfer-encoding; bh=+/Cfi/jsZMJ1kCSAUZKjueypwLdJdttOnbQX0rqj97I=; b=c4/yEMG5e3lEbfla5UWwljGvhRY29g433FlqxIrGtqRYbuLOpzg7iYCJNCgcR/S6BI yoR+ihq3UvncBc4GqK7a/gb8P5JlBmwUzNX0euPkEnGNvDloSubeT8npgU0h/GTpmYLx JDqFBGjYWDj+oDACTK0azNOs3w+82ef3B6ML/8U+ao9ykQF4UMtixykTeZO5EFlXebLk nOqYA0XNsKA7akzBra7bi3yzD6zJs+sMNC8JJg5rSWFda4/+7Epig5npc8nflp7UGrrK 0MmMOyQ1LoxHBqi7uaCLo2wzkntbPWmvKNtohB1kDHI3zT8GFaqf5bLlZVVpeXhpWIJJ TNcw== 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:mime-version :content-transfer-encoding; bh=+/Cfi/jsZMJ1kCSAUZKjueypwLdJdttOnbQX0rqj97I=; b=jrKKRTK8J2SDu7oyIHuwO6s1m8Gl7bGcFaGk0sqbaOB6jkzRXFexBk8u0P8l0AMd09 fsx1T4WtBeLciBKztSN85AOSQSi98Rxpsqm9EJ3/MOnOGgHM0NWFOQjVoS3ujS+cIeBy y9bAdMm+iwT/h3d46nPw/PmMwlLnNwQENkLdjXZ8BAnHJRa16eoooc11txcLKjLZ46z/ Xa34kaZp+EHndSBHt1bND0KQxHRgJrxwLYjJnJNyc0cx+MrPaI4AlOz+r7B37W1ILaWE ZM97B3aFskwsym/WG8Bu7JhHXXll/JClYLYj9XUXJXjpsAgeRPdbPzJsiPidXFg5POLL cl1A== X-Gm-Message-State: ALQs6tC+bOdvBsaHoHxVVYETaD4MlLMRJeAYcLeogTIrrDVvXTG+67x1 q9yDJ9gzqJ2XxrgrYi+c58LfmQ== X-Google-Smtp-Source: AB8JxZqjZiQACeMS7IYKHVOQQTRB9mGXmSn96QF/GUOXsXqyua4JDlEMnYjNCwzM9H1ZS1OLF7rGgA== X-Received: by 2002:a2e:3613:: with SMTP id d19-v6mr10330595lja.100.1525682198821; Mon, 07 May 2018 01:36:38 -0700 (PDT) Received: from linux-veee.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id 25-v6sm833653ljc.35.2018.05.07.01.36.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 07 May 2018 01:36:38 -0700 (PDT) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: lede-dev@lists.infradead.org, John Crispin Date: Mon, 7 May 2018 10:35:51 +0200 Message-Id: <20180507083551.32369-1-zajec5@gmail.com> X-Mailer: git-send-email 2.13.6 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180507_013650_873500_B4B2D821 X-CRM114-Status: GOOD ( 11.11 ) X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2a00:1450:4010:c07:0:0:0:241 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (zajec5[at]gmail.com) 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (zajec5[at]gmail.com) -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain Subject: [LEDE-DEV] [PATCH] ath79: use the new DT fixed partitions syntax X-BeenThere: lede-dev@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= Sender: "Lede-dev" Errors-To: lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Rafał Miłecki This new syntax is slightly better designed & uses "compatible" string. For details see Documentation/devicetree/bindings/mtd/partition.txt . Signed-off-by: Rafał Miłecki --- target/linux/ath79/dts/ar7161_netgear_wndr3800.dts | 40 +++++++------ target/linux/ath79/dts/ar7241_ubnt-unifi.dts | 68 ++++++++++++---------- target/linux/ath79/dts/ar7241_ubnt-xm.dtsi | 68 ++++++++++++---------- target/linux/ath79/dts/ar9132_tl_wr1043nd_v1.dts | 34 ++++++----- target/linux/ath79/dts/ar9330_gl_ar150.dts | 46 ++++++++------- target/linux/ath79/dts/ar9331_ew_dorin.dts | 46 ++++++++------- target/linux/ath79/dts/qca9558_om5p_ac.dts | 46 ++++++++------- 7 files changed, 195 insertions(+), 153 deletions(-) diff --git a/target/linux/ath79/dts/ar7161_netgear_wndr3800.dts b/target/linux/ath79/dts/ar7161_netgear_wndr3800.dts index ba6e9ae03c..a175fd7698 100644 --- a/target/linux/ath79/dts/ar7161_netgear_wndr3800.dts +++ b/target/linux/ath79/dts/ar7161_netgear_wndr3800.dts @@ -139,26 +139,32 @@ reg = <0>; spi-max-frequency = <25000000>; - partition@0 { - label = "u-boot"; - reg = <0x000000 0x050000>; - read-only; - }; + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x000000 0x050000>; + read-only; + }; - partition@1 { - label = "u-boot-env"; - reg = <0x050000 0x020000>; - }; + partition@1 { + label = "u-boot-env"; + reg = <0x050000 0x020000>; + }; - partition@2 { - label = "firmware"; - reg = <0x70000 0xf80000>; - }; + partition@2 { + label = "firmware"; + reg = <0x70000 0xf80000>; + }; - partition@3 { - label = "art"; - reg = <0xff0000 0x010000>; - read-only; + partition@3 { + label = "art"; + reg = <0xff0000 0x010000>; + read-only; + }; }; }; }; diff --git a/target/linux/ath79/dts/ar7241_ubnt-unifi.dts b/target/linux/ath79/dts/ar7241_ubnt-unifi.dts index aaafb08424..1fa2d82db3 100644 --- a/target/linux/ath79/dts/ar7241_ubnt-unifi.dts +++ b/target/linux/ath79/dts/ar7241_ubnt-unifi.dts @@ -68,37 +68,43 @@ reg = <0>; spi-max-frequency = <25000000>; - partition@0 { - label = "u-boot"; - reg = <0x000000 0x040000>; - }; - - partition@1 { - label = "u-boot-env"; - reg = <0x040000 0x010000>; - }; - - partition@2 { - label = "firmware"; - reg = <0x050000 0x750000>; - }; - - partition@3 { - label = "board_config"; - reg = <0x7a0000 0x010000>; - read-only; - }; - - partition@4 { - label = "cfg"; - reg = <0x7b0000 0x040000>; - read-only; - }; - - art: partition@5 { - label = "art"; - reg = <0x7f0000 0x010000>; - read-only; + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x000000 0x040000>; + }; + + partition@1 { + label = "u-boot-env"; + reg = <0x040000 0x010000>; + }; + + partition@2 { + label = "firmware"; + reg = <0x050000 0x750000>; + }; + + partition@3 { + label = "board_config"; + reg = <0x7a0000 0x010000>; + read-only; + }; + + partition@4 { + label = "cfg"; + reg = <0x7b0000 0x040000>; + read-only; + }; + + art: partition@5 { + label = "art"; + reg = <0x7f0000 0x010000>; + read-only; + }; }; }; }; diff --git a/target/linux/ath79/dts/ar7241_ubnt-xm.dtsi b/target/linux/ath79/dts/ar7241_ubnt-xm.dtsi index cd7da2089b..ac0a79dc9d 100644 --- a/target/linux/ath79/dts/ar7241_ubnt-xm.dtsi +++ b/target/linux/ath79/dts/ar7241_ubnt-xm.dtsi @@ -77,37 +77,43 @@ reg = <0>; spi-max-frequency = <25000000>; - partition@0 { - label = "u-boot"; - reg = <0x000000 0x040000>; - }; - - partition@1 { - label = "u-boot-env"; - reg = <0x040000 0x010000>; - }; - - partition@2 { - label = "firmware"; - reg = <0x050000 0x750000>; - }; - - partition@3 { - label = "board_config"; - reg = <0x7a0000 0x010000>; - read-only; - }; - - partition@4 { - label = "cfg"; - reg = <0x7b0000 0x040000>; - read-only; - }; - - art: partition@5 { - label = "art"; - reg = <0x7f0000 0x010000>; - read-only; + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x000000 0x040000>; + }; + + partition@1 { + label = "u-boot-env"; + reg = <0x040000 0x010000>; + }; + + partition@2 { + label = "firmware"; + reg = <0x050000 0x750000>; + }; + + partition@3 { + label = "board_config"; + reg = <0x7a0000 0x010000>; + read-only; + }; + + partition@4 { + label = "cfg"; + reg = <0x7b0000 0x040000>; + read-only; + }; + + art: partition@5 { + label = "art"; + reg = <0x7f0000 0x010000>; + read-only; + }; }; }; }; diff --git a/target/linux/ath79/dts/ar9132_tl_wr1043nd_v1.dts b/target/linux/ath79/dts/ar9132_tl_wr1043nd_v1.dts index 9589925eb5..40db55bc32 100644 --- a/target/linux/ath79/dts/ar9132_tl_wr1043nd_v1.dts +++ b/target/linux/ath79/dts/ar9132_tl_wr1043nd_v1.dts @@ -94,20 +94,26 @@ reg = <0>; spi-max-frequency = <25000000>; - partition@0 { - label = "u-boot"; - reg = <0x000000 0x020000>; - }; - - partition@1 { - label = "firmware"; - reg = <0x020000 0x7D0000>; - }; - - partition@2 { - label = "art"; - reg = <0x7F0000 0x010000>; - read-only; + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x000000 0x020000>; + }; + + partition@1 { + label = "firmware"; + reg = <0x020000 0x7D0000>; + }; + + partition@2 { + label = "art"; + reg = <0x7F0000 0x010000>; + read-only; + }; }; }; }; diff --git a/target/linux/ath79/dts/ar9330_gl_ar150.dts b/target/linux/ath79/dts/ar9330_gl_ar150.dts index a41799f0dc..97beab1490 100644 --- a/target/linux/ath79/dts/ar9330_gl_ar150.dts +++ b/target/linux/ath79/dts/ar9330_gl_ar150.dts @@ -96,26 +96,32 @@ spi-max-frequency = <104000000>; reg = <0>; - partition@0 { - label = "u-boot"; - reg = <0x000000 0x040000>; - read-only; - }; - - partition@1 { - label = "u-boot-env"; - reg = <0x040000 0x010000>; - }; - - partition@2 { - label = "firmware"; - reg = <0x050000 0xfa0000>; - }; - - art: partition@3 { - label = "ART"; - reg = <0xff0000 0x010000>; - read-only; + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x000000 0x040000>; + read-only; + }; + + partition@1 { + label = "u-boot-env"; + reg = <0x040000 0x010000>; + }; + + partition@2 { + label = "firmware"; + reg = <0x050000 0xfa0000>; + }; + + art: partition@3 { + label = "ART"; + reg = <0xff0000 0x010000>; + read-only; + }; }; }; }; diff --git a/target/linux/ath79/dts/ar9331_ew_dorin.dts b/target/linux/ath79/dts/ar9331_ew_dorin.dts index 3c2a1b2147..fd18593807 100644 --- a/target/linux/ath79/dts/ar9331_ew_dorin.dts +++ b/target/linux/ath79/dts/ar9331_ew_dorin.dts @@ -77,26 +77,32 @@ spi-max-frequency = <104000000>; reg = <0>; - partition@0 { - label = "u-boot"; - reg = <0x000000 0x040000>; - read-only; - }; - - partition@1 { - label = "u-boot-env"; - reg = <0x040000 0x010000>; - }; - - partition@2 { - label = "firmware"; - reg = <0x050000 0xfa0000>; - }; - - art: partition@3 { - label = "ART"; - reg = <0xff0000 0x010000>; - read-only; + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x000000 0x040000>; + read-only; + }; + + partition@1 { + label = "u-boot-env"; + reg = <0x040000 0x010000>; + }; + + partition@2 { + label = "firmware"; + reg = <0x050000 0xfa0000>; + }; + + art: partition@3 { + label = "ART"; + reg = <0xff0000 0x010000>; + read-only; + }; }; }; }; diff --git a/target/linux/ath79/dts/qca9558_om5p_ac.dts b/target/linux/ath79/dts/qca9558_om5p_ac.dts index 517bc17cd7..974b1c61f0 100644 --- a/target/linux/ath79/dts/qca9558_om5p_ac.dts +++ b/target/linux/ath79/dts/qca9558_om5p_ac.dts @@ -113,26 +113,32 @@ reg = <0>; spi-max-frequency = <25000000>; - partition@0 { - label = "u-boot"; - reg = <0x000000 0x040000>; - read-only; - }; - - partition@1 { - label = "u-boot-env"; - reg = <0x040000 0x010000>; - }; - - partition@2 { - label = "firmware"; - reg = <0x850000 0x7a0000>; - }; - - partition@3 { - label = "ART"; - reg = <0xff0000 0x010000>; - read-only; + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x000000 0x040000>; + read-only; + }; + + partition@1 { + label = "u-boot-env"; + reg = <0x040000 0x010000>; + }; + + partition@2 { + label = "firmware"; + reg = <0x850000 0x7a0000>; + }; + + partition@3 { + label = "ART"; + reg = <0xff0000 0x010000>; + read-only; + }; }; }; };