From patchwork Sun Dec 4 06:15:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 630996 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 14D21C63704 for ; Sun, 4 Dec 2022 06:16:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229913AbiLDGQC (ORCPT ); Sun, 4 Dec 2022 01:16:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229861AbiLDGQA (ORCPT ); Sun, 4 Dec 2022 01:16:00 -0500 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 053E31ADBA for ; Sat, 3 Dec 2022 22:15:58 -0800 (PST) Received: by mail-lj1-x22a.google.com with SMTP id z4so9984587ljq.6 for ; Sat, 03 Dec 2022 22:15:58 -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=MGOVrxfOD8BF4FwUjHn7YWjRN4P7dbKZxtu8bDTJRpI9qiAVPEfxDOQu7MXactS+oJ xEDJhkXS8Lcig70yNUQjUIzbeKwXAkNtv/QgADNqMxLTBJnaZX6WLq0Lb0al0LYwK00y U/rt/A4oMcb0ycEShNEDSt1lK7Nxg/zFb5LBIp1JSGXKq6+5AeekzTCg078zQRL0D7Gd V3WRpos346S3l56b8H/Nc2GLfd1kuIGyNscHkH0tkldLsPGn9run5GsFe6DLcZYzkYl9 E4Fi0/uK5Fp3qlRonmucgTpt1XJ530p48lLMz5pOtupoR6P0jyGQg7sKiy/BtoR2JHQQ czXg== 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=g09Z2CwndJ+0TRMM7rRMQcz1muNOLYmJFRSgZd5Xkb6s/MUy59dShz20+hknj6BfAR V6KarFu9bcoVYg6YflDCnifK1OSToScApV1vjAH/KmO1CE7tqFHmYfUnXu6dsWxdcx20 Q4gp7uWcRonv2OtwLEADU51TcCF5It3L4SYV0EEq/uo6/UnicK7Odtv5wOjNdGqmHxQT 3y3doY5zXE6t9xy/xhk2EVD0tLr25beV1C+Afk8JvcniaW7DPXRitRFaCun7bDGV79Kx Pl4g4dCvJ/f2gBnbZuKBqaY4SLXLNgdHsVWpDUJ3pt3qHW9OaGg9B/xkvPwqbw+R5Noo ZBww== X-Gm-Message-State: ANoB5pnP+X5ahkYVbylb8uMDrSW2yHOWcCCHh8PWt9Bb5FGdQdryLD5I JYImm2ru7rO59uyfe4QGtOUQZg== X-Google-Smtp-Source: AA0mqf7SyhRkMi3aiViU5jyNWW7s3Ms/PUnL7UdUfm0Oy7psHR+ZoK7WyxOPPjQOlDhe/DsxvYZIRA== X-Received: by 2002:a2e:a0c2:0:b0:279:95c2:c154 with SMTP id f2-20020a2ea0c2000000b0027995c2c154mr13350452ljm.44.1670134557327; Sat, 03 Dec 2022 22:15:57 -0800 (PST) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id l12-20020a056512110c00b0047f7722b73csm1650725lfg.142.2022.12.03.22.15.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Dec 2022 22:15:57 -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 v2 1/4] dt-bindings: input: qcom,pm8921-keypad: convert to YAML format Date: Sun, 4 Dec 2022 08:15:52 +0200 Message-Id: <20221204061555.1355453-2-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221204061555.1355453-1-dmitry.baryshkov@linaro.org> References: <20221204061555.1355453-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-input@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 Sun Dec 4 06:15:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 630995 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 5327DC63709 for ; Sun, 4 Dec 2022 06:16:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229765AbiLDGQE (ORCPT ); Sun, 4 Dec 2022 01:16:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229892AbiLDGQB (ORCPT ); Sun, 4 Dec 2022 01:16:01 -0500 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5332B1AD88 for ; Sat, 3 Dec 2022 22:16:00 -0800 (PST) Received: by mail-lj1-x236.google.com with SMTP id z4so9984647ljq.6 for ; Sat, 03 Dec 2022 22:16:00 -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=xy+rewDal477F1HElTX6RYKvnSvGR1XzXBGIIGyFrdNzv2XrtLcSAui1ufmK/WUWuj hzh2y6U41yFoUxO4sKfzMI8cU0F1LlcKTZpPSg95u21NIvtWQ4r9QiXwuXhZypTqInqO JiuJaoWSVxdhJJL6Beu9ukx2BBLgTVvukWS9O+RNqo/ZjUMiddmiRQHtteXFle7sedzC H3Ty4dud0vejSW1mWnUk6gNpPkWiNywZUo2rAU1XQ/7uMo+SnUgF89zypSgSI1uAIYIe /d8cZxi6I2GS0BdgiecYuDW1fKf6vgPVZ6FuN+p2HsIKpx3ChVeUy2shBG/ZQA8HE9fL 3v0Q== 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=v7A/NmnEXqM1zPLzF/SZt5Ml+/TwwU9Ev9cqt8oLvc4Ddhhrew41ZIAwllr8gfEXX2 DFF2QMKj5/88YUBZk6wz/XP4NKp91nxESOclDJM74adQxNiC5+FiuFmFqQWkd3QVzWLg H3E/EGWxHC/F97DMrjoJbplgCTHMXJ2eEc5uXkL4GkJg13cPBl398AoTc+QJYOW8Sgm8 jbEmY66lC92JyYfgpjPorqy4xbyAtmLGAkiN+jG67m0sDTBx25zFlxES2mrIGIl0MOCC qLmVL9lY84Em73w+qdUJFqigANrNhBm15iE101POXtRMZX2iHxWSRaflQCTweeBrhAAG Yhog== X-Gm-Message-State: ANoB5plsdLZI+0TqY/asHIFe3CC9fkUItjjhFu3j71+sWhG+up5i/02g 6B8gSlnbyI2aC07/t3vXcqfbMg== X-Google-Smtp-Source: AA0mqf73i1pupn8/hJ6UnDdEtGCXADyuWG1T8UDd6XR4irFQ2WqRE+Y4htTyLREwK1oZK2rgyj+ykw== X-Received: by 2002:a2e:a5c6:0:b0:277:22c3:afbb with SMTP id n6-20020a2ea5c6000000b0027722c3afbbmr19126253ljp.204.1670134559876; Sat, 03 Dec 2022 22:15:59 -0800 (PST) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id l12-20020a056512110c00b0047f7722b73csm1650725lfg.142.2022.12.03.22.15.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Dec 2022 22:15:59 -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 v2 4/4] dt-bindings: leds: Add 'cm3605' to 'linux,default-trigger' Date: Sun, 4 Dec 2022 08:15:55 +0200 Message-Id: <20221204061555.1355453-5-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221204061555.1355453-1-dmitry.baryshkov@linaro.org> References: <20221204061555.1355453-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-input@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: |