From: Frank Li <Frank.Li@nxp.com>
To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Kumar M <anil.mamidala@xilinx.com>
Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, imx@lists.linux.dev,
"Guoniu.zhou" <guoniu.zhou@nxp.com>, Frank Li <Frank.Li@nxp.com>,
Stefan Hladnik <stefan.hladnik@gmail.com>,
Florian Rebaudo <frebaudo@witekio.com>
Subject: [PATCH v3 1/2] dt-bindings: media: i2c: Add bindings for AP1302 and AR0144
Date: Mon, 23 Jun 2025 15:17:37 -0400 [thread overview]
Message-ID: <20250623-ap1302-v3-1-c9ca5b791494@nxp.com> (raw)
In-Reply-To: <20250623-ap1302-v3-0-c9ca5b791494@nxp.com>
From: Anil Kumar Mamidala <anil.mamidala@xilinx.com>
The AP1302 is a standalone ISP for ON Semiconductor sensors, which can
connect RAW sensors (AR0144).
Add corresponding DT bindings.
Signed-off-by: Anil Kumar Mamidala <anil.mamidala@xilinx.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Stefan Hladnik <stefan.hladnik@gmail.com>
Signed-off-by: Florian Rebaudo <frebaudo@witekio.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
Previous try:
https://lore.kernel.org/linux-media/1631091372-16191-2-git-send-email-anil.mamidala@xilinx.com/
Change in v3:
- Move sensors under ports
- use compatible string to indentify connected raw sensors
- Add onnn,ar0144.yaml
---
.../devicetree/bindings/media/i2c/onnn,ap1302.yaml | 151 +++++++++++++++++++++
.../devicetree/bindings/media/i2c/onnn,ar0144.yaml | 75 ++++++++++
MAINTAINERS | 9 ++
3 files changed, 235 insertions(+)
diff --git a/Documentation/devicetree/bindings/media/i2c/onnn,ap1302.yaml b/Documentation/devicetree/bindings/media/i2c/onnn,ap1302.yaml
new file mode 100644
index 0000000000000..6b745dcf3fd3f
--- /dev/null
+++ b/Documentation/devicetree/bindings/media/i2c/onnn,ap1302.yaml
@@ -0,0 +1,151 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/media/i2c/onnn,ap1302.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: ON Semiconductor AP1302 Advanced Image Coprocessor
+
+maintainers:
+ - Laurent Pinchart <laurent.pinchart@ideasonboard.com>
+ - Anil Kumar M <anil.mamidala@xilinx.com>
+
+description:
+ The AP1302 is a standalone ISP for ON Semiconductor sensors. It interfaces to
+ up to two RAW CMOS sensors over MIPI CSI-2 connections, processes the two
+ video streams and outputs YUV frames to the host over a MIPI CSI-2 interface.
+ Frames are output side by side or on two virtual channels.
+
+ The sensors must be identical. They are connected to the AP1302 on dedicated
+ I2C buses, and are controlled by the AP1302 firmware. They are not accessible
+ from the host.
+
+properties:
+ compatible:
+ const: onnn,ap1302
+
+ reg:
+ maxItems: 1
+
+ clocks:
+ items:
+ - description:
+ Reference to the CLK clock.
+
+ reset-gpios:
+ items:
+ - description:
+ Reference to the GPIO connected to the RST pin (active low).
+
+ standby-gpios:
+ items:
+ - description:
+ Reference to the GPIO connected to the STANDBY pin (active high).
+
+ enable-gpios:
+ items:
+ - description:
+ Reference to the GPIO connected to the EN pin (active high).
+
+ dvdd-supply: true
+
+ hmisc-supply: true
+
+ smisc-supply: true
+
+ ports:
+ $ref: /schemas/graph.yaml#/properties/ports
+ unevaluatedProperties: false
+
+ patternProperties:
+ "^port@[01]":
+ description:
+ Sensors connected to the first and second input, if no sensor
+ connect, isp generate test pattern. The compatible string under
+ port@0 and port@1 have to be the same.
+
+ allOf:
+ - $ref: /schemas/graph.yaml#/$defs/port-base
+ - $ref: onnn,ar0144.yaml
+
+ unevaluatedProperties: false
+
+ properties:
+ port@2:
+ $ref: /schemas/graph.yaml#/$defs/port-base
+ unevaluatedProperties: false
+ properties:
+ endpoint:
+ $ref: /schemas/media/video-interfaces.yaml#
+ unevaluatedProperties: false
+ properties:
+ clock-noncontinuous:
+ type: boolean
+
+ data-lanes:
+ oneOf:
+ - items:
+ - const: 1
+ - items:
+ - const: 1
+ - const: 2
+ - items:
+ - const: 1
+ - const: 2
+ - const: 3
+ - const: 4
+
+ required:
+ - data-lanes
+
+ required:
+ - port@2
+
+required:
+ - compatible
+ - reg
+ - clocks
+ - ports
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/gpio/gpio.h>
+
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ camera@3c {
+ compatible = "onnn,ap1302";
+ reg = <0x3c>;
+
+ clocks = <&clk24mhz>;
+
+ reset-gpios = <&pio 102 GPIO_ACTIVE_LOW>;
+ standby-gpios = <&pio 40 GPIO_ACTIVE_HIGH>;
+
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port@0 {
+ compatible = "onnn,ar0144";
+ reg = <0>;
+ vaa-supply = <&vaa_regulator>;
+ };
+
+ port@2 {
+ reg = <2>;
+
+ endpoint {
+ remote-endpoint = <&seninf_in1>;
+ clock-noncontinuous;
+ data-lanes = <1 2 3 4>;
+ };
+ };
+ };
+ };
+ };
+...
diff --git a/Documentation/devicetree/bindings/media/i2c/onnn,ar0144.yaml b/Documentation/devicetree/bindings/media/i2c/onnn,ar0144.yaml
new file mode 100644
index 0000000000000..68562cf4c00ca
--- /dev/null
+++ b/Documentation/devicetree/bindings/media/i2c/onnn,ar0144.yaml
@@ -0,0 +1,75 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/media/i2c/onnn,ar0144.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: ON Semiconductor AP0144 RAW CMOS sensor
+
+maintainers:
+ - Laurent Pinchart <laurent.pinchart@ideasonboard.com>
+ - Anil Kumar M <anil.mamidala@xilinx.com>
+
+description:
+ AP0144 RAW CMOS can be use standalone with any SOCs, or work with AP1302
+ ISP.
+
+properties:
+ compatible:
+ enum:
+ - onnn,ar0144
+ - onnn,ar0330
+ - onnn,ar1335
+
+ reg:
+ maxItems: 1
+
+ vaa-supply: true
+
+ vdd-supply: true
+
+ vddio-supply: true
+
+ vddpll-supply: true
+
+ port:
+ $ref: /schemas/graph.yaml#/$defs/port-base
+ additionalProperties: false
+
+ properties:
+ endpoint:
+ $ref: /schemas/media/video-interfaces.yaml#
+ unevaluatedProperties: false
+
+required:
+ - compatible
+ - reg
+
+allOf:
+ - if:
+ properties:
+ compatible:
+ not:
+ contains:
+ const: onnn,ar0330
+ then:
+ properties:
+ vddpll-supply: false
+
+additionalProperties: false
+
+examples:
+ - |
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ camera@10 {
+ compatible = "onnn,ar0144";
+ reg = <0x10>;
+ vaa-supply = <&vaa>;
+ vddio-supply = <&vddio>;
+ vdd-supply = <&vdd>;
+ };
+ };
+
diff --git a/MAINTAINERS b/MAINTAINERS
index d6f1670290589..1362d351f2574 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -1766,6 +1766,15 @@ L: linux-sound@vger.kernel.org
S: Maintained
F: sound/aoa/
+AP1302 ON SEMICONDUCTOR ISP DRIVER
+M: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
+R: Frank Li <Frank.Li@nxp.com>
+L: linux-media@vger.kernel.org
+S: Maintained
+T: git git://linuxtv.org/media.git
+F: Documentation/devicetree/bindings/media/i2c/onnn,ap1302.yaml
+F: Documentation/devicetree/bindings/media/i2c/onnn,ar0144.yaml
+
APEX EMBEDDED SYSTEMS STX104 IIO DRIVER
M: William Breathitt Gray <wbg@kernel.org>
L: linux-iio@vger.kernel.org
--
2.34.1
next prev parent reply other threads:[~2025-06-23 19:18 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-23 19:17 [PATCH v3 0/2] media: i2c: Add ON Semiconductor AP1302 ISP driver Frank Li
2025-06-23 19:17 ` Frank Li [this message]
2025-06-23 22:41 ` [PATCH v3 1/2] dt-bindings: media: i2c: Add bindings for AP1302 and AR0144 Laurent Pinchart
2025-06-24 18:41 ` Frank Li
2025-06-24 18:54 ` Laurent Pinchart
2025-06-24 19:45 ` Frank Li
2025-06-26 12:40 ` Laurent Pinchart
2025-06-26 15:58 ` Frank Li
2025-06-26 19:07 ` Laurent Pinchart
2025-06-26 22:14 ` Frank Li
2025-06-23 19:17 ` [PATCH v3 2/2] media: i2c: Add ON Semiconductor AP1302 ISP driver Frank Li
2025-06-23 22:47 ` Laurent Pinchart
2025-06-24 18:47 ` Frank Li
2025-06-24 18:56 ` Laurent Pinchart
2025-06-24 19:18 ` Frank Li
2025-06-26 12:42 ` Laurent Pinchart
2025-06-26 14:58 ` Frank Li
2025-06-26 19:09 ` Laurent Pinchart
2025-06-26 22:17 ` Frank Li
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250623-ap1302-v3-1-c9ca5b791494@nxp.com \
--to=frank.li@nxp.com \
--cc=anil.mamidala@xilinx.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=frebaudo@witekio.com \
--cc=guoniu.zhou@nxp.com \
--cc=imx@lists.linux.dev \
--cc=krzk+dt@kernel.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=robh@kernel.org \
--cc=stefan.hladnik@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).