From patchwork Sun Dec 4 10:43:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 631216 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 71C3AC4332F for ; Sun, 4 Dec 2022 10:43:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230148AbiLDKnd (ORCPT ); Sun, 4 Dec 2022 05:43:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230074AbiLDKnc (ORCPT ); Sun, 4 Dec 2022 05:43:32 -0500 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02573E0BE for ; Sun, 4 Dec 2022 02:43:31 -0800 (PST) Received: by mail-lf1-x12d.google.com with SMTP id b13so3374353lfo.3 for ; Sun, 04 Dec 2022 02:43:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=mkpnkgS661CL81tREqROjXb5VEYTJXJHdLfxFTagbbs=; b=eyNqK8ehsyoOUvVJLufQ4cBhyIoGEL8itAxijDj/69skdhojwUO9aEX6194hgAbilG JtUv8ryuYSlmJf79TOm7u+qaJxs4aRRX/zxOfIy3yYhYEokxgv0dLcRA5q75bFrs0NKi cMocSXaPOcjITs7K0srq4EJDfFi9snUEy7IPTe0V2cyuO4LagEwmpiiCOpKBffdCJeDU ObmRoXmP6xF5bA8iGaDaQK83wR9udl5gDBtquqoYSznoz6xMSJmTTWunRtp+/xx/K8ow MceG8sv0IlTallBvAADkCN/Je74E4AZgHL+QFRtcZ33T0UnYUxdR2BnUvjpdv2v+P9eD Jq3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=mkpnkgS661CL81tREqROjXb5VEYTJXJHdLfxFTagbbs=; b=utVgMcd2dgUcXa/lOpkWhhZmoeWRY+k8hbvY0fJSRhYe53Iov7L+C7N6chvTUy+9UK /xYKXcP8MWNRfitgyXscJrIak2uEpQ0zy+1v3puyUAhk1DrM03KqgOSRD0+yUvkAWiEL 8+zKFSidaJ4eNPZvylZpW7QMBwswDX4F/e2mwI+JWG7TM3rAyNxDAMrBx6UFb/bYB5QG g3stfmb0Pput0bqCP/0PTdzBlOnZfCSYhbWKQ89ydSok2F0sM9hPeKGqF2u0fsxSD+If GfGt/SVcFANXvD8M/w9Y1Qicqdcm7e6K87PDGha3kRYmGhDMfJsweSbQZ613glt03BhJ MuNg== X-Gm-Message-State: ANoB5pl/wbWD7iBG8+RYuNal4kAfG6LZa69EtgO3cTPSZmLoAKIhWiFV TeGlTRUU7rADJZNI9jUz3ekJwg== X-Google-Smtp-Source: AA0mqf6aMt0hHEGgulKA17NECqV5/ZqIGJZyzP3de5FpTiPlOrSIXDIMVOxunD7VvSXotiN0a3eqxQ== X-Received: by 2002:ac2:5979:0:b0:4b5:7607:3191 with SMTP id h25-20020ac25979000000b004b576073191mr11601lfp.93.1670150609232; Sun, 04 Dec 2022 02:43:29 -0800 (PST) Received: from krzk-bin.NAT.warszawa.vectranet.pl (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id w13-20020a05651c118d00b0026c42f67eb8sm893318ljo.7.2022.12.04.02.43.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Dec 2022 02:43:28 -0800 (PST) From: Krzysztof Kozlowski To: Pavel Machek , Rob Herring , Krzysztof Kozlowski , Sean Young , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 1/3] dt-bindings: leds: irled: gpio-ir-tx: convert to DT schema Date: Sun, 4 Dec 2022 11:43:21 +0100 Message-Id: <20221204104323.117974-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org Convert the GPIO IR LED bindings to DT schema. Signed-off-by: Krzysztof Kozlowski --- .../bindings/leds/irled/gpio-ir-tx.txt | 14 -------- .../bindings/leds/irled/gpio-ir-tx.yaml | 36 +++++++++++++++++++ MAINTAINERS | 1 + 3 files changed, 37 insertions(+), 14 deletions(-) delete mode 100644 Documentation/devicetree/bindings/leds/irled/gpio-ir-tx.txt create mode 100644 Documentation/devicetree/bindings/leds/irled/gpio-ir-tx.yaml diff --git a/Documentation/devicetree/bindings/leds/irled/gpio-ir-tx.txt b/Documentation/devicetree/bindings/leds/irled/gpio-ir-tx.txt deleted file mode 100644 index cbe8dfd29715..000000000000 --- a/Documentation/devicetree/bindings/leds/irled/gpio-ir-tx.txt +++ /dev/null @@ -1,14 +0,0 @@ -Device tree bindings for IR LED connected through gpio pin which is used as -remote controller transmitter. - -Required properties: - - compatible: should be "gpio-ir-tx". - - gpios : Should specify the IR LED GPIO, see "gpios property" in - Documentation/devicetree/bindings/gpio/gpio.txt. Active low LEDs - should be indicated using flags in the GPIO specifier. - -Example: - irled@0 { - compatible = "gpio-ir-tx"; - gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>; - }; diff --git a/Documentation/devicetree/bindings/leds/irled/gpio-ir-tx.yaml b/Documentation/devicetree/bindings/leds/irled/gpio-ir-tx.yaml new file mode 100644 index 000000000000..5839d00c7089 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/irled/gpio-ir-tx.yaml @@ -0,0 +1,36 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/irled/gpio-ir-tx.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: IR LED connected through GPIO pin + +maintainers: + - Sean Young + +description: + IR LED connected through GPIO pin which is used as remote controller + transmitter. + +properties: + compatible: + const: gpio-ir-tx + + gpios: + maxItems: 1 + +required: + - compatible + - gpios + +additionalProperties: false + +examples: + - | + #include + + irled { + compatible = "gpio-ir-tx"; + gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>; + }; diff --git a/MAINTAINERS b/MAINTAINERS index be71999cea73..25b7fbf09e7b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8839,6 +8839,7 @@ GPIO IR Transmitter M: Sean Young L: linux-media@vger.kernel.org S: Maintained +F: Documentation/devicetree/bindings/leds/irled/gpio-ir-tx.yaml F: drivers/media/rc/gpio-ir-tx.c GPIO MOCKUP DRIVER From patchwork Sun Dec 4 10:43:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 631215 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 C2AA2C47090 for ; Sun, 4 Dec 2022 10:43:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230158AbiLDKne (ORCPT ); Sun, 4 Dec 2022 05:43:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230120AbiLDKnd (ORCPT ); Sun, 4 Dec 2022 05:43:33 -0500 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA9B7E0E8 for ; Sun, 4 Dec 2022 02:43:31 -0800 (PST) Received: by mail-lj1-x22e.google.com with SMTP id a19so10429426ljk.0 for ; Sun, 04 Dec 2022 02:43:31 -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=vUtAt+SuxLZPa/RB4QNwZAEnF/ypq5aNumvuCyCA9xc=; b=b13/F8a+rUqvNZ/XYyBYbeH+jtIJ+hV+icTub0e55c0B1U8hk+1IIlKae3gTssRMZm 0Vpyp4gKhqCxneqz0Iz9Vjop23XhBF9VKCDhfNeAoMRTgXlzFcAFTrOWmSDaETLAwsDw EpjoigAnFinTxpZrrU2YHxR5iA6OrnnkQzqYkVrEmidIy9AASxwyu4ZR9QL8U4x95FfW wB6dECAuda6SZgu5CiKnwVJSBmpN+p66EHu0a6Tkx2fNZiugxyyZnQreZRsoT1Mr3eDJ dwIUmoROfqCAHTKo8d2oMhuZYD2O9uwQHlF5BGvTdTl5X8OVYaWIAZI8PnI8k9Q2bEyF 596w== 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=vUtAt+SuxLZPa/RB4QNwZAEnF/ypq5aNumvuCyCA9xc=; b=DsivKgJxXv48k4jcDYfSXwmEQvg1vR5bmDbxxprpu7z8xyL6TxctxYybOW0ceMBtUg jynmVAAE+mHGlUsR0pYXdgc4FpXEa+bPdAHB184jTwbDv9+LQaiBisiEnl1yScDrV36v w8kkqLbAkPW79KYXruzWi7QzEa7DPpnhcyL/gvvUOWNxkOj52C9UtD6uziSu6Z3OKfZU JGEIhQmIiezKE/keVq0wt0aj+MGHrmzbSivXFj/K60nOlj1PA44bbpTdJyhKfxZi9sSj ldlI8+MTX3wkTBa+OzxBAUNC9U0kKFY8ugEEE3weHLOk1ayVw302xwM4jDNHI6P/477u t+jw== X-Gm-Message-State: ANoB5pl+W5E2HFC5YNcVSKjQe8lRNDkQKHzlNwsqYHEK4+Gai323GJrv s663vi2JSRFKeZ4Fl0ES/mcW3A== X-Google-Smtp-Source: AA0mqf5CakR+0IBuMADjv7++aDidoKZ/7nREP95nHQ81sJ0Lmx7kjfFKOT4CS7bPA6s5DVuYJuRRnw== X-Received: by 2002:a2e:b0fb:0:b0:279:9db3:7e58 with SMTP id h27-20020a2eb0fb000000b002799db37e58mr9729626ljl.341.1670150610240; Sun, 04 Dec 2022 02:43:30 -0800 (PST) Received: from krzk-bin.NAT.warszawa.vectranet.pl (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id w13-20020a05651c118d00b0026c42f67eb8sm893318ljo.7.2022.12.04.02.43.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Dec 2022 02:43:29 -0800 (PST) From: Krzysztof Kozlowski To: Pavel Machek , Rob Herring , Krzysztof Kozlowski , Sean Young , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 2/3] dt-bindings: leds: irled: pwm-ir-tx: convert to DT schema Date: Sun, 4 Dec 2022 11:43:22 +0100 Message-Id: <20221204104323.117974-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221204104323.117974-1-krzysztof.kozlowski@linaro.org> References: <20221204104323.117974-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org Convert the PWM IR LED bindings to DT schema. Signed-off-by: Krzysztof Kozlowski --- .../bindings/leds/irled/pwm-ir-tx.txt | 13 ------- .../bindings/leds/irled/pwm-ir-tx.yaml | 34 +++++++++++++++++++ MAINTAINERS | 1 + 3 files changed, 35 insertions(+), 13 deletions(-) delete mode 100644 Documentation/devicetree/bindings/leds/irled/pwm-ir-tx.txt create mode 100644 Documentation/devicetree/bindings/leds/irled/pwm-ir-tx.yaml diff --git a/Documentation/devicetree/bindings/leds/irled/pwm-ir-tx.txt b/Documentation/devicetree/bindings/leds/irled/pwm-ir-tx.txt deleted file mode 100644 index 66e5672c2e3d..000000000000 --- a/Documentation/devicetree/bindings/leds/irled/pwm-ir-tx.txt +++ /dev/null @@ -1,13 +0,0 @@ -Device tree bindings for IR LED connected through pwm pin which is used as -remote controller transmitter. - -Required properties: - - compatible: should be "pwm-ir-tx". - - pwms : PWM property to point to the PWM device (phandle)/port (id) - and to specify the period time to be used: <&phandle id period_ns>; - -Example: - irled { - compatible = "pwm-ir-tx"; - pwms = <&pwm0 0 10000000>; - }; diff --git a/Documentation/devicetree/bindings/leds/irled/pwm-ir-tx.yaml b/Documentation/devicetree/bindings/leds/irled/pwm-ir-tx.yaml new file mode 100644 index 000000000000..f2a6fa140f38 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/irled/pwm-ir-tx.yaml @@ -0,0 +1,34 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/irled/pwm-ir-tx.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: IR LED connected through PWM pin + +maintainers: + - Sean Young + +description: + IR LED connected through PWM pin which is used as remote controller + transmitter. + +properties: + compatible: + const: pwm-ir-tx + + pwms: + maxItems: 1 + +required: + - compatible + - pwms + +additionalProperties: false + +examples: + - | + irled { + compatible = "pwm-ir-tx"; + pwms = <&pwm0 0 10000000>; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 25b7fbf09e7b..e3f3c3e53f77 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -16960,6 +16960,7 @@ PWM IR Transmitter M: Sean Young L: linux-media@vger.kernel.org S: Maintained +F: Documentation/devicetree/bindings/leds/irled/pwm-ir-tx.yaml F: drivers/media/rc/pwm-ir-tx.c PWM SUBSYSTEM From patchwork Sun Dec 4 10:43:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 630997 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 1CDB7C636F9 for ; Sun, 4 Dec 2022 10:43:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230000AbiLDKng (ORCPT ); Sun, 4 Dec 2022 05:43:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230115AbiLDKne (ORCPT ); Sun, 4 Dec 2022 05:43:34 -0500 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10B0EF598 for ; Sun, 4 Dec 2022 02:43:32 -0800 (PST) Received: by mail-lj1-x22f.google.com with SMTP id z4so10379904ljq.6 for ; Sun, 04 Dec 2022 02:43:32 -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=wKxfJBtE9R/RmkSFqJuCs7AeQseJPQiGfkmXFgO8eRE=; b=NygHRy+2Rq2KEujc0x//tVDRPbwYxxkTgX0T8P3Q/v5z3iW/dLE0/BDRYVBawgtseE eL4FgeKIuUuY2tGMaqMlw9fZdNPZZt5ePgAH/Eto9xbh3DkxYud33xSJB0mbnxefpfGU sGu/ZcKSq53vZmHeg6kuu/+i8rdk4dLzICM3EF49ab4hc6THSqcTNkFoACIedqh2yyA8 PvQul1RCxyko/hakFADrfzbTHb2my/63HUGLIpbG9/gKzhCn5WlkxUs9yQnDmxWE4cq6 0qJqpG35dZ8ctNqOCwJ81nwzpUanTauxvBV9obWzs3HI++tIB48tCyzp5VkEWowh4pKF zfxA== 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=wKxfJBtE9R/RmkSFqJuCs7AeQseJPQiGfkmXFgO8eRE=; b=dg5eaWrYzUPcEdGzsDkjY9P8RIsG5ZziWCQYrAROkkGwCNc9AzdglTg1uxackkYtXx 9dktzZAEcePwZHR3NDYjmjPEXaZqF3v54MMyy8aE9FCLcV3Y5a08Igxo1rAvlpj3Q5/i neOMUw10R2oHCNFBZRKJRpkwCF5dhhU0ISrxe+bwxLUJJFv/3l102d2GAOXT1xuknNdx RkMY1HXXD0exVh2dd3FdwOKDvFDNXCP4IPE4UzKXfMh59DzxN6M3hqnOJtfw1FQaWsS1 ODQHgdBTSHNCO24T/y3IiX0xoS3SS7UGf0NxOnZDbAsjl+0Ydur5eS3dMNoXWMOqMjCq i2sQ== X-Gm-Message-State: ANoB5plydbxYqKNcqISeHAh+fzrgXaW6F0+0yXf2pcZnWYUNJGuk3NBD DfnRMvFASIFjK1PEgYtZHyztyQ== X-Google-Smtp-Source: AA0mqf7rV6MT2d/H87OYhumdmZsVNt9zVAycKUBv1fuw5Ut5PGBgkF6tBZoRJNoqMP/K0QgxgJWjMg== X-Received: by 2002:a05:651c:1187:b0:279:d72d:215e with SMTP id w7-20020a05651c118700b00279d72d215emr3750216ljo.184.1670150611194; Sun, 04 Dec 2022 02:43:31 -0800 (PST) Received: from krzk-bin.NAT.warszawa.vectranet.pl (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id w13-20020a05651c118d00b0026c42f67eb8sm893318ljo.7.2022.12.04.02.43.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Dec 2022 02:43:30 -0800 (PST) From: Krzysztof Kozlowski To: Pavel Machek , Rob Herring , Krzysztof Kozlowski , Sean Young , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 3/3] dt-bindings: leds: irled: ir-spi-led: convert to DT schema Date: Sun, 4 Dec 2022 11:43:23 +0100 Message-Id: <20221204104323.117974-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221204104323.117974-1-krzysztof.kozlowski@linaro.org> References: <20221204104323.117974-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org Convert the SPI IR LED bindings to DT schema. Signed-off-by: Krzysztof Kozlowski --- .../bindings/leds/irled/ir-spi-led.yaml | 61 +++++++++++++++++++ .../bindings/leds/irled/spi-ir-led.txt | 29 --------- 2 files changed, 61 insertions(+), 29 deletions(-) create mode 100644 Documentation/devicetree/bindings/leds/irled/ir-spi-led.yaml delete mode 100644 Documentation/devicetree/bindings/leds/irled/spi-ir-led.txt diff --git a/Documentation/devicetree/bindings/leds/irled/ir-spi-led.yaml b/Documentation/devicetree/bindings/leds/irled/ir-spi-led.yaml new file mode 100644 index 000000000000..72cadebf6e3e --- /dev/null +++ b/Documentation/devicetree/bindings/leds/irled/ir-spi-led.yaml @@ -0,0 +1,61 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/irled/ir-spi-led.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: IR LED connected through SPI bus + +maintainers: + - Sean Young + +description: + IR LED switch is connected to the MOSI line of the SPI device and the data + is delivered through that. + +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +properties: + compatible: + const: ir-spi-led + + reg: + maxItems: 1 + + duty-cycle: + $ref: /schemas/types.yaml#/definitions/uint8 + enum: [50, 60, 70, 75, 80, 90] + description: + Percentage of one period in which the signal is active. + + led-active-low: + type: boolean + description: + Output is negated with a NOT gate. + + power-supply: true + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + irled@0 { + compatible = "ir-spi-led"; + reg = <0x0>; + + duty-cycle = /bits/ 8 <60>; + led-active-low; + power-supply = <&irda_regulator>; + spi-max-frequency = <5000000>; + }; + }; + diff --git a/Documentation/devicetree/bindings/leds/irled/spi-ir-led.txt b/Documentation/devicetree/bindings/leds/irled/spi-ir-led.txt deleted file mode 100644 index 83ff1b4d70a6..000000000000 --- a/Documentation/devicetree/bindings/leds/irled/spi-ir-led.txt +++ /dev/null @@ -1,29 +0,0 @@ -Device tree bindings for IR LED connected through SPI bus which is used as -remote controller. - -The IR LED switch is connected to the MOSI line of the SPI device and the data -are delivered thourgh that. - -Required properties: - - compatible: should be "ir-spi-led". - -Optional properties: - - duty-cycle: 8 bit value that represents the percentage of one period - in which the signal is active. It can be 50, 60, 70, 75, 80 or 90. - - led-active-low: boolean value that specifies whether the output is - negated with a NOT gate. - - power-supply: specifies the power source. It can either be a regulator - or a gpio which enables a regulator, i.e. a regulator-fixed as - described in - Documentation/devicetree/bindings/regulator/fixed-regulator.yaml - -Example: - - irled@0 { - compatible = "ir-spi-led"; - reg = <0x0>; - spi-max-frequency = <5000000>; - power-supply = <&vdd_led>; - led-active-low; - duty-cycle = /bits/ 8 <60>; - };