Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp810246rdb; Fri, 9 Feb 2024 01:35:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IH4cBoY3V7JXuBCt0DTs+N8MH8tF7aSek5NbhcSD6Q0D8Dcv1QN8I8GLsI4e53Jj5QLocy5 X-Received: by 2002:a05:6a20:2d24:b0:19e:b2a9:8c84 with SMTP id g36-20020a056a202d2400b0019eb2a98c84mr497864pzl.2.1707471335644; Fri, 09 Feb 2024 01:35:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707471335; cv=pass; d=google.com; s=arc-20160816; b=agqD0w26aJ/03KVoXxqFGuGHFs1xZrjsbIC5T3rn1pzwZVWz1lN/6R4xwF1qJM4f5n kJqaNs3JuPVoKfvNBKkT9lUlbUzbv+ZpI3fq6dHnW13CoohHM/tlotzHvFt6d+vHVeSk 9Dv8xRck6/KUs11S45ZT/391iqf75PjovM6/VeUPCWRqd6vhG+p3Yn0BcR3X5Mgd4/6j GsNpxHPedDagckHd8kUA/LCXnJghwVYiVXU09ZbT+Aj4PGcU9zgQ9pmN3alk6b1W0440 8H4RjdEv5x8i/CSsWnDT93fU1hvPt7AHZ4qvaATAn0uqpzacGtTCcexs7OxOb7IJ85tI TaAA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=JZBhL23ObAphvssukkFk8pTges/LhXZc3VVsdS0hk1A=; fh=5RdXO3djIiEuSZME9EmRDhUoznPfpOi4QXzEQ6FJq5Y=; b=GekhfNG81oWmkeGmhkJHZh8R/sBhth0SIy3JPK4j6HDbb07HYIgKKKKM2sJwOrUv00 hf79GOM2O/7aVhHqLQRLpZWZhautgpLzQNm86yUcZpJU7u5ZOgrdaMop9nEKoRnWuRVA clIZokBYAf8+ZlE1Nd7A1xDWCk23Bi4kgG6aJnJrd0iFTwXvUGg2jaAX2oyS8miCgRYr yaMCfaVK1stqA0/EJoOv9YZEvMkQJh6H8p7etVGTEpJLCG647tAXo8Gc+/EXruFRY89c K3gVACIFwwzaB2MdHlBejWYsyBp0NRfjZM3gfsrUhGE4GePGujV+xqLLEvApKqtx2+St +BDQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=FK2SHU92; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-59157-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59157-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com X-Forwarded-Encrypted: i=2; AJvYcCWUZdHcs2cqfztTaDfxKEAhH7/600ONfRIqIwWN9zTP65cPjcoN2eP7z/N3a+oaSh2tn3WHH68r9LQFCaXehgLa6VRqgM1FGH3Bn0P3cA== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id m186-20020a6326c3000000b005dc48e561adsi1457496pgm.20.2024.02.09.01.35.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 01:35:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59157-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=FK2SHU92; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-59157-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59157-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id AECE4B2828F for ; Fri, 9 Feb 2024 09:25:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CEE8967E66; Fri, 9 Feb 2024 09:25:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="FK2SHU92" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5CABF664C9; Fri, 9 Feb 2024 09:25:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707470703; cv=none; b=CXRqTw73gnh1IZo00XR/wP+dj+C5DqvUOj/g4ct+lpE4n5aahiJ9bcmcrl+hAwtL8yiaqzr3b5k0sMgC2dZ92pcPgp4UVCVHolOOCa3IShMQ37cDq8CTU/xRF1RByB26bcTJAA+DtPuwvaZ7PIXvXumumvH/InXLIMIqcad/6tk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707470703; c=relaxed/simple; bh=sKhHl6jhkzY2ubfjApNOMunSMfubTCqnhOeVufRe1LU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=dkIssbX/sgyrt9ldU/CRPU48H2W0760i3RZczqX8NN3vhhWLgQNZXyVf/UeR4Awt8bN0VF2FeNAskVq9RkJ4l/52mO3tF6YECfulWBxTRgN+Chl7RQHjbsirtnlqwSnaV6s9Vbft2eGWGKCQC4ptTjxBxy/D4ZYRlHVW5zeO5Pg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=FK2SHU92; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1707470699; bh=sKhHl6jhkzY2ubfjApNOMunSMfubTCqnhOeVufRe1LU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=FK2SHU92+qUDn4rAMQZxyOYZ/CgLhp3w39srHrPMlum1nIdJz/pEIwyvQXewZ1SOl yBboWGqWi/OD/ECNSP9cY2s9foHFHXEqiwqXu5Iyw6ywHMgnICiWRnNJ5GM8RqrFA+ ZxSLwpaE3G11qrJniCws0Jrn7kRTQo2gYyeooNsTgwWMvOsl+3JPXxpBXO14HWm9kq A/As26nFbSuX4lWjo3fKouVsa2eFjzRKaelKTs3Aya9iHOBqa2kk1wJYV1yNPvFQEL x3x7NxZXiVdsMcqKVnZR1IXDiy2sNq/5TMy7Yb90M09IFmECFxa/4tGQBp4+gOz5m1 vrO9GeFlFr8WQ== Received: from [100.113.186.2] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id CF09537811F4; Fri, 9 Feb 2024 09:24:58 +0000 (UTC) Message-ID: <76d31dea-2fcf-46ce-8d73-2d84edab797a@collabora.com> Date: Fri, 9 Feb 2024 10:24:58 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH V2] dt-bindings: media: convert Mediatek consumer IR to the json-schema Content-Language: en-US To: =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Matthias Brugger , Sean Wang , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= References: <20240209085616.1062-1-zajec5@gmail.com> From: AngeloGioacchino Del Regno In-Reply-To: <20240209085616.1062-1-zajec5@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Il 09/02/24 09:56, Rafał Miłecki ha scritto: > From: Rafał Miłecki > > This helps validating DTS files. Introduced changes: > 1. Reworded title > 2. Made "bus" clock required on MT7623 as well > 3. Added required #include-s and adjusted "reg" & clocks in example > > Signed-off-by: Rafał Miłecki > --- > V2: Extended "IR" in title > Made "bus" required at MT7623 needs it as well > Updated example > > Thanks AngeloGioacchino! You're welcome :-) Reviewed-by: AngeloGioacchino Del Regno > > .../bindings/media/mediatek,mt7622-cir.yaml | 55 +++++++++++++++++++ > .../devicetree/bindings/media/mtk-cir.txt | 28 ---------- > 2 files changed, 55 insertions(+), 28 deletions(-) > create mode 100644 Documentation/devicetree/bindings/media/mediatek,mt7622-cir.yaml > delete mode 100644 Documentation/devicetree/bindings/media/mtk-cir.txt > > diff --git a/Documentation/devicetree/bindings/media/mediatek,mt7622-cir.yaml b/Documentation/devicetree/bindings/media/mediatek,mt7622-cir.yaml > new file mode 100644 > index 000000000000..c01210e053f9 > --- /dev/null > +++ b/Documentation/devicetree/bindings/media/mediatek,mt7622-cir.yaml > @@ -0,0 +1,55 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/media/mediatek,mt7622-cir.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: MediaTek Consumer Infrared Receiver on-SoC Controller > + > +maintainers: > + - Sean Wang > + > +allOf: > + - $ref: rc.yaml# > + > +properties: > + compatible: > + enum: > + - mediatek,mt7622-cir > + - mediatek,mt7623-cir > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + clocks: > + maxItems: 2 > + > + clock-names: > + items: > + - const: clk > + - const: bus > + > +required: > + - reg > + - interrupts > + - clocks > + - clock-names > + > +unevaluatedProperties: false > + > +examples: > + - | > + #include > + #include > + > + ir@10013000 { > + compatible = "mediatek,mt7623-cir"; > + reg = <0x10013000 0x1000>; > + interrupts = ; > + clocks = <&infracfg CLK_INFRA_IRRX>, <&topckgen CLK_TOP_AXI_SEL>; > + clock-names = "clk", "bus"; > + linux,rc-map-name = "rc-rc6-mce"; > + }; > diff --git a/Documentation/devicetree/bindings/media/mtk-cir.txt b/Documentation/devicetree/bindings/media/mtk-cir.txt > deleted file mode 100644 > index 5e18087ce11f..000000000000 > --- a/Documentation/devicetree/bindings/media/mtk-cir.txt > +++ /dev/null > @@ -1,28 +0,0 @@ > -Device-Tree bindings for Mediatek consumer IR controller > -found in Mediatek SoC family > - > -Required properties: > -- compatible : Should be > - "mediatek,mt7623-cir": for MT7623 SoC > - "mediatek,mt7622-cir": for MT7622 SoC > -- clocks : list of clock specifiers, corresponding to > - entries in clock-names property; > -- clock-names : should contain > - - "clk" entries: for MT7623 SoC > - - "clk", "bus" entries: for MT7622 SoC > -- interrupts : should contain IR IRQ number; > -- reg : should contain IO map address for IR. > - > -Optional properties: > -- linux,rc-map-name : see rc.txt file in the same directory. > - > -Example: > - > -cir: cir@10013000 { > - compatible = "mediatek,mt7623-cir"; > - reg = <0 0x10013000 0 0x1000>; > - interrupts = ; > - clocks = <&infracfg CLK_INFRA_IRRX>; > - clock-names = "clk"; > - linux,rc-map-name = "rc-rc6-mce"; > -};