From patchwork Mon Aug 6 17:46:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kristian Evensen X-Patchwork-Id: 954063 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="jYgnWyga"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="IGygayR/"; 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 41klV70ylVz9rvt for ; Tue, 7 Aug 2018 03:47:42 +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=HrkFkO5j//IslqC4tH64V3lzk4zT0MCZaDLPRWhBYyk=; b=jYgnWygaJsTI5C cUVXbrLt1sUZrmyr5WDQBaoqRPSmsznA1ZW6FXnuU/yzC6IlBN10Lj33EGw6Q8LW7vSpFfW74bLVA 8RcLCSGr2shQFcwNWJiqbLhSK8aiS2vvaj7fxY4zoqTyWAlOeKOa/FnHId0tXIe5eo9FxDC7px+mg xpS1EuFhC/kTKWyWOlB9Y4BW0E3qbXL9VECoMMpL+I1vJxi0r8uIF0y3NY4/6d3A1+qEmKzOZunxH 4MMVLWB3CniID3ARshwtJfULrn2ByRwlUGoaR0DhV3LPVxePT9XvYwvGu1bbd4oc3l8JBb9TeKQAg xviCsX16hStlP4MwmKgQ==; 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 1fmjbX-0002pP-5H; Mon, 06 Aug 2018 17:47:39 +0000 Received: from mail-lf1-x142.google.com ([2a00:1450:4864:20::142]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fmjbU-0002mw-6u for openwrt-devel@lists.openwrt.org; Mon, 06 Aug 2018 17:47:37 +0000 Received: by mail-lf1-x142.google.com with SMTP id n96-v6so9698762lfi.1 for ; Mon, 06 Aug 2018 10:47:25 -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=bkOYfabW1UUenh+6nLfwUP4DEbavPq6pHq7aW6EpAoc=; b=IGygayR/hNgA6FxWg7ZB7vfw99ZBT8QPCZIs/84KQV1WjG3A80GxoYoE3HbjBlBFEV SWyZRVdQJoir5uLBFk+Ti61Rq6WXvE8LwoBjS4mHOIG765nlRreIS+fI1G8HPSctU1YZ LFtW/9mCYtZTz44m3T4HkLxaCH1jIPAY+xXivwG3XqZO8sLQ4O4CrRU1R50DXzGkFivQ qg1rg5QvHL5ZHvDg7AkQB2OoevOkov/9SLsIW1T73zBGkMEr8mu49tf14vpGRvuLkVcv s6s6SAowf2sC8a1qfFzgr7MALaR4hhYR0VrCMpe0nh78pQfypm5SE0c4ekUg9SpB2rRU lTVw== 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=bkOYfabW1UUenh+6nLfwUP4DEbavPq6pHq7aW6EpAoc=; b=F+Cfbo4wR3sTlDiIfgoMu9U+DhpmHyZpQnK2SZFDMh8639WCrk7NHr+7hM0sDD0lp3 yu+yLE72EsA1B/PCAcDMvTbKBXAoqVySuJaTIU42a4vRvKWkSKGUtLz7TLlxKYrJ4xOi QyGAgJyf+HxluY6NuQYPmsAKGwnFsHbn0oRtGHw7AUT023l22b+UW/DbaAXtCwKRv7s8 t8bN+DkVge01XkyHupw5OPS1vi5HcSdFLbvL67ehblUzIRWew8nKZa17qumVkYk2codN 48VbsdIMqSPF6HVUdSWmUb5JavTcgu3/Np4Bf6a7CNq39ugPQSo+gkdNV93hhk76QNfu s1Fw== X-Gm-Message-State: AOUpUlEQNCAG1NjEgfjVFVdAV67leR9N6v2o3iR9goBFG4/zGyuqMUZx eLKaBBKLD+uzAnJQKIhaqh5ViKey X-Google-Smtp-Source: AAOMgpdWPoKa7yLLvGUrlR4JL6WSZ6kqjlX+Nm7eMaGXMApmjGmNAD92BFk9o04uv4iP1uGwS1HjtQ== X-Received: by 2002:a19:d095:: with SMTP id h143-v6mr11680599lfg.16.1533577642878; Mon, 06 Aug 2018 10:47:22 -0700 (PDT) Received: from localhost.localdomain ([193.213.155.210]) by smtp.gmail.com with ESMTPSA id m129-v6sm2311286lfe.50.2018.08.06.10.47.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Aug 2018 10:47:22 -0700 (PDT) From: Kristian Evensen To: openwrt-devel@lists.openwrt.org Date: Mon, 6 Aug 2018 19:46:30 +0200 Message-Id: <20180806174630.21348-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-20180806_104736_274475_66DB042D X-CRM114-Status: GOOD ( 15.97 ) 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:142 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (kristian.evensen[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain Subject: [OpenWrt-Devel] [PATCH] 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 RAM, I made an embarrassing 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 errors. 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. Signed-off-by: Kristian Evensen --- .../0227-arm-dts-Add-Unielec-U7623-DTS.patch | 37 +++++++++++++--------- 1 file changed, 22 insertions(+), 15 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..8c0b7611b6 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 1ebcba67d45f1365bcb1b5eb8b0cd8c847610ef2 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 | 22 ++ + .../boot/dts/mt7623a-unielec-u7623-02-emmc.dtsi | 366 +++++++++++++++++++++ + 3 files changed, 389 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..6efa6e159 --- /dev/null +++ b/arch/arm/boot/dts/mt7623a-unielec-u7623-02-emmc-512M.dts -@@ -0,0 +1,17 @@ +@@ -0,0 +1,22 @@ +/* + * Copyright 2018 Kristian Evensen + * @@ -40,10 +45,18 @@ Subject: [PATCH] arm: dts: Add Unielec U7623 DTS + memory { + reg = <0 0x80000000 0 0x20000000>; + }; ++ ++ 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 +79,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 +154,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 +423,6 @@ Subject: [PATCH] arm: dts: Add Unielec U7623 DTS + status = "okay"; +}; + +-- +2.14.1 +