From patchwork Sun Feb 11 09:35:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Karel Balej X-Patchwork-Id: 199399 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp1850260dyd; Sun, 11 Feb 2024 01:48:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IFnJmM36chDOdwMDXtOjj+vwVOUYsVuKYI9dd1DdVoDmT9ereHo59xy2D7S2uLSucii+K8g X-Received: by 2002:a05:620a:4013:b0:785:d3f4:d337 with SMTP id h19-20020a05620a401300b00785d3f4d337mr479472qko.69.1707644918361; Sun, 11 Feb 2024 01:48:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707644918; cv=pass; d=google.com; s=arc-20160816; b=tw/fS18FHzTYIoK4GxT7U/YSGVEsEtpDtzDcSEyJZ9UMbn60HYhyr/DX9XC7tr2TTr wANjIienK1pKTvIrDSQ+6VqJ4lJGjNXC+xo4dBNgmmGGaoOUJZvA8Vw9vbs3u+Byc9/F un8Xw7c+aF0Xql5gLhbkJH4C8XjdBgkq3n8ard8KjLmY7ZtVoWUEYvxRrqM/UMZo2Rjf r48f73Ic+3/Wg1nqZ9aFkjgFeSYb7fHbDO8KhYmx29jQUL7PssjrZ/KJ/r/pP3ShapEq QJkymsLKZbnUI23odFmLmWBTqFgQUqZ/auw374bDeGRiDo+epVCIt9SRVPwJleu2mgqi khYQ== 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=sljjQzgZwPWYJZVMAUkDQx5b1l+u0vRu8UzHHffne0A=; b=sVXFbUzL+3WM5Z/r2eCFLHc2Co3ta+5hmSkuZglG3WkjY8SeWdjpNeufJMnaXXlWay hFaWa6R1zifMRNUU/E+trTAu9dhp2ZxywsrBSAznsx9czYKtrSCQyqK+5h19WqZdYB/C Uli30WMaRPrwSdxQIoiIwSgExA3+frtWrigXR1P1rSYfESiqJOVtrNf4LZGZlDEArtiz PdLX3B6PpZryW9uDZSaVNyLffM9xCwC5h9TjzCe6yMu1d94o4lRTgbStgw0uvaQSwy3w y+eG3xXk4UhTeSoNmPZ4sQsVqw6bqHAxpyS6DI7aeZO3Fjy7OSs5xJIK3pNF7hiGAjiG l9+w==; 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-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60685-ouuuleilei=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; AJvYcCWlrgfx+WtCGZIPs3hR5QFImncP2/WGuuo2B+BSuV4zAQscq6coKCT8J/oWfLekplOCvt8b3UIkDSpsjKlagvpg6mmCpQ== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id m19-20020a05622a055300b0042c2caaf0a0si5970994qtx.330.2024.02.11.01.48.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 01:48:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60685-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; 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-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60685-ouuuleilei=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 2CAB81C2153E for ; Sun, 11 Feb 2024 09:48:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 002D85B5AF; Sun, 11 Feb 2024 09:47:17 +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_Mihanovi=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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790595478187456094 X-GMAIL-MSGID: 1790595478187456094 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>;