Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp6331472ybp; Tue, 15 Oct 2019 13:15:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqzxsq+wD7rpeZ8Il+CQa3bITbZqZA5Zq25Xeju5fZwgS00g89Fao7mxfgJ/Kf4Ps8sa1CsF X-Received: by 2002:aa7:df0b:: with SMTP id c11mr35736445edy.101.1571170540126; Tue, 15 Oct 2019 13:15:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571170540; cv=none; d=google.com; s=arc-20160816; b=1Fd0uYbBIkj4z+9Ah5QQN0eKqYgueOUSURriCKZzGE6TIRobwihJ1i6vB0H7FO754C E09A93ZuYYKf++rdtAtrq/duSjuyR3Z7lqeoqf5WfW9Ei41HbVsl1ZmWe+EXOACPD2yD nR6gdVTMpPqnWFlhezjLQaTLSBF7jr6dM1fg2CJPCJtum+b+DryNTrDYhxBB/VjAVQwX Gi5hwTtUReKVO1Fyi8Kt+OXcfAe7vwQdkD7JB8zLQ/QiENCHqZWcsJAz0F+SM4fP6jvt rfH+vcyWeVb5MxuI6e23Tx9Nr9P1jpUl+tr2XPep7FqId/X3NmSJxyFm2qq9wEUr09/Z BGyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ecEOVvVQZ5mhgGBjJTEl6lzO4iyftGF76AQ8D8ASw0U=; b=TuawwOD8RKa5Gwwqokl1IHrvUIWO/O22Ge7cXPk3gW9NAgHwqYAfvuFSuC7o0JYIEa mRrIdR/9OuwFcPx2wuTYuUG35EPKs1U02P+v4n3Ba2gbtT0bwNeOmfnpyHo3jl46f31D O+FloVpU8yVoSGdnRPUqICl7gi9Rc0FzHuv/8HE/gt1x6cVarjyC69K8FKpAslxYSIhq fvDxvoVnv59hsrUH0J3W2Wwep5lBY2Rwu9SPvdf0K1WjpAzDZBbZLhzmUo0OW82P/62c g/j2K9xMAH8BaMDhef8ier6773nWUN3MwoTiiTC7QiCHfzsxW2k+G+n2aEIxbCmNnGv6 s/+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=JjbUuwJY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id dd8si13996153ejb.36.2019.10.15.13.15.15; Tue, 15 Oct 2019 13:15:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=JjbUuwJY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387913AbfJOQXL (ORCPT + 99 others); Tue, 15 Oct 2019 12:23:11 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:38956 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387896AbfJOQXK (ORCPT ); Tue, 15 Oct 2019 12:23:10 -0400 Received: by mail-wr1-f65.google.com with SMTP id r3so24640786wrj.6 for ; Tue, 15 Oct 2019 09:23:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ecEOVvVQZ5mhgGBjJTEl6lzO4iyftGF76AQ8D8ASw0U=; b=JjbUuwJYLYkmaYLE3E1Naa7+ymQjSaxbTCuq7NqsIOslNMK1UzZApQlcxyPrAs3Xsg g+hJCLRf9ebxqZ3+T/L9BSqaRA9nbk6Sg8FwFL3SURrpjMRh4N1+qc08uEIkMjAtMOpx JK3/tpfBW/qMsbcd7nDWQBIL7wkmAQAtFi8h2w1jpTl2RKiAmguLRZGjiKfuFc2ZcQpZ 3988pWa6ByvglVVp986DA1VDl9A//7ZNTjJ7ZuLLE+KU1wLqVX547kxLQsxYR3BDvcZb EiwxEAAPVM2rW/4xatzJlFlGBk+tZphrA7NyVEX5hd87b+0MuGmdrWzP4qBi5gUhAgpG AacA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ecEOVvVQZ5mhgGBjJTEl6lzO4iyftGF76AQ8D8ASw0U=; b=LAij2p5npN0XAHmYcMZCY7XIbRFMAdOcanKknqifNpp6mt0OcW+kkjKrSkdtJ6hQDr HDnOOmfu0+JrjuTVUc56lzspYLiF3JStCu8PZ3ZTwzZfzPtDM/RA3LbAmYAmlw/U9WxN /2ysWPlLb4iah0cE4yxZ5A0GL0Ez5U98n9lI5ekV43x2qfhlIRWzkOUHUgvjnBwz6BUu xvKgrE2da4x2Co39Lk+wtMAZhlOIxmAqwCMVEcvLSziSvUWZkD7JiPNArqKIb9KeP/hV QgPiTnzWBJquOkBwC6OjiLSV1MhT/WrSrM6oxJmixPiMaOBFJP29P4ryj78t+9kSzyzu CJdw== X-Gm-Message-State: APjAAAUEO7zsyGTm5uFhWPOv1spf4WDI2VGSCLmufJtTlDYo6xr0tac/ 1KypS66rjgKz+f2XjjoVnrwhhgbOUR4= X-Received: by 2002:adf:f64f:: with SMTP id x15mr10732927wrp.381.1571156588511; Tue, 15 Oct 2019 09:23:08 -0700 (PDT) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id x129sm41427605wmg.8.2019.10.15.09.23.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Oct 2019 09:23:07 -0700 (PDT) From: Bartosz Golaszewski To: Rob Herring , Mark Rutland , Dmitry Torokhov , Jacek Anaszewski , Pavel Machek , Dan Murphy , Lee Jones , Sebastian Reichel , Liam Girdwood , Mark Brown Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, linux-pm@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v2 2/6] dt-bindings: input: max77650: convert the binding document to yaml Date: Tue, 15 Oct 2019 18:22:56 +0200 Message-Id: <20191015162300.22024-3-brgl@bgdev.pl> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191015162300.22024-1-brgl@bgdev.pl> References: <20191015162300.22024-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bartosz Golaszewski Convert the binding document for MAX77650 onkey module to YAML. Signed-off-by: Bartosz Golaszewski --- .../bindings/input/max77650-onkey.txt | 27 +----------- .../bindings/input/max77650-onkey.yaml | 43 +++++++++++++++++++ 2 files changed, 44 insertions(+), 26 deletions(-) create mode 100644 Documentation/devicetree/bindings/input/max77650-onkey.yaml diff --git a/Documentation/devicetree/bindings/input/max77650-onkey.txt b/Documentation/devicetree/bindings/input/max77650-onkey.txt index 477dc74f452a..a691fc49f1ea 100644 --- a/Documentation/devicetree/bindings/input/max77650-onkey.txt +++ b/Documentation/devicetree/bindings/input/max77650-onkey.txt @@ -1,26 +1 @@ -Onkey driver for MAX77650 PMIC from Maxim Integrated. - -This module is part of the MAX77650 MFD device. For more details -see Documentation/devicetree/bindings/mfd/max77650.txt. - -The onkey controller is represented as a sub-node of the PMIC node on -the device tree. - -Required properties: --------------------- -- compatible: Must be "maxim,max77650-onkey". - -Optional properties: -- linux,code: The key-code to be reported when the key is pressed. - Defaults to KEY_POWER. -- maxim,onkey-slide: The system's button is a slide switch, not the default - push button. - -Example: --------- - - onkey { - compatible = "maxim,max77650-onkey"; - linux,code = ; - maxim,onkey-slide; - }; +This file has been moved to max77650-onkey.yaml. diff --git a/Documentation/devicetree/bindings/input/max77650-onkey.yaml b/Documentation/devicetree/bindings/input/max77650-onkey.yaml new file mode 100644 index 000000000000..eb2f8609bae2 --- /dev/null +++ b/Documentation/devicetree/bindings/input/max77650-onkey.yaml @@ -0,0 +1,43 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/max77650-onkey.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Onkey driver for MAX77650 PMIC from Maxim Integrated. + +maintainers: + - Bartosz Golaszewski + +description: | + This module is part of the MAX77650 MFD device. For more details + see Documentation/devicetree/bindings/mfd/max77650.yaml. + + The onkey controller is represented as a sub-node of the PMIC node on + the device tree. + +properties: + compatible: + const: maxim,max77650-onkey + + linux,code: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + The key-code to be reported when the key is pressed. Defaults + to KEY_POWER. + + maxim,onkey-slide: + $ref: /schemas/types.yaml#/definitions/flag + description: + The system's button is a slide switch, not the default push button. + +required: + - compatible + +examples: + - | + onkey { + compatible = "maxim,max77650-onkey"; + linux,code = ; + maxim,onkey-slide; + }; -- 2.23.0