From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C24F3C11F67 for ; Thu, 1 Jul 2021 21:51:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A46E461413 for ; Thu, 1 Jul 2021 21:51:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234352AbhGAVy1 (ORCPT ); Thu, 1 Jul 2021 17:54:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234292AbhGAVy0 (ORCPT ); Thu, 1 Jul 2021 17:54:26 -0400 Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A08E6C061762 for ; Thu, 1 Jul 2021 14:51:55 -0700 (PDT) Received: by mail-lf1-x142.google.com with SMTP id q18so14431655lfc.7 for ; Thu, 01 Jul 2021 14:51:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=phystech-edu.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=n9H2RYUzAxMzTFYa2dyhL6m2ND68O6aW04RdAX2sGhA=; b=2E2GLhSab3SSwZCziA849REnaYd7HOMgv/72trOQOqe2WlVPKBwu0Ilzf/1sU6S0n4 OD5qchiT9lV0bc1nDnwjxhn8srFQRE1Ol+DMWFAKnpgu/J1KQtujpsCn9C2qAiU7hfl/ QEhUUb1uhY/yf8AAzGZYCa8C+8ujjCaqige5e8sYgvEu1yHrDYF0cgFPyYo9Ue49hgBl fiG5uH6KmNytO10UIRgp/XOjrkgLtZk3YN9dFjWrNZ7SXY9Lu1oBNCRYqUhRRodmx3k6 +UrQlDO+YMgSoPq2zYqTF1FVkbBVJCRHUBKo1Lu1zqxWkQI2U03fSHZQdfA+qiPxhnAc DMSg== 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=n9H2RYUzAxMzTFYa2dyhL6m2ND68O6aW04RdAX2sGhA=; b=r/0Xhpz5Vkk0NdQpS6rO48jND+ue2BWDH67ViACS2U6rRcYRP9gWt+gwP6UwW3iWAf vCZOPPBlzCzj7u14QhDJPBOuGM/NR2bOMoJaE2/ytcoAtSfuf4H6TS0eLzdC0EGNh15w BVBAaWLrwekaXhPe/jN3fKmWPZjWnHgqrvZlIBT0gAzosOkQc5xR74Z0GPfbIilfewj/ 8vzvYi5bMdQaWAVMMslyH2Fu4r3OPksTg5TY6lDjMA6VXXdh91Cyl89IF71h0BuPyDfe deC8DzyiOviV9h3zvJ+IYXM2uPygKGFb1fxdjATaykwvF33fv8H7WjfunsyqX+k6xBuE BAzA== X-Gm-Message-State: AOAM531S9jkRb3qY/FmqptZH35hJBVkP0WJmV4ucTy7j7STzOsbs0Vbi 8IsQrrt/hE0/tC49hoWuAgkZFw== X-Google-Smtp-Source: ABdhPJzLqik42pLlcereFPQvwx8ghkJL/Z//ta6UloEqZjal1FWHgHx7gAzvQ3/CwNp57d/yt3qSaQ== X-Received: by 2002:a19:c015:: with SMTP id q21mr1284580lff.219.1625176314040; Thu, 01 Jul 2021 14:51:54 -0700 (PDT) Received: from 192.168.1.3 ([2a00:1370:810e:4d3d:fdb7:f150:ee77:eba5]) by smtp.gmail.com with ESMTPSA id q17sm138623ljp.3.2021.07.01.14.51.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Jul 2021 14:51:53 -0700 (PDT) From: Viktor Prutyanov To: sean@mess.org, mchehab@kernel.org, robh+dt@kernel.org, khilman@baylibre.com, narmstrong@baylibre.com Cc: jbrunet@baylibre.com, martin.blumenstingl@googlemail.com, linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, rockosov@gmail.com, Viktor Prutyanov Subject: [PATCH 1/2] media: rc: meson-irblaster: document device tree bindings Date: Fri, 2 Jul 2021 00:51:31 +0300 Message-Id: <20210701215132.16317-2-viktor.prutyanov@phystech.edu> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20210701215132.16317-1-viktor.prutyanov@phystech.edu> References: <20210701215132.16317-1-viktor.prutyanov@phystech.edu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This patch adds binding documentation for the IR transmitter available in Amlogic Meson SoCs. Signed-off-by: Viktor Prutyanov --- .../media/amlogic,meson-irblaster.yaml | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/amlogic,meson-irblaster.yaml diff --git a/Documentation/devicetree/bindings/media/amlogic,meson-irblaster.yaml b/Documentation/devicetree/bindings/media/amlogic,meson-irblaster.yaml new file mode 100644 index 000000000000..baecda092a78 --- /dev/null +++ b/Documentation/devicetree/bindings/media/amlogic,meson-irblaster.yaml @@ -0,0 +1,63 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) + +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/media/amlogic,meson-irblaster.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Amlogic Meson IR blaster + +maintainers: + - Viktor Prutyanov + +description: | + Some Amlogic SoCs such as A311D and T950D4 have IR transmitter + (blaster) controller onboard. It is capable of sending IR signals + with arbitrary carrier frequency and duty cycle. + +properties: + compatible: + const: amlogic,meson-irblaster + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + minItems: 1 + maxItems: 2 + + clock-names: + minItems: 1 + maxItems: 2 + items: + - const: sysclk + - const: xtal + + mod-clock: + oneOf: + - const: sysclk + - const: xtal + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + #include + #include + + meson-irblaster@ff80014c { + compatible = "amlogic,meson-irblaster"; + reg = <0xff80014c 0x10>; + interrupts = <0 198 IRQ_TYPE_EDGE_RISING>; + clocks = <&clkc CLKID_CLK81 &xtal>; + clock-names = "sysclk", "xtal"; + mod-clock = "xtal"; + }; -- 2.21.0