From patchwork Sun Jan 19 18:34:24 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sander Vanheule X-Patchwork-Id: 13944566 Received: from polaris.svanheule.net (polaris.svanheule.net [84.16.241.116]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4EBC61DFE0A for ; Sun, 19 Jan 2025 18:35:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=84.16.241.116 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737311708; cv=none; b=RJFmSQ61LqOOAk14+pji9tGkbjgEJWKXYapQAgQTNGoWWJbSV7GCQCvyhMSzEaXLphQOWy27qGnS95n+yl/B71Ii/LhjX6Im/5I+iZSNFTKYPk2MyAqhOWi0lopfZazyUXb9YuZuzwwvD4ceBYSFeDRR+zrqAW9rrDPqVT4dVaA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737311708; c=relaxed/simple; bh=7CkaAxJau2fFS8tpIxD/jCXpy89OsYk/FiTRSJaT2DA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dvNyw6XhxnzpQFFN19m63BAZT92OaHNfvw9C7x+vsXXl5yYGRJTcmm3hLh4bgx1OVZeXv0cS0Dy8xEKLduSiLfHOZiJ4X6ep/WQ2Nd4LF5jv4b1UxuhAESvWiavRLI9yUN079pGrQNpCOvfGxx05GtspTRmCI0zNWFolandVhII= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=svanheule.net; spf=pass smtp.mailfrom=svanheule.net; dkim=pass (2048-bit key) header.d=svanheule.net header.i=@svanheule.net header.b=hs4KABI7; arc=none smtp.client-ip=84.16.241.116 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=svanheule.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=svanheule.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=svanheule.net header.i=@svanheule.net header.b="hs4KABI7" Received: from terra.vega.svanheule.net (unknown [94.110.49.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sander@svanheule.net) by polaris.svanheule.net (Postfix) with ESMTPSA id 7B84A5A7E55; Sun, 19 Jan 2025 19:34:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svanheule.net; s=mail1707; t=1737311694; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/yCIGpdW6bZuuprcTRCy5tyH+DBatJe449aiujsUBxE=; b=hs4KABI7N1wUR3okMIMq0VDD+UqBLQcXI4/QEGphBF/9ZfTbCXrsIuUsEPkPtpeblFLosk pqFsVbkxM+YsTeFTNIwGEHSJq0U7OLNykYZdyq5QI7PeeyNDtmtkh/YkOuMUd5MnTwY/fr cCwB3fURoTIXnFw5pFDBE0FIaPtC+hX9atZezPpPYOYoyp6qpo92E7/L6ts8y7P/fNlJXE jMjV8GK/rCpYxuNatPlnaFJvtKn0LpU0KZDOeVMJsQOTCvxT0yd4YNxg5dbqp0Fl1wIoCd BLk6WsCjLLnBubUm9jO+WNkyKE6eBkSgQtesplR7FbyGtOg2okXYCOdPBvg3bQ== From: Sander Vanheule To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thomas Bogendoerfer , Chris Packham , devicetree@vger.kernel.org, linux-mips@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Sander Vanheule Subject: [PATCH 9/9] mips: dts: realtek: Add restart to Cisco SG220-26P Date: Sun, 19 Jan 2025 19:34:24 +0100 Message-ID: <20250119183424.259353-10-sander@svanheule.net> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250119183424.259353-1-sander@svanheule.net> References: <20250119183424.259353-1-sander@svanheule.net> Precedence: bulk X-Mailing-List: linux-mips@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Define a gpio-restart node to the Cisco SG220-26P so the device can be rebooted using the SoC's hard reset pin. Set the priority to 192 so the gpio-restart method takes priority over the watchdog restart. Signed-off-by: Sander Vanheule --- arch/mips/boot/dts/realtek/cisco_sg220-26.dts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/mips/boot/dts/realtek/cisco_sg220-26.dts b/arch/mips/boot/dts/realtek/cisco_sg220-26.dts index cb85d172a1d3..fab3d552404d 100644 --- a/arch/mips/boot/dts/realtek/cisco_sg220-26.dts +++ b/arch/mips/boot/dts/realtek/cisco_sg220-26.dts @@ -4,6 +4,8 @@ #include "rtl838x.dtsi" +#include + / { model = "Cisco SG220-26"; compatible = "cisco,sg220-26", "realtek,rtl8382-soc"; @@ -17,6 +19,13 @@ memory@0 { device_type = "memory"; reg = <0x0 0x8000000>; }; + + gpio-restart { + compatible = "gpio-restart"; + gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; + priority = <192>; + open-source; + }; }; &uart0 {