From patchwork Mon Apr 22 16:45:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 791053 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7F6B0154C16; Mon, 22 Apr 2024 16:45:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713804322; cv=none; b=eGnuxJQbgUlvTkovlGG7hrRdYkQj9T0qEbXaW3FmP7uKVqe4HswdwGggVamXVxpK+Gu4Zh3BxGUQIef9ILnoH5+defFoPHhYEWql7NzkCUeqKoEBK7rW4KGTqBTJ2V2KASt1o+/WXurN6Zape0DLh5w8GXIphXFte/U8bEXDia4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713804322; c=relaxed/simple; bh=ZU0AzmRKXx2ANsoOAmMx/xfzzuDiR1+nvvVSbTt2Jxk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=P608ElH8x0I5AqtKAFNbBszNQ9FlWpZiMUgmYtRSappMVbmVwWnKVvnkEiTINBGSdx6DI0JLrdfeWC2T1kP+OkELCk0w4I+VAsRpAgDXJbwqnBxH8j5Du6sFNuxG1PNPXHKOoIFpNqDUulHCB5ipjlgRWbQ855wHf50FVfHgPiE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2D0A31063; Mon, 22 Apr 2024 09:45:49 -0700 (PDT) Received: from donnerap.arm.com (donnerap.manchester.arm.com [10.32.100.28]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 274773F7BD; Mon, 22 Apr 2024 09:45:19 -0700 (PDT) From: Andre Przywara To: Hans de Goede , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, James McGregor Subject: [PATCH 1/2] dt-bindings: input: sun4i-lradc-keys: Add H616 compatible Date: Mon, 22 Apr 2024 17:45:10 +0100 Message-Id: <20240422164511.2488261-2-andre.przywara@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240422164511.2488261-1-andre.przywara@arm.com> References: <20240422164511.2488261-1-andre.przywara@arm.com> Precedence: bulk X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: James McGregor The Allwinner H616 SoC has an LRADC which is compatible with the versions in existing SoCs. Add a compatible string for H616, with the R329 fallback. This is the same as the D1, so put them into an enum. Signed-off-by: James McGregor Signed-off-by: Andre Przywara Reviewed-by: Andre Przywara Acked-by: Rob Herring (Arm) --- .../bindings/input/allwinner,sun4i-a10-lradc-keys.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/input/allwinner,sun4i-a10-lradc-keys.yaml b/Documentation/devicetree/bindings/input/allwinner,sun4i-a10-lradc-keys.yaml index c384bf0bb25d..8cb5820774e0 100644 --- a/Documentation/devicetree/bindings/input/allwinner,sun4i-a10-lradc-keys.yaml +++ b/Documentation/devicetree/bindings/input/allwinner,sun4i-a10-lradc-keys.yaml @@ -22,7 +22,9 @@ properties: - const: allwinner,sun8i-a83t-r-lradc - const: allwinner,sun50i-r329-lradc - items: - - const: allwinner,sun20i-d1-lradc + - enum: + - allwinner,sun50i-h616-lradc + - allwinner,sun20i-d1-lradc - const: allwinner,sun50i-r329-lradc reg: From patchwork Mon Apr 22 16:45:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 791698 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4F09B154C16; Mon, 22 Apr 2024 16:45:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713804324; cv=none; b=cOHNvvC58VWd82Ez72kU2+jkKqlAoYy+he5vZ0D9IvnBH5eqEKq2cLEwfnRQjm5tHrVqXLRNd5T5n/iB8V/+dkGEUfF9bGHZ318ks+swqgBN3TKG0A8Ii3wNq2VRCuLGCvuMwSeXHzs7sCXqAoxipCUw2pAQoNdrWIgv/L8rMN4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713804324; c=relaxed/simple; bh=aEOIMLfaoyXNz3E643XQI4KPNx/VNDCEabn2Rbao1GU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=JDX4mLiLLhbp9uk/5ho41JSRQUhW0V2ZAbrfVvhpjfEhKa4+WwgSq8hoR2Ms4M2WVi9mBRULSqFrWPkA6uvLoGhvMDwoFwv3ymsRJmUbUFSYIvnAv25hiG5d6k7BhSL121oslYlU0Kqz7V/8KTihC8U2yAq/iABOvpTczN95w3I= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 35E1E150C; Mon, 22 Apr 2024 09:45:51 -0700 (PDT) Received: from donnerap.arm.com (donnerap.manchester.arm.com [10.32.100.28]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2FFFF3F7BD; Mon, 22 Apr 2024 09:45:21 -0700 (PDT) From: Andre Przywara To: Hans de Goede , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, James McGregor Subject: [PATCH 2/2] arm64: dts: allwinner: h616: Add LRADC node Date: Mon, 22 Apr 2024 17:45:11 +0100 Message-Id: <20240422164511.2488261-3-andre.przywara@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240422164511.2488261-1-andre.przywara@arm.com> References: <20240422164511.2488261-1-andre.przywara@arm.com> Precedence: bulk X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: James McGregor Add a DT node for the Allwinner H616 LRADC describing the base address, interrupt, reset and clock gates. Signed-off-by: James McGregor Signed-off-by: Andre Przywara --- arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi index a061b69c07c2..58fb28f83feb 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi @@ -125,6 +125,16 @@ sram_c: sram@28000 { }; }; + lradc: lradc@5070800 { + compatible = "allwinner,sun50i-h616-lradc", + "allwinner,sun50i-r329-lradc"; + reg = <0x05070800 0x400>; + interrupts = ; + clocks = <&ccu CLK_BUS_KEYADC>; + resets = <&ccu RST_BUS_KEYADC>; + status = "disabled"; + }; + ccu: clock@3001000 { compatible = "allwinner,sun50i-h616-ccu"; reg = <0x03001000 0x1000>;