From nobody Wed Apr 1 09:45:02 2026 Received: from mail-05.mail-europe.com (mail-05.mail-europe.com [85.9.206.169]) (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 9A011401485 for ; Tue, 31 Mar 2026 14:58:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=85.9.206.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774969140; cv=none; b=uGn2VAZysPksnjHtgAQPjYFeyv8tuIowggz2sg2sMdU1DR/NCTTsW3r0NkuAK0xSxXaGNFl8721dcUxRZpxvAvqBlWeJWaAd1svuE6Cb2wN0sOqzEboNhwm+zy7tVdZ1LM8evyssn7z6XatAlR1X1+aCzjdtH6f+UESnDbK/FXU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774969140; c=relaxed/simple; bh=HANM5EJt4ju45nUxNxvL4TYnkJHnEzlv0DmMsyHPNtg=; h=Date:To:From:Cc:Subject:Message-ID:MIME-Version:Content-Type; b=hhoJ276hXOpg05fr9ZZlQaZjD7E+mzM5oN210vwqPwiJ6x6DeeRBeMZvbr1r3Go0Cwt1ZlMCnzya4rOo+LPH1lARuxhAQr7+kZnBo42FLgd+Ku3uopFeC+vcNWNxkVS10zbT8SfPTCr8u2djHYebBYz7CijNjD3tn6tfCunrSxM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=riposetti.com; spf=pass smtp.mailfrom=riposetti.com; dkim=pass (2048-bit key) header.d=riposetti.com header.i=@riposetti.com header.b=PUMdMtVL; arc=none smtp.client-ip=85.9.206.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=riposetti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=riposetti.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=riposetti.com header.i=@riposetti.com header.b="PUMdMtVL" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=riposetti.com; s=protonmail; t=1774969122; x=1775228322; bh=ZZNQD3G9J3JdUO6QCht2m2AihxeJ0DQQI8Ah1eY0QVE=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=PUMdMtVLvSINHFjgqmCz+ixCeGZWD3m+U0BGM1jZyhPvYijU9gJ4fyM4fxcPzBnQx 2ya2xh6oEFofDKYMP9by00cXkrh/GORzzeTubyFhQ5aOf989B2uzSFrAC+s2UAd7eI H9Nm15kt1x0DIDKLCYInys2ot2kHH2ZD6+jLWBSGEGPWxqeMLfRZrAaxlt/Gr+LgkU jkX4/pT3n+PZ+7Cl7KRpuE1CBOdOkW87y69SLVMFT8VKSxI1ZfhEoHI25JESDuKjHy 92TDtlBzR4NtKKAH+TtjbbehzXuuKs/iYwNxVyjNyd/2/jvuWA9+p7wvgSu4wsbWSm 0ha4ZXLOHFnIg== Date: Tue, 31 Mar 2026 14:58:35 +0000 To: Mauro Carvalho Chehab , Shawn Guo From: Andrea Poldi Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Andrea Poldi Subject: [PATCH] dt-bindings: media: hisilicon,hix5hd2-ir: convert to YAML Message-ID: <20260331145748.39349-1-andrea@riposetti.com> Feedback-ID: 120562977:user:proton X-Pm-Message-ID: 6e82684393a329d96b689ad0192e691e49dba100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Convert the HiSilicon Hix5hd2 IR bindings to DT schema. Signed-off-by: Andrea Poldi --- .../bindings/media/hisilicon,hix5hd2-ir.yaml | 53 +++++++++++++++++++ .../devicetree/bindings/media/hix5hd2-ir.txt | 26 --------- 2 files changed, 53 insertions(+), 26 deletions(-) create mode 100644 Documentation/devicetree/bindings/media/hisilicon,hix5h= d2-ir.yaml delete mode 100644 Documentation/devicetree/bindings/media/hix5hd2-ir.txt diff --git a/Documentation/devicetree/bindings/media/hisilicon,hix5hd2-ir.y= aml b/Documentation/devicetree/bindings/media/hisilicon,hix5hd2-ir.yaml new file mode 100644 index 000000000000..f5c28603ed0a --- /dev/null +++ b/Documentation/devicetree/bindings/media/hisilicon,hix5hd2-ir.yaml @@ -0,0 +1,53 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/hisilicon,hix5hd2-ir.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: HiSilicon Hix5hd2 Infrared Receiver + +maintainers: + - Shawn Guo + +allOf: + - $ref: rc.yaml# + +properties: + compatible: + enum: + - hisilicon,hix5hd2-ir + - hisilicon,hi3796cv300-ir + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + hisilicon,power-syscon: + $ref: /schemas/types.yaml#/definitions/phandle + description: phandle of syscon used to control power. + deprecated: true + +required: + - compatible + - reg + - interrupts + - clocks + +unevaluatedProperties: false + +examples: + - | + #include + + ir@f8001000 { + compatible =3D "hisilicon,hix5hd2-ir"; + reg =3D <0xf8001000 0x1000>; + interrupts =3D <0 47 4>; + clocks =3D <&clock 0>; + linux,rc-map-name =3D "rc-tivo"; + }; diff --git a/Documentation/devicetree/bindings/media/hix5hd2-ir.txt b/Docum= entation/devicetree/bindings/media/hix5hd2-ir.txt deleted file mode 100644 index ca4cf774662e..000000000000 --- a/Documentation/devicetree/bindings/media/hix5hd2-ir.txt +++ /dev/null @@ -1,26 +0,0 @@ -Device-Tree bindings for hix5hd2 ir IP - -Required properties: - - compatible: Should contain "hisilicon,hix5hd2-ir", or: - - "hisilicon,hi3796cv300-ir" for Hi3796CV300 IR device. - - reg: Base physical address of the controller and length of memory - mapped region. - - interrupts: interrupt-specifier for the sole interrupt generated by - the device. The interrupt specifier format depends on the interrupt - controller parent. - - clocks: clock phandle and specifier pair. - -Optional properties: - - linux,rc-map-name: see rc.txt file in the same directory. - - hisilicon,power-syscon: DEPRECATED. Don't use this in new dts files. - Provide correct clocks instead. - -Example node: - - ir: ir@f8001000 { - compatible =3D "hisilicon,hix5hd2-ir"; - reg =3D <0xf8001000 0x1000>; - interrupts =3D <0 47 4>; - clocks =3D <&clock HIX5HD2_IR_CLOCK>; - linux,rc-map-name =3D "rc-tivo"; - }; --=20 2.50.1 (Apple Git-155)