Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1888162rdb; Sun, 11 Feb 2024 01:48:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IFKJPkK3JPUik0HROBouzLQEDoju1Crgx65+VM7KTD+ZQnlkmVxL2F+aL1e7IkUoKDl2exL X-Received: by 2002:a17:902:d3cc:b0:1d9:bf28:8bda with SMTP id w12-20020a170902d3cc00b001d9bf288bdamr4036374plb.68.1707644906080; Sun, 11 Feb 2024 01:48:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707644906; cv=pass; d=google.com; s=arc-20160816; b=Og5ohHdWcbVejsSME4Y5690Irr8JL1EpzaXvcCH6bwYx1ByW3amt+AB3hHppTCQUMl /C0mGMwUsYN6fQCM6b/ho/+rcwPya5R47JeOE9ZTsWXXQbs1uolIkeexFFi11Kqu6Shv d1aYhGrq3aOScXWY/9wrJGzbNLH0EM60hm2h1yYnqjppeEyP5MvsLVwtaUSNkcx8Gl3S 1ij09zrU6dJ9eOPYthTs4lmgYysew2hQTVW9JMBU0dePJdmHzd7BQGJHrL6qrWcW6H96 TwkuvcitxSOh70zSYmE/rHnl9vGbXdZv5kozKw9oR8tvayUBxZghxEyrbgq6MrIgHIEA os2g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=5BguGd9R7zZ7M/zM8GgMF1+0YlSJZlEYRVRZknmzkF0=; fh=9+kTfbFwLQY64PU2zo6GprnoaEuulUf1ZzUGZh0jPs8=; b=AzIjqIo2LKQ0fJmX5Te8DETcX+jE81oZsj+zYvKI3l7LXM+8v3qAo63Edj+1mk6SQJ k4cKYsLYm9y7bJcImt2xTwv/jnMrlFqGNcOu76ZbhqiFZo+LSD8VXtUJwvWZXt2s/fGq IZavuj7Jmf9GAmAiFL18c3CemT3DujdqEimmf5T998lzZGllagLPrQPTZr7UXCXK9Yn+ JsMsARszOcBbZZxJuFqgxep4sgr2PBrExl96a5GeAALTGJFP6saIxHqangQ6p0m8M90v iSSJrsxvx4nXWVg+RW3rvhS8T5olj0IKugBAECkVMjt1bz1XEhgHGE2zJ03B84y4JF8D NTAw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gimli.ms.mff.cuni.cz header.s=gen1 header.b=chTnrOBR; arc=pass (i=1 spf=pass spfdomain=gimli.ms.mff.cuni.cz dkim=pass dkdomain=gimli.ms.mff.cuni.cz dmarc=pass fromdomain=gimli.ms.mff.cuni.cz); spf=pass (google.com: domain of linux-kernel+bounces-60685-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60685-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gimli.ms.mff.cuni.cz X-Forwarded-Encrypted: i=2; AJvYcCXV+xCI8kbrfpImCYU2TMAyhb5+sxqlLNBL38cEfE0P/PFJS+1FXNde1a9egCxtbiveENhvf+NZIG6VkvcbnXpu6lp26CmB/L11v2o/fQ== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id g5-20020a170902f74500b001d974e1376esi4827444plw.494.2024.02.11.01.48.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 01:48:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60685-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gimli.ms.mff.cuni.cz header.s=gen1 header.b=chTnrOBR; arc=pass (i=1 spf=pass spfdomain=gimli.ms.mff.cuni.cz dkim=pass dkdomain=gimli.ms.mff.cuni.cz dmarc=pass fromdomain=gimli.ms.mff.cuni.cz); spf=pass (google.com: domain of linux-kernel+bounces-60685-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60685-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gimli.ms.mff.cuni.cz Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id B6E0B2839D9 for ; Sun, 11 Feb 2024 09:48:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2C7745B1FD; Sun, 11 Feb 2024 09:47:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=gimli.ms.mff.cuni.cz header.i=@gimli.ms.mff.cuni.cz header.b="chTnrOBR" Received: from nikam.ms.mff.cuni.cz (nikam.ms.mff.cuni.cz [195.113.20.16]) (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 4860C5A783; Sun, 11 Feb 2024 09:47:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.113.20.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707644834; cv=none; b=YVjeQlIoDRJUbpwcunlEO1Dkij00XQry2cPqwDasGPaB+/uil/N0EQ8JJvoS8+m6c9S1Byz0OMQDo2Yij2j4eBnu+Aagh0wmrmm+ds6OXWbrrTBLTDDIfS2uC8BgOyDwHXUw3oujXQPEX0o04GKcQtWfbdrWvKT8RpQuy1oaixw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707644834; c=relaxed/simple; bh=qlxK3V8iY252OYXK3GmlZOxqgQ57vkFcttu1E+sNo7w=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=iUHoEPJEPE05rJk/nEd66It6W88n4N4BLB9SElz0APEJKRDHG8b2NdQfg+fvYqiYTqB7melQDU8th/oKIs1DiSg+2ISgvCKbwy+we+f6YMBQZoBcyt7KV1WZ9b00zCjCSMA8k7F2UJwaPxNoWsayal3sRD39GnkP79jnJiO7enY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gimli.ms.mff.cuni.cz; spf=pass smtp.mailfrom=gimli.ms.mff.cuni.cz; dkim=pass (1024-bit key) header.d=gimli.ms.mff.cuni.cz header.i=@gimli.ms.mff.cuni.cz header.b=chTnrOBR; arc=none smtp.client-ip=195.113.20.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gimli.ms.mff.cuni.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gimli.ms.mff.cuni.cz Received: from gimli.ms.mff.cuni.cz (gimli.ms.mff.cuni.cz [195.113.20.176]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by nikam.ms.mff.cuni.cz (Postfix) with ESMTPS id 44BD32811B8; Sun, 11 Feb 2024 10:47:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gimli.ms.mff.cuni.cz; s=gen1; t=1707644830; 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=5BguGd9R7zZ7M/zM8GgMF1+0YlSJZlEYRVRZknmzkF0=; b=chTnrOBR3DgIBtV2SiKOL3u3RLbtHlVFL31O1ZUfRFWovQmMynpAJ5iMPQ5nqnLGjD6cS5 mzTWNEyUn35+kxxIlvNFHxwLCgjcI8Q4hc8G6p3J2j3D87nBBGOY0fnve6di1FiURP+QNE NwJ6TiW8TKtuS7y77WymcV43nat8kWE= Received: from localhost (internet5.mraknet.com [185.200.108.250]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: karelb) by gimli.ms.mff.cuni.cz (Postfix) with ESMTPSA id 20D3F457E76; Sun, 11 Feb 2024 10:47:10 +0100 (CET) From: Karel Balej To: Karel Balej , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lee Jones , Liam Girdwood , Mark Brown , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: =?UTF-8?q?Duje=20Mihanovi=C4=87?= , ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org Subject: [RFC PATCH v2 4/6] dt-bindings: input: add entry for Marvell 88PM88X PMICs onkey Date: Sun, 11 Feb 2024 10:35:54 +0100 Message-ID: <20240211094609.2223-5-karelb@gimli.ms.mff.cuni.cz> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240211094609.2223-1-karelb@gimli.ms.mff.cuni.cz> References: <20240211094609.2223-1-karelb@gimli.ms.mff.cuni.cz> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Karel Balej Marvell 88PM88X PMICs provide onkey functionality -- add the bindings. Signed-off-by: Karel Balej --- Notes: RFC v2: - Add wakeup-source property and reference onkey schema from MFD. - Reword commit message. .../bindings/input/marvell,88pm88x-onkey.yaml | 32 +++++++++++++++++++ .../bindings/mfd/marvell,88pm88x.yaml | 8 +++++ 2 files changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/marvell,88pm88x-onkey.yaml diff --git a/Documentation/devicetree/bindings/input/marvell,88pm88x-onkey.yaml b/Documentation/devicetree/bindings/input/marvell,88pm88x-onkey.yaml new file mode 100644 index 000000000000..5d3d451d0e1f --- /dev/null +++ b/Documentation/devicetree/bindings/input/marvell,88pm88x-onkey.yaml @@ -0,0 +1,32 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/marvell,88pm88x-onkey.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Onkey driver for Marvell 88PM88X PMICs. + +maintainers: + - Karel Balej + +description: | + This module is part of the 88PM88X MFD device. For more details + see Documentation/devicetree/bindings/mfd/marvell,88pm88x.yaml. + + The onkey controller is represented as a sub-node of the PMIC node in + the device tree. + +allOf: + - $ref: input.yaml# + +properties: + compatible: + const: marvell,88pm88x-onkey + + wakeup-source: true + +required: + - compatible + +additionalProperties: false +... diff --git a/Documentation/devicetree/bindings/mfd/marvell,88pm88x.yaml b/Documentation/devicetree/bindings/mfd/marvell,88pm88x.yaml index 29ab979862d5..2507a73d4dc3 100644 --- a/Documentation/devicetree/bindings/mfd/marvell,88pm88x.yaml +++ b/Documentation/devicetree/bindings/mfd/marvell,88pm88x.yaml @@ -28,6 +28,9 @@ properties: "#interrupt-cells": const: 1 + onkey: + $ref: /schemas/input/marvell,88pm88x-onkey.yaml + regulators: $ref: /schemas/regulator/marvell,88pm88x-regulator.yaml# @@ -53,6 +56,11 @@ examples: interrupt-controller; #interrupt-cells = <1>; + onkey { + compatible = "marvell,88pm88x-onkey"; + wakeup-source; + }; + regulators { ldo2: ldo2 { regulator-min-microvolt = <3100000>; -- 2.43.0