Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp496057ybg; Fri, 18 Oct 2019 03:04:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqzXZ/7oAjbsLGPAeJfnhuT668QEmDgRd63eDPChjQKe9MSGECeB1Vxti4MDoUGC1cXAv2bb X-Received: by 2002:a05:6402:2025:: with SMTP id ay5mr8666233edb.93.1571393077040; Fri, 18 Oct 2019 03:04:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571393077; cv=none; d=google.com; s=arc-20160816; b=z9J2pbImouqBkPC5/Cwu+N4U5Lxu+DsWqjrr9MAhd2T+t2G4ofNWpy05zy04Lke5vn T8WyeFisfwEUSMVMRoc2J5De8AVcz7x9kW9Mi1NhwAOi3vNHKAS2Ggfr/gZ532ScUmZI fG9ijMDVpq/Q3WrfkyGQnLuFMXEhoaz9T/l+7YIbDiDgofzAYxf6WX/O4ZBeXPjCRMy0 VowRm2OWOM5aid7vBpBSLgaR0ISgMH8p4dXcYNjkCdH65DqVuGcqa646waLLvlB/UNPX mW2DdTu6MhxIXPnGIypXjMi+ohVqs3kWib/KCd9f4WWZRgtsQGjXGNVbWVEq0bLb9W7t NyEg== 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=3bOb1AKJG3bDEr1FgpNlaFfI94OCjr2yDrXcaaBRNYg=; b=n3irP+R2jLbrBUchNFjVvIqh1Bsdnh7PbuTyjUSQcE3xPW0+XwqbWnLY6MQ7waacQJ L99Dyu+ygucvrE9dLtALUSr06bDZHo/XVeiTPvgBkTEdZ7y9hbobgyS3E89LcioLTJ5s euYVl7m6bE15VY2KsEGOnNf4uXtr0cLdmTVZXksxmavewKVfzpgVhZWkKcCR0XaOu0Dh eHUcQoekMe3d0XxwvMmYVehtZGwB7j3VM1F1dD68reGGrDrjCwLL1K+X6nJ7Zb2FiIvf oreCbVAmbIqBeTFoOBNF7hSsJYM8LKM8wbL4Z7by9Spvwe9yPPeRRea2kwENUXL/8tNJ l6uQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=h5cjymHa; 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 h48si3610349ede.31.2019.10.18.03.04.13; Fri, 18 Oct 2019 03:04:37 -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=h5cjymHa; 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 S2408032AbfJQHNL (ORCPT + 99 others); Thu, 17 Oct 2019 03:13:11 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:40815 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2407960AbfJQHMo (ORCPT ); Thu, 17 Oct 2019 03:12:44 -0400 Received: by mail-wr1-f67.google.com with SMTP id o28so1001530wro.7 for ; Thu, 17 Oct 2019 00:12:42 -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=3bOb1AKJG3bDEr1FgpNlaFfI94OCjr2yDrXcaaBRNYg=; b=h5cjymHanIeuqRg2f6PHLWtTKxGIGeWwYBrxDn3dqeqUrRXvmQ/H/EJ7fdKo0WYEvX zMvQs7GZUv5bR5yySSUIxjbhoOXJhKsbhE5Yd7Fz/BLWglt/fMjYsUq4YIFCYFE8SuF/ lLJbAhtCdBdoafQN7L+NLeRCYjbEnNzkKxN6WX6i//uKhyiTaMJwR8bQ8OiUi7XBglcU JrvMnRLys1v0LcebJJRuYsEJuW6GQP1elTy8W6Ts79uwFTg9Xc7fGDNNNPZ2N61AL41T xUgd6AgLY/QujzlTleid8OOXnNmZspRAU82+jbJqUA1MlvRDU5tkCX/zSR8bSa5oduX5 GNsQ== 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=3bOb1AKJG3bDEr1FgpNlaFfI94OCjr2yDrXcaaBRNYg=; b=W1FPEfCfkbIzgJrgsOXDB4fWGhp5xZnfkyo0s9FfEF1+0wVVLYxIUuPrSLCalBUa5c jf4SyTdFINXfz7aNdxu9du4c4RR1WkB6ljEX0T855spSk2OketlAkA+PP5hySvOQsm3B SQGOQECQaZbPvCBG1V3qACZXqJ1EJsSNUOwDb/eAdjsSngB6/IQqx22n/bdTYQoSbrkI V7h+HyETkxDZJau2DCrIMt6p6QAuMaF/CN344wfupAIL7KGAViMVbnGJW+f0kDD0Iaaa Fibqd+kJ13xV6x/c9LQNeWm8pBNHkPziQ8IuP150RS+VEhPgPzTG30KYvzwpuGAeM/os NCUQ== X-Gm-Message-State: APjAAAUFnl70y8CaWyh9q+wS3jb9AbJ/O75x8n7HW0rwSmVUmxWabyXR V8npp8pLx7ZaPvH8/QvxT9KbLw== X-Received: by 2002:adf:fc42:: with SMTP id e2mr1730108wrs.100.1571296362163; Thu, 17 Oct 2019 00:12:42 -0700 (PDT) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id n22sm1156689wmk.19.2019.10.17.00.12.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Oct 2019 00:12:40 -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 v3 2/6] dt-bindings: input: max77650: convert the binding document to yaml Date: Thu, 17 Oct 2019 09:12:30 +0200 Message-Id: <20191017071234.8719-3-brgl@bgdev.pl> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191017071234.8719-1-brgl@bgdev.pl> References: <20191017071234.8719-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 | 26 -------------- .../bindings/input/max77650-onkey.yaml | 35 +++++++++++++++++++ 2 files changed, 35 insertions(+), 26 deletions(-) delete mode 100644 Documentation/devicetree/bindings/input/max77650-onkey.txt 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 deleted file mode 100644 index 477dc74f452a..000000000000 --- a/Documentation/devicetree/bindings/input/max77650-onkey.txt +++ /dev/null @@ -1,26 +0,0 @@ -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; - }; diff --git a/Documentation/devicetree/bindings/input/max77650-onkey.yaml b/Documentation/devicetree/bindings/input/max77650-onkey.yaml new file mode 100644 index 000000000000..2f2e0b6ebbbd --- /dev/null +++ b/Documentation/devicetree/bindings/input/max77650-onkey.yaml @@ -0,0 +1,35 @@ +# 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 -- 2.23.0