From patchwork Wed Aug 8 04:38:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kristian Evensen X-Patchwork-Id: 954775 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=pass (mailfrom) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.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="SfH9vpme"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="V3ZFzPJQ"; 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 41ldvJ5Sc8z9s2g for ; Wed, 8 Aug 2018 14:39:08 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Subject: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=NU9r88gwO8nel8f2LKOePz+70NUiN5lZcvFzXH47jYc=; b=SfH9vpmeLQnHLi nPo3x34lZlpBIbazcK+XXR4of10ysSgaSQIlQqWIsDPvKwePYXQqeRnE9j/u1YQKvjaBgSBnd2kj+ lqCmWilx0UVYkzqXvZ7JwuYTwr45r1K5WBExI0UxA/dGJWjb1gWLSSki1AbP7gDXTdJzQkdjbLpIa Swc55QVDAqKLSMoQ0funtRfDbbJ/Xsm9zQY3dvkDCY+D+FQk/H4DDapCh2vKBIUB3doJ/G96tau3b FQ70SdKI24Aif9JpXLsBtOIHICDCDQBzLco/98qsj9Vmbf1SwHFMch0pGaDHTC6kugoxQji4LMfHb lMOe+0f+u2m5mDFxYQWg==; 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 1fnGFK-0000ya-3g; Wed, 08 Aug 2018 04:38:54 +0000 Received: from mail-lj1-x241.google.com ([2a00:1450:4864:20::241]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fnGFG-0000x9-Es for openwrt-devel@lists.openwrt.org; Wed, 08 Aug 2018 04:38:52 +0000 Received: by mail-lj1-x241.google.com with SMTP id q127-v6so628373ljq.11 for ; Tue, 07 Aug 2018 21:38:39 -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=AWJjb3aEEBOCE95sK/Y3FchTGfwuHS8TcXDNGvnDr7o=; b=V3ZFzPJQ7Fq82yZqkFnyQKP4i/MuPBbOArZ8PLfY/YgG2YT+RCm9s7T2axPlyOF8AE r00+140QYYRCfZp9JeKjBgOre7p3AzsCP+1rCOAqmL8MW5ADWNaq3gyRhKC0eN2nUqdk hwPgSjNDVVSIdfqLnKsg+xPeNYgSxPwN0IffCimyQN9S2YVL+RmjS34L7LPw3Y3H9FHI I/Pl6j4AdDohEWsuG144oJEAQZgZbkHTIDoxMlz424TyfPmp5060Q98hiC0Euci2OByy jhymrVJVZk/fb9MDQUTFD9Pn28wGX2nL6ZojqDp6I6v8Wknv+uzRhFf2RGQgnoQWAudn UcCw== 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=AWJjb3aEEBOCE95sK/Y3FchTGfwuHS8TcXDNGvnDr7o=; b=fx1yGSI+Qudti+ZpBH8oYGUQmMX0DiCP8bCOtP8RUC0o0nERmXgu0Ik+TqN/spMZgB 1B/N6N/NyHISCysn6JqgEXejRnS+MYRZFY1WhehX7Qg8XFPEJrBrywXrNlB3mpsGtRkM pbRXcnu0g4nu2jz4lYK9i30lX216vQklEST+JwpS3to21sGV2COQje2KPJD7ADRa7LvZ 3r3Nhk5eNQuYbK+u1xroCo8DnyTAeoDV2IsDuEsj9YxSPWMSMvaYiiGjZAVK00+7EsE2 1eSot6gINPgqzdUZTOXrD0+OijAZ2s6bFZULsPirg00R3VOKPTu3lMbNWWpNm/hwGmpV NKrw== X-Gm-Message-State: AOUpUlGYCh45gTMGHP26G7IV0Wbo2K4P0uNOUrKaxfRDjkmVYBN/D+ih Kz4YuYiyczKm74ZWrIdK1oyG4SRG X-Google-Smtp-Source: AA+uWPyZV+3iAaxebVCyMkCClsYq2K/8g/imlXFO1enmYur6K/JzSWfbtzsIr1PAXsM4VOpsjf4KHg== X-Received: by 2002:a2e:8257:: with SMTP id j23-v6mr656107ljh.49.1533703117699; Tue, 07 Aug 2018 21:38:37 -0700 (PDT) Received: from localhost.localdomain (155.51-175-192.customer.lyse.net. [51.175.192.155]) by smtp.gmail.com with ESMTPSA id g28-v6sm625307lfh.92.2018.08.07.21.38.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Aug 2018 21:38:37 -0700 (PDT) From: Kristian Evensen To: openwrt-devel@lists.openwrt.org Date: Wed, 8 Aug 2018 06:38:32 +0200 Message-Id: <20180808043832.3538-1-kristian.evensen@gmail.com> X-Mailer: git-send-email 2.14.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180807_213850_524500_CE84C58F X-CRM114-Status: GOOD ( 15.93 ) 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:4864:20:0:0:0:241 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (kristian.evensen[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: [OpenWrt-Devel] [PATCH v2] mediatek: Fix amount of memory on U7623 X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kristian Evensen MIME-Version: 1.0 Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org While finalizing support for the U7623 with 512MB, I made an embarresing error and configured 1GB RAM for the board. I also forgot to move memory from the dtsi and to the dts. This commit takes care of my mistakes. While I am confessing my mistakes, I also note that I made a mistake in the commit message of the initial U7623 commit. It is the .bin-file, and not the .gz file that shall be sent to the device via tftp. v1->v2: * Remove redundant memory node (thanks Jonas Gorski) Signed-off-by: Kristian Evensen --- .../0227-arm-dts-Add-Unielec-U7623-DTS.patch | 35 ++++++++++++---------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/target/linux/mediatek/patches-4.14/0227-arm-dts-Add-Unielec-U7623-DTS.patch b/target/linux/mediatek/patches-4.14/0227-arm-dts-Add-Unielec-U7623-DTS.patch index eb864e4657..5908108e6b 100644 --- a/target/linux/mediatek/patches-4.14/0227-arm-dts-Add-Unielec-U7623-DTS.patch +++ b/target/linux/mediatek/patches-4.14/0227-arm-dts-Add-Unielec-U7623-DTS.patch @@ -1,16 +1,18 @@ -From 13872b8abfadfe70598c065c19d1db759477c4e6 Mon Sep 17 00:00:00 2001 +From 004eb24e939b5b31f828333f37fb5cb2a877d6f2 Mon Sep 17 00:00:00 2001 From: Kristian Evensen Date: Sun, 17 Jun 2018 14:41:47 +0200 Subject: [PATCH] arm: dts: Add Unielec U7623 DTS --- arch/arm/boot/dts/Makefile | 1 + - .../dts/mt7623a-unielec-u7623-02-emmc-512M.dts | 17 + - .../boot/dts/mt7623a-unielec-u7623-02-emmc.dtsi | 375 +++++++++++++++++++++ - 3 files changed, 393 insertions(+) + .../dts/mt7623a-unielec-u7623-02-emmc-512M.dts | 18 + + .../boot/dts/mt7623a-unielec-u7623-02-emmc.dtsi | 366 +++++++++++++++++++++ + 3 files changed, 385 insertions(+) create mode 100644 arch/arm/boot/dts/mt7623a-unielec-u7623-02-emmc-512M.dts create mode 100644 arch/arm/boot/dts/mt7623a-unielec-u7623-02-emmc.dtsi +diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile +index 3fec84fa0..e685ce9a4 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -1062,6 +1062,7 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += \ @@ -21,9 +23,12 @@ Subject: [PATCH] arm: dts: Add Unielec U7623 DTS mt7623n-rfb-nand.dtb \ mt7623n-bananapi-bpi-r2.dtb \ mt8127-moose.dtb \ +diff --git a/arch/arm/boot/dts/mt7623a-unielec-u7623-02-emmc-512M.dts b/arch/arm/boot/dts/mt7623a-unielec-u7623-02-emmc-512M.dts +new file mode 100644 +index 000000000..857d440d0 --- /dev/null +++ b/arch/arm/boot/dts/mt7623a-unielec-u7623-02-emmc-512M.dts -@@ -0,0 +1,17 @@ +@@ -0,0 +1,18 @@ +/* + * Copyright 2018 Kristian Evensen + * @@ -37,13 +42,17 @@ Subject: [PATCH] arm: dts: Add Unielec U7623 DTS + model = "UniElec U7623-02 eMMC (512M RAM)"; + compatible = "unielec,u7623-02-emmc-512m", "unielec,u7623-02-emmc", "mediatek,mt7623"; + -+ memory { ++ memory@80000000 { ++ device_type = "memory"; + reg = <0 0x80000000 0 0x20000000>; + }; +}; +diff --git a/arch/arm/boot/dts/mt7623a-unielec-u7623-02-emmc.dtsi b/arch/arm/boot/dts/mt7623a-unielec-u7623-02-emmc.dtsi +new file mode 100644 +index 000000000..adc91266e --- /dev/null +++ b/arch/arm/boot/dts/mt7623a-unielec-u7623-02-emmc.dtsi -@@ -0,0 +1,375 @@ +@@ -0,0 +1,366 @@ +/* + * Copyright 2018 Kristian Evensen + * @@ -66,10 +75,6 @@ Subject: [PATCH] arm: dts: Add Unielec U7623 DTS + stdout-path = "serial2:115200n8"; + }; + -+ memory { -+ reg = <0 0x80000000 0 0x20000000>; -+ }; -+ + cpus { + cpu@0 { + proc-supply = <&mt6323_vproc_reg>; @@ -145,11 +150,6 @@ Subject: [PATCH] arm: dts: Add Unielec U7623 DTS + }; + }; + -+ memory@80000000 { -+ device_type = "memory"; -+ reg = <0 0x80000000 0 0x40000000>; -+ }; -+ + mt7530: switch@0 { + compatible = "mediatek,mt7530"; + #address-cells = <1>; @@ -419,3 +419,6 @@ Subject: [PATCH] arm: dts: Add Unielec U7623 DTS + status = "okay"; +}; + +-- +2.14.1 +