From: Rob Herring <robh@kernel.org>
To: Svyatoslav Ryhel <clamor95@gmail.com>
Cc: "Mauro Carvalho Chehab" <mchehab@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Sakari Ailus" <sakari.ailus@linux.intel.com>,
"Hans Verkuil" <hverkuil@xs4all.nl>,
"Hans de Goede" <hansg@kernel.org>,
"Arnd Bergmann" <arnd@arndb.de>,
"Dongcheng Yan" <dongcheng.yan@intel.com>,
"André Apitzsch" <git@apitzsch.eu>,
"Sylvain Petinot" <sylvain.petinot@foss.st.com>,
"Benjamin Mugnier" <benjamin.mugnier@foss.st.com>,
"Heimir Thor Sverrisson" <heimir.sverrisson@gmail.com>,
"Jingjing Xiong" <jingjing.xiong@intel.com>,
linux-media@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v1 1/2] dt-bindings: media: i2c: document Sony IMX111 CMOS sensor
Date: Tue, 19 Aug 2025 15:25:42 -0500 [thread overview]
Message-ID: <20250819202542.GA1254999-robh@kernel.org> (raw)
In-Reply-To: <20250819120428.83437-2-clamor95@gmail.com>
On Tue, Aug 19, 2025 at 03:04:26PM +0300, Svyatoslav Ryhel wrote:
> Add bindings for Sony IMX111 CMOS Digital Image Sensor found in LG
> Optimus 4X (P880) and Optimus Vu (P895) smartphones.
>
> Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
> ---
> .../bindings/media/i2c/sony,imx111.yaml | 126 ++++++++++++++++++
> 1 file changed, 126 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/media/i2c/sony,imx111.yaml
>
> diff --git a/Documentation/devicetree/bindings/media/i2c/sony,imx111.yaml b/Documentation/devicetree/bindings/media/i2c/sony,imx111.yaml
> new file mode 100644
> index 000000000000..52d88f5d477e
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/media/i2c/sony,imx111.yaml
> @@ -0,0 +1,126 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/media/i2c/sony,imx111.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Sony IMX111 8MP CMOS Digital Image Sensor
> +
> +maintainers:
> + - Svyatoslav Ryhel <clamor95@gmail.com>
> +
> +description:
> + IMX111 sensor is a Sony CMOS active pixel digital image sensor with an active
> + array size of 2464H x 3280V. It is programmable through I2C interface. Image
> + data is sent through MIPI CSI-2, through 1 or 2 lanes.
> +
> +allOf:
> + - $ref: /schemas/media/video-interface-devices.yaml#
> +
> +properties:
> + compatible:
> + const: sony,imx111
> +
> + reg:
> + maxItems: 1
> +
> + clocks:
> + description: EXTCLK with possible frequency from 6 to 54 MHz
> + maxItems: 1
> +
> + reset-gpios:
> + maxItems: 1
> +
> + iovdd-supply:
> + description: Digital IO power supply (1.8V)
> +
> + dvdd-supply:
> + description: Digital power supply (1.2V)
> +
> + avdd-supply:
> + description: Analog power supply (2.7V)
> +
> + eeprom:
> + $ref: /schemas/types.yaml#/definitions/phandle
> + description:
> + A phandle to the node of the eeprom, that holds sensors configuration data.
This assumes the eeprom is dedicated to the sensor. What if it is just a
subset of some eeprom or other storage. Perhaps this should use nvmem
binding.
> +
> + flash-leds: true
> + lens-focus: true
> +
> + orientation: true
> + rotation: true
Use 'unevaluatedProperties' instead and drop these.
> +
> + assigned-clocks: true
> + assigned-clock-rates: true
> + assigned-clock-parents: true
Always allowed on nodes with 'clocks', so drop.
> +
> + port:
> + additionalProperties: false
> + $ref: /schemas/graph.yaml#/$defs/port-base
> +
> + properties:
> + endpoint:
> + $ref: /schemas/media/video-interfaces.yaml#
> + unevaluatedProperties: false
> +
> + properties:
> + data-lanes: true
> + bus-type: true
> + link-frequencies: true
> +
> + required:
> + - data-lanes
> + - bus-type
> + - link-frequencies
> +
> + required:
> + - endpoint
> +
> +required:
> + - compatible
> + - reg
> + - clocks
> + - port
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/gpio/gpio.h>
> + #include <dt-bindings/media/video-interfaces.h>
> +
> + i2c {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + camera@10 {
> + compatible = "sony,imx111";
> + reg = <0x10>;
> +
> + clocks = <&imx111_clk>;
> +
> + iovdd-supply = <&camera_vddio_1v8>;
> + dvdd-supply = <&camera_vddd_1v2>;
> + avdd-supply = <&camera_vdda_2v7>;
> +
> + orientation = <1>;
> + rotation = <90>;
> +
> + eeprom = <&eeprom>;
> + flash-leds = <&led>;
> + lens-focus = <&vcm>;
> +
> + reset-gpios = <&gpio 84 GPIO_ACTIVE_LOW>;
> +
> + port {
> + imx111_output: endpoint {
> + data-lanes = <1 2>;
> + bus-type = <MEDIA_BUS_TYPE_CSI2_DPHY>;
> + link-frequencies = /bits/ 64 <271200000>;
> + remote-endpoint = <&csi_input>;
> + };
> + };
> + };
> + };
> +...
> --
> 2.48.1
>
next prev parent reply other threads:[~2025-08-19 20:25 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-19 12:04 [PATCH v1 0/2] media: i2c: add Sony IMX111 CMOS camera sensor driver Svyatoslav Ryhel
2025-08-19 12:04 ` [PATCH v1 1/2] dt-bindings: media: i2c: document Sony IMX111 CMOS sensor Svyatoslav Ryhel
2025-08-19 20:25 ` Rob Herring [this message]
2025-08-20 5:36 ` Svyatoslav Ryhel
2025-08-19 12:04 ` [PATCH v1 2/2] media: i2c: add Sony IMX111 CMOS camera sensor driver Svyatoslav Ryhel
2025-08-21 14:45 ` kernel test robot
2025-08-28 16:12 ` [PATCH v1 0/2] " Sakari Ailus
2025-08-28 17:00 ` Svyatoslav Ryhel
2025-08-29 18:20 ` Svyatoslav Ryhel
2025-10-28 16:24 ` Sakari Ailus
2025-10-28 16:31 ` Sakari Ailus
2025-10-28 16:34 ` Svyatoslav Ryhel
2025-10-28 16:38 ` Sakari Ailus
2025-10-28 16:55 ` Svyatoslav Ryhel
2025-10-28 16:59 ` Sakari Ailus
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=20250819202542.GA1254999-robh@kernel.org \
--to=robh@kernel.org \
--cc=arnd@arndb.de \
--cc=benjamin.mugnier@foss.st.com \
--cc=clamor95@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dongcheng.yan@intel.com \
--cc=git@apitzsch.eu \
--cc=hansg@kernel.org \
--cc=heimir.sverrisson@gmail.com \
--cc=hverkuil@xs4all.nl \
--cc=jingjing.xiong@intel.com \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=sakari.ailus@linux.intel.com \
--cc=sylvain.petinot@foss.st.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
all inboxes | Powered by JetHome®