Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp830652pxv; Fri, 9 Jul 2021 10:00:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxKzn4TGci180u0awoiTRaRmc6XNjlP7MX7juu85ITppwF7pkOsUH2uEEvAbVyzYvwZRl58 X-Received: by 2002:a02:942e:: with SMTP id a43mr33608120jai.74.1625850000933; Fri, 09 Jul 2021 10:00:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625850000; cv=none; d=google.com; s=arc-20160816; b=UOCSeF/Sky+uUQnZXUHmBGIbxzCWvEHNU8biFqejNh9rdtITWWT4PXfLrf0HwyRTMt DycGxxH/cKwxo0uHMfd7krVianxhqON0eYWgp7SBCKc6PvsS5RG2LwYoOMnLoQ9g5Q1w sFLZglE4Uj1ZOlqfzDOGmK0odxXrXAro1PZpES7g3wrQmZPo13bUImQ7+0aDgECwse/w XgyS2NgYNpyVfMBb14+sUuUO8XZ+frpzIiT/TGAkOOtMQD+P7Ws/AEoo94SUOoCPn5XK egKL/DOykFY51R8UlVEnXeDwx6UPyW8QMBpe8pS/nr4x1K/SANFCoCh+P8z7Vd8oB/7J Xd5g== 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=n3cz26qHSCwc2rLWJL4aQ/NbqMK/zt0UOTvUQChL7jo=; b=r66IBP+UQwv5se8amWYVv4ooE+uT5MUG3tBJEXKzqJXsSzhII48AyUz9zHAw5w6AcO N4D2uU3g3nsTBW6CUHDQx//rraPdISOmeMwLaJpayNdOJG7Tch1Jd5sj27jyLNZrfMPz aaefPVgejN5YT7I2Xqf6Y5EoePMtBV75eBxPB3Y2CmaKUKfoD1NOM1b8WrS45l231k0J J0SwI87LkCI+6tybXM3p0Dl+2DvBTHZyiCuOpLHyhYGK+KnVKrZRLKs7dgr7g0iYU1gG Fs9Q/wIMv5EHZ3JcS3/XflSQvddKd2Jv5bEW9+xilL46dp0F3iuq4d8zg/wd2HGURxqa HmpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@phystech-edu.20150623.gappssmtp.com header.s=20150623 header.b=bTgfzISd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=phystech.edu Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j25si6265229jaj.93.2021.07.09.09.59.49; Fri, 09 Jul 2021 10:00:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@phystech-edu.20150623.gappssmtp.com header.s=20150623 header.b=bTgfzISd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=phystech.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229603AbhGIRAz (ORCPT + 99 others); Fri, 9 Jul 2021 13:00:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229736AbhGIRAy (ORCPT ); Fri, 9 Jul 2021 13:00:54 -0400 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 5CF7CC0613DD for ; Fri, 9 Jul 2021 09:58:10 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id p1so24462505lfr.12 for ; Fri, 09 Jul 2021 09:58:10 -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=n3cz26qHSCwc2rLWJL4aQ/NbqMK/zt0UOTvUQChL7jo=; b=bTgfzISd1HbuqsxfiAosM+S7moL2fCkghg+dY8eRFy1+C0QEl1nosujiaZ+XJJl84S ZqhuOlPycRTM6lCl9ehmX+W1QFnbMK/27MI0HI6W6CfoyJeekhGb7we+YzUFeBdlUiQ6 nrY2jnQTrwkMgok1djyrLfyD7OZlpV5XjqWMBMqoMBspD1WrEm717VkBMzr35HusPghi CcFojq1Jqw0a5eQv03V6VoEVUDHRciOuuc+RLA4Y7vBtP5oLOwf11U0aTSaPGLZ6zU14 uCFTdhe6oLB3YR/6EEaBq1ONocXA7zFRFp94ZaBvaBzwhrP0MdB9hSO1q/OB71eDQ8g8 FqWw== 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=n3cz26qHSCwc2rLWJL4aQ/NbqMK/zt0UOTvUQChL7jo=; b=R7GnGGtnIg9n8/u46T1ibbBrzAZb9uE29MvQU05u79CZZM0+KgDSeme18KK0d4qC32 lmAc/iKX7+m6RWbXQ7BLHfXfGGshGhaD6AhGPFbOkT9RG0LrPnmSU67c0AAFKSwSvfkw 8hMC8NXZEYjD6pFBcmsIhhbRyHp7RPVvaP6y75uTaJrrtAlKo9k5LMOK5sPJDlODEmYY tsQYHLNgwsF5xMQTigO9nDSyDJ4AdDF/6fyWYEjxht5FXlNJQeKam2bnVaj37v7NcDDV rXEZwGgCq4hpXcgCXndzuJaIyyQ7y/W32x3fBTzw1zTDZj4KTsbdo99HxlaVwF5jsnYS +cpA== X-Gm-Message-State: AOAM532rONwXHAxSTM6ehNqyjVDESvnq8u4usntzjDYqtfKTVZ49a5bz sYKeVmTNG5FlA7ZldQ++fxRucg== X-Received: by 2002:ac2:4d42:: with SMTP id 2mr7893418lfp.465.1625849888699; Fri, 09 Jul 2021 09:58:08 -0700 (PDT) Received: from 192.168.1.3 ([2a00:1370:810e:abfe:9c62:44e3:b0ab:76fd]) by smtp.gmail.com with ESMTPSA id i130sm504107lfd.304.2021.07.09.09.58.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Jul 2021 09:58:08 -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 v3 1/2] media: rc: meson-irblaster: document device tree bindings Date: Fri, 9 Jul 2021 19:57:52 +0300 Message-Id: <20210709165753.29353-2-viktor.prutyanov@phystech.edu> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20210709165753.29353-1-viktor.prutyanov@phystech.edu> References: <20210709165753.29353-1-viktor.prutyanov@phystech.edu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds binding documentation for the IR transmitter available in Amlogic Meson SoCs. Signed-off-by: Viktor Prutyanov --- changes in v2: - compatible = "amlogic,meson-g12a-irblaster" added - clocks, clock-names and mod-clock updated changes in v3: - mod-clock removed - max-fifo-level added .../media/amlogic,meson-irblaster.yaml | 65 +++++++++++++++++++ 1 file changed, 65 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..1e10aa0d3a94 --- /dev/null +++ b/Documentation/devicetree/bindings/media/amlogic,meson-irblaster.yaml @@ -0,0 +1,65 @@ +# 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: + oneOf: + - const: amlogic,meson-irblaster + - items: + - const: amlogic,meson-g12a-irblaster + - const: amlogic,meson-irblaster + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 2 + + clock-names: + items: + - const: sysclk + - const: xtal + + max-fifo-level: + maxItems: 1 + description: + Maximum IR blaster FIFO fill level + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + #include + #include + + irblaster@ff80014c { + compatible = "amlogic,meson-g12a-irblaster", "amlogic,meson-irblaster"; + reg = <0xff80014c 0x10>; + interrupts = <0 198 IRQ_TYPE_EDGE_RISING>; + clocks = <&clkc CLKID_CLK81>, <&xtal>; + clock-names = "sysclk", "xtal"; + }; -- 2.21.0