From patchwork Wed Dec 25 19:26:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Val Packett X-Patchwork-Id: 853554 Received: from out-170.mta0.migadu.com (out-170.mta0.migadu.com [91.218.175.170]) (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 07CF95647F for ; Wed, 25 Dec 2024 19:27:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735154854; cv=none; b=X/EBKObuz/RX4fzGPmC0dx7+9Po8Sum3kX9XrcVOTMrBDZYjjKsuncmpIylKOOJWlpe9/XgkjtTFkyrERv9z8ThbeWOx/VgI///nGWlp97VzZh/vJw0Xx622UNxVCpqdjLlbwBMKVjZgs7M+A+IOV9GpkCos68/hnt1tyRyV42U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735154854; c=relaxed/simple; bh=NT1DSZZpJlT5JL/TYTlSCdlJKDv/c0kz69pnhr24u/Y=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=juQ2aWXPmG35wqHE2XlqNfo9LzGdXU2CVo2MDO06l2iD2cxphHPKFOVEsM9dulUymrhui3cydm5VOSam6kqyQV+R5fu+ZssEyGp5KtKl+QOoK0cGYiOZSlEcqeCL6rvSSveEzi+MavGEa4RkmpT3I7sFdAVaWOMWaLU+MRhG+EY= 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=MLdre/57; arc=none smtp.client-ip=91.218.175.170 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="MLdre/57" 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=1735154848; 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=Ds5dLdL6zKxcI6j+lsReTASICW2fhJUbhIDr3cLRVJ8=; b=MLdre/57xuTdMWVy3aWKChcNpz3ID3PJ4QRhDwzwgVD7oFLGl6DQrKJXbrGxmXcM2EMu4M Nn0u1e0mB15fudBJt2Qvwy06jRYqcyiPE0MMO7bGRTqnE+31LuHN0BX0DKf3athmugHf8j aiml2rDj2TaZq4l73NmJL1akOMJBLEBPg8XVtOcqbYk97x3SFoSJBinUtXw8INQbBtCvoS VW1iN/3ZxfR4n037ehn/+FqCfnRo+i5r2uB5cdEijY326ZXIVysChtPMB/YiE3k9f9E6E0 EQkXjHtk4bWen1MfvcgeuBGR3Akg7VMrdrItv715jaJ+E4A1IieUW8wJwQpbBw== From: Val Packett To: Cc: Val Packett , Mattijs Korpershoek , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Fabien Parent , =?utf-8?q?Bernhard_Rosenkr=C3=A4nzer?= , Alexandre Mergnat , Amjad Ouled-Ameur , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH 1/3] dt-bindings: mediatek, mt6779-keypad: add more compatibles Date: Wed, 25 Dec 2024 16:26:19 -0300 Message-ID: <20241225192631.25017-2-val@packett.cool> In-Reply-To: <20241225192631.25017-1-val@packett.cool> References: <20241225192631.25017-1-val@packett.cool> Precedence: bulk X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT Add compatibles for SoCs using this device (mt8183, mt8365, mt8516). Signed-off-by: Val Packett --- .../devicetree/bindings/input/mediatek,mt6779-keypad.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/input/mediatek,mt6779-keypad.yaml b/Documentation/devicetree/bindings/input/mediatek,mt6779-keypad.yaml index 47aac8794b689..517a4ac1bea3d 100644 --- a/Documentation/devicetree/bindings/input/mediatek,mt6779-keypad.yaml +++ b/Documentation/devicetree/bindings/input/mediatek,mt6779-keypad.yaml @@ -26,6 +26,9 @@ properties: - items: - enum: - mediatek,mt6873-keypad + - mediatek,mt8183-keypad + - mediatek,mt8365-keypad + - mediatek,mt8516-keypad - const: mediatek,mt6779-keypad reg: From patchwork Wed Dec 25 19:26:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Val Packett X-Patchwork-Id: 853746 Received: from out-177.mta0.migadu.com (out-177.mta0.migadu.com [91.218.175.177]) (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 A8B3B1B87FB for ; Wed, 25 Dec 2024 19:27:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735154860; cv=none; b=Fdzm1iT2vzb5P+rS7T4iVloqql5D0Go7CXbtUZCbT109N1QuH3YRXmh23noqGkmXxZpKMhEEUu4+kJcCTq9WoAPAd2HuenfrA5Yq+bZzuPL4Z3sWhsTZJYrPnfTVRDyl/rhhw+QWrqEcuy9nRndBGN9s9x/UjMtbL5csnqzjmcE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735154860; c=relaxed/simple; bh=zKlthQVouyb2Nhnv1QTalWj8z3Gu6NWIWvkygJeWwRc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Z1fXbXQXSOtIG26iMKGz7JMZH1D8a9RAuDqygJX8KaGpWfePHtuD5e7T15/wkI7DELeE5KV4YKxrCbg+AUp07YpONzzL9wEaD5hhrIDtkSmXAvATSySWC4J0+6HuQCE/cU3Io1Q0rdPpAdpZwgQawoW3Wtz9s1YWJp6wTvfHrxU= 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=OjTI0p64; arc=none smtp.client-ip=91.218.175.177 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="OjTI0p64" 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=1735154855; 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=u5TwIvC+pogcjmLFzMEJfSARog3Ov5O6G7UbbZ1ELaQ=; b=OjTI0p64NaP3/yljJiC8m3FwQD4cgw7sRgLh0H0uWN779kN5uHlp5hm9Q5UqG+/bJBDQZD YF4vFvJIDJXjzjS2lEGSlWhJkqvumSw5JEh9qlM+5oGhmCMbbCqbEzVfxCIQidejrQ8M5p ni1PXGewnW9oj1VLvniL4d7syoPQ9Xh5niLifoAeKXJ03zZTY9uEObDKcQ1m7d1Z33F/PS Vn6s3YcVddzZds4cw3aEFSorCxie6TAKsbwYb9kdwhRTds9Arfs8e9D4bDb6Hin6XmPRBQ 62aF+8mMbtLBZAvIHbd0LTlgrEaMnG4PYxhIexHaKr50e+SvweJ0U0d/iWE5EQ== From: Val Packett To: Cc: Val Packett , Mattijs Korpershoek , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Fabien Parent , =?utf-8?q?Bernhard_Rosenkr=C3=A4nzer?= , Alexandre Mergnat , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH 2/3] arm64: dts: mediatek: add per-SoC compatibles for keypad nodes Date: Wed, 25 Dec 2024 16:26:20 -0300 Message-ID: <20241225192631.25017-3-val@packett.cool> In-Reply-To: <20241225192631.25017-1-val@packett.cool> References: <20241225192631.25017-1-val@packett.cool> Precedence: bulk X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT The mt6779-keypad binding specifies using a compatible for the actual SoC before the generic MT6779 one. Fixes: a8013418d35c ("arm64: dts: mediatek: mt8183: add keyboard node") Fixes: 6ff945376556 ("arm64: dts: mediatek: Initial mt8365-evk support") Signed-off-by: Val Packett --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 3 ++- arch/arm64/boot/dts/mediatek/mt8365.dtsi | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi index c7008bb8a81da..0aa34e5bbaaa8 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8183.dtsi @@ -1024,7 +1024,8 @@ pwrap: pwrap@1000d000 { }; keyboard: keyboard@10010000 { - compatible = "mediatek,mt6779-keypad"; + compatible = "mediatek,mt8183-keypad", + "mediatek,mt6779-keypad"; reg = <0 0x10010000 0 0x1000>; interrupts = ; clocks = <&clk26m>; diff --git a/arch/arm64/boot/dts/mediatek/mt8365.dtsi b/arch/arm64/boot/dts/mediatek/mt8365.dtsi index 9c91fe8ea0f96..2bf8c9d02b6ee 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8365.dtsi @@ -449,7 +449,8 @@ pwrap: pwrap@1000d000 { }; keypad: keypad@10010000 { - compatible = "mediatek,mt6779-keypad"; + compatible = "mediatek,mt8365-keypad", + "mediatek,mt6779-keypad"; reg = <0 0x10010000 0 0x1000>; wakeup-source; interrupts = ; From patchwork Wed Dec 25 19:26:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Val Packett X-Patchwork-Id: 853553 Received: from out-185.mta0.migadu.com (out-185.mta0.migadu.com [91.218.175.185]) (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 2D18C1C3F00 for ; Wed, 25 Dec 2024 19:27:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.185 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735154866; cv=none; b=ZFSbop5svO4ia1fvhq1uhS0kDTEJXdPvTXiAWka5DnVHLiDsNKOl//J5gss+DUA9KoV8nAYG/NOrpJ2j3tDwySZNb7IByPGiSuRP+KVw+HxxuXb5DPAUoGwfCgtir8PiMORkyJgd3ubxYmY0hIgXgI1br4fjGEVUxh6XKlCyeOA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735154866; c=relaxed/simple; bh=SiL5gWedbYGY8jpPXvhrDlFzNYQymdn1BIJrR8bk+nc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=CjDpmhLz5XwLPycXjbWPnckAxvEdVkB4RrfuPnbprCkcUmvE/wMtHl2lSSIX9x47f13ymVFpg7Hptw2LHhBRnnemISRGtLH30YOcFDbjZb6EzoTX9FcQaSpxPCn/5v5V1b34LHsO2655lRLSt85Lm+lGAQkJaHeRmZvkLTSX5gk= 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=CFDQeefp; arc=none smtp.client-ip=91.218.175.185 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="CFDQeefp" 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=1735154861; 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=ooCP4AVj6ouf61L4l6iIgaeJr118tdjjjQYgYlz/msQ=; b=CFDQeefpWl35qibFOJxQB19HfXzQTL64mOoGsi7vOLZF42pQl5WEawIFFoJ3l0FrigyMfL mJJQcBRSTXtuaejIjQD3imFpqgTCeOMjhD0oglA5Ow5OqqHQNcGxydxB1KOPs1BSUe8rBt TWzp024niCUAllC8aZ78AGYky2JISF+EXq8k4+7V1IR1fK3biNofQVd0Fb6qLobLLSP5Sx A8OqTiojt7TxldJZLlTZFqKMSxbsVRG813n4RzL7/BAzfB06AWc9V96myFf4dsPjatJBV8 BSB7cNEjp+5MMiKyd1ZjIpAXRZl4cItIVXK7eeJanAmKdmvBTTeFGnQ89QRG5g== From: Val Packett To: Cc: Val Packett , Mattijs Korpershoek , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Fabien Parent , Amjad Ouled-Ameur , Alexandre Mergnat , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH 3/3] arm64: dts: mediatek: mt8516: add keypad node Date: Wed, 25 Dec 2024 16:26:21 -0300 Message-ID: <20241225192631.25017-4-val@packett.cool> In-Reply-To: <20241225192631.25017-1-val@packett.cool> References: <20241225192631.25017-1-val@packett.cool> Precedence: bulk X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT Add a keypad matrix node for the MT8516/MT8167 SoC. Signed-off-by: Val Packett --- arch/arm64/boot/dts/mediatek/mt8516.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8516.dtsi b/arch/arm64/boot/dts/mediatek/mt8516.dtsi index e30623ebac0e1..b5e753759465d 100644 --- a/arch/arm64/boot/dts/mediatek/mt8516.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8516.dtsi @@ -220,6 +220,17 @@ timer: timer@10008000 { clock-names = "clk13m", "bus"; }; + keypad: keypad@10002000 { + compatible = "mediatek,mt8516-keypad", + "mediatek,mt6779-keypad"; + reg = <0 0x10002000 0 0x1000>; + wakeup-source; + interrupts = ; + clocks = <&clk26m>; + clock-names = "kpd"; + status = "disabled"; + }; + syscfg_pctl: syscfg-pctl@10005000 { compatible = "syscon"; reg = <0 0x10005000 0 0x1000>;