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: 29401 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1735577wrr; Sun, 4 Dec 2022 02:52:25 -0800 (PST) X-Google-Smtp-Source: AA0mqf451Jh99KRZb+RCVZj6ZBeIkUPhST7mc/Uy7IFYidtmiMJC1zeq0jal5Kn94n6DkUokmQbP X-Received: by 2002:aa7:cb09:0:b0:463:ff10:4ff with SMTP id s9-20020aa7cb09000000b00463ff1004ffmr59802470edt.290.1670151145286; Sun, 04 Dec 2022 02:52:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670151145; cv=none; d=google.com; s=arc-20160816; b=UOhj+mD2XN8lQ1EPAIVjOZm6kE2ul619RgnjPhH6j/6bkP8I2F+gANjAAOn02R5mgN s6vNGOWxTsqage8G/EpWl5TelWzdlHkXCfEcmcVh6aTDTwP+m/L56vjSyQhb9ZfxWdsq AEz/b4a4IUCKa2Suq39MU5U4s0xR4wsD3GuiuB4xEdaLxJKu4EfsLYTGHU4w16FMiqi3 Isnhv9KHzIFVIDFnnmSCDQJ1nIE2xaE4sL8opBCsyDZbGy/aik5HoGpH2yQcYzsTEkVe gT5bX5i0Ha9otSAHUiTDVr/jqT6XpSSslVDEV9uVeRFa5QB3Dhev/zSrfqSu556+bKYh OeUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=vUtAt+SuxLZPa/RB4QNwZAEnF/ypq5aNumvuCyCA9xc=; b=K3IrhGeQPuIsOp67cMpMlAB5cGOS6IpwYz8kUYOEXZ0LFMK9vqgilSsTzV3MxbtYyt nUKodhGlimqsKfKebU4vSZnIKleLDwBeYrl+I1RTHC90kmnYlDW5QaRBXpYWnsiaJwgo 4wpGtL26+on2oN/xKHiMs6ALyxFFGmzkLiLwxdQGfcmNkgEtvo+u//7rrt9P8K+4RdX0 dhskMUdLSEUka6vFFVz/cs31d9XmC1rpRumNtCS170JyDhQucbSgJOJiRvYyAKmOeodA tRUyZnmh+Q/9eMhvLfuRn1HsJPdnkhlI4eHZxcsxfmUJMz0X+G8whPCf4zZ615HMxUUN qaWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="b13/F8a+"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t1-20020a170906268100b007470b52f94esi7837032ejc.199.2022.12.04.02.52.00; Sun, 04 Dec 2022 02:52:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="b13/F8a+"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230169AbiLDKng (ORCPT + 99 others); Sun, 4 Dec 2022 05:43:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230137AbiLDKnd (ORCPT ); Sun, 4 Dec 2022 05:43:33 -0500 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAA88E0FE for ; Sun, 4 Dec 2022 02:43:31 -0800 (PST) Received: by mail-lj1-x229.google.com with SMTP id x6so10361694lji.10 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=BUtjtHIDn4eEVGcXwKfOxiCBAo1ykSKytMUKHxPPnyhefu+OSjIr7ho4fPtAaW/y68 mP7+xSqRt2oUUfCRmi6su1YbfoFGrwDjKSBhk7/HNFnmhqRnjuzSfkiTXw7eTc4K+Arh 2fm0UtpBnZt0GaUlaCm1rxrz2mf6Aih7RXbVUXEdgjt7LYklubtX8xRC4qyNRqsLVeSn 4RgG2jMYU4b4OUGvIjoOEeUJikHGstnTvc/sD9+m9KZnn1TmpOXFUdvFx+01qrVk2Q+7 7bIwK/giXTwoSf7X95s2q7imv5gZvJ0lVEf3S/kIjq7j5danuk/3S658+zeCtI6dbkbT qP7Q== X-Gm-Message-State: ANoB5pk9GMCR0CiSshQ3v+e3az5maXARmalMVdCAL5jY1PEuoAegnpVd HHgupKz+jtbaUskmAx/VvpdY7w== 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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751280407266041442?= X-GMAIL-MSGID: =?utf-8?q?1751280407266041442?= 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