Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1011653pxv; Thu, 1 Jul 2021 14:53:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyB5zkYU3cipFMlhXSwLOdRDtiAFaW4+sUv1G+nc9LSdtrIweHSu9txIZoiJJZxCkJf+qzw X-Received: by 2002:a17:906:f6c8:: with SMTP id jo8mr2040772ejb.177.1625176405328; Thu, 01 Jul 2021 14:53:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625176405; cv=none; d=google.com; s=arc-20160816; b=wvWZRuGntyN7jv5zqGVtkNmfEK70U5d7C6MdeoBsEok989ggh8IBSSagkCXatmLf+D XEyHwGqLPtDu0d6o2ctk+KtM2oO5y7BVaPsrMTF5bgE7uyubQypKCGKTz6WxQ46Qye6s N8VSOKwon0kJX8rOm6Q1tvvef8kFD7wmxtiJ8T63XZUzZRfdrro7GuPpCvMsVuP/YOkv 1swLX8zM36NlWYqL6mkn4mSCGCSIvm8lZDVsjfx8dtWmoCJQYKJZHY37KUsz6a4yDJVG 4F2aIAFEvjY7AV7xSTgEEEIKUojbRtp7pjj+zhv29CUYEWLD9ga0LQ1QTMDY3RdCtFp2 UOTQ== 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=n9H2RYUzAxMzTFYa2dyhL6m2ND68O6aW04RdAX2sGhA=; b=0i2b2fDFrua6AtZHcBxQWOLprqr8eg9F492/8kOdbGcnfO2k9hoqv9xiu6d7LusN4o M55/7iwegWXy76RS0mZnyCe/XscnXYckrhVM+uop9aD8vMZkMEtV8ILSRZ+DGRg9BQMb oyNzl3ZulYqL3pxx8UO8FyH8Zs60J6Rj58WdEoCq6QTSOiLGUn2dij8E4yaJRl9kCAzb MsrOF24KgZsXRFR2eTI0x8yp9/O0ECSOAUqvNPn1iCbx+Ew2jWisTA4lXy0gFyNOpJKj o2gV7JJTyJl39WOmjCbi3Bo3Zk7XiIsel7DFlar7Yy0xy5zdAAdmVts4r3QAvOsnV7v6 EXwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@phystech-edu.20150623.gappssmtp.com header.s=20150623 header.b=2E2GLhSa; 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 ne32si900792ejc.473.2021.07.01.14.53.02; Thu, 01 Jul 2021 14:53:25 -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=2E2GLhSa; 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 S234275AbhGAVya (ORCPT + 99 others); Thu, 1 Jul 2021 17:54:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234323AbhGAVy0 (ORCPT ); Thu, 1 Jul 2021 17:54:26 -0400 Received: from mail-lf1-x144.google.com (mail-lf1-x144.google.com [IPv6:2a00:1450:4864:20::144]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9EF9C061764 for ; Thu, 1 Jul 2021 14:51:55 -0700 (PDT) Received: by mail-lf1-x144.google.com with SMTP id a15so14432932lfr.6 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=FmdvSiJKNpIE55KY32gz7L7lIf+dWo++0MIbYRBK9s9YEVa1y4PUf4o8wsXSGzlOKC D4FxmxoEpU0ImVksHUJDry6bafT5PXb/S7AaBUScWAVIDdu4KuUGRikVX46o21Pfn6pv Q39iGxThOpzmmZduTUPFdiWZb1N1EFycPs3Bo85lD1JwLoAcUs1UC2EIJ1wLfj8FIaEI gtLG70QlZtbquS1xrXQcfs1K6oOAH/AFeKI0/Z2+71bSzmafsxuNszyMDD0QGpN+eCP/ DWkq3uE6NIDoclRLrRXr9ulPcDcxdEVEayTlsnpSTe6F90a2jjmwnTH1RMMSNcKxHhM0 BsXQ== X-Gm-Message-State: AOAM530UJbPmyX4FPCdRqa3v8+D3LxdIRPae3W074pqGNDoguk3Xito4 mYVudmvuKOjUm4rc88agnq9DVg== 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: linux-kernel@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