From patchwork Sat Dec 8 22:22:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 1009892 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=linaro.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="P58K5MNX"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="gqr3Ddi5"; 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 43C3lK4NmRz9s1c for ; Sun, 9 Dec 2018 09:23:41 +1100 (AEDT) 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=0RIGKsyK/z9aL5HxRT3HVSWm9Wb/Z5Zn+Ag8XucK/CA=; b=P58K5MNXS7RG93 FpssAutxS3Ypc8H5JQCx8sM6920wiiiOGYhmD/CwNixVFfQhHQKf94OFNl3pqx7g3NWKYFZzbwQLL ycftRl84u4uF7NMYEdBcA0Do3jcQ504mZJpv9a4DUlJYq5tS9EOPnf0ibS0b217r3ey0giFaqTjFq kdcDUxKXu70swcb6yD1Aj9YowCHhclCZ714Lws3Vvj5+G4sYAxA7HS184Ocp7nALPSvCk4TXm59jX xyzM4AL7hMcIE0pKj9zEB+Sl2U7yg22SDbQN/Q30WtKsydrw3C7DtKBXGVsIeu6fWIPkZ07GxaFRA eGYnNV1dLv5BbU866Exw==; 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 1gVl0O-0003Na-DQ; Sat, 08 Dec 2018 22:23:24 +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 1gVl0L-0003LG-2u for openwrt-devel@lists.openwrt.org; Sat, 08 Dec 2018 22:23:22 +0000 Received: by mail-lj1-x241.google.com with SMTP id l15-v6so6465339lja.9 for ; Sat, 08 Dec 2018 14:23:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=SxeQ2RgM6pAXInveUvpv7Wd8q2eUfyUc70lKdcQupf4=; b=gqr3Ddi5eve7Mgqt6oAviU0QiwfUcKg6RsGkvNBagF7lm6joI6b36sA+lr6O/wGZU4 +yG8x7COcsUjotw1mQ4gjnHmmO/nwMu+HUF6nMRdahm369/2Hphjq40ir+YKcNmz0LJ8 1Q81XUn4A5/Jw88BT2t96c9VJ24xozdhKulo0= 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=SxeQ2RgM6pAXInveUvpv7Wd8q2eUfyUc70lKdcQupf4=; b=W4Wy0oIWcqfaAs6xuQmGn3Ryq9Ry/El95KKnZBZjg/Cvw/rcOjlEIVzmLTy5ZU5cx2 /zh7G86pwErd5yKAgitbD89lMf7wcohi4a41h0FL2lSSgZsyQCAXI0SdDIPd7yRy60ua 9ETYIe/IBfP0ZER/yixw4gs5D2HabKWusPujBHBawD7QsUN9Ias3vpHjF6lQ25ImPjPz Xt4lrI+LNaq1Cg1EDjPfPTgMuZKrqSaIAspaDV1CfAqGoy+dyaUTbAXWflVmHSJ1N15s WSYX2k/YtVwK2nrdeEEH1ATLFWVJT+RY5Qkbn7aSMmWYHCUxRSi2SlZEOk09m+/gSg4i mCqA== X-Gm-Message-State: AA+aEWYWzvTUUFKTkXOpZr+kj3GGYE3/4RjSNa3vDotph+flYsSUBL7e ztrpg8oxT1Ojp/oFmICDWqLl6g== X-Google-Smtp-Source: AFSGD/U+hJ2NsiGfQxYeUWT9OOyEHlDyZhVIi5OrXDysa2Dh437HA7JmYFb9CG53x9zqRQ/7GHC0sw== X-Received: by 2002:a2e:21a9:: with SMTP id h41-v6mr4026847lji.103.1544307788291; Sat, 08 Dec 2018 14:23:08 -0800 (PST) Received: from localhost.bredbandsbolaget (c-ae7b71d5.014-348-6c756e10.bbcust.telenor.se. [213.113.123.174]) by smtp.gmail.com with ESMTPSA id b69sm1310884lfl.28.2018.12.08.14.23.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 08 Dec 2018 14:23:06 -0800 (PST) From: Linus Walleij To: linux-arm-kernel@lists.infradead.org, Hans Ulli Kroll , Florian Fainelli Date: Sat, 8 Dec 2018 23:22:57 +0100 Message-Id: <20181208222301.5303-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181208_142321_189320_EB4E615B X-CRM114-Status: GOOD ( 13.44 ) X-Spam-Score: 0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (0.2 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.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.1 DKIM_INVALID DKIM or DK signature exists, but is not valid Subject: [OpenWrt-Devel] [PATCH 1/5] ARM: dts: Fix up the D-Link DIR-685 MTD partition info 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: Andrew Lunn , Linus Walleij , LEDE Development List Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org The vendor firmware was analyzed to get the right idea about this flash layout. /proc/mtd contains: dev: size erasesize name mtd0: 01e7ff40 00020000 "rootfs" mtd1: 01f40000 00020000 "upgrade" mtd2: 00040000 00020000 "rgdb" mtd3: 00020000 00020000 "nvram" mtd4: 00040000 00020000 "RedBoot" mtd5: 00020000 00020000 "LangPack" mtd6: 02000000 00020000 "flash" Here "flash" is obviously the whole device and we know "rootfs" is a bogus hack to point to a squashfs rootfs inside of the main "upgrade partition". We know "RedBoot" is the first 0x40000 of the flash and the "upgrade" partition follows from 0x40000 to 0x1f8000. So we have mtd0, 1, 4 and 6 covered. Remains: mtd2: 00040000 00020000 "rgdb" mtd3: 00020000 00020000 "nvram" mtd5: 00020000 00020000 "LangPack" Inspecting the flash at 0x1f8000 and 0x1fa000 reveals each of these starting with "RGCFG1" so we assume 0x1f8000-1fbfff is "rgdb" of 0x40000. Signed-off-by: Linus Walleij --- arch/arm/boot/dts/gemini-dlink-dir-685.dts | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/arch/arm/boot/dts/gemini-dlink-dir-685.dts b/arch/arm/boot/dts/gemini-dlink-dir-685.dts index 6f258b50eb44..502a361d1fe9 100644 --- a/arch/arm/boot/dts/gemini-dlink-dir-685.dts +++ b/arch/arm/boot/dts/gemini-dlink-dir-685.dts @@ -274,20 +274,16 @@ read-only; }; /* - * Between the boot loader and the rootfs is the kernel - * in a custom Storlink format flashed from the boot - * menu. The rootfs is in squashfs format. + * This firmware image contains the kernel catenated + * with the squashfs root filesystem. For some reason + * this is called "upgrade" on the vendor system. */ - partition@1800c0 { - label = "rootfs"; - reg = <0x001800c0 0x01dbff40>; - read-only; - }; - partition@1f40000 { + partition@40000 { label = "upgrade"; - reg = <0x01f40000 0x00040000>; + reg = <0x00040000 0x01f40000>; read-only; }; + /* RGDB, Residental Gateway Database? */ partition@1f80000 { label = "rgdb"; reg = <0x01f80000 0x00040000>; From patchwork Sat Dec 8 22:22:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 1009897 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=linaro.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="MOBMYZmS"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="BqY2imP7"; 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 43C3np1Ct6z9s1c for ; Sun, 9 Dec 2018 09:25:50 +1100 (AEDT) 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: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=mUgxobuELJJZHBF31cSbDBc1IejlYvokRrOTLcTTYr8=; b=MOBMYZmSE3IIx4 yI5ThQy5UK/FLeZ2k8l6mYLiMzXop6fTB2WV+r5BtxLltaisefNx45e1PjaojofLbswy79+LWXNV5 m/zHQr/4rb4OvDlkZwmoWilDbaeiUKKw/um+6qR8O0lHLYtGWYgt4UD3A6fffpK1AVEQfk8YsWDg4 Bs2bjlIxtsfpAoh5evdiMN6qeFaYsLFz4IjGIQgiwovZ9zyayILR21u8EBMd/RbIJVKIHhtXPepfq qrtR8UYWNkGeQYnNq5hLDYGowpQFg2YxmQc73EBbFeav7kUEBnVPlr+sXf9FQqknAlexSYy/8mH+4 vBy1FqD0ITJF7Hem7peA==; 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 1gVl2h-00070N-LN; Sat, 08 Dec 2018 22:25:47 +0000 Received: from mail-lf1-x141.google.com ([2a00:1450:4864:20::141]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gVl0O-0003LV-0L for openwrt-devel@lists.openwrt.org; Sat, 08 Dec 2018 22:23:36 +0000 Received: by mail-lf1-x141.google.com with SMTP id z13so5444777lfe.11 for ; Sat, 08 Dec 2018 14:23:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=SXLqZDlfykCHPKFucxFJPc50KKjUz6UX5Nb1b4FXJ2w=; b=BqY2imP7sYwWoF/7Xeael0aIxqyOD/Z3UH9rKjP+Cbbxk9Ac89brCMCI1We0Z9MhES ug8XCRTiGOKzQRV+vUSsKyhkq6SfP9T6ZhRwgfeAcVFGkbORKw5MoXkmWZUFidBJ58AH gnfRFLx0IsCnbodMpnekQBSNu+/bT0flDxVbg= 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:mime-version:content-transfer-encoding; bh=SXLqZDlfykCHPKFucxFJPc50KKjUz6UX5Nb1b4FXJ2w=; b=FFk4scJ3wLn+e/dz5wfNPcCy/AfDHnODK2Ns5Z5/sSXjOV2lJ8OzPq6kddZbWbSUnc jJpYLUqCD/hGMPYl39BjzXENvFoETIxTo+ViZyYjxQD1qsgAgxg/CDyhVO8cXObe9oJz XGZd5t8LKVpql0E4micMmMaSG1IwT5jR7pSJjKp8voLkLSEHsZ/2dfWFBnTDnFFcrRDy sWEcKP5IoZ2MloZiGS2bxG0hd0oNbONKQZV3e4MfXHmG+HjuGe0jcwsw3YtPyfLU20yv uvHdP+rz92/Rrj/c7HMFRSPCBjJGwPRlActrIf01D5k4rcgWhR8BkMs4HvzHgXeNXXQ6 /EMg== X-Gm-Message-State: AA+aEWYpkHf00Zg44zy+JzavDFOWm3d0uNP+ZQb7sjnLZqNZ4VVBik1Q s7CmfjDjrI7BdpnPQXR0eEunaA== X-Google-Smtp-Source: AFSGD/U+bP4S/3y17CaTzHOQ90AaE85QwGSKMAegg+LFlMOxtGGxqiGDsM5AhdTZDH5+oPxLnR4n7A== X-Received: by 2002:a19:cd50:: with SMTP id d77mr3810048lfg.125.1544307790825; Sat, 08 Dec 2018 14:23:10 -0800 (PST) Received: from localhost.bredbandsbolaget (c-ae7b71d5.014-348-6c756e10.bbcust.telenor.se. [213.113.123.174]) by smtp.gmail.com with ESMTPSA id b69sm1310884lfl.28.2018.12.08.14.23.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 08 Dec 2018 14:23:09 -0800 (PST) From: Linus Walleij To: linux-arm-kernel@lists.infradead.org, Hans Ulli Kroll , Florian Fainelli Date: Sat, 8 Dec 2018 23:22:58 +0100 Message-Id: <20181208222301.5303-2-linus.walleij@linaro.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181208222301.5303-1-linus.walleij@linaro.org> References: <20181208222301.5303-1-linus.walleij@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181208_142324_153375_0DD84127 X-CRM114-Status: GOOD ( 19.43 ) X-Spam-Score: 0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (0.2 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:141 listed in] [list.dnswl.org] -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_INVALID DKIM or DK signature exists, but is not valid Subject: [OpenWrt-Devel] [PATCH 2/5] ARM: dts: Enable Gemini flash access 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: Andrew Lunn , Linus Walleij , LEDE Development List Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Some Gemini platforms have a parallel NOR flash which conflicts with use cases reusing some of the flash lines (such as CE1) for GPIO. Fix this on the D-Link DIR-685 and Itian SQ201 by creating "enabled" and "disabled" states for the flash pin control handle, and rely on the flash handling code to switch this in and out when accessed so these lines can be used for GPIO when flash is not accessed, and enable flash access. Signed-off-by: Linus Walleij --- arch/arm/boot/dts/gemini-dlink-dir-685.dts | 35 +++++++++++++++------- arch/arm/boot/dts/gemini-sq201.dts | 31 ++++++++++--------- 2 files changed, 41 insertions(+), 25 deletions(-) diff --git a/arch/arm/boot/dts/gemini-dlink-dir-685.dts b/arch/arm/boot/dts/gemini-dlink-dir-685.dts index 502a361d1fe9..318e9b2ba7dc 100644 --- a/arch/arm/boot/dts/gemini-dlink-dir-685.dts +++ b/arch/arm/boot/dts/gemini-dlink-dir-685.dts @@ -64,7 +64,6 @@ gpio-sck = <&gpio1 5 GPIO_ACTIVE_HIGH>; gpio-miso = <&gpio1 8 GPIO_ACTIVE_HIGH>; gpio-mosi = <&gpio1 7 GPIO_ACTIVE_HIGH>; - /* Collides with pflash CE1, not so cool */ cs-gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>; num-chipselects = <1>; @@ -253,15 +252,18 @@ soc { flash@30000000 { /* - * Flash access is by default disabled, because it - * collides with the Chip Enable signal for the display - * panel, that reuse the parallel flash Chip Select 1 - * (CS1). Enabling flash makes graphics stop working. - * - * We might be able to hack around this by letting - * GPIO poke around in the flash controller registers. + * Flash access collides with the Chip Enable signal for + * the display panel, that reuse the parallel flash Chip + * Select 1 (CS1). We switch the pin control state so we + * enable these pins for flash access only when we need + * then, and when disabled they can be used for GPIO which + * is what the display panel needs. */ - /* status = "okay"; */ + status = "okay"; + pinctrl-names = "enabled", "disabled"; + pinctrl-0 = <&pflash_default_pins>; + pinctrl-1 = <&pflash_disabled_pins>; + /* 32MB of flash */ reg = <0x30000000 0x02000000>; @@ -327,7 +329,6 @@ "gpio0cgrp", "gpio0egrp", "gpio0fgrp", - "gpio0ggrp", "gpio0hgrp"; }; }; @@ -342,6 +343,18 @@ groups = "gpio1bgrp"; }; }; + /* + * These GPIO groups will be mapped in over some + * of the flash pins when the flash is not in + * active use. + */ + pflash_disabled_pins: pinctrl-pflash-disabled { + mux { + function = "gpio0"; + groups = "gpio0ggrp", "gpio0igrp", "gpio0jgrp", + "gpio0kgrp"; + }; + }; pinctrl-gmii { mux { function = "gmii"; @@ -430,7 +443,7 @@ }; display-controller@6a000000 { - status = "okay"; + status = "disabled"; port@0 { reg = <0>; diff --git a/arch/arm/boot/dts/gemini-sq201.dts b/arch/arm/boot/dts/gemini-sq201.dts index 3787cf3763c4..af4be6ecb02c 100644 --- a/arch/arm/boot/dts/gemini-sq201.dts +++ b/arch/arm/boot/dts/gemini-sq201.dts @@ -41,14 +41,12 @@ compatible = "gpio-leds"; led-green-info { label = "sq201:green:info"; - /* Conflict with parallel flash */ gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>; default-state = "on"; linux,default-trigger = "heartbeat"; }; led-green-usb { label = "sq201:green:usb"; - /* Conflict with parallel and NAND flash */ gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>; default-state = "off"; linux,default-trigger = "usb-host"; @@ -126,15 +124,10 @@ soc { flash@30000000 { - /* - * Flash access can be enabled, with the side effect - * of disabling access to GPIO LED on GPIO0[20] which - * reuse one of the parallel flash chip select lines. - * Also the default firmware on the machine has the - * problem that since it uses the flash, the two LEDS - * on the right become numb. - */ - /* status = "okay"; */ + status = "okay"; + pinctrl-names = "enabled", "disabled"; + pinctrl-0 = <&pflash_default_pins>; + pinctrl-1 = <&pflash_disabled_pins>; /* 16MB of flash */ reg = <0x30000000 0x01000000>; @@ -184,9 +177,7 @@ mux { function = "gpio0"; groups = "gpio0fgrp", - "gpio0ggrp", - "gpio0hgrp", - "gpio0kgrp"; + "gpio0hgrp"; }; }; /* @@ -199,6 +190,18 @@ groups = "gpio1dgrp"; }; }; + /* + * These GPIO groups will be mapped in over some + * of the flash pins when the flash is not in + * active use. + */ + pflash_disabled_pins: pinctrl-pflash-disabled { + mux { + function = "gpio0"; + groups = "gpio0ggrp", "gpio0igrp", "gpio0jgrp", + "gpio0kgrp"; + }; + }; pinctrl-gmii { mux { function = "gmii"; From patchwork Sat Dec 8 22:22:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 1009898 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=linaro.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="LGOgbVbe"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="AeNFeV1z"; 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 43C3p76J76z9s1c for ; Sun, 9 Dec 2018 09:26:07 +1100 (AEDT) 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: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=AypcFkPBZwtBhDpuiQOT5LOKPyZh0KxsO5daXUN7bik=; b=LGOgbVbeCY0i1d dfEeOYLfnEAgTT7Koe7PG/VjdZGCMbBzwh3xxZN/kXLGOE+7w0uybKnmbgK2Ixotj52lgpTcmCsgz kmUgiHqKahgHdO0LBci907Ub+tZ3C2prrwpf+wHmgCku25ms+AeRO9oxHf5YKoX9m62hxsC9EGYkk cEXeGJxNbVPFUHN+s3785/3kueX8ofVWI+PegFcmCsgXpPZx/XBxNpoyWU+X6/hXtqHDvoMVILR4G T8Ur9Avp4Nl70paak650cpUDOSsFBv3BS38n+mnFPIvCI0SPH71U0WeO3Vomi+qPaGB3192uaijUa F6y+fYFjTYzi+wUrqlew==; 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 1gVl2w-0007JG-El; Sat, 08 Dec 2018 22:26:02 +0000 Received: from mail-lf1-x143.google.com ([2a00:1450:4864:20::143]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gVl0P-0003La-BH for openwrt-devel@lists.openwrt.org; Sat, 08 Dec 2018 22:23:37 +0000 Received: by mail-lf1-x143.google.com with SMTP id u18so5446912lff.10 for ; Sat, 08 Dec 2018 14:23:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=AKeMSKov7AHQwHfd85g+W8Oq6xXcT+CwfQ8H/UQOhg4=; b=AeNFeV1zmCfVKzsgvqoQGMJJgjLpmYv/wBWFrxYIJHLVuQNOO4hu6pGNV9nG89sp+T 5/0yBMpDXJGPpbfREVjVRr0OTEjPOipfHvYSHp483ui9oipAX+IOh3WJdynn8MzrFozg bebrhiXFPzVG/02yrP+i3Z+xn5CGKHzR/5vlk= 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:mime-version:content-transfer-encoding; bh=AKeMSKov7AHQwHfd85g+W8Oq6xXcT+CwfQ8H/UQOhg4=; b=kKxT8LuZIc5UdFo1cQXuPMV4DaWgSR4/EYLXIoBgVXyNX6Yg+HzJt2jGNkgcKbQVxK nNYASJc+8OIy4KrY1aCMC4wW2NV2gkZJUqNr2ZU89V14dgtWLa4AMWNLvAUsKKCQ1yvd /g/vWEKxONGzB93+4vv658R3WIY3HRwT5cozcgJz2PhG3Ot5fMTulIx9SrT0+/cFObMo j3mF0XI+Y4iDrgVbxeKecpw274bP7DJgEFbYzv2qmnJm8DcBwfmisg0/yrg8G+7P4D// noIVKlDYFt84YnHPtBQp1m9py96Ut0aTK1JK7fqJ27Cy5KOcnrYyUQCrzbYtTh3k6sus E8/g== X-Gm-Message-State: AA+aEWbH/nFsF5Hs+F88at45X07McQyK7yst5dte9kKf9wJNmsQ9XdnY g+u7kFtDRa34Jdv9Kz+OajYyKQ== X-Google-Smtp-Source: AFSGD/Xwkuf1HnFBEA0R/zGio6K6R4GEZl+L7uNmrLUq7sfCdvLEyeoJ+OZv+vj9MODCttIAnIDhZg== X-Received: by 2002:a19:5402:: with SMTP id i2mr3791457lfb.128.1544307793221; Sat, 08 Dec 2018 14:23:13 -0800 (PST) Received: from localhost.bredbandsbolaget (c-ae7b71d5.014-348-6c756e10.bbcust.telenor.se. [213.113.123.174]) by smtp.gmail.com with ESMTPSA id b69sm1310884lfl.28.2018.12.08.14.23.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 08 Dec 2018 14:23:12 -0800 (PST) From: Linus Walleij To: linux-arm-kernel@lists.infradead.org, Hans Ulli Kroll , Florian Fainelli Date: Sat, 8 Dec 2018 23:22:59 +0100 Message-Id: <20181208222301.5303-3-linus.walleij@linaro.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181208222301.5303-1-linus.walleij@linaro.org> References: <20181208222301.5303-1-linus.walleij@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181208_142325_775339_EAF827A9 X-CRM114-Status: GOOD ( 12.09 ) X-Spam-Score: 0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (0.2 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:143 listed in] [list.dnswl.org] -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_INVALID DKIM or DK signature exists, but is not valid Subject: [OpenWrt-Devel] [PATCH 3/5] ARM: dts: Fix up SQ201 flash access 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: Andrew Lunn , Linus Walleij , LEDE Development List Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org This sets the partition information on the SQ201 to be read out from the RedBoot partition table, removes the static partition table and sets our boot options to mount root from /dev/mtdblock2 where the squashfs+JFFS2 resides. Signed-off-by: Linus Walleij --- arch/arm/boot/dts/gemini-sq201.dts | 37 ++++-------------------------- 1 file changed, 5 insertions(+), 32 deletions(-) diff --git a/arch/arm/boot/dts/gemini-sq201.dts b/arch/arm/boot/dts/gemini-sq201.dts index af4be6ecb02c..c5bb24102b75 100644 --- a/arch/arm/boot/dts/gemini-sq201.dts +++ b/arch/arm/boot/dts/gemini-sq201.dts @@ -20,7 +20,7 @@ }; chosen { - bootargs = "console=ttyS0,115200n8"; + bootargs = "console=ttyS0,115200n8 root=/dev/mtdblock2 rw rootfstype=squashfs,jffs2 rootwait"; stdout-path = &uart0; }; @@ -131,37 +131,10 @@ /* 16MB of flash */ reg = <0x30000000 0x01000000>; - partition@0 { - label = "RedBoot"; - reg = <0x00000000 0x00120000>; - read-only; - }; - partition@120000 { - label = "Kernel"; - reg = <0x00120000 0x00200000>; - }; - partition@320000 { - label = "Ramdisk"; - reg = <0x00320000 0x00600000>; - }; - partition@920000 { - label = "Application"; - reg = <0x00920000 0x00600000>; - }; - partition@f20000 { - label = "VCTL"; - reg = <0x00f20000 0x00020000>; - read-only; - }; - partition@f40000 { - label = "CurConf"; - reg = <0x00f40000 0x000a0000>; - read-only; - }; - partition@fe0000 { - label = "FIS directory"; - reg = <0x00fe0000 0x00020000>; - read-only; + partitions { + compatible = "redboot-fis"; + /* Eraseblock at 0xfe0000 */ + fis-index-block = <0x1fc>; }; }; From patchwork Sat Dec 8 22:23:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 1009896 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=linaro.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="DE14Jp6t"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="JKDvG3Fi"; 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 43C3mn4DTDz9s1c for ; Sun, 9 Dec 2018 09:24:57 +1100 (AEDT) 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: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=nntdLzh0ZptzfgD/J1KwhIC99it68tgc1J0hPDjtHAo=; b=DE14Jp6tH928yv LKZGJBDxba9BuIttlyThqfRVEUCQqwDB5T3sziG7YVhWdMuAftzdyHguXhCBS91s2hGXoz7Sx2YZc zEpA9gO6K9BzcFItC1jNw9kJA3/nRJsXutyBaXNY8jayWbbW/pYaRJJ2Xm7eyCj9dR/A8JPTylv8+ R5KM3gUyDOyhyoRs2Quas2Va24IMgE7c9YM1K4ZOJECMBQ0NzZT3t01Tr4QOllL0pBtKJX1grBFKr EVToJpNLLmdmTZaAVUpu2S/1gB9YfAUggURM7mJZBBydW8NFry24w4luObBxNjz732vhfkWxVoMmG kaR6LHeDZRr5ET2yiT+w==; 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 1gVl1m-0004p8-A8; Sat, 08 Dec 2018 22:24:50 +0000 Received: from mail-lf1-x144.google.com ([2a00:1450:4864:20::144]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gVl0O-0003Lj-09 for lede-dev@lists.infradead.org; Sat, 08 Dec 2018 22:23:31 +0000 Received: by mail-lf1-x144.google.com with SMTP id e26so5471422lfc.2 for ; Sat, 08 Dec 2018 14:23:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=rBIWybge8yyBkLL0f+YVGaXW8/WUUWbmc+5k7MS2t0U=; b=JKDvG3FiDMcwN3bu1VOcAh/vAv5RQ0+jbS4pAORRb9KHCpO0ZL4ZDBrOEbNrKy6asU FsHdd4qIQv5fCL7lRsy6zAeWUxlVwzubujf0f5KXziRFdOiQVqHgQHR+bMR45sDm85Hi JcPPKQn5Kv/4KKLPg4izNyKcP9Nk9McvH7XUw= 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:mime-version:content-transfer-encoding; bh=rBIWybge8yyBkLL0f+YVGaXW8/WUUWbmc+5k7MS2t0U=; b=LkSERJ+Ewm3kDGZZar3KbqcePqn9RRE4DEktybDUN/1A2AIWKTMYufFiSpSJYE8Pdb 9I15YLGPQ3e20+N456x953UfAgNJ2LL8TQARxW0TbL7jhBRpkn7oBShQI4J7hK4kMjHq Ax1jYtyjI0YrYZm0nukmqwPoCHHjrgTUIGTHIsojsWoP2/QbOrG/rlqe4GHcZ0OpRGkG 1iXW9D/N7LLGCC2we+Ns1Tfv5YXyYxTaaBEh/stHNQ4aW5F1gAjsFfUZCaDF/ipafrbo YWWTjNJVDW00KGOLfyfm3kWWMEXlJAprtAvDxMrH0KO2P4l7kFgWV4VGFFk1GYJbZ7rM ptcA== X-Gm-Message-State: AA+aEWbOusA/IRTzfRTP7O656eWpKhTHooTBShE+cCC2WsgG7RKmVHsc RuaDZ+bsC0XXPYhFvmr9fvnERQ== X-Google-Smtp-Source: AFSGD/XXkXhmgLvMU474CF4EfyQvcmT/MmX/HE5ANIbS3DQa2A9JgSEV3qyQNfuTBadO35UcXFELLQ== X-Received: by 2002:a19:641d:: with SMTP id y29mr3887412lfb.14.1544307795557; Sat, 08 Dec 2018 14:23:15 -0800 (PST) Received: from localhost.bredbandsbolaget (c-ae7b71d5.014-348-6c756e10.bbcust.telenor.se. [213.113.123.174]) by smtp.gmail.com with ESMTPSA id b69sm1310884lfl.28.2018.12.08.14.23.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 08 Dec 2018 14:23:14 -0800 (PST) From: Linus Walleij To: linux-arm-kernel@lists.infradead.org, Hans Ulli Kroll , Florian Fainelli Date: Sat, 8 Dec 2018 23:23:00 +0100 Message-Id: <20181208222301.5303-4-linus.walleij@linaro.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181208222301.5303-1-linus.walleij@linaro.org> References: <20181208222301.5303-1-linus.walleij@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181208_142324_156982_4AB4249F X-CRM114-Status: GOOD ( 16.43 ) X-Spam-Score: 0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (0.2 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:144 listed in] [list.dnswl.org] -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_INVALID DKIM or DK signature exists, but is not valid Subject: [OpenWrt-Devel] [PATCH 4/5] ARM: dts: Add the FOTG210 USB host to Gemini boards 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: Andrew Lunn , Linus Walleij , LEDE Development List Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org This adds the FOTG210 USB host controller to the Gemini device trees. In the main SoC DTSI it is flagged as disabled and then it is selectively enabled on the devices that utilize it. Signed-off-by: Linus Walleij --- arch/arm/boot/dts/gemini-dlink-dir-685.dts | 8 ++++++ arch/arm/boot/dts/gemini-nas4220b.dts | 8 ++++++ arch/arm/boot/dts/gemini-rut1xx.dts | 20 ++++++++++++++ arch/arm/boot/dts/gemini-sl93512r.dts | 8 ++++++ arch/arm/boot/dts/gemini-sq201.dts | 8 ++++++ arch/arm/boot/dts/gemini-wbd111.dts | 8 ++++++ arch/arm/boot/dts/gemini-wbd222.dts | 8 ++++++ arch/arm/boot/dts/gemini.dtsi | 32 ++++++++++++++++++++++ 8 files changed, 100 insertions(+) diff --git a/arch/arm/boot/dts/gemini-dlink-dir-685.dts b/arch/arm/boot/dts/gemini-dlink-dir-685.dts index 318e9b2ba7dc..5e8e96458903 100644 --- a/arch/arm/boot/dts/gemini-dlink-dir-685.dts +++ b/arch/arm/boot/dts/gemini-dlink-dir-685.dts @@ -452,5 +452,13 @@ }; }; }; + + usb@68000000 { + status = "okay"; + }; + + usb@69000000 { + status = "okay"; + }; }; }; diff --git a/arch/arm/boot/dts/gemini-nas4220b.dts b/arch/arm/boot/dts/gemini-nas4220b.dts index 963ea890c87f..53b65ebe8454 100644 --- a/arch/arm/boot/dts/gemini-nas4220b.dts +++ b/arch/arm/boot/dts/gemini-nas4220b.dts @@ -204,5 +204,13 @@ ata@63400000 { status = "okay"; }; + + usb@68000000 { + status = "okay"; + }; + + usb@69000000 { + status = "okay"; + }; }; }; diff --git a/arch/arm/boot/dts/gemini-rut1xx.dts b/arch/arm/boot/dts/gemini-rut1xx.dts index eb4f0bf074da..b2354c215a84 100644 --- a/arch/arm/boot/dts/gemini-rut1xx.dts +++ b/arch/arm/boot/dts/gemini-rut1xx.dts @@ -124,5 +124,25 @@ /* Not used in this platform */ }; }; + + ethernet@60000000 { + status = "okay"; + + ethernet-port@0 { + phy-mode = "rgmii"; + phy-handle = <&phy0>; + }; + ethernet-port@1 { + /* Not used in this platform */ + }; + }; + + usb@68000000 { + status = "okay"; + }; + + usb@69000000 { + status = "okay"; + }; }; }; diff --git a/arch/arm/boot/dts/gemini-sl93512r.dts b/arch/arm/boot/dts/gemini-sl93512r.dts index ebefb7297379..2bb953440793 100644 --- a/arch/arm/boot/dts/gemini-sl93512r.dts +++ b/arch/arm/boot/dts/gemini-sl93512r.dts @@ -324,5 +324,13 @@ ata@63400000 { status = "okay"; }; + + usb@68000000 { + status = "okay"; + }; + + usb@69000000 { + status = "okay"; + }; }; }; diff --git a/arch/arm/boot/dts/gemini-sq201.dts b/arch/arm/boot/dts/gemini-sq201.dts index c5bb24102b75..ecbc27d93b2d 100644 --- a/arch/arm/boot/dts/gemini-sq201.dts +++ b/arch/arm/boot/dts/gemini-sq201.dts @@ -292,5 +292,13 @@ ata@63000000 { status = "okay"; }; + + usb@68000000 { + status = "okay"; + }; + + usb@69000000 { + status = "okay"; + }; }; }; diff --git a/arch/arm/boot/dts/gemini-wbd111.dts b/arch/arm/boot/dts/gemini-wbd111.dts index 29af86cd10f7..6831d2aed17a 100644 --- a/arch/arm/boot/dts/gemini-wbd111.dts +++ b/arch/arm/boot/dts/gemini-wbd111.dts @@ -171,5 +171,13 @@ /* Not used in this platform */ }; }; + + usb@68000000 { + status = "okay"; + }; + + usb@69000000 { + status = "okay"; + }; }; }; diff --git a/arch/arm/boot/dts/gemini-wbd222.dts b/arch/arm/boot/dts/gemini-wbd222.dts index 24e6ae3616f7..ed38d48ef5f6 100644 --- a/arch/arm/boot/dts/gemini-wbd222.dts +++ b/arch/arm/boot/dts/gemini-wbd222.dts @@ -183,5 +183,13 @@ phy-handle = <&phy1>; }; }; + + usb@68000000 { + status = "okay"; + }; + + usb@69000000 { + status = "okay"; + }; }; }; diff --git a/arch/arm/boot/dts/gemini.dtsi b/arch/arm/boot/dts/gemini.dtsi index eb752e9495de..8cf67b11751f 100644 --- a/arch/arm/boot/dts/gemini.dtsi +++ b/arch/arm/boot/dts/gemini.dtsi @@ -409,5 +409,37 @@ #size-cells = <0>; status = "disabled"; }; + + usb@68000000 { + compatible = "cortina,gemini-usb", "faraday,fotg210"; + reg = <0x68000000 0x1000>; + interrupts = <10 IRQ_TYPE_LEVEL_HIGH>; + resets = <&syscon GEMINI_RESET_USB0>; + clocks = <&syscon GEMINI_CLK_GATE_USB0>; + clock-names = "PCLK"; + /* + * This will claim pins for USB0 and USB1 at the same + * time as they are using some common pins. If you for + * some reason have a system using USB1 at 96000000 but + * NOT using USB0 at 68000000 you wll have to add the + * usb_default_pins to the USB controller at 96000000 + * in your .dts for the board. + */ + pinctrl-names = "default"; + pinctrl-0 = <&usb_default_pins>; + syscon = <&syscon>; + status = "disabled"; + }; + + usb@69000000 { + compatible = "cortina,gemini-usb", "faraday,fotg210"; + reg = <0x69000000 0x1000>; + interrupts = <11 IRQ_TYPE_LEVEL_HIGH>; + resets = <&syscon GEMINI_RESET_USB1>; + clocks = <&syscon GEMINI_CLK_GATE_USB1>; + clock-names = "PCLK"; + syscon = <&syscon>; + status = "disabled"; + }; }; }; From patchwork Sat Dec 8 22:23:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 1009894 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=linaro.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Lpudwx7i"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="aQdRNqvq"; 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 43C3ls2Jhnz9s1c for ; Sun, 9 Dec 2018 09:24:09 +1100 (AEDT) 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: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=PjJ3/1NO161o2+YA0BeDwHq6ypbykNMt+bTw8IIq6JE=; b=Lpudwx7iNw19pT DpLvrTbgsmXa8QjaJV9CF+KDjyacX1gRvVcbFelLgn4O7EmWHDEjgtWOIIZGNeHSYmBC8fjIFVJ+j MVN5pcr7i88ZOVBqZ1bK9jKZkbWfkEup09mLVzqUUv6SbreSe8HLSSDUK5hqLxGBTkrFw7RnyEb4F ogqS5JIvQ0QuGBhb8gbEwl4fuNawsydK9idy9Ul7mf7+Y43uULXbgEy8S5KzvHIxj+zehhuMN3TjK c+7Rxh+met5vbAGXBGnDHEC5qm7bl3dp+NhDUntZBH8kHk5eq9QlDk47FgQqmATBFXU/L/Cka4DOk 6GlloyGanfw4JqZMZieQ==; 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 1gVl13-00049S-SO; Sat, 08 Dec 2018 22:24:05 +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 1gVl0L-0003Lt-3A for lede-dev@lists.infradead.org; Sat, 08 Dec 2018 22:23:24 +0000 Received: by mail-lj1-x241.google.com with SMTP id g11-v6so6494334ljk.3 for ; Sat, 08 Dec 2018 14:23:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=PTt6n+5fqckoesxLGFZS0o7UEgZWgOK7xniDvS3NX/o=; b=aQdRNqvqZGGFBByZNfapUXWawYV4ddqVzbrwA+I4tOa8DcHwpo0LPJYD4kouQdGfdA BSHBv2i4qFufNAtOxIxWparXBTyr2qTpzrfCkot8uesYx+XQ7xkelfzDUuyPRjmEPXz4 epdmy9DEkObjrcsWVOtUGOx/NohtV03E9BcQM= 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:mime-version:content-transfer-encoding; bh=PTt6n+5fqckoesxLGFZS0o7UEgZWgOK7xniDvS3NX/o=; b=HMLzgfqpPq7kVg5OP4mFhkPsGguZ/GZijEBHkfKKuNbs8RR06BfLQVVjqzHS8k809U a6P0CHbQ0IN7S63nz+WAu5A/VQ/z7lad1jKvniXzxB41olamG6wO2AZYbQyu5Khm5CqV mhbgD9lnPleCSes96BSvezZ06ovpMOgTC2bUMO1uQmpCfxGZ7c3yMGsHIdDC2X/5Z5dz uPHbH68zDMZaB+FJu7Be5PMHuzCkP2hSjVUyN4bv5Y9EW+HclOpAuHPV9Gxku/79lrdI LtIcRtLgl9XO7+ffKw0Xry9g+AxibiyDqRP1Tl81ROBWHftFrtC6+Iy5Z+QisLiytk1x z8iw== X-Gm-Message-State: AA+aEWbhkyKcaMz0XwUr2pQ+juS9QFd+qQLYT+y8J44YQhwcjkNzdsnF gJL4UZzG5p+IQD/l9ug1HgU0RQ== X-Google-Smtp-Source: AFSGD/VKNLRRXN5Lm1P6uY8Mkii00E48ywEcSL70Z2jEeiJfM9dMngAwj4kzOqvLsB+M3jnflxFJzQ== X-Received: by 2002:a2e:2019:: with SMTP id g25-v6mr3981900ljg.20.1544307797694; Sat, 08 Dec 2018 14:23:17 -0800 (PST) Received: from localhost.bredbandsbolaget (c-ae7b71d5.014-348-6c756e10.bbcust.telenor.se. [213.113.123.174]) by smtp.gmail.com with ESMTPSA id b69sm1310884lfl.28.2018.12.08.14.23.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 08 Dec 2018 14:23:16 -0800 (PST) From: Linus Walleij To: linux-arm-kernel@lists.infradead.org, Hans Ulli Kroll , Florian Fainelli Date: Sat, 8 Dec 2018 23:23:01 +0100 Message-Id: <20181208222301.5303-5-linus.walleij@linaro.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181208222301.5303-1-linus.walleij@linaro.org> References: <20181208222301.5303-1-linus.walleij@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181208_142321_200884_CFA906C1 X-CRM114-Status: GOOD ( 12.91 ) X-Spam-Score: 0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (0.2 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.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.1 DKIM_INVALID DKIM or DK signature exists, but is not valid Subject: [OpenWrt-Devel] [PATCH 5/5] ARM: dts: Bump Gemini platforms to use 100ms debounce 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: Andrew Lunn , Linus Walleij , LEDE Development List Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org The 50ms debounce is too low and give ghost bounces on some platforms. Bump it to 100ms to make it stable. Signed-off-by: Linus Walleij --- arch/arm/boot/dts/gemini-dlink-dir-685.dts | 4 ++-- arch/arm/boot/dts/gemini-dlink-dns-313.dts | 2 +- arch/arm/boot/dts/gemini-nas4220b.dts | 4 ++-- arch/arm/boot/dts/gemini-rut1xx.dts | 2 +- arch/arm/boot/dts/gemini-sq201.dts | 2 +- arch/arm/boot/dts/gemini-wbd111.dts | 2 +- arch/arm/boot/dts/gemini-wbd222.dts | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/arm/boot/dts/gemini-dlink-dir-685.dts b/arch/arm/boot/dts/gemini-dlink-dir-685.dts index 5e8e96458903..cc0c3cf89eaa 100644 --- a/arch/arm/boot/dts/gemini-dlink-dir-685.dts +++ b/arch/arm/boot/dts/gemini-dlink-dir-685.dts @@ -28,7 +28,7 @@ compatible = "gpio-keys"; button-esc { - debounce-interval = <50>; + debounce-interval = <100>; wakeup-source; linux,code = ; label = "reset"; @@ -36,7 +36,7 @@ gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; button-eject { - debounce-interval = <50>; + debounce-interval = <100>; wakeup-source; linux,code = ; label = "unmount"; diff --git a/arch/arm/boot/dts/gemini-dlink-dns-313.dts b/arch/arm/boot/dts/gemini-dlink-dns-313.dts index d1329322b968..b12504e10f0b 100644 --- a/arch/arm/boot/dts/gemini-dlink-dns-313.dts +++ b/arch/arm/boot/dts/gemini-dlink-dns-313.dts @@ -34,7 +34,7 @@ compatible = "gpio-keys"; button-esc { - debounce-interval = <50>; + debounce-interval = <100>; wakeup-source; linux,code = ; label = "reset"; diff --git a/arch/arm/boot/dts/gemini-nas4220b.dts b/arch/arm/boot/dts/gemini-nas4220b.dts index 53b65ebe8454..f4535d635f3b 100644 --- a/arch/arm/boot/dts/gemini-nas4220b.dts +++ b/arch/arm/boot/dts/gemini-nas4220b.dts @@ -28,7 +28,7 @@ compatible = "gpio-keys"; button-setup { - debounce-interval = <50>; + debounce-interval = <100>; wakeup-source; linux,code = ; label = "Backup button"; @@ -36,7 +36,7 @@ gpios = <&gpio1 29 GPIO_ACTIVE_LOW>; }; button-restart { - debounce-interval = <50>; + debounce-interval = <100>; wakeup-source; linux,code = ; label = "Softreset button"; diff --git a/arch/arm/boot/dts/gemini-rut1xx.dts b/arch/arm/boot/dts/gemini-rut1xx.dts index b2354c215a84..9611ddf06792 100644 --- a/arch/arm/boot/dts/gemini-rut1xx.dts +++ b/arch/arm/boot/dts/gemini-rut1xx.dts @@ -28,7 +28,7 @@ compatible = "gpio-keys"; button-setup { - debounce-interval = <50>; + debounce-interval = <100>; wakeup-source; linux,code = ; label = "Reset to defaults"; diff --git a/arch/arm/boot/dts/gemini-sq201.dts b/arch/arm/boot/dts/gemini-sq201.dts index ecbc27d93b2d..239dfacaae4d 100644 --- a/arch/arm/boot/dts/gemini-sq201.dts +++ b/arch/arm/boot/dts/gemini-sq201.dts @@ -28,7 +28,7 @@ compatible = "gpio-keys"; button-setup { - debounce-interval = <50>; + debounce-interval = <100>; wakeup-source; linux,code = ; label = "factory reset"; diff --git a/arch/arm/boot/dts/gemini-wbd111.dts b/arch/arm/boot/dts/gemini-wbd111.dts index 6831d2aed17a..3a2761dd460f 100644 --- a/arch/arm/boot/dts/gemini-wbd111.dts +++ b/arch/arm/boot/dts/gemini-wbd111.dts @@ -29,7 +29,7 @@ compatible = "gpio-keys"; button-setup { - debounce-interval = <50>; + debounce-interval = <100>; wakeup-source; linux,code = ; label = "reset"; diff --git a/arch/arm/boot/dts/gemini-wbd222.dts b/arch/arm/boot/dts/gemini-wbd222.dts index ed38d48ef5f6..52b4dbc0c072 100644 --- a/arch/arm/boot/dts/gemini-wbd222.dts +++ b/arch/arm/boot/dts/gemini-wbd222.dts @@ -28,7 +28,7 @@ compatible = "gpio-keys"; button-setup { - debounce-interval = <50>; + debounce-interval = <100>; wakeup-source; linux,code = ; label = "reset";