From nobody Sun Feb 8 18:43:47 2026 Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) (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 9DAFD2FDC2C for ; Sat, 20 Dec 2025 22:03:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766268221; cv=none; b=XCtShje69I/wV/bRYGGnNw3HrspssGAVSpAynceE8aTjyFHOy09e7UY54qOrxND503EEunEFIQOmRJAXzbcOYZ/2KtbJFbljX6Kft8wiJ7BJQorO3XRjsCOxQjDmZVtogbTYm0nZCusjw9wAOfoQbni1zF0DjflS2236TEjHAxM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766268221; c=relaxed/simple; bh=GSKFnpxSXVsqbfKAdV5IWaf20H7hq0L5b5alyeT5tf0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=gL/bCkqWWFlZEzW5KeK4PE7wA0iPaRqbuVlTUiaHm0XeUnmhOuS+WY9q4iqE1S8SMZhjpChLhhstT4kLI+vyVncsO4m2kXlEaUflA8A0FhB5V9H5o8Q0tU2n6ziYit3C1iBwSUasc7xPMYk9dQ0OS5V64ByuvRQ8etLhMVkCZ0o= 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=HcqPRXlz; arc=none smtp.client-ip=209.85.214.172 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="HcqPRXlz" Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-2a07fac8aa1so30614245ad.1 for ; Sat, 20 Dec 2025 14:03:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1766268219; x=1766873019; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=o1gn5oD3hXl18WHBxvxdIuEL4NyVJgXGPq7DVV2iXzI=; b=HcqPRXlzcLiLSnpkZYR80HR1Khm+awopq/tERVYRRjMpeaI+F9j5Obi3Pu65DBljlt 7GDOOUeyb74ZT01RfTyPVH+5h+/1miBQVwayQfXbOm4PFhEvZT7EsR2bldloU9L+o1TX wOQrsAJNznO0bYLnDMKLePjek/Ql8tZHBLrbx6UomNAsfVSaUszB+6KPGXkcRkauhYuZ NonkUPL8HAprAzQFHIHX1ys3XtZfBGTL5RPBQ6hpFHvPAMb9FhCzFncnEEamejXx8HyT h6NQvJOdmjS6UESaakSWF3b2/jaybd1p474GG6cuImAr31aioQ/1mZN99I9XGBY9wkS1 GCnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766268219; x=1766873019; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=o1gn5oD3hXl18WHBxvxdIuEL4NyVJgXGPq7DVV2iXzI=; b=dbyFBE7Ag9M1gC5XhUzbvKiEyr4LCaNzwiGKy39gaWR5Lx1DT04of6J15k8Fgyzyfq 092Q+O1/LSqTBjc/DKMcAHqc1kMnwTYMSuOStJ/H+Df4YMdgqK3iayYodmXSlhC4RPOr rS68oxHoxTcH03/7VNAaNlSTwYAIPd1reouyddxiEqGA6fYQv40N7ondx+OeWNRrzb3m A+b4NIvNzFDK1zQNLZK0ESJ9a81NSaSfdWmxl0oO0hltAmcv+YwkEXdcS+j95M5Yr6+s erM2vlMIpT3M774ANig0oOdTNWwRTu5vt5929hp7Pqiqn6gJr+xyO0c3ewmgXPkm7etZ DjMA== X-Forwarded-Encrypted: i=1; AJvYcCWtyNcX4YHsDCGPIxD8ov4tdl5npN8/GXCbNYs54X4AFw25tEryIaDZ4dhc/8y2ww2vQc4JcKGCE7q3SFU=@vger.kernel.org X-Gm-Message-State: AOJu0YzlvNmrWB8nKUqVJGgBaiOUDKhEqbZ/20ZuFr6n+wm2fRd9RfxH 7XjVDSCq6Y4tvv54RwlvgBkaj7XFrn5OP45SimBhl+53WhN+HMuNu/OW X-Gm-Gg: AY/fxX43WCAYM7G6UtTaPWaga+Bm2mPi8rqL19WGxKIdfCHfvkoI/cJvrS76VL1Z+ME 4JQFNbj4vPyamFdv04D4s9VBMJykxr3DnwNQQRKX7rk0ezNSgK7MskEFbd1hl+01EBj6TDc+cbn OuRBPiqVeQNAjHAebvF8hvUam1GFMno1A0V/K1GClnI4/IqWRX4mjPsEPo241TwkRcB77cbEklx 6fSQMZJaZMbRJ/HGM1TimiCW3qQ70c/A0MfvQEBal+2Zn12gB0BdiCG7923+1iY4wmkfw01YSiL ReDy2/VLlRpa23J1UB4jw0lnXjJR80eVZ/NwzbJZTFmGFJrfsA4u4eMRdb5c17BpSYQZqmp6iAF 6mQoM3rOerpSqT5rUm/hHVhDOKMvtmSnmmnLOEDj0jPXtWHX6OtykndQZbU9YPr/jB9Dq42xJpK BF+pflBqGOMIc= X-Google-Smtp-Source: AGHT+IHq2wXI8+sl3brXpkHT8REvcb99HRHtlliE2n790sCVIY8XwlHbujd7ntvN4tpiCxDHn0zeBA== X-Received: by 2002:a05:7022:e981:b0:11b:9386:a38b with SMTP id a92af1059eb24-121722fcdadmr7816422c88.46.1766268218815; Sat, 20 Dec 2025 14:03:38 -0800 (PST) Received: from fedora ([172.59.162.202]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1217254cd77sm25010164c88.14.2025.12.20.14.03.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Dec 2025 14:03:38 -0800 (PST) From: Alex Tran To: mchehab@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org Cc: pavel@kernel.org, sakari.ailus@linux.intel.com, mehdi.djait@linux.intel.com, alex.t.tran@gmail.com, laurent.pinchart@ideasonboard.com, hverkuil+cisco@kernel.org, linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 2/2] media: dt-bindings: ti,omap3isp: Convert to DT schema Date: Sat, 20 Dec 2025 14:03:25 -0800 Message-ID: <3c5a55cc5873e8d16bd25c5968a0d8b36e180325.1766123192.git.alex.t.tran@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: References: 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 binding for ti,omap3isp from TXT to YAML format. Signed-off-by: Alex Tran --- .../devicetree/bindings/media/ti,omap3isp.txt | 71 ------- .../bindings/media/ti,omap3isp.yaml | 182 ++++++++++++++++++ 2 files changed, 182 insertions(+), 71 deletions(-) delete mode 100644 Documentation/devicetree/bindings/media/ti,omap3isp.txt create mode 100644 Documentation/devicetree/bindings/media/ti,omap3isp.yaml diff --git a/Documentation/devicetree/bindings/media/ti,omap3isp.txt b/Docu= mentation/devicetree/bindings/media/ti,omap3isp.txt deleted file mode 100644 index ac23de855641..000000000000 --- a/Documentation/devicetree/bindings/media/ti,omap3isp.txt +++ /dev/null @@ -1,71 +0,0 @@ -OMAP 3 ISP Device Tree bindings -=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D - -The DT definitions can be found in include/dt-bindings/media/omap3-isp.h. - -Required properties -=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D - -compatible : must contain "ti,omap3-isp" - -reg : the two registers sets (physical address and length) for the - ISP. The first set contains the core ISP registers up to - the end of the SBL block. The second set contains the - CSI PHYs and receivers registers. -interrupts : the ISP interrupt specifier -iommus : phandle and IOMMU specifier for the IOMMU that serves the ISP -syscon : the phandle and register offset to the Complex I/O or CSI-PHY - register -ti,phy-type : 0 -- OMAP3ISP_PHY_TYPE_COMPLEX_IO (e.g. 3430) - 1 -- OMAP3ISP_PHY_TYPE_CSIPHY (e.g. 3630) -#clock-cells : Must be 1 --- the ISP provides two external clocks, - cam_xclka and cam_xclkb, at indices 0 and 1, - respectively. Please find more information on common - clock bindings in ../clock/clock-bindings.txt. - -Port nodes (optional) ---------------------- - -More documentation on these bindings is available in -video-interfaces.txt in the same directory. - -reg : The interface: - 0 - parallel (CCDC) - 1 - CSIPHY1 -- CSI2C / CCP2B on 3630; - CSI1 -- CSIb on 3430 - 2 - CSIPHY2 -- CSI2A / CCP2B on 3630; - CSI2 -- CSIa on 3430 - -Optional properties -=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D - -vdd-csiphy1-supply : voltage supply of the CSI-2 PHY 1 -vdd-csiphy2-supply : voltage supply of the CSI-2 PHY 2 - -Endpoint nodes --------------- - -lane-polarities : lane polarity (required on CSI-2) - 0 -- not inverted; 1 -- inverted -data-lanes : an array of data lanes from 1 to 3. The length can - be either 1 or 2. (required on CSI-2) -clock-lanes : the clock lane (from 1 to 3). (required on CSI-2) - - -Example -=3D=3D=3D=3D=3D=3D=3D - - isp@480bc000 { - compatible =3D "ti,omap3-isp"; - reg =3D <0x480bc000 0x12fc - 0x480bd800 0x0600>; - interrupts =3D <24>; - iommus =3D <&mmu_isp>; - syscon =3D <&scm_conf 0x2f0>; - ti,phy-type =3D ; - #clock-cells =3D <1>; - ports { - #address-cells =3D <1>; - #size-cells =3D <0>; - }; - }; diff --git a/Documentation/devicetree/bindings/media/ti,omap3isp.yaml b/Doc= umentation/devicetree/bindings/media/ti,omap3isp.yaml new file mode 100644 index 000000000000..3f3b0c0f46e5 --- /dev/null +++ b/Documentation/devicetree/bindings/media/ti,omap3isp.yaml @@ -0,0 +1,182 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/ti,omap3isp.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments OMAP 3 Image Signal Processor (ISP) + +maintainers: + - Laurent Pinchart + - Sakari Ailus + +description: + The OMAP 3 ISP is an image signal processor present in OMAP 3 SoCs. + +properties: + compatible: + const: ti,omap3-isp + + reg: + items: + - description: Core ISP registers up to the end of the SBL block + - description: CSI PHYs and receivers registers + + interrupts: + maxItems: 1 + description: the ISP interrupt specifier + + iommus: + maxItems: 1 + description: phandle and IOMMU specifier for the IOMMU that serves the= ISP + + syscon: + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + - items: + - description: phandle to System Control Module + - description: register offset to Complex I/O or CSI-PHY register + description: + Phandle and register offset to the Complex I/O or CSI-PHY register + + ti,phy-type: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1] + description: + 0 - OMAP3ISP_PHY_TYPE_COMPLEX_IO (e.g. OMAP 3430) + 1 - OMAP3ISP_PHY_TYPE_CSIPHY (e.g. OMAP 3630) + + '#clock-cells': + const: 1 + description: + The ISP provides two external clocks, cam_xclka and cam_xclkb, + at indices 0 and 1 respectively. + + vdd-csiphy1-supply: + description: Voltage supply of the CSI-2 PHY 1 + + vdd-csiphy2-supply: + description: Voltage supply of the CSI-2 PHY 2 + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + description: Parallel (CCDC) interface + + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + + port@1: + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + description: | + CSIPHY1 interface: + OMAP 3630: CSI2C / CCP2B + OMAP 3430: CSI1 (CSIb) + + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + + properties: + lane-polarities: + description: | + The lane polarity (required on CSI-2): + 0 - not inverted + 1 - inverted + minItems: 2 + maxItems: 3 + items: + enum: [0, 1] + + data-lanes: + description: Data lanes (required on CSI-2) + minItems: 1 + maxItems: 2 + items: + minimum: 1 + maximum: 3 + + clock-lanes: + description: The clock lane (required on CSI-2) + maxItems: 1 + items: + minimum: 1 + maximum: 3 + + port@2: + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + description: | + CSIPHY2 interface: + OMAP 3630: CSI2A / CCP2B + OMAP 3430: CSI2 (CSIa) + + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + + properties: + lane-polarities: + description: | + The lane polarity (required on CSI-2): + 0 - not inverted + 1 - inverted + minItems: 2 + maxItems: 3 + items: + enum: [0, 1] + + data-lanes: + description: Data lanes (required on CSI-2) + minItems: 1 + maxItems: 2 + items: + minimum: 1 + maximum: 3 + + clock-lanes: + description: The clock lane (required on CSI-2) + maxItems: 1 + items: + minimum: 1 + maximum: 3 + +required: + - compatible + - reg + - interrupts + - iommus + - syscon + - ti,phy-type + - '#clock-cells' + +additionalProperties: false + +examples: + - | + #include + + isp@480bc000 { + compatible =3D "ti,omap3-isp"; + reg =3D <0x480bc000 0x12fc>, + <0x480bd800 0x0600>; + interrupts =3D <24>; + iommus =3D <&mmu_isp>; + syscon =3D <&scm_conf 0x2f0>; + ti,phy-type =3D ; + #clock-cells =3D <1>; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + }; + }; --=20 2.51.0