From patchwork Thu May 24 02:24:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rosen Penev X-Patchwork-Id: 919530 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="kAtVMTEK"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Ius0LN75"; 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 40rtWw0MgPz9s0q for ; Thu, 24 May 2018 12:25:15 +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=S9WgSgwTCxvYfcH2qrpsFjicXd7fs8eJ92180RN8XBQ=; b=kAtVMTEKcU58aP ZuDKhB/RjGygvwntDxtUiwioQ6Q5a1RpsFQVwEC1TS9CcP8KdkML4cPRts6BAEkpTE2kWG/zmEC2D +RLtBa4Sy1VffaRzZy+c6CxB2tYzQB4sbW3d5Ty3CYdr1HxtSdQc6vmvdUjRrv4OojxBZ4RnM8btv WvdnSBw1wDurKkqKQSsWgbiRItT50LtErJak5Jp/CrMmPdzDZMQW7fPPpNaANmI1R6DH4PTz7Vu64 mY7tTiTPnvWqm5UA51OfgFcbVPUHnTFAX3iAa8DYBGKL9y1Kbm8umpXogR3WrBZFC8DEhbptaA6Ym QdepSyUZgZFZKiJLeMRA==; 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 1fLfw8-0005Qd-5f; Thu, 24 May 2018 02:25:04 +0000 Received: from mail-pg0-x242.google.com ([2607:f8b0:400e:c05::242]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fLfw3-0005IX-SA for lede-dev@lists.infradead.org; Thu, 24 May 2018 02:25:02 +0000 Received: by mail-pg0-x242.google.com with SMTP id p9-v6so50316pgc.9 for ; Wed, 23 May 2018 19:24:49 -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=J3lZnrgOwrc14EAXk8M1HSSnGP3gJTYs37aHmv0qHgg=; b=Ius0LN756dpY9J9+2EWwptwtsb7r5KYD6BUz0u/8Zt2DlpKC5kIrlmzFLkXT3zc79C t3/zXTG2yiitTIbwxjwfE05VRw6RScWUVDYaT9HNlj+0BCw5nakJoJXwGgE5/mbwS76A 4v7lMj2igzC1sUr/JgsPBLG9up4QIPcUWLPF619CE/OW58VxyigS0pNFp1cANWHgJPVP Z7ErjdlaAlAdQv+zBdhw3n9kc4KO5JALGk12xalk+AwOvSCSz3uttoXDwOhGID2rscM3 M5qXAsAPmvK/An8rBlYgBtNdOPcxoXs3Bf6AIlZmhLMst+HjexlMclTK6GNydIeIz6Xp fgRw== 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=J3lZnrgOwrc14EAXk8M1HSSnGP3gJTYs37aHmv0qHgg=; b=EJiHCmoNVYWCg/xk9JfBK/QEN0TDkFEwTSzn3FfVWmKj6RghXFcZZz8Fx2Tw1ndGmq CEIRvOnTjerElyb7uVUZFBSHo3dKHL2AFJCvgKAPSHUapboT84cgCjC/Q/sD8d9j9R08 SxUbu/rptLnLlWEeHJcayuEK+v2SIfPEMqOIBb5E9og20TMqQ5Uh3zYJWw7d+wxJ+sFM GBR8asm7SWsNxtJX6jp5fpD3BfmaHwDBXDtwrAFXTEujZHVJoJNPjprDeUO6w2KrlUBt FVduo2ckH9v1qj1nUW9JhtvaN2RUy8Y0fJgclCDIUgNzS/tivDUU/oaeDb6E1WdI449M XHoQ== X-Gm-Message-State: ALKqPwdvhKEQyEjUqiDoVGP/AEVjUl5kl68IBP8IAm/Ocs7wNXFozq1+ wQIFCokYcUwIAeX5UJIHHMyYEHKT X-Google-Smtp-Source: AB8JxZpv2QQyB/qXqLs9Tc108bg+YI4Sy1aCXLUWqPdWFk91J3HrJInSO31iWx77a4gl+mwos1+6tA== X-Received: by 2002:a63:a411:: with SMTP id c17-v6mr4158779pgf.110.1527128688347; Wed, 23 May 2018 19:24:48 -0700 (PDT) Received: from clevo-mangix.lan (astound-69-42-5-101.ca.astound.net. [69.42.5.101]) by smtp.gmail.com with ESMTPSA id f4-v6sm28804174pgo.77.2018.05.23.19.24.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 May 2018 19:24:47 -0700 (PDT) From: Rosen Penev To: openwrt-devel@lists.openwrt.org Date: Wed, 23 May 2018 19:24:42 -0700 Message-Id: <20180524022443.8171-1-rosenp@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-20180523_192459_912441_14C7B17F X-CRM114-Status: GOOD ( 10.68 ) X-Spam-Score: 1.3 (+) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (1.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2607:f8b0:400e:c05:0:0:0:242 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (rosenp[at]gmail.com) 0.0 DKIM_ADSP_CUSTOM_MED No valid author signature, adsp_override is CUSTOM_MED -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid 1.2 NML_ADSP_CUSTOM_MED ADSP custom_med hit, and not from a mailing list Subject: [OpenWrt-Devel] [PATCH 1/2] ramips: Add back some non-mt7621 code that staging removed 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: Rosen Penev MIME-Version: 1.0 Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Staging is meant only for mt7621 but for OpenWrt more is needed. Signed-off-by: Rosen Penev --- .../files-4.14/drivers/mmc/host/mtk-mmc/sd.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/target/linux/ramips/files-4.14/drivers/mmc/host/mtk-mmc/sd.c b/target/linux/ramips/files-4.14/drivers/mmc/host/mtk-mmc/sd.c index 2a032fcba1..97ae927d2d 100644 --- a/target/linux/ramips/files-4.14/drivers/mmc/host/mtk-mmc/sd.c +++ b/target/linux/ramips/files-4.14/drivers/mmc/host/mtk-mmc/sd.c @@ -2209,7 +2209,23 @@ static int msdc_drv_probe(struct platform_device *pdev) // Set the pins for sdxc to sdxc mode //FIXME: this should be done by pinctl and not by the sd driver - reg = sdr_read32((void __iomem *)(RALINK_SYSCTL_BASE + 0x60)) & ~(0x3 << 18); + if (ralink_soc == MT762X_SOC_MT7620A || + ralink_soc == MT762X_SOC_MT7621AT) { + reg = sdr_read32((void __iomem *)(RALINK_SYSCTL_BASE + + 0x60)) & ~(0x3 << 18); + if (ralink_soc == MT762X_SOC_MT7620A) + reg |= 0x1 << 18; + } else { + reg = sdr_read32((void __iomem *)(RALINK_SYSCTL_BASE + 0x3c)); + reg |= 0x1e << 16; + sdr_write32((void __iomem *)(RALINK_SYSCTL_BASE + 0x3c), reg); + reg = sdr_read32((void __iomem *)(RALINK_SYSCTL_BASE + + 0x60)) & ~(0x3 << 10); +#if defined(CONFIG_MTK_MMC_EMMC_8BIT) + reg |= 0x3 << 26 | 0x3 << 28 | 0x3 << 30; +#endif + } + sdr_write32((void __iomem *)(RALINK_SYSCTL_BASE + 0x60), reg); hw = &msdc0_hw; From patchwork Thu May 24 02:24:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rosen Penev X-Patchwork-Id: 919531 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="jQepswl7"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="XDgRUubZ"; 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 40rtX91tqwz9s0q for ; Thu, 24 May 2018 12:25:29 +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:References: In-Reply-To:Message-Id:Date:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=zf8HyUtdKWZqxzYre4Yim6PcStmPSKRcBj5CS4IHnf0=; b=jQepswl749mpxC rEPxOGPJ6AgvR3hYjbcYNWNJbv7jaWN9lWQFYLXQaN04osl7bCnolaxTSsrbzRl1KtUEA/MWJPY4L lXBl2lLlHn68LZd04aUMtGItRgE89EgeSERuW92Eqhujad36WTTbewRhXG/a2pMqRuGBei47vlPvd iyIiWRG5N+rss+WPdGHDMbZRHXooVRqgXlz81pLCiawn/FrSNod3fGZS4KLN8lxTuzjyJ6EP7XboC EDErZldTGe8bJH35tGx5Cfh8ZjRGsYZ7KtP073OIgSQkF0SlTq+nvohreF+gP2s7IEzkbaT/Mtyi/ DNKcEhynycmBEpTEGNdg==; 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 1fLfwO-0006MP-G0; Thu, 24 May 2018 02:25:20 +0000 Received: from mail-pl0-x243.google.com ([2607:f8b0:400e:c01::243]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fLfw5-0005Ia-Nf for lede-dev@lists.infradead.org; Thu, 24 May 2018 02:25:03 +0000 Received: by mail-pl0-x243.google.com with SMTP id ay10-v6so80172plb.1 for ; Wed, 23 May 2018 19:24:51 -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:in-reply-to:references; bh=WNcqK5rl7gWB0Cb8QN8cM/I9le1kgGXMewa6945EC3Q=; b=XDgRUubZg/8y4eolAn2Qpyd+YX5NpnX1hEOuTbMQoqHVZJF8r61NxGoXeU7jch2JBo 4wsYckwCVzDg/fQEqAdi71PM0gZoi8SrGpybhtSk7Pcmz6waC/yw1oE146Jp2N6UVBN3 gOlxkmtdFZa43nqlfUKPB8g9dd4EV4/70U4slQcEhrigmgfDSr1z2Ho5o8fPp9fnOE67 uMOCA4KBmj6SheJ0y+8RffUTMDpADo1VhfH0wIrJKO9YR5QBOTcB/Cy2CfnGXRhQ+Wl9 p0H2dsQUYs2EpXpiYZQeVgumBwVo2XepIAlSrfB5MUBM7CAhaKDBQWPNNsEktYqHhXcX Yfsw== 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:in-reply-to :references; bh=WNcqK5rl7gWB0Cb8QN8cM/I9le1kgGXMewa6945EC3Q=; b=rsrbQROESw5yd+aAPH+I0ua4QfuGYIiSKv8jDclfLVRiR2owLuNOkkTXoD4SyUGXGK +PWZLjw0o7cAtqJD7pT8RZjFa9WXQiuCQubLVs+/K5crV4/aaFVwhxufZ3FhWVg409ar hR0JFMPp+9nRxNzrzgN9jF8gDmo6Lr7bnXdOpJuEDZLR0RVMNJasQcF1N+OS6cz1W7ht n8Y2LJSmscC/IatArSdUYnq7hpxmm7Plb5h/3L3RpLUNwgz/H/4EOZygT+Zg2siyTMC6 fLBqaswSoOKKzMwvj8X8wL5BBGvhw3fb9wGMfhtxTbJ5oSwOnRapLV/F7ZunHm5+JM82 AzBA== X-Gm-Message-State: ALKqPwdIvr67iL76OciFNRzWhn+Vy9WpZz5OsfHeUJFprQkB+u4LvB/d Ufvq1h9ceiFIuhrsuYPF+sd2R9xv X-Google-Smtp-Source: AB8JxZoibcrHIXoo6A73g1Qs5Tw9vwUiVfz2gWvA8ut+od1okfNhluOK5Whq0e5NSWmxyvf1c/GFvQ== X-Received: by 2002:a17:902:7883:: with SMTP id q3-v6mr5388939pll.71.1527128690857; Wed, 23 May 2018 19:24:50 -0700 (PDT) Received: from clevo-mangix.lan (astound-69-42-5-101.ca.astound.net. [69.42.5.101]) by smtp.gmail.com with ESMTPSA id f4-v6sm28804174pgo.77.2018.05.23.19.24.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 May 2018 19:24:50 -0700 (PDT) From: Rosen Penev To: openwrt-devel@lists.openwrt.org Date: Wed, 23 May 2018 19:24:43 -0700 Message-Id: <20180524022443.8171-2-rosenp@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180524022443.8171-1-rosenp@gmail.com> References: <20180524022443.8171-1-rosenp@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180523_192501_789140_1D768C68 X-CRM114-Status: GOOD ( 11.03 ) X-Spam-Score: 1.3 (+) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (1.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2607:f8b0:400e:c01:0:0:0:243 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (rosenp[at]gmail.com) 0.0 DKIM_ADSP_CUSTOM_MED No valid author signature, adsp_override is CUSTOM_MED -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid 1.2 NML_ADSP_CUSTOM_MED ADSP custom_med hit, and not from a mailing list Subject: [OpenWrt-Devel] [PATCH 2/2] ramips: Fix up GnuBee PC1 DTS file a little 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: Rosen Penev MIME-Version: 1.0 Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org There's nothing connected to i2c on this board, so remove it. Also edited the gpio group to match the PC2 as they're the same. Signed-off-by: Rosen Penev --- target/linux/ramips/dts/GB-PC1.dts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/target/linux/ramips/dts/GB-PC1.dts b/target/linux/ramips/dts/GB-PC1.dts index d29a03e870..3b29d335b9 100644 --- a/target/linux/ramips/dts/GB-PC1.dts +++ b/target/linux/ramips/dts/GB-PC1.dts @@ -18,12 +18,6 @@ bootargs = "console=ttyS0,57600"; }; - palmbus: palmbus@1E000000 { - i2c@900 { - status = "okay"; - }; - }; - gpio-keys-polled { compatible = "gpio-keys-polled"; #address-cells = <1>; @@ -121,7 +115,7 @@ &pinctrl { state_default: pinctrl0 { gpio { - ralink,group = "wdt", "rgmii2", "uart3"; + ralink,group = "jtag", "rgmii2", "uart3", "wdt"; ralink,function = "gpio"; }; };