From patchwork Tue Jul 12 16:33:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tommaso Merciai X-Patchwork-Id: 2113 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 3D0273F081 for ; Tue, 12 Jul 2022 18:34:21 +0200 (CEST) Received: by mail-wm1-f70.google.com with SMTP id g22-20020a7bc4d6000000b003a2e0951432sf3938464wmk.9 for ; Tue, 12 Jul 2022 09:34:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1657643661; cv=pass; d=google.com; s=arc-20160816; b=wzx+Kek2+yCXkaJR9G0QhpgnJA/2PD1SXi7tW50GEMyVVw7+RU+NAi9EduNa59+fVG h5qHeABky1X9/hYpMsWwzRfqvnPxTuFuFKdz0sxFtktqDah/ufLDeZPvmswVPr2jPS0b QskCK1MO4vDS4y3qzjbWwp5GTUht1juarbC7ug+GTE0EdDYPymoV2b+Kzlm4oCPqaQOC knZrh/PrZyrT7zOg/nVWBphcG0D2wSINAbAVAa2re4+P8m4EmxXBP/glFAKbmV4hQpkT dxRnVNwBBeHeB6mxW2Ak6NjX/mCXASblvYwYdKOIVG2RuXHXf+FATbFN4z4kwtOj568I pqxw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=g/gU+10H+EEXFTl8Sz0hG/L3Yl6p1u5ECdRsw/o61Wo=; b=XUNP01RKsth5bse2YFWsXksBMJ4p7srochP0ifE2fL/yEWZi9YgO2mF5cubQw0dqUu +RWlitYhAOpXMh+E2zpJiJrn04baUI3t6M0QseA+A60CPlw8xGP5SDK6yRUu7BGb5vtl sVD9PfBekefvPZg90XSEKSnxTEelkK60vxqp5HdeqMbaV0e9wvEmuTsnCCLcV5TrNgdu iB2ZDvdGi5LHSzuJlcP9ybOeE3zqE/CCRcEgDM7BVMpHVRihEbKNzL5/l9tM2e9cJoBc 5TesD8zsiRYTl2dZ2jXWmDTki+ILWFvNZgOETZxqeUD/foQg4tiNgdbHY3mz27+q8eww OZ2g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=UHGrVJVD; spf=pass (google.com: domain of tommaso.merciai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=tommaso.merciai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=g/gU+10H+EEXFTl8Sz0hG/L3Yl6p1u5ECdRsw/o61Wo=; b=nSLUW4eWL3k0oQ4lR0tKpjVdI8LVbDoVuz89wkHmn9UvDDHxl6PFobzCQSgomAkpCK QB2Sw38oqxl+EJgsg/G00RX9PciuV3d3YdtDZ9h6DJONeMoNlOdLWhJrjxtvqd9MmZW9 ZIBJ15soaNsaPneYfCX72Cb3nTyfci7lDX0q4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=g/gU+10H+EEXFTl8Sz0hG/L3Yl6p1u5ECdRsw/o61Wo=; b=AYfhx03EOo2jF8sv7AgU4WKJDEIy4QKEIeTUY0y4pXUmiixxMtjQKHKJq4vx22StcZ 3ZwvIqwiovrgaEvWEAImpwt61IUhsC2VouOTvARG6GQdiZOz0Hm5QI8B04yE7duFAltF Ak2Cv83Q4jhqHslDwAqkmcvM54HCfCQjTyQbB3idnmt/63NZrYc/er4kaJmLaIL6MDJp SIuopaTP5D0Dfc90BJuVqXhMb5Z4mX0Y5exLnJ0UlZ/nbrR+2oMo+P/UaXP79UAqHXZB nwyDgQL+JBEZYQpTOiR/TgfQ1/45XZ53J7hzZdgGRgjnEl9Uh6slFwsqsfRUHTOWh8Ox HuCQ== X-Gm-Message-State: AJIora9oj3NQYy0sZUsg0NL+RuTMPWxSntQjPXVYXpF2w/sh6nzIvCVY +bXe4c1Ca7zBXMhEBhBzAevVum+W X-Google-Smtp-Source: AGRyM1u3HjHjEbE0jQleTNlsrbdC3100vHZnXf8znIt6jR5T4HsgUxzLlhhBEV5+mH7YjO8pHMTjIg== X-Received: by 2002:a5d:4890:0:b0:21d:9bf3:89b5 with SMTP id g16-20020a5d4890000000b0021d9bf389b5mr15602496wrq.153.1657643661021; Tue, 12 Jul 2022 09:34:21 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6000:156e:b0:21d:2eb7:c707 with SMTP id 14-20020a056000156e00b0021d2eb7c707ls4977579wrz.3.gmail; Tue, 12 Jul 2022 09:34:20 -0700 (PDT) X-Received: by 2002:a05:6000:22a:b0:21d:87cb:34a with SMTP id l10-20020a056000022a00b0021d87cb034amr23169961wrz.82.1657643659998; Tue, 12 Jul 2022 09:34:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657643659; cv=none; d=google.com; s=arc-20160816; b=kJAQ+75AuOcQF//mo9tgYY7BQE4SaTzbNOjQvOmFxYsq2y7bpF5hydQXrpp6D7nO3C CStnPq1B8eMlk+gDziUxXNVUF6y1g0R6v7J8OCdOJx/Lqnnb+7b6XzfkQHD2LGAc9xo/ VQuDpIRSUIxB53e01VsRT6K6DIqFgKhJY/TYEzk8rIsmm+6enDHlGKuikj/t+gmU7aPj SAMZS0iOILJM531zewsOuzY25haroxDqMx9KYK1dm75fX9se/Yeu+H9uwEdYvqSmyLpX 8qy6MNRoyWp8/8dGTbcS9dtnvgZMKUzYhybtpwAk+efMTaKB/qlAujQ+acFb4MO6vyoR bVRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=klIuiYkZWbRMkCmGujIVKAt0cLr/WkyvgD6JQ+6Oul0=; b=Z79IvC7ayagmmP4RuVBOkkdo8n1gKPUBGoPT3mfdFZ/Vzbk9zfF3pClwCQ7OHh9g41 Y+c5hU5LOhljjA4gtpyA/yJKK4Cbiiu4PXudO4PIwnLJn0+/euFzDHqwLcN6CZ3kTqOy bWk0Psc6dJO58ko8xdKhrc34FpimWefB4Y043BNt2LjfXSLZYKFHYFFG41izxGD1HIrV uPsMxnxFVjo62FMHZ5F2DJmvblw9bHEcXFQ98d/GFG+87ZQWlwdttuEX9m1YcHaq5ZbL 20x6V2IsSptLU0fTTqU/73lEGEk5Cf6UQ+qfx5SuAfeWKoP449cK2ZpWC3pa2xE7CmgK 80bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=UHGrVJVD; spf=pass (google.com: domain of tommaso.merciai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=tommaso.merciai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id l4-20020adfa384000000b002185a3090b8sor3876987wrb.74.2022.07.12.09.34.19 for (Google Transport Security); Tue, 12 Jul 2022 09:34:19 -0700 (PDT) Received-SPF: pass (google.com: domain of tommaso.merciai@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a5d:5087:0:b0:21d:9925:e15a with SMTP id a7-20020a5d5087000000b0021d9925e15amr16372612wrt.43.1657643659728; Tue, 12 Jul 2022 09:34:19 -0700 (PDT) Received: from tom-ThinkPad-T14s-Gen-2i.station (net-188-217-53-214.cust.vodafonedsl.it. [188.217.53.214]) by smtp.gmail.com with ESMTPSA id j16-20020a5d6050000000b0021db2dcd0aasm2321052wrt.108.2022.07.12.09.34.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Jul 2022 09:34:19 -0700 (PDT) From: Tommaso Merciai To: tommaso.merciai@amarulasolutions.com Cc: linuxfancy@googlegroups.com, linux-amarula@amarulasolutions.com, quentin.schulz@theobroma-systems.com, Krzysztof Kozlowski , Daniel Scally , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 5/6] media: dt-bindings: ov5693: document YAML binding Date: Tue, 12 Jul 2022 18:33:48 +0200 Message-Id: <20220712163349.1308540-6-tommaso.merciai@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220712163349.1308540-1-tommaso.merciai@amarulasolutions.com> References: <20220712163349.1308540-1-tommaso.merciai@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: tommaso.merciai@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=UHGrVJVD; spf=pass (google.com: domain of tommaso.merciai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=tommaso.merciai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add documentation of device tree in YAML schema for the OV5693 CMOS image sensor from Omnivision Signed-off-by: Tommaso Merciai Reviewed-by: Krzysztof Kozlowski --- Changes since v1: - Fix allOf position as suggested by Krzysztof - Remove port description as suggested by Krzysztof - Fix EOF as suggested by Krzysztof Changes since v2: - Fix commit body as suggested by Krzysztof Changes since v3: - Add reviewed-by tags, suggested by Jacopo, Krzysztof Changes since v4: - Remove wrong Sakari reviewed-by tag, suggested by Krzysztof, Sakari Changes since v5: - Remove dovdd-supply, avdd-supply, dvdd-supply from required properties as suggested by Jacopo .../bindings/media/i2c/ovti,ov5693.yaml | 103 ++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 104 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/ovti,ov5693.yaml diff --git a/Documentation/devicetree/bindings/media/i2c/ovti,ov5693.yaml b/Documentation/devicetree/bindings/media/i2c/ovti,ov5693.yaml new file mode 100644 index 000000000000..8974a2c746a7 --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/ovti,ov5693.yaml @@ -0,0 +1,103 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (c) 2022 Amarulasolutions +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/i2c/ovti,ov5693.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Omnivision OV5693 CMOS Sensor + +maintainers: + - Tommaso Merciai + +description: | + The Omnivision OV5693 is a high performance, 1/4-inch, 5 megapixel, CMOS + image sensor that delivers 2592x1944 at 30fps. It provides full-frame, + sub-sampled, and windowed 10-bit MIPI images in various formats via the + Serial Camera Control Bus (SCCB) interface. + + OV5693 is controlled via I2C and two-wire Serial Camera Control Bus (SCCB). + The sensor output is available via CSI-2 serial data output (up to 2-lane). + +allOf: + - $ref: /schemas/media/video-interface-devices.yaml# + +properties: + compatible: + const: ovti,ov5693 + + reg: + maxItems: 1 + + clocks: + description: + System input clock (aka XVCLK). From 6 to 27 MHz. + maxItems: 1 + + dovdd-supply: + description: + Digital I/O voltage supply, 1.8V. + + avdd-supply: + description: + Analog voltage supply, 2.8V. + + dvdd-supply: + description: + Digital core voltage supply, 1.2V. + + reset-gpios: + description: + The phandle and specifier for the GPIO that controls sensor reset. + This corresponds to the hardware pin XSHUTDN which is physically + active low. + maxItems: 1 + +required: + - compatible + - reg + - clocks + - port + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + ov5693: camera@36 { + compatible = "ovti,ov5693"; + reg = <0x36>; + + reset-gpios = <&gpio2 RK_PB1 GPIO_ACTIVE_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&cif_clkout_m0>; + + clocks = <&cru SCLK_CIF_OUT>; + assigned-clocks = <&cru SCLK_CIF_OUT>; + assigned-clock-rates = <19200000>; + + avdd-supply = <&vcc_1v8>; + dvdd-supply = <&vcc_1v2>; + dovdd-supply = <&vcc_2v8>; + + rotation = <90>; + orientation = <0>; + + port { + ucam_out: endpoint { + remote-endpoint = <&mipi_in_ucam>; + data-lanes = <1 2>; + link-frequencies = /bits/ 64 <450000000>; + }; + }; + }; + }; + +... diff --git a/MAINTAINERS b/MAINTAINERS index 66bffb24a348..5a7881ee15e1 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -14767,6 +14767,7 @@ M: Daniel Scally L: linux-media@vger.kernel.org S: Maintained T: git git://linuxtv.org/media_tree.git +F: Documentation/devicetree/bindings/media/i2c/ovti,ov5693.yaml F: drivers/media/i2c/ov5693.c OMNIVISION OV5695 SENSOR DRIVER