From nobody Tue Sep 29 04:11:55 2026 Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ABCD6430CDC for ; Wed, 12 Aug 2026 23:39:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786577969; cv=none; b=t7H/oYLUKq57IZ37P+phM2snSuDlTCsvwtru4MjT2xsphRzFGTaarhK4Fj7ILEURFx8CvJ5+L8m9Jml4Lj715QJ/55+onOwNok2rljHyEsB75gxtKIeHYOFelgVp4TorR0/Mh7Ncvjsdlzm7sWJcVdpgx5RmJ0RExvk4mmw97PI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786577969; c=relaxed/simple; bh=93mIPBwo4xARi8bLSP2Ps85ndMzk+eFJTkulba9lNII=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=B3JnX/IZ6CIFNBi66sS1wgK7CTP9x05KBTpcor5Nuz2dFB98hy4QOk0T8amE/YMQImFhnT8JvbV5g4i7ugabFRzKPlaGy+uWpLF6ulRBxQI589kJqIeFswkmygLMenglQE60KTab4Oue4dKSM/oz3/RKqBsLIf6nsbEZmvwxWAA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=MoE6YAzG; arc=none smtp.client-ip=209.85.216.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="MoE6YAzG" Received: by mail-pj1-f52.google.com with SMTP id 98e67ed59e1d1-385b78b4f9bso303182a91.2 for ; Wed, 12 Aug 2026 16:39:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1786577967; x=1787182767; darn=vger.kernel.org; h=cc:to:message-id:content-transfer-encoding:content-type :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=cY6XjQ7GhfOCdiXCjnF7Z4QVw3em6QUhOXkQiEkOmAY=; b=MoE6YAzG0ZlyTUe3XDPmQQ+LzeVi/OntfB5bPWFpzHYQBrjtsqqddxyjeP1LxAAy3N /QexmGf1YpK17chrux6a+cm6DnkVJ9BZBeIhU06UCx4cdaFQwwpMNQ/Jh+57J6yE01rf g73EW9UjkM2MqY2LhgR/ly0+zs4Xrk3lqFYPust9JI1ycECTNa0rlGz2iqGSGIPtowpJ LdZQmSLmfLo+5GdYjF0Z2J0hJ+kCuhQWLigw2ORGIXrQBNb97usYmLUlk+5DT/V2w3zk i+GxllVJsljydRJyDYR0DApAzIawaeeQNN4Vr1JyRHdsL7K1Y+M15S0TcaQWUbIzhF9Z pwGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786577967; x=1787182767; h=cc:to:message-id:content-transfer-encoding:content-type :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=cY6XjQ7GhfOCdiXCjnF7Z4QVw3em6QUhOXkQiEkOmAY=; b=S8pUdQjtLjLDhsSlTN44wL8q2bUYhZM9XT+P1B0TYasc3OZmkB44OUvc8SAyMXiYfz sSjkRE3Z6y41CANQSb0CGrU/9lVVtl/yefTZwkKEDwcrY85RVp8bLyXBaKEXyg8ZuYs6 qfD8CVo2wMo+y49MHvlM3HzQ9OS68r9sTMs3doJr2UkqOMdzIVPQE0v6Q4JX+6ZSAk+3 iSfvKjxCl3iXT1j9uiTWG3TT92DK3eglq5dV/rok7dk6MenC7uPJaK9le4NPNKL7IYTG e60TFKK4pc7BLSuxK69iQwW7p4lwCKFi0/xG/c4dytlh0FhiZG4Mnnf1Uh0WekvApzJ9 iwzQ== X-Forwarded-Encrypted: i=1; AHgh+RoPmmVJ7XSTsLNkt/VMIEgbUpaVM3TeNy36ISjFLuF5U87iZffh6yknUtuue/dm2S9Ch3zdmr5ramcLplc=@vger.kernel.org X-Gm-Message-State: AOJu0YySN1xGxreetZOm0NoJAzYcN2uswIO8KGLOvzz8xrZ6L8BgCO4L 7RCYnT9c9K6YGKbX/oallunLUyj43B3N26mUH3vNMYi+C6Sygz6QO4Jx X-Gm-Gg: AR+sD13jT2M+QY+WoGQLajTd5cRNaizvqLgAQ5Xvxrqobsa9Sl9G7URbvA0DAE+yk2N U/60ViuE3O1yE5TL4CJZA4lVax+btNqKw5Dmu8P+KRRj1TUowuKpB/Deega1gYcaLzRFXAv09xX rAq5H7uT//WqIyYDGJ4VXY9Z+iAej6vaix2SqaMBxIqSEhLesHWXO6S4g1UK51+ah23VR2hmgTv COrGtnF+orhWBtUs1EPoYsNcjwpjPJovqdkKlKAo7gonZu8A7J9t5Uy+e3qeQ3cc9hJuH+M/QJX G0v6SZvJgg4AJlP2RnyUJzZxi52Hma/iiTY4Em0YuYwfjChDjBJowwUO+mGxM/BoFXkm68uLLVD jE8EYJsylracqixb9qh24jr9xTC6AbZur2A4ROWVAsapbZodqygd/da9nOIuqTEJUzJquEbCynM 2Hat0fHlffLcEd2vAlw11fZbA6RfEy13zqUe5xdiHYY0kvZwahnjKSGkJffm2xbzXCX8CEUGn5S ypUvHbv X-Received: by 2002:a17:90b:2ec7:b0:38f:aa76:88b with SMTP id 98e67ed59e1d1-393233744femr603535a91.4.1786577966833; Wed, 12 Aug 2026 16:39:26 -0700 (PDT) Received: from [10.219.45.252] ([2409:40c2:504e:6b:b46f:70e9:d340:f24c]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1412d8a9dadsm1928114c88.2.2026.08.12.16.39.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Aug 2026 16:39:26 -0700 (PDT) From: Bhargav Joshi Date: Thu, 13 Aug 2026 05:09:08 +0530 Subject: [PATCH v2] media: dt-bindings: ti,da850-vpif: Convert to dt-schema Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260813-ti-da850-vpif-v2-1-80ba62ca53d0@gmail.com> X-B4-Tracking: v=1; b=H4sIAAAAAAAC/3XMSw6DIBSF4a2YO+5teFTBjrqPxgER0JtUMWBIG 8PeS513+J/kfAckF8kluDcHRJcpUVhriEsD42zWySHZ2iCY6JjmEndCa3TLMG/kkfVCaWW4kqq H+tmi8/Q+vedQe6a0h/g5+cx/6z8pc+QoVOstk52UN/6YFkOv6xgWGEopX2HmCjyqAAAA X-Change-ID: 20260813-ti-da850-vpif-092787a17379 To: Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, goledhruva@gmail.com, m-chawdhry@ti.com, daniel.baluta@gmail.com, simona.toaca@nxp.com, j.bhargav.u@gmail.com X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1786577957; l=7744; i=j.bhargav.u@gmail.com; h=from:subject:message-id; bh=93mIPBwo4xARi8bLSP2Ps85ndMzk+eFJTkulba9lNII=; b=afEBhoAr2ih/gKzMV7BUlTLA4+Da3Jtel+wW+PQ53gtCt0X+5sfHjZLSNBqJwKXKrOYLBwTTN z3GosKWog6hBpjcEcFA4FDiSgqQMkrqAOEguKVhfQHgcdnTq8ANoNgk X-Developer-Key: i=j.bhargav.u@gmail.com; a=ed25519; pk=IqNDwUZKECEA+n8wXctFLBbYL9NhFstZNbOznm/nX1k= Convert the Texas Instruments DA850/AM18x Video Port Interface (VPIF) device tree binding from text format to YAML dt-schema. Add power-domains property missing from text. Signed-off-by: Bhargav Joshi --- Changes in v2: - Removed old text binding that wasn't removed in v1 - Link to v1: https://lore.kernel.org/r/20260813-ti-da850-vpif-v1-1-275fd03= 63341@gmail.com --- .../devicetree/bindings/media/ti,da850-vpif.txt | 106 ------------- .../devicetree/bindings/media/ti,da850-vpif.yaml | 168 +++++++++++++++++= ++++ 2 files changed, 168 insertions(+), 106 deletions(-) diff --git a/Documentation/devicetree/bindings/media/ti,da850-vpif.txt b/Do= cumentation/devicetree/bindings/media/ti,da850-vpif.txt deleted file mode 100644 index e47c7ccc57f1..000000000000 --- a/Documentation/devicetree/bindings/media/ti,da850-vpif.txt +++ /dev/null @@ -1,106 +0,0 @@ -Texas Instruments VPIF ----------------------- - -The TI Video Port InterFace (VPIF) is the primary component for video -capture and display on the DA850/AM18x family of TI DaVinci/Sitara -SoCs. - -TI Document reference: SPRUH82C, Chapter 35 -http://www.ti.com/lit/pdf/spruh82 - -Required properties: -- compatible: must be "ti,da850-vpif" -- reg: physical base address and length of the registers set for the devic= e; -- interrupts: should contain IRQ line for the VPIF - -Video Capture: - -VPIF has a 16-bit parallel bus input, supporting 2 8-bit channels or a -single 16-bit channel. It should contain one or two port child nodes -with child 'endpoint' node. If there are two ports then port@0 must -describe the input and port@1 output channels. Please refer to the -bindings defined in -Documentation/devicetree/bindings/media/video-interfaces.txt. - -Example using 2 8-bit input channels, one of which is connected to an -I2C-connected TVP5147 decoder: - - vpif: vpif@217000 { - compatible =3D "ti,da850-vpif"; - reg =3D <0x217000 0x1000>; - interrupts =3D <92>; - - port@0 { - vpif_input_ch0: endpoint@0 { - reg =3D <0>; - bus-width =3D <8>; - remote-endpoint =3D <&composite_in>; - }; - - vpif_input_ch1: endpoint@1 { - reg =3D <1>; - bus-width =3D <8>; - data-shift =3D <8>; - }; - }; - - port@1 { - vpif_output_ch0: endpoint { - bus-width =3D <8>; - remote-endpoint =3D <&composite_out>; - }; - }; - }; - -[ ... ] - -&i2c0 { - - tvp5147@5d { - compatible =3D "ti,tvp5147"; - reg =3D <0x5d>; - - port { - composite_in: endpoint { - hsync-active =3D <1>; - vsync-active =3D <1>; - pclk-sample =3D <0>; - - /* VPIF channel 0 (lower 8-bits) */ - remote-endpoint =3D <&vpif_input_ch0>; - bus-width =3D <8>; - }; - }; - }; - - adv7343@2a { - compatible =3D "adi,adv7343"; - reg =3D <0x2a>; - - port { - composite_out: endpoint { - adi,dac-enable =3D <1 1 1>; - adi,sd-dac-enable =3D <1>; - - remote-endpoint =3D <&vpif_output_ch0>; - bus-width =3D <8>; - }; - }; - }; -}; - - -Alternatively, an example when the bus is configured as a single -16-bit input (e.g. for raw-capture mode): - - vpif: vpif@217000 { - compatible =3D "ti,da850-vpif"; - reg =3D <0x217000 0x1000>; - interrupts =3D <92>; - - port { - vpif_ch0: endpoint { - bus-width =3D <16>; - }; - }; - }; diff --git a/Documentation/devicetree/bindings/media/ti,da850-vpif.yaml b/D= ocumentation/devicetree/bindings/media/ti,da850-vpif.yaml new file mode 100644 index 000000000000..77de70be807a --- /dev/null +++ b/Documentation/devicetree/bindings/media/ti,da850-vpif.yaml @@ -0,0 +1,168 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/ti,da850-vpif.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments DA850/AM18x Video Port Interface (VPIF) + +maintainers: + - Lad, Prabhakar + +description: + The Video Port Interface (VPIF) is the primary component for video captu= re + and display on the DA850/AM18x family of TI DaVinci/Sitara SoCs. + + TI Document reference:- SPRUH82C, Chapter 35 + https://www.ti.com/lit/pdf/spruh82 + +properties: + compatible: + const: ti,da850-vpif + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + power-domains: + maxItems: 1 + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + port: + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + description: + VPIF port when the bus is configured as a single 16-bit input + + properties: + endpoint: + $ref: video-interfaces.yaml# + unevaluatedProperties: false + + properties: + bus-width: + enum: [8, 16] + +patternProperties: + ^port@[0-1]$: + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + description: + VPIF has a 16-bit parallel bus input, supporting 2 8-bit channels or= a + single 16-bit channel. It should contain one or two port child nodes + with child 'endpoint' node. If there are two ports then port@0 must + describe the input and port@1 output channels. + + properties: + endpoint: + $ref: video-interfaces.yaml# + unevaluatedProperties: false + + properties: + bus-width: + enum: [8, 16] + + endpoint@0: + $ref: video-interfaces.yaml# + unevaluatedProperties: false + description: + First 8-bit channel using the lower data lines [7:0]. + + properties: + bus-width: + const: 8 + + data-shift: + const: 0 + + endpoint@1: + $ref: video-interfaces.yaml# + unevaluatedProperties: false + description: + Second 8-bit channel using the upper data lines [15:8]. + + properties: + bus-width: + const: 8 + + data-shift: + const: 8 + + anyOf: + - properties: + endpoint@0: false + endpoint@1: false + - properties: + endpoint: false + +required: + - compatible + - reg + - interrupts + +oneOf: + - properties: + port@0: false + port@1: false + - properties: + port: false + +additionalProperties: false + +examples: + - | + vpif@217000 { + compatible =3D "ti,da850-vpif"; + reg =3D <0x217000 0x1000>; + interrupts =3D <92>; + + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + #address-cells =3D <1>; + #size-cells =3D <0>; + + vpif_input_ch0: endpoint@0 { + reg =3D <0>; + bus-width =3D <8>; + remote-endpoint =3D <&composite_in>; + }; + + vpif_input_ch1: endpoint@1 { + reg =3D <1>; + bus-width =3D <8>; + data-shift =3D <8>; + }; + }; + + port@1 { + reg =3D <1>; + + vpif_output_ch0: endpoint { + bus-width =3D <8>; + remote-endpoint =3D <&composite_out>; + }; + }; + }; + + - | + vpif@217000 { + compatible =3D "ti,da850-vpif"; + reg =3D <0x217000 0x1000>; + interrupts =3D <92>; + + port { + vpif_ch0: endpoint { + bus-width =3D <16>; + }; + }; + }; --- base-commit: 3d6d817622b0a9721e3cc404df3469171582be13 change-id: 20260813-ti-da850-vpif-092787a17379 Best regards, --=20 Bhargav