From patchwork Fri Apr 22 16:07:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: icenowy@outlook.com X-Patchwork-Id: 12823720 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AF462C433EF for ; Fri, 22 Apr 2022 16:09:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :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=cy3Lj2f1LV0HFZIgWx//E2Vw32d3agNjiusZIzlFhAc=; b=LqXGgXf7wFzFKg EbIH+XrtBaWp2/rPS997jKcGvuPiuOt8kMu+tixrCrKzmePkkIWkrxKijbNFLw7+iHiaW+jEk3pty pkHAYBkU0Tbkwe/8ZMhSDd2I+Ad2K0X4h1xmvE2jDY8r8bIxQD8LiAgx29xoXwBg+3yJiq/yMXQee UvofeaY1t5tEfkbzboUamjMerCyEgaRA8NJEj/Ys1zM2pku5ADOZvNYPra+Y9Hpeh8LPCz7ufs4J4 OuyyxF1aG7m3s0APcNlJKgKaUV4pRhdi8icblPESSe5u8QXJdXq9mZYREqZkc67XXYlsyCIHj4h6+ knt99aoQTmS88YrAJH8A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhvpL-001KXS-5z; Fri, 22 Apr 2022 16:08:12 +0000 Received: from mail-dm6nam08olkn2082f.outbound.protection.outlook.com ([2a01:111:f400:7e8b::82f] helo=NAM04-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhvpB-001KUn-Ky for linux-arm-kernel@lists.infradead.org; Fri, 22 Apr 2022 16:08:03 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VgNRxK+DbbzLLbr421Ndn1XKyVm45BIAKMGHRRiblKaw27kFOeOo6zAgLyDitHdk0bTJgbs8z4rJePTzK6A5IIxv8yfTSsvXmazOdxFUcpV+cVL17mturRfd+vxJlZMOEUVixxsXcTaGN9L3xiVntIyxV+RYQxNE+jdDvg2RkLmr8NNIgjwVML5GphdtmEooVsv2QAIHFTT1pWriB2otZYzsjhy04cIXsW9gmIwSsOUKd3VPxYVe57hPQU7cJppSIyBPJpVJ2Yu3vTt5Jh9ulK38r/gWzRJBuujdqoh9fGtQUJNLGT8lWrxO/gwZnAwsO1D1j1FtaNa6HVNWpIpy5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=V04gzQDrOXt/6W2baqwFWUh45o7LO9Qz083Itn+KvO8=; b=apGT70Oj63DO/P4hpDAzZCwvvDOT0yScGLucnLqLXZzpATMvrvqGLhcOjYV5N9HRDUAece5Mqq7I2fJdMxBgJt4OxO4DU8h0wknHRrR+Z1axsRhIqrcADZplEI529v3UeeRGfcYXUBBipkti3Jxjg7v9ySYWOP/vlCmtOI9ynPNybxDySEZf1OLmTCnjLPmBmdCP8/CD8lDaWJRujTkpwiVnmMyoc2JhQd0Ca4nLUA1znBuLUk02YrzjPyCux20zZyvOyW09HbUxoo/GFa3KinSUTxxxnnZGUHQAiSr31DOGwsRl952aR6kW0KWQJFDlJyEfWp6ysED4hkWLxZNSpA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=V04gzQDrOXt/6W2baqwFWUh45o7LO9Qz083Itn+KvO8=; b=T0qR77whRBm23CQ2X2VwOFHWmynSfgIoHLiRrZUhykfnRx7WfQXSmTyy4YTqZJQKU0DDSAzItslREo+dzjrnQC2DqVoSY6R7cUgI2/i7L+Rk+uAM89uNeH54jK8GslX4QWnZHfF7stvhb5oukaTRCgR3yGNoeXooC/lOWtlTCcfobjwq8J/xg8BOI7kLHAUKGCU82e+UR5YysEPIOD4o2YJPRh+GQZDZiLLUDnMDrKcUm1sBb8tgn0ZXAvza5VJmV1MxzUs5poXJ6YzaUGByztfNzUuPxrZhYHILeJQqR8D6DkUfizyJLUqCWb+395uuKfDgRWD5Bh8RHYs53iyVsw== Received: from BYAPR20MB2472.namprd20.prod.outlook.com (2603:10b6:a03:155::16) by CH0PR20MB3756.namprd20.prod.outlook.com (2603:10b6:610:dc::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.14; Fri, 22 Apr 2022 16:07:58 +0000 Received: from BYAPR20MB2472.namprd20.prod.outlook.com ([fe80::3480:160a:eb92:d6e3]) by BYAPR20MB2472.namprd20.prod.outlook.com ([fe80::3480:160a:eb92:d6e3%6]) with mapi id 15.20.5186.015; Fri, 22 Apr 2022 16:07:58 +0000 From: icenowy@outlook.com To: Hans de Goede , Dmitry Torokhov , Rob Herring , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Maxime Ripard Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Icenowy Zheng Subject: [PATCH 1/2] dt-bindings: input: sun4i-lradc-keys: add R329 LRADC binding Date: Sat, 23 Apr 2022 00:07:43 +0800 Message-ID: X-Mailer: git-send-email 2.35.1 X-TMN: [YRzp55R6WWnYnjjt6nK56KI/0nu7kwD3] X-ClientProxiedBy: HK2PR02CA0218.apcprd02.prod.outlook.com (2603:1096:201:20::30) To BYAPR20MB2472.namprd20.prod.outlook.com (2603:10b6:a03:155::16) X-Microsoft-Original-Message-ID: <20220422160744.1074052-1-icenowy@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0ea78f06-f8d2-4a9c-0964-08da247a445d X-MS-TrafficTypeDiagnostic: CH0PR20MB3756:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QfMfpS8uQyGDmJTrVDdkOWCz20kY2iqkAO2T1uWHw+/0Wkw7qbqCAPqIaFEVbjJqyd3ioNNqMaavBSoIs+CzbTEGd5lZb4amUfzQ0rlbtZMXiswSJKym2BqjYjNdeaknoPqS+wcA9qNgIfErFu6homwILURIwPpfEmLwVay2DgpX5PywajL/2aR48VG4d2/F3ZUBWD08vAI7DcgiRCWksNsfxZZd4x/L4Kb+1h4Ugugax5V046iEFXDcixhndD288VxUCg6JnUeyJWleD0BC/iZCGw1n57WTs0NOSZBHxTRQBtZ9ZWjRwDZrhKdiD28eQ0oAF2c4KsSRT5viZX/CQAIpLWhz/pf0ji+WN9KKxgAICaxgXpyoOjS5miDpGTzWvfz8XU3YOD3dHXdvPKoWtpExFud5eqPZfFgUiudhDNQ7oVhuaJy8IfrTPq8KbDLC9aYvpgud/+4R7qbyMDv8ItBTjoL0ZpqSvCeZp/LPmWHk01TVl/hRWUCNsQkqxv/TDcg3NQawO5tC/9PwehsvbZFfdiwoPpeM9zRl4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xTd5E/UmbKi9egVekM+KEqzY+FQdLd7OprQYSkkQGm8FBfejb6a27P6IoHWQyZguEFQ3i9so7sq6jaPxwGqZ4nHoRAgaBs+dPw+lyrEyTQBEZaoRBn3D8AQW5HAVBx9e54Bt6QL57mDaapx59mplNgw0BrvtFVXLk9fZ4E9rkprK7PqNN5tn9Z2Cx9hOZjPywJu3Ed5n9QU3e9g1dHkZXOa7uIY+UCEXDCZZG95UjBj8/o2Dkgy5oXfjyheYSEH8cQKpN5zmeQnrTSySeHMJh8yebwKw8RyvB7JgjeFbxr4wnBVBaFeFHdDQStSRuz3ByeML5cqw4W6jVVnijXPVWrl1whSAc11TzqArmjnBrwjqKU9ixBOi4DHO4M4SwcoxRsvkh/msgv+wIWRXLMu3G4CQKDqRp/RVqbei4s+Ciz4yV9UvcqUoga3f2ImMTnFBwKqJ4x5UFD3M5TGR1N+7WrT3f0= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0ea78f06-f8d2-4a9c-0964-08da247a445d X-MS-Exchange-CrossTenant-AuthSource: BYAPR20MB2472.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Apr 2022 16:07:58.0560 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR20MB3756 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220422_090801_764404_53342CDA X-CRM114-Status: UNSURE ( 7.85 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Icenowy Zheng R329 has similar LRADC with previous Allwinner SoCs, but with bus clock and reset. Add binding for it. Signed-off-by: Icenowy Zheng --- .../input/allwinner,sun4i-a10-lradc-keys.yaml | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) 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 d74f2002409e..e16f01510ea7 100644 --- a/Documentation/devicetree/bindings/input/allwinner,sun4i-a10-lradc-keys.yaml +++ b/Documentation/devicetree/bindings/input/allwinner,sun4i-a10-lradc-keys.yaml @@ -15,6 +15,7 @@ properties: oneOf: - const: allwinner,sun4i-a10-lradc-keys - const: allwinner,sun8i-a83t-r-lradc + - const: allwinner,sun50i-r329-lradc - items: - const: allwinner,sun50i-a64-lradc - const: allwinner,sun8i-a83t-r-lradc @@ -31,6 +32,26 @@ properties: wakeup-source: true +if: + properties: + compatible: + const: allwinner,sun50i-r329-lradc +then: + properties: + clocks: + description: + Bus clock gate for LRADC. + maxItems: 1 + + resets: + description: + Bus reset for LRADC. + maxItems: 1 + + required: + - clocks + - resets + patternProperties: "^button-[0-9]+$": type: object