From nobody Sun Feb 8 00:26:23 2026 Received: from out-171.mta1.migadu.com (out-171.mta1.migadu.com [95.215.58.171]) (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 957993A1DB for ; Wed, 4 Dec 2024 19:07:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733339226; cv=none; b=P0DazpQnYwO+bv2BQcUNuymQ4uyLpP5SU8Yvg8VMgd33p7v9smkf+uQkbBE0ocL401jP5XqQKNo4jBMQ4ZiDfl1H745Gcm1xESs3fdusP58m92jAcILRKJlr81v9T89XubOYC/1IDtPk83vhRKaeJVW8QESd4LBnU/gu0EBE8eY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733339226; c=relaxed/simple; bh=apG21FKxNYbpSacX4sT2FYDMR8lU4RlroLE2wa8WqTo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=EC4FriA4PkL+Ibm8oFq1LeoIsdTK/sKTru033v0+y2iITgHFcML0X9/j6O1c8Jeegc+iRbe0Gt4jIYQ81hfqfhs+5UdOZgwe/n8BoU9ol03MEn25NdLmVoSFY1Ul/oj5wD6qVAM5enb4BI00cnrsSksEMjwEkNLVlLatmUCoWM8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=packett.cool; spf=pass smtp.mailfrom=packett.cool; dkim=pass (2048-bit key) header.d=packett.cool header.i=@packett.cool header.b=KgFfpaMT; arc=none smtp.client-ip=95.215.58.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=packett.cool Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=packett.cool Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=packett.cool header.i=@packett.cool header.b="KgFfpaMT" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=packett.cool; s=key1; t=1733339221; 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=hA1Zct/rwnmvySI7KTOv2r1Q/QKt2sFeFNVohs4OzEc=; b=KgFfpaMTyPV/Z3goJ/i9j09JOF0W5QDtzKQn2y8GUwYPIiLo3dfhtb03ZNguFxRFE9//Qr FOc4bBjTIxsPYr6NMWQ5UzcaUFsbdiEn3s0kbFQfAS2ct8HbpxbjTsUsIQL1LvPxVUd/0P idyWpf1FbvTzeag09O55Dndz/Wj06417MtAfueQ67q/XWSxrFALUCeMLax7B9k4lEqZ4dc wbeLS8Kg9NOyHgUKf9/oQMTo3GL+41NEC4S1NJ1hFfnHTU8TXprC5XwgCDhgWBG/WHUf/p F/xUyctTtT0EpY/6vRqSQb1VhVI659gqcIernJASTecdHYxt8/vZZLdho+IGlQ== From: Val Packett To: Cc: Val Packett , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Fabien Parent , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH 1/5] arm64: dts: mediatek: mt8516: fix GICv2 range Date: Wed, 4 Dec 2024 16:05:04 -0300 Message-ID: <20241204190524.21862-2-val@packett.cool> In-Reply-To: <20241204190524.21862-1-val@packett.cool> References: <20241204190524.21862-1-val@packett.cool> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" On the MT8167 which is based on the MT8516 DTS, the following error was appearing on boot, breaking interrupt operation: GICv2 detected, but range too small and irqchip.gicv2_force_probe not set Similar to what's been proposed for MT7622 which has the same issue, fix by using the range reported by force_probe. Link: https://lore.kernel.org/all/YmhNSLgp%2Fyg8Vr1F@makrotopia.org/ Fixes: 5236347bde42 ("arm64: dts: mediatek: add dtsi for MT8516") Signed-off-by: Val Packett Reviewed-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt8516.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8516.dtsi b/arch/arm64/boot/dts= /mediatek/mt8516.dtsi index d0b03dc4d3f4..444429341302 100644 --- a/arch/arm64/boot/dts/mediatek/mt8516.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8516.dtsi @@ -268,7 +268,7 @@ gic: interrupt-controller@10310000 { interrupt-parent =3D <&gic>; interrupt-controller; reg =3D <0 0x10310000 0 0x1000>, - <0 0x10320000 0 0x1000>, + <0 0x1032f000 0 0x2000>, <0 0x10340000 0 0x2000>, <0 0x10360000 0 0x2000>; interrupts =3D ; Wed, 4 Dec 2024 19:07:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.188 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733339234; cv=none; b=UrjvGCmPSSqkiNmvPzCawXpnpamN644ChfdGaIw0zun8gjbpBXUzushicxbM1B+5NgVo+wjz0/Z902SmoBgwGTcvooaybanNuKak/Kz9k/FMOtNdNe3Gag9+Brs1J2Q+uoEBLBUcVkx4Y18/kKKOQzpR07ZQSQXV/tsE4x6lH1U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733339234; c=relaxed/simple; bh=aQE1gmaRdLJ7mHFEJuV0eH30B18Gkbbass08/5idHG0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MK72I486fNNJ6BecCIn+sRs0jZ4XS2iPWkhHqB+tjLJZRpc3Gc4LkJ7aRjWFEnVThaH22KKHwexGCn1gZrcRhmTdRb40Zq8kdvJyvOLBrOFqHlVjPPoBITT2weUGw5Mh7vt6FKWhLHJ7rupS3X7LTYIt4mPJMm16UG86Jc7ReIk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=packett.cool; spf=pass smtp.mailfrom=packett.cool; dkim=pass (2048-bit key) header.d=packett.cool header.i=@packett.cool header.b=eQrkpD6h; arc=none smtp.client-ip=95.215.58.188 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=packett.cool Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=packett.cool Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=packett.cool header.i=@packett.cool header.b="eQrkpD6h" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=packett.cool; s=key1; t=1733339231; 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=+lSfZLSwrFfKO4D+tL1HHWmCXCga7hprCT6tDTU5BJ4=; b=eQrkpD6hvWCLJmo0fgibWsvez7c+vM0S65jUKaHpvVUrSn0Q8GlqRUmwS4dtLeTCIRhXoc 0L/2ohKwmjRH6aWARiXJLulyt2uW2pjWRE4mip+enrD7Iw2GL6ftKxZ4lABYeTGHNomu8F kuyyHirZ9VZnIg9MkTnYuG4b/u6XO4VRzmbQ5YTEzEy4Ppm0T6vFS7eNwoqlJ+588K1HGJ x3s61U8qk5vVHAt4elheQ4WX+U8ts76nKqA12wsSzG0Iy1ZZMTokOY70FxpRyHLK59P9j6 Ac4J6LgR9KOcr8NkAj9q/NGW6fw0qH5jjJA6T7QPuarmYeJ+QxtOErVGwGcqNg== From: Val Packett To: Cc: Val Packett , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Fabien Parent , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH 2/5] arm64: dts: mediatek: mt8516: fix wdt irq type Date: Wed, 4 Dec 2024 16:05:05 -0300 Message-ID: <20241204190524.21862-3-val@packett.cool> In-Reply-To: <20241204190524.21862-1-val@packett.cool> References: <20241204190524.21862-1-val@packett.cool> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" The GICv2 does not support EDGE_FALLING interrupts, so the watchdog would refuse to attach due to a failing check coming from the GIC driver. Fixes: 5236347bde42 ("arm64: dts: mediatek: add dtsi for MT8516") Signed-off-by: Val Packett Reviewed-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt8516.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8516.dtsi b/arch/arm64/boot/dts= /mediatek/mt8516.dtsi index 444429341302..098c32ebf678 100644 --- a/arch/arm64/boot/dts/mediatek/mt8516.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8516.dtsi @@ -206,7 +206,7 @@ watchdog@10007000 { compatible =3D "mediatek,mt8516-wdt", "mediatek,mt6589-wdt"; reg =3D <0 0x10007000 0 0x1000>; - interrupts =3D ; + interrupts =3D ; #reset-cells =3D <1>; }; =20 --=20 2.47.1 From nobody Sun Feb 8 00:26:23 2026 Received: from out-188.mta1.migadu.com (out-188.mta1.migadu.com [95.215.58.188]) (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 617B81C3BFF for ; Wed, 4 Dec 2024 19:07:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.188 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733339243; cv=none; b=uUdH9uNmzlp00vYjf2v6q7SAD506/bGHt2A1SMDhD3bWDCSAEMGkRukJSHyNWASDXXWBoSCmh7Ypb8aUpe7U6WyxR9ANh5R0eYtHsl3JGj/nOrYddef0f/pmQ9/XzzbInGQlJnG1clTfCMej0maXSMmkrLSuMp4VOh7uMqu7mAo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733339243; c=relaxed/simple; bh=rlvsPYvMuuO+yh8u6W1LLbQ5Kmu0HQLaTb7FKwXjaN0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hwbIcPvBq9BQOAQZZSSukxMTtTaHnMsQlVbAv+HzHrBQOc9JQ8z0X77rrUpWAUorOCGx+WWzXT5+/PLyXsmmBMUmARXx9O1V9UMd8/cCcvlHWPBOJQTOokuRc3INz9Slqbv3v5mGdsUSfKZRm6BYU1Ik29s1wl9r1/4JGylABzc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=packett.cool; spf=pass smtp.mailfrom=packett.cool; dkim=pass (2048-bit key) header.d=packett.cool header.i=@packett.cool header.b=e/E8DLzA; arc=none smtp.client-ip=95.215.58.188 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=packett.cool Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=packett.cool Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=packett.cool header.i=@packett.cool header.b="e/E8DLzA" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=packett.cool; s=key1; t=1733339239; 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=7syezLnHgQEmyiZ2xWt2zSNSPIsQXatABp2R5u/j1U4=; b=e/E8DLzAm7Qnw12OKCU2NFzO2uIgrx4gRTmW6/I/sD470FV3ntt/MLIa9gerxUH6OAGwCY nCuvFVaekBD/0g6GKEm8SP6fT+x2rCESeKm+tpnwUcgEbv2ZG4r2fj52Q2K/C04tJgiLFk IDW0I6H8dXE1OdJ0iC2+Y6TRLgNvF+6V4oPkHa5mGfPu/VfmGugJP5nuOzLVGcc2VLxlP3 XwoO8KA4cXH3slLhoJAvlQkgyojn9aeHsIWnNhxKxj4OdtgQFlDBwN+XDra9YtwCZ6ItgG lKauIIg7RWwARbgZFDdvilu+hADxPJGpSQRh3NaWHxg9t6cYLem19+OmMYcTtA== From: Val Packett To: Cc: Val Packett , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Fabien Parent , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH 3/5] arm64: dts: mediatek: mt8516: add i2c clock-div property Date: Wed, 4 Dec 2024 16:05:06 -0300 Message-ID: <20241204190524.21862-4-val@packett.cool> In-Reply-To: <20241204190524.21862-1-val@packett.cool> References: <20241204190524.21862-1-val@packett.cool> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" Move the clock-div property from the pumpkin board dtsi to the SoC's since it belongs to the SoC itself and is required on other devices. Fixes: 5236347bde42 ("arm64: dts: mediatek: add dtsi for MT8516") Signed-off-by: Val Packett Reviewed-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt8516.dtsi | 3 +++ arch/arm64/boot/dts/mediatek/pumpkin-common.dtsi | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8516.dtsi b/arch/arm64/boot/dts= /mediatek/mt8516.dtsi index 098c32ebf678..dd17d8a88c19 100644 --- a/arch/arm64/boot/dts/mediatek/mt8516.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8516.dtsi @@ -344,6 +344,7 @@ i2c0: i2c@11009000 { reg =3D <0 0x11009000 0 0x90>, <0 0x11000180 0 0x80>; interrupts =3D ; + clock-div =3D <2>; clocks =3D <&topckgen CLK_TOP_I2C0>, <&topckgen CLK_TOP_APDMA>; clock-names =3D "main", "dma"; @@ -358,6 +359,7 @@ i2c1: i2c@1100a000 { reg =3D <0 0x1100a000 0 0x90>, <0 0x11000200 0 0x80>; interrupts =3D ; + clock-div =3D <2>; clocks =3D <&topckgen CLK_TOP_I2C1>, <&topckgen CLK_TOP_APDMA>; clock-names =3D "main", "dma"; @@ -372,6 +374,7 @@ i2c2: i2c@1100b000 { reg =3D <0 0x1100b000 0 0x90>, <0 0x11000280 0 0x80>; interrupts =3D ; + clock-div =3D <2>; clocks =3D <&topckgen CLK_TOP_I2C2>, <&topckgen CLK_TOP_APDMA>; clock-names =3D "main", "dma"; diff --git a/arch/arm64/boot/dts/mediatek/pumpkin-common.dtsi b/arch/arm64/= boot/dts/mediatek/pumpkin-common.dtsi index ec8dfb3d1c6d..a356db5fcc5f 100644 --- a/arch/arm64/boot/dts/mediatek/pumpkin-common.dtsi +++ b/arch/arm64/boot/dts/mediatek/pumpkin-common.dtsi @@ -47,7 +47,6 @@ key-volume-down { }; =20 &i2c0 { - clock-div =3D <2>; pinctrl-names =3D "default"; pinctrl-0 =3D <&i2c0_pins_a>; status =3D "okay"; @@ -156,7 +155,6 @@ cam-pwdn-hog { }; =20 &i2c2 { - clock-div =3D <2>; pinctrl-names =3D "default"; pinctrl-0 =3D <&i2c2_pins_a>; status =3D "okay"; --=20 2.47.1 From nobody Sun Feb 8 00:26:23 2026 Received: from out-188.mta1.migadu.com (out-188.mta1.migadu.com [95.215.58.188]) (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 7AC0B1C3C09 for ; Wed, 4 Dec 2024 19:07:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.188 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733339250; cv=none; b=rVhPLE9YOxcEd9SZ+MCuJsoplEBe1J7+QEGcMy3W7sn+EH+B7g93ALm77L1eJrc8i8CPgXMvJLvCqsKhhD9fdWwEi4YH+KCxkP1vknfndsZpG0Aazmduzt9gWrIOTz8SBsfAb/XYdRzZjIsgr6aESJ8xjNxz7q9OqUVGKSEmp+M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733339250; c=relaxed/simple; bh=1lmPBAarauhw9fo2j79KXl1M8rrUv5gHBcEOuWC22RY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kcka/ilgyTtJrMYjShErX3lU9cLHID8xSXMPnBzTFLwbownbkCgx2iN/aIiPymP0EPNeDIdni7TRuIaAec/DxG7kPZ5sQwD6I6+W9kMAovm+aAYsr7BU+KqrA9JXZcJot8nwHt7Texoqb43/k2Bnqm8tNUN48Oy0R3irpvK4X/4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=packett.cool; spf=pass smtp.mailfrom=packett.cool; dkim=pass (2048-bit key) header.d=packett.cool header.i=@packett.cool header.b=d+3YpRfV; arc=none smtp.client-ip=95.215.58.188 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=packett.cool Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=packett.cool Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=packett.cool header.i=@packett.cool header.b="d+3YpRfV" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=packett.cool; s=key1; t=1733339247; 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=2jDd4bBMDalT9ZxoYHLpyRHVnoZ11E0Z+zGVQfgaKds=; b=d+3YpRfV8bJMMNZ+zJ7Aciv82CZF5FknOjrbzQJEiv0QIw5G23aQHgIgEA8hM+bIACt5WJ ZqJUwW1T2jj9qqhl4F9djUU+lRrdQmJiXLEb7d6gUKxHe0QinqK54vOq2IW36p5XEyzPEl 9QM7BPMlDWoVkesz0/ZjkDcw2txR10fETinlnQsXTV+IcoLc9puBfR9xJISNVzjy+msJuH bo8P3XQbyUR7+g3D6y6KwJGoLYcYywX+IRgFcyDEVIh6p6k97g9yo7uKd5C92lhAush/BV a3mV0jtdZPKZAChNlx00/sm8MWdeVuKLAEsUB5mvOdSL+biEZTWARGFhuxPVYQ== From: Val Packett To: Cc: Val Packett , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Fabien Parent , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH 4/5] arm64: dts: mediatek: mt8516: reserve 192 KiB for TF-A Date: Wed, 4 Dec 2024 16:05:07 -0300 Message-ID: <20241204190524.21862-5-val@packett.cool> In-Reply-To: <20241204190524.21862-1-val@packett.cool> References: <20241204190524.21862-1-val@packett.cool> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" The Android DTB for the related MT8167 reserves 0x30000. This is likely correct for MT8516 Android devices as well, and there's never any harm in reserving 64KiB more. Fixes: 5236347bde42 ("arm64: dts: mediatek: add dtsi for MT8516") Signed-off-by: Val Packett Reviewed-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt8516.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8516.dtsi b/arch/arm64/boot/dts= /mediatek/mt8516.dtsi index dd17d8a88c19..e30623ebac0e 100644 --- a/arch/arm64/boot/dts/mediatek/mt8516.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8516.dtsi @@ -144,10 +144,10 @@ reserved-memory { #size-cells =3D <2>; ranges; =20 - /* 128 KiB reserved for ARM Trusted Firmware (BL31) */ + /* 192 KiB reserved for ARM Trusted Firmware (BL31) */ bl31_secmon_reserved: secmon@43000000 { no-map; - reg =3D <0 0x43000000 0 0x20000>; + reg =3D <0 0x43000000 0 0x30000>; }; }; =20 --=20 2.47.1 From nobody Sun Feb 8 00:26:23 2026 Received: from out-179.mta1.migadu.com (out-179.mta1.migadu.com [95.215.58.179]) (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 16B5C1C3C12 for ; Wed, 4 Dec 2024 19:07:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.179 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733339256; cv=none; b=uWrCLzi/MsTcp5bt30xCTx/8M7udejsfZhaqbJotehQns1QFYPA6Kln2KAAN56cQzPiqaytVfBdagFAFi0vOPQHuFlf4DkZzcmQDqQuiIQOLWDukYePDvvueVHYnAz03pKa1Q3uHhE9oWk6mFb45wk4JNLVnoKYpeB0m6/YcPTc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733339256; c=relaxed/simple; bh=AI7XLVFzEzY5wWdqwbkqdkWKgNZuzYTsYopnNF2mj+0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=C4HaPBruTUrHj4J6dVOr04eXLaweke5zG0tq5D0+8o1JBO60d5hnsRRasjmRujZsJTLW4Rj9yv60QhvNqpkZ9VjhGdMBlvwG1eubXnZHmlBLuVsF8h2+qfo8gL71cHcZEddo2zdYIoUSWP9kftme5K4AoAO32QvRjRzdaKV8WmY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=packett.cool; spf=pass smtp.mailfrom=packett.cool; dkim=pass (2048-bit key) header.d=packett.cool header.i=@packett.cool header.b=agI3ERp/; arc=none smtp.client-ip=95.215.58.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=packett.cool Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=packett.cool Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=packett.cool header.i=@packett.cool header.b="agI3ERp/" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=packett.cool; s=key1; t=1733339253; 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=42ELpOH5Qo1NSXKOzoDjJnFG2AmNC61cPGL5UWKFmqU=; b=agI3ERp/r5e409B96kRDTranILhj9qOcVh/fpjlqRK7ao6K4JxofakzHN3JPthCW1CHzLQ zI1ofe+UcBUB8A0XyazJFcWahUXmejP1ZqmX1psLHGNoNUqY6haYJJX9AIpkw+NNJ6SKgS ELeQC0BKsYz3rxXwMiUcLW6OlVGn7KIF3dJawAX7CKr5X3Ed11MkSyimcmZcWgT0+0VtlZ qm1DR06IaPyGQdnlr47E6rgIUPvQYxPmR2ksHEiA8ph0+c3He7YjAGBEvaFCizL3kQPq5k VFCarITlR4BqJubPjjQDwkY9C+00WiPLgEm0Df9o18o2ZMiZQHP8WD8MCIsA+w== From: Val Packett To: Cc: Val Packett , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Fabien Parent , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH 5/5] arm64: dts: mediatek: mt8516: add keypad node Date: Wed, 4 Dec 2024 16:05:08 -0300 Message-ID: <20241204190524.21862-6-val@packett.cool> In-Reply-To: <20241204190524.21862-1-val@packett.cool> References: <20241204190524.21862-1-val@packett.cool> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" Add a keypad matrix node for the MT8516/MT8167 SoC. Signed-off-by: Val Packett --- arch/arm64/boot/dts/mediatek/mt8516.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8516.dtsi b/arch/arm64/boot/dts= /mediatek/mt8516.dtsi index e30623ebac0e..3beb9f74ec79 100644 --- a/arch/arm64/boot/dts/mediatek/mt8516.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8516.dtsi @@ -220,6 +220,16 @@ timer: timer@10008000 { clock-names =3D "clk13m", "bus"; }; =20 + keypad: keypad@10002000 { + compatible =3D "mediatek,mt6779-keypad"; + reg =3D <0 0x10002000 0 0x1000>; + wakeup-source; + interrupts =3D ; + clocks =3D <&clk26m>; + clock-names =3D "kpd"; + status =3D "disabled"; + }; + syscfg_pctl: syscfg-pctl@10005000 { compatible =3D "syscon"; reg =3D <0 0x10005000 0 0x1000>; --=20 2.47.1