From patchwork Thu Dec 1 20:21:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13061785 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 91389C63704 for ; Thu, 1 Dec 2022 20:21:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231234AbiLAUVx (ORCPT ); Thu, 1 Dec 2022 15:21:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230312AbiLAUVt (ORCPT ); Thu, 1 Dec 2022 15:21:49 -0500 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42D06BF67E for ; Thu, 1 Dec 2022 12:21:48 -0800 (PST) Received: by mail-lf1-x129.google.com with SMTP id g7so4265410lfv.5 for ; Thu, 01 Dec 2022 12:21:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=kKmE+hFlJHqtMdmJeHcqNG8xf2z5C60unLxtWG9reKY=; b=FIlJT4UOMxpVeTMNkDTF5t1/AcPzkI+FSl0RPjV6dxXpMaAj9fb2E7ZSNQgpPZBS6I B6mzXmsxSja4MRXmcDF3xqVTjTDyYKuVG/Wg9sCL/ep3Gr9/DSn7TZOzSzmMJSyJcT9Y iDIOwRYXuMiUno86NoRRL8sLZw+DRKgZ8lGkoNASu0DtGEyV8PHGbCSA85+F/emlKZux EWOKF5s33qgjRAaoFd/dZZ4QmjAuJxdOtSC0WKSLbjAES767RyZwwH3kSxzukqLkB7+w VlnjJByHFb77e5momqQ4YQcmnA2TCFrfhMZUTmXEp8QF6A+88GNWFg3MiwHNMeARNrIu GbtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kKmE+hFlJHqtMdmJeHcqNG8xf2z5C60unLxtWG9reKY=; b=tPDx5c1tgIob/4AkaQkgKr/rM+JPA94U7finBVDO/yWqM8m1Guhm6nqGcKF3gSKp0o F+7h5tvH+l8GiYJNNIyJqlggE5lHTkj8nO4YRsUWK2ji/tcoDksgzAEPMnl3OHu1jOG3 5TlyHRhiDZ2csc8FouZvHKwqbFBS8ZebQJRcrfaU8FHHCq9YaIM/+vwNBR5HtCCEKyZD MzIFYYxvkmGUbDUhUp8kueuLc8rCDVhJKeSPzMkwsvp9qVbo92YzMgo8o/l2R5a/Gtpq uPGGgNDDd8M1Mnqu/BDGuDmduBh0euzLT5TQ1jQtmTTzF5jaOJgGL0OgheipbmRbsIX/ wwhg== X-Gm-Message-State: ANoB5pkl7+neuQUa0gWvz3WJWXioXxKwqMT2FdmqNuFDomwI62H92Vi/ xxA15UWZrFcgbpmS2quTIJYAIw== X-Google-Smtp-Source: AA0mqf6L9JV+4Ro/rEOmcVfPDkvXeOBOcRhjeHdJgMFhGMM9OGSAR3CK+yyYK5LzRL8Fi5f7cHblhw== X-Received: by 2002:a05:6512:786:b0:4a2:44c7:ee58 with SMTP id x6-20020a056512078600b004a244c7ee58mr22190725lfr.127.1669926106648; Thu, 01 Dec 2022 12:21:46 -0800 (PST) Received: from eriador.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id l30-20020a19495e000000b004b514b27c86sm769679lfj.13.2022.12.01.12.21.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Dec 2022 12:21:46 -0800 (PST) From: Dmitry Baryshkov To: devicetree@vger.kernel.org, Lee Jones , Rob Herring , Krzysztof Kozlowski Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , linux-arm-msm@vger.kernel.org, Jonathan Cameron , Lars-Peter Clausen , linux-iio@vger.kernel.org, Dmitry Torokhov , linux-input@vger.kernel.org, Pavel Machek , linux-leds@vger.kernel.org Subject: [PATCH 1/5] dt-bindings: input: qcom,pm8921-keypad: convert to YAML format Date: Thu, 1 Dec 2022 22:21:40 +0200 Message-Id: <20221201202144.448694-2-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221201202144.448694-1-dmitry.baryshkov@linaro.org> References: <20221201202144.448694-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Convert the bindings for the keypad subdevices of Qualcomm PM8921 and PM8058 PMICs from text to YAML format. While doing the conversion also change linux,keypad-no-autorepeat property to linux,input-no-autorepeat. The former property was never used by DT and was never handled by the driver. Signed-off-by: Dmitry Baryshkov --- .../bindings/input/qcom,pm8921-keypad.yaml | 93 +++++++++++++++++++ .../bindings/input/qcom,pm8xxx-keypad.txt | 90 ------------------ 2 files changed, 93 insertions(+), 90 deletions(-) create mode 100644 Documentation/devicetree/bindings/input/qcom,pm8921-keypad.yaml delete mode 100644 Documentation/devicetree/bindings/input/qcom,pm8xxx-keypad.txt diff --git a/Documentation/devicetree/bindings/input/qcom,pm8921-keypad.yaml b/Documentation/devicetree/bindings/input/qcom,pm8921-keypad.yaml new file mode 100644 index 000000000000..e3c53a8234c5 --- /dev/null +++ b/Documentation/devicetree/bindings/input/qcom,pm8921-keypad.yaml @@ -0,0 +1,93 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/qcom,pm8921-keypad.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm PM8921 PMIC KeyPad + +maintainers: + - Dmitry Baryshkov + +allOf: + - $ref: input.yaml# + - $ref: matrix-keymap.yaml# + +properties: + compatible: + enum: + - qcom,pm8058-keypad + - qcom,pm8921-keypad + + reg: + maxItems: 1 + + interrupts: + items: + - description: key sense + - description: key stuck + + linux,input-no-autorepeat: + type: boolean + description: don't enable autorepeat feature. + + wakeup-source: + type: boolean + description: use any event on keypad as wakeup event + + linux,keypad-wakeup: + type: boolean + deprecated: true + description: legacy version of the wakeup-source property + + debounce: + description: + Time in microseconds that key must be pressed or + released for state change interrupt to trigger. + $ref: /schemas/types.yaml#/definitions/uint32 + + scan-delay: + $ref: /schemas/types.yaml#/definitions/uint32 + description: time in microseconds to pause between successive scans of the + matrix array + + row-hold: + $ref: /schemas/types.yaml#/definitions/uint32 + description: time in nanoseconds to pause between scans of each row in the + matrix array. + +required: + - compatible + - reg + - interrupts + - linux,keymap + +unevaluatedProperties: false + +examples: + - | + #include + #include + pmic { + #address-cells = <1>; + #size-cells = <0>; + + keypad@148 { + compatible = "qcom,pm8921-keypad"; + reg = <0x148>; + interrupt-parent = <&pmicintc>; + interrupts = <74 IRQ_TYPE_EDGE_RISING>, <75 IRQ_TYPE_EDGE_RISING>; + linux,keymap = < + MATRIX_KEY(0, 0, KEY_VOLUMEUP) + MATRIX_KEY(0, 1, KEY_VOLUMEDOWN) + MATRIX_KEY(0, 2, KEY_CAMERA_FOCUS) + MATRIX_KEY(0, 3, KEY_CAMERA) + >; + keypad,num-rows = <1>; + keypad,num-columns = <5>; + debounce = <15>; + scan-delay = <32>; + row-hold = <91500>; + }; + }; +... diff --git a/Documentation/devicetree/bindings/input/qcom,pm8xxx-keypad.txt b/Documentation/devicetree/bindings/input/qcom,pm8xxx-keypad.txt deleted file mode 100644 index 4a9dc6ba96b1..000000000000 --- a/Documentation/devicetree/bindings/input/qcom,pm8xxx-keypad.txt +++ /dev/null @@ -1,90 +0,0 @@ -Qualcomm PM8xxx PMIC Keypad - -PROPERTIES - -- compatible: - Usage: required - Value type: - Definition: must be one of: - "qcom,pm8058-keypad" - "qcom,pm8921-keypad" - -- reg: - Usage: required - Value type: - Definition: address of keypad control register - -- interrupts: - Usage: required - Value type: - Definition: the first interrupt specifies the key sense interrupt - and the second interrupt specifies the key stuck interrupt. - The format of the specifier is defined by the binding - document describing the node's interrupt parent. - -- linux,keymap: - Usage: required - Value type: - Definition: the linux keymap. More information can be found in - input/matrix-keymap.txt. - -- linux,keypad-no-autorepeat: - Usage: optional - Value type: - Definition: don't enable autorepeat feature. - -- wakeup-source: - Usage: optional - Value type: - Definition: use any event on keypad as wakeup event. - (Legacy property supported: "linux,keypad-wakeup") - -- keypad,num-rows: - Usage: required - Value type: - Definition: number of rows in the keymap. More information can be found - in input/matrix-keymap.txt. - -- keypad,num-columns: - Usage: required - Value type: - Definition: number of columns in the keymap. More information can be - found in input/matrix-keymap.txt. - -- debounce: - Usage: optional - Value type: - Definition: time in microseconds that key must be pressed or release - for key sense interrupt to trigger. - -- scan-delay: - Usage: optional - Value type: - Definition: time in microseconds to pause between successive scans - of the matrix array. - -- row-hold: - Usage: optional - Value type: - Definition: time in nanoseconds to pause between scans of each row in - the matrix array. - -EXAMPLE - - keypad@148 { - compatible = "qcom,pm8921-keypad"; - reg = <0x148>; - interrupt-parent = <&pmicintc>; - interrupts = <74 1>, <75 1>; - linux,keymap = < - MATRIX_KEY(0, 0, KEY_VOLUMEUP) - MATRIX_KEY(0, 1, KEY_VOLUMEDOWN) - MATRIX_KEY(0, 2, KEY_CAMERA_FOCUS) - MATRIX_KEY(0, 3, KEY_CAMERA) - >; - keypad,num-rows = <1>; - keypad,num-columns = <5>; - debounce = <15>; - scan-delay = <32>; - row-hold = <91500>; - }; From patchwork Thu Dec 1 20:21:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13061786 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9AF4DC63706 for ; Thu, 1 Dec 2022 20:21:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231240AbiLAUVy (ORCPT ); Thu, 1 Dec 2022 15:21:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230355AbiLAUVu (ORCPT ); Thu, 1 Dec 2022 15:21:50 -0500 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 188F6BEE23 for ; Thu, 1 Dec 2022 12:21:49 -0800 (PST) Received: by mail-lf1-x129.google.com with SMTP id j4so4321846lfk.0 for ; Thu, 01 Dec 2022 12:21:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=iF6o3uPyABz/JCGS6mnoQHfG46FmIuXFpnlO4Zq7ZHg=; b=f+fcwi4CQzJW8ZkO4WEjn5M6xr060pyBYRag6KT0553j4iRKyzxDf+vDKr9jLvyGWM EbZ/fD4CeEwjTmGYWAsiCrKhHm/d7ugchP3M5ptCcFWuvNub3fSzLOsfWv0RqJjnqbO3 bwUzjpqfpqM0CTFsOfTYcaNFz79VDt3x5Aodgf08XyEliE9h9gVfPdrMWzRsFjr2gUQZ 5ZoZrZU7KembWHy5YRGnj1pmzZj4VVtFngg6NrYd/kl+F5dEikfLKFmLsWaPUbtlNEPb OrW6Y809soPTgHf5yuvxk4pz1PL+5BwTfC1IHsDgQqk/LxIUW+XZZNWQNldWa6tjxsnu io8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iF6o3uPyABz/JCGS6mnoQHfG46FmIuXFpnlO4Zq7ZHg=; b=NlFK16WZJ4Cs4Llzm9tNLrL9mm9Np9BLYEhx203Gv4T9fcJuoKraeS7hRyUtJI+2K9 XsLpDjfPESxh1qkjvluCXtlCa9wgLYsWPmd+SoTcynwQOPZuIViWIBP+rGuVQOBqw92s WjvyTU+5HlJ7jUpIc5cNZglaBUNquRoCwcCoeyb5JFhn4Gu43iNmx0DGELl0V8W0u+Zt kb26AH6rdKnvAcz3kTzoKKAuwN0DeUHlYmy68ze/U+H0nrQEfLs/Muza78X0+iG8bOVD JUQV6ltDO3DSe4To4y/70JtMecubeWwLgCJIfQUvGIgdOw2fUw8jdgKHxMgK8xdGjXqm Wblg== X-Gm-Message-State: ANoB5pmXOJi5hD7wwZR4GFRGGp/cMuZtOamtkvWY6q8ORhy/QWv/swek MvGOIBoU0kbmN8Gq3b6W9MaIog== X-Google-Smtp-Source: AA0mqf5kUlQyWDWL6WaRuqUuiBGnYZgINSU+I31mAkOyo4uzdi8VNv4sdz5kTjTvEE5BC9Bi1HbfzA== X-Received: by 2002:ac2:58ca:0:b0:4b4:eed:ec3e with SMTP id u10-20020ac258ca000000b004b40eedec3emr22276212lfo.446.1669926107482; Thu, 01 Dec 2022 12:21:47 -0800 (PST) Received: from eriador.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id l30-20020a19495e000000b004b514b27c86sm769679lfj.13.2022.12.01.12.21.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Dec 2022 12:21:47 -0800 (PST) From: Dmitry Baryshkov To: devicetree@vger.kernel.org, Lee Jones , Rob Herring , Krzysztof Kozlowski Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , linux-arm-msm@vger.kernel.org, Jonathan Cameron , Lars-Peter Clausen , linux-iio@vger.kernel.org, Dmitry Torokhov , linux-input@vger.kernel.org, Pavel Machek , linux-leds@vger.kernel.org Subject: [PATCH 2/5] dt-bindings: leds: pm8058: convert from txt to YAML format Date: Thu, 1 Dec 2022 22:21:41 +0200 Message-Id: <20221201202144.448694-3-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221201202144.448694-1-dmitry.baryshkov@linaro.org> References: <20221201202144.448694-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Convert the bindings for the leds subdevice of Qualcomm PM8058 PMIC from text to YAML format. Signed-off-by: Dmitry Baryshkov --- .../devicetree/bindings/leds/leds-pm8058.txt | 67 --------------- .../devicetree/bindings/leds/leds-pm8058.yaml | 81 +++++++++++++++++++ 2 files changed, 81 insertions(+), 67 deletions(-) delete mode 100644 Documentation/devicetree/bindings/leds/leds-pm8058.txt create mode 100644 Documentation/devicetree/bindings/leds/leds-pm8058.yaml diff --git a/Documentation/devicetree/bindings/leds/leds-pm8058.txt b/Documentation/devicetree/bindings/leds/leds-pm8058.txt deleted file mode 100644 index 89584c49aab2..000000000000 --- a/Documentation/devicetree/bindings/leds/leds-pm8058.txt +++ /dev/null @@ -1,67 +0,0 @@ -Qualcomm PM8058 LED driver - -The Qualcomm PM8058 is a multi-functional device which contains -an LED driver block for up to six LEDs: three normal LEDs, two -"flash" LEDs and one "keypad backlight" LED. The names are -quoted because sometimes these LED drivers are used for wildly -different things than flash or keypad backlight: their names -are more of a suggestion than a hard-wired usecase. - -Hardware-wise the different LEDs support slightly different -output currents. The "flash" LEDs do not need to charge nor -do they support external triggers. They are just powerful LED -drivers. - -The LEDs appear as children to the PM8058 device, with the -proper compatible string. For the PM8058 bindings see: -mfd/qcom-pm8xxx.txt. - -Each LED is represented as a sub-node of the syscon device. Each -node's name represents the name of the corresponding LED. - -LED sub-node properties: - -Required properties: -- compatible: one of - "qcom,pm8058-led" (for the normal LEDs at 0x131, 0x132 and 0x133) - "qcom,pm8058-keypad-led" (for the "keypad" LED at 0x48) - "qcom,pm8058-flash-led" (for the "flash" LEDs at 0x49 and 0xFB) - -Optional properties: -- label: see Documentation/devicetree/bindings/leds/common.txt -- default-state: see Documentation/devicetree/bindings/leds/common.txt -- linux,default-trigger: see Documentation/devicetree/bindings/leds/common.txt - -Example: - -qcom,ssbi@500000 { - pmicintc: pmic@0 { - compatible = "qcom,pm8058"; - led@48 { - compatible = "qcom,pm8058-keypad-led"; - reg = <0x48>; - label = "pm8050:white:keypad"; - default-state = "off"; - }; - led@131 { - compatible = "qcom,pm8058-led"; - reg = <0x131>; - label = "pm8058:red"; - default-state = "off"; - }; - led@132 { - compatible = "qcom,pm8058-led"; - reg = <0x132>; - label = "pm8058:yellow"; - default-state = "off"; - linux,default-trigger = "mmc0"; - }; - led@133 { - compatible = "qcom,pm8058-led"; - reg = <0x133>; - label = "pm8058:green"; - default-state = "on"; - linux,default-trigger = "heartbeat"; - }; - }; -}; diff --git a/Documentation/devicetree/bindings/leds/leds-pm8058.yaml b/Documentation/devicetree/bindings/leds/leds-pm8058.yaml new file mode 100644 index 000000000000..a73bffb36808 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/leds-pm8058.yaml @@ -0,0 +1,81 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/leds-pm8058.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm PM8058 LED driver + +maintainers: + - Dmitry Baryshkov + +description: | + The Qualcomm PM8058 is a multi-functional device which contains + an LED driver block for up to six LEDs: three normal LEDs, two + "flash" LEDs and one "keypad backlight" LED. The names are + quoted because sometimes these LED drivers are used for wildly + different things than flash or keypad backlight: their names + are more of a suggestion than a hard-wired usecase. + + Hardware-wise the different LEDs support slightly different + output currents. The "flash" LEDs do not need to charge nor + do they support external triggers. They are just powerful LED + drivers. + + The LEDs appear as children to the PM8058 device, with the + proper compatible string. For the PM8058 bindings see: + mfd/qcom-pm8xxx.txt. + + Each LED is represented as a sub-node of the syscon device. Each + node's name represents the name of the corresponding LED. + +$ref: common.yaml# + +properties: + compatible: + enum: + - qcom,pm8058-led + - qcom,pm8058-keypad-led + - qcom,pm8058-flash-led + + reg: + description: resource address + +unevaluatedProperties: false + +examples: + - | + #include + #include + pmic { + #address-cells = <1>; + #size-cells = <0>; + + led@48 { + compatible = "qcom,pm8058-keypad-led"; + reg = <0x48>; + label = "pm8050:white:keypad"; + default-state = "off"; + }; + led@131 { + compatible = "qcom,pm8058-led"; + reg = <0x131>; + label = "pm8058:red"; + default-state = "off"; + }; + led@132 { + compatible = "qcom,pm8058-led"; + reg = <0x132>; + label = "pm8058:yellow"; + default-state = "off"; + linux,default-trigger = "mmc0"; + }; + led@133 { + compatible = "qcom,pm8058-led"; + reg = <0x133>; + label = "pm8058:green"; + default-state = "on"; + linux,default-trigger = "heartbeat"; + }; + }; +... From patchwork Thu Dec 1 20:21:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13061787 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E5D47C63707 for ; Thu, 1 Dec 2022 20:21:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229706AbiLAUVz (ORCPT ); Thu, 1 Dec 2022 15:21:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230514AbiLAUVv (ORCPT ); Thu, 1 Dec 2022 15:21:51 -0500 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BEAB4BF64B for ; Thu, 1 Dec 2022 12:21:49 -0800 (PST) Received: by mail-lf1-x12a.google.com with SMTP id r12so4292314lfp.1 for ; Thu, 01 Dec 2022 12:21:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=HQjrFotBvEBOjNlq+Pe1FPAQOv2mAv4xa7xl6UXuL2g=; b=NxTSDW0W3fMh/uuCjr+FjJDpQWcA3hwPTYJexj6jKHSPbTfD3cYbNTTtTzZffgw0w9 EJ8Pu62yqOlCu6C6Dm+vb58xgMzq0lfrKz+k657UFjifz7esjHICuY9zK/gl4nhxjoJb Yw6y4AYs5R3LMI/CZ7weCsDJLSrqlXDNASgt8iPCNlGoCpPyyULYwuWK6DA6HocXfgaL cxUvzb+s6rcljcS9Hv2tBL5l1+hB6orDDbmhKkGHDytnTQ/pMFJQYzVGPwaa/T7XvdIo oyOUH4Tgz9VPccGzW7ONkZ+esTUNZBEkHFe/SvCIvtwHtWgvrkbcObSaikovn8V79foJ ZeWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HQjrFotBvEBOjNlq+Pe1FPAQOv2mAv4xa7xl6UXuL2g=; b=eqqg0RKA/r86OdcECJP9NzigOPWkoT89MZaDuGj5o82uFqAECvtwUjyiSFFbOqmtJD 5n2F5sTuTZA6ISJYtZAdOa8TcgF3/3l2Nw+6o+fOTsPsZi5/eL9jGlhQKJR9KSZxQwUr t3s8i/5S59ymm1GwM0jZOXWs26OagsFbSJ3OgzW340/4rIqb+i4ePFa2DQ3LbvhNfMZY 66/fxHyQFGqi/HUxVrsgs2HSCn/jMWQTGu5CdgbyOCc5yYRvRObi+DNkzJBZDqBoqLu7 GpLU5EtRGZG4udMebBKGFk68Qolx4UCd2QNsNXGGIdXFTUFMn3x3yd+ayI+Rsp1u8kFU e/5g== X-Gm-Message-State: ANoB5pnznUBOxou77Lkf92dOeLGwG2lcRW+7J1xVYW0gr2N2duK5cFic K1WS7oWQJZpof4jjmgybuS9KOg== X-Google-Smtp-Source: AA0mqf5XaqmygrYenKVm7zbx77hIMWaGfCxDJmVverxZqSnyHnlczTbAjKIgC9NiUS/rR5AbTt3OKQ== X-Received: by 2002:a19:5215:0:b0:4aa:4da0:f8a5 with SMTP id m21-20020a195215000000b004aa4da0f8a5mr21605502lfb.288.1669926108212; Thu, 01 Dec 2022 12:21:48 -0800 (PST) Received: from eriador.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id l30-20020a19495e000000b004b514b27c86sm769679lfj.13.2022.12.01.12.21.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Dec 2022 12:21:47 -0800 (PST) From: Dmitry Baryshkov To: devicetree@vger.kernel.org, Lee Jones , Rob Herring , Krzysztof Kozlowski Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , linux-arm-msm@vger.kernel.org, Jonathan Cameron , Lars-Peter Clausen , linux-iio@vger.kernel.org, Dmitry Torokhov , linux-input@vger.kernel.org, Pavel Machek , linux-leds@vger.kernel.org Subject: [PATCH 3/5] dt-bindings: mfd: qcom-pm8xxx: add missing child nodes Date: Thu, 1 Dec 2022 22:21:42 +0200 Message-Id: <20221201202144.448694-4-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221201202144.448694-1-dmitry.baryshkov@linaro.org> References: <20221201202144.448694-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add gpio, keypad, led, mpps, pwrkey, vibrator and xoadc as possible child nodes of qcom,pm8xxx, referencing existint schema files. Signed-off-by: Dmitry Baryshkov --- .../devicetree/bindings/mfd/qcom-pm8xxx.yaml | 30 ++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mfd/qcom-pm8xxx.yaml b/Documentation/devicetree/bindings/mfd/qcom-pm8xxx.yaml index 84b87f01e029..1513fe4edad9 100644 --- a/Documentation/devicetree/bindings/mfd/qcom-pm8xxx.yaml +++ b/Documentation/devicetree/bindings/mfd/qcom-pm8xxx.yaml @@ -43,9 +43,37 @@ properties: interrupt-controller: true patternProperties: + "gpio@[0-9a-f]+$": + type: object + $ref: /schemas/pinctrl/qcom,pmic-gpio.yaml# + + "keypad@[0-9a-f]+$": + type: object + $ref: /schemas/input/qcom,pm8921-keypad.yaml# + + "led@[0-9a-f]+$": + type: object + $ref: /schemas/leds/leds-pm8058.yaml# + + "mpps@[0-9a-f]+$": + type: object + $ref: /schemas/pinctrl/qcom,pmic-mpp.yaml# + + "pwrkey@[0-9a-f]+$": + type: object + $ref: /schemas/input/qcom,pm8921-pwrkey.yaml# + "rtc@[0-9a-f]+$": type: object - $ref: "../rtc/qcom-pm8xxx-rtc.yaml" + $ref: /schemas/rtc/qcom-pm8xxx-rtc.yaml# + + "vibrator@[0-9a-f]+$": + type: object + $ref: /schemas/input/qcom,pm8xxx-vib.yaml# + + "xoadc@[0-9a-f]+$": + type: object + $ref: /schemas/iio/adc/qcom,pm8018-adc.yaml# required: - compatible From patchwork Thu Dec 1 20:21:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13061789 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 104AEC63717 for ; Thu, 1 Dec 2022 20:21:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230368AbiLAUV5 (ORCPT ); Thu, 1 Dec 2022 15:21:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230338AbiLAUVx (ORCPT ); Thu, 1 Dec 2022 15:21:53 -0500 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F3C7BFCC3 for ; Thu, 1 Dec 2022 12:21:50 -0800 (PST) Received: by mail-lj1-x235.google.com with SMTP id z24so3190680ljn.4 for ; Thu, 01 Dec 2022 12:21:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=KOGoCPWDALPa2Pn54w5yy0V+BqkFOIiPQ9fSx1bZOe4=; b=QkPgXYPjcWSWFOxI5ebsaCNFMaSTtxcgIpfa3mjByTZbLwPKMFxPwS52osFDkwjWu5 VTcCFeKD/yI9O8E2t81MLCmFuqngk5XkdF44zWuO61F+xtEmWbz04VakNpX4zLCP7alK C3MRC4OMRzm8AlesA9e6YoMoaRf6B23TG44ntUFdyoz0MxkKYc1KG3w16BGQexiyg0/h 7LEkWNsfz+am7lz7WxttOYlSVSj/N/0+wLvmnU9TJNX+Q1Pgh+SZt8XBmh9OBqv3MtlK ipP2/pp/93xxoi5J9Y5BaRtofgnfQ2tvg+fEB+SUou3A3m6+TjhC7FBvoJY6xlRAOFan 2ZsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KOGoCPWDALPa2Pn54w5yy0V+BqkFOIiPQ9fSx1bZOe4=; b=vTgg2yjWwXdGttDEV7I2URq3f8TmOINunleYOeRjMXcvEmj1pxl4phbj6sDB1B3Y00 hfjywODWOlphdHI3o+IOStCM29VOTIR1lyzt8nnU9Xnc3uuAaETdjs2LzZLsLjkqx/N0 B7Sef2vIHBNgfaVhGCMVNcgulHwxk1cR3M8QwqoRxnZlEYJnCknQzxoKvrQIbSzyIbIi l0r+AgXaJHtpZK6o469s18Bk/ef3KHuvf9hYJWWwZBdRLxY6iZqsVVrmpepmitdTr4WN 0gpRWYcB4gbsKRfcrNCbnseU2HxplTFIe8T2iR9CNoqFTmFWnNjU9VRzpQyy5rSY38Lq dKhw== X-Gm-Message-State: ANoB5plbO7uJKoFsTaH8YygFL/Hi+xB5q5MC/Bw5cKQi5HUqNKWKaAx/ YS/02+bPFAnCGptIyW4FiH130w== X-Google-Smtp-Source: AA0mqf5TxP6WaF0o+U4NiNXlu8EtcmUEFeSlfgVwckTpt54cPkirMYrGHO0Tj662tdspAcAEphY18Q== X-Received: by 2002:a2e:b0ef:0:b0:279:be29:cb69 with SMTP id h15-20020a2eb0ef000000b00279be29cb69mr4288321ljl.482.1669926108878; Thu, 01 Dec 2022 12:21:48 -0800 (PST) Received: from eriador.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id l30-20020a19495e000000b004b514b27c86sm769679lfj.13.2022.12.01.12.21.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Dec 2022 12:21:48 -0800 (PST) From: Dmitry Baryshkov To: devicetree@vger.kernel.org, Lee Jones , Rob Herring , Krzysztof Kozlowski Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , linux-arm-msm@vger.kernel.org, Jonathan Cameron , Lars-Peter Clausen , linux-iio@vger.kernel.org, Dmitry Torokhov , linux-input@vger.kernel.org, Pavel Machek , linux-leds@vger.kernel.org Subject: [PATCH 4/5] dt-bindings: iio: adc: qcom,pm8018-adc: allow specifying MPP channels Date: Thu, 1 Dec 2022 22:21:43 +0200 Message-Id: <20221201202144.448694-5-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221201202144.448694-1-dmitry.baryshkov@linaro.org> References: <20221201202144.448694-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Several ADC channels are bound to the Multi Purpose Pins (MPPs). Allow specifying such channels using the mppN device node (as used on apq8060 dragonboard). Signed-off-by: Dmitry Baryshkov --- Documentation/devicetree/bindings/iio/adc/qcom,pm8018-adc.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/iio/adc/qcom,pm8018-adc.yaml b/Documentation/devicetree/bindings/iio/adc/qcom,pm8018-adc.yaml index d186b713d6a7..fee30e6ddd62 100644 --- a/Documentation/devicetree/bindings/iio/adc/qcom,pm8018-adc.yaml +++ b/Documentation/devicetree/bindings/iio/adc/qcom,pm8018-adc.yaml @@ -64,7 +64,7 @@ required: - adc-channel@f patternProperties: - "^(adc-channel@)[0-9a-f]$": + "^(adc-channel|mpp[0-9]+)@[0-9a-f]$": type: object description: | ADC channel specific configuration. From patchwork Thu Dec 1 20:21:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13061788 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 01A58C6370E for ; Thu, 1 Dec 2022 20:21:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230273AbiLAUV4 (ORCPT ); Thu, 1 Dec 2022 15:21:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231179AbiLAUVv (ORCPT ); Thu, 1 Dec 2022 15:21:51 -0500 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 517BFBFCCD for ; Thu, 1 Dec 2022 12:21:50 -0800 (PST) Received: by mail-lf1-x130.google.com with SMTP id g7so4265627lfv.5 for ; Thu, 01 Dec 2022 12:21:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=RfNchStOodffna+QEO7r4Jld3Hr/B9qNIR7JQlyzfxQ=; b=p4P2d8OSbUgdP2VVyowwrwu7Xc8F6BjRnxGjuGAXGj62QqRo3ZNrSIfY8tNlnChpdC D5KeOxtch/QNR2GyFS2GTBjjSTK2cEAVatDJBF5My94ZBxnOuFacUqR1T7ot+H+K2DhU Rhd1viaubaFS+kD/6sUaKF8oGfWh1B4V1SbWy4PKkordkiWd7h5mqypI4CPE+BTRAQCq fHrNrdNGZvQ2FqmuURjWzbSnRzDtEQDJ7AvVdU9oNgNP4JIcjbrWEm7b0Iv7R16SQ00v OncbCxY7BzAPfj/LCTsE26Ug06Bu2hF6o3bLHaS1kvt2taVgT9ymNrvR3x6EjrKnZgWE SvxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RfNchStOodffna+QEO7r4Jld3Hr/B9qNIR7JQlyzfxQ=; b=dyOzCHdt5o9ReYgL3mXGNZywHtTRPMNFrjmsPfTkQA4v5QrN4BsmTW8kG8ZqCW1kO0 OOBcrMOq4HI2j6dJYDvpagxzWENUb5QnQ/u+f+eNNjtnrelnUp8RYansXLGYx3Tyu3S4 UNxy2UKwKS3xZ+AqCi3vmrwNjATqDqqkiTWUgIlntpGPDU+RpAqF7MAnBB+j2LY7eCT4 h3rQsM2kyEn5zZbI7TNrM1qtqwKP+amd3aZqW1P9SQtNgXVha5xYLdTEDOVRXnNT64Uc LmEP/iqCZfO0tPwkt0a7Q72Lm9xFBWxVUdQN0yOJ+c1IxRBblDzfaQbvZZjFife3RcfP 7nHQ== X-Gm-Message-State: ANoB5pkPsIj3fv6FK8MbADCRRfZ1N9Msl2FZurmbPSE4EwOnos1v3XJ9 Y80uHx3es9exc03vjy3Pfdm7oA== X-Google-Smtp-Source: AA0mqf6H11UBLfKd8mKqq+LR4M/k8FvPT8UU7L5t4ofItFdye/nTHmSNNJfYyTKxnR0WAhffP+KqFA== X-Received: by 2002:ac2:4bd2:0:b0:4a2:61b0:8d28 with SMTP id o18-20020ac24bd2000000b004a261b08d28mr16310618lfq.600.1669926109903; Thu, 01 Dec 2022 12:21:49 -0800 (PST) Received: from eriador.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id l30-20020a19495e000000b004b514b27c86sm769679lfj.13.2022.12.01.12.21.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Dec 2022 12:21:49 -0800 (PST) From: Dmitry Baryshkov To: devicetree@vger.kernel.org, Lee Jones , Rob Herring , Krzysztof Kozlowski Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , linux-arm-msm@vger.kernel.org, Jonathan Cameron , Lars-Peter Clausen , linux-iio@vger.kernel.org, Dmitry Torokhov , linux-input@vger.kernel.org, Pavel Machek , linux-leds@vger.kernel.org Subject: [PATCH 5/5] dt-bindings: leds: Add 'cm3605' to 'linux,default-trigger' Date: Thu, 1 Dec 2022 22:21:44 +0200 Message-Id: <20221201202144.448694-6-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221201202144.448694-1-dmitry.baryshkov@linaro.org> References: <20221201202144.448694-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add 'cm3605' to possible values for 'linux,default-trigger'. This allows one to specify Capella CM3605 proximity sensor as the LED trigger. Signed-off-by: Dmitry Baryshkov --- Documentation/devicetree/bindings/leds/common.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/leds/common.yaml b/Documentation/devicetree/bindings/leds/common.yaml index f5c57a580078..4ffb1cdf6845 100644 --- a/Documentation/devicetree/bindings/leds/common.yaml +++ b/Documentation/devicetree/bindings/leds/common.yaml @@ -101,6 +101,7 @@ properties: # LED is triggered by SD/MMC activity - pattern: "^mmc[0-9]+$" - pattern: "^cpu[0-9]*$" + - const: cm3605 led-pattern: description: |