From patchwork Fri Dec 2 16:07:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Volodymyr Kharuk X-Patchwork-Id: 13062878 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 98CBFC4321E for ; Fri, 2 Dec 2022 16:08:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232678AbiLBQIG (ORCPT ); Fri, 2 Dec 2022 11:08:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233715AbiLBQIC (ORCPT ); Fri, 2 Dec 2022 11:08:02 -0500 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1130A86599 for ; Fri, 2 Dec 2022 08:08:01 -0800 (PST) Received: by mail-ed1-x533.google.com with SMTP id d20so7154700edn.0 for ; Fri, 02 Dec 2022 08:08:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=melexis.com; s=google; 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=ESMlAkcQVJkP0BymB10mENkYlZia3gW1Hdg9ASnAHxo=; b=aXgQoCwh1oP1lJxsfku1djFDraOEbGrIXO52iwVGzx/GYsDhZjhSZgG6HEqbh9hC+w FSd1odVBl5g/OVG66A2fp9imeLAy1PgL325ecif/6nllrg4YTwZWYobhYf5JKqosTs/v lm/qJJny0bb+fLRY+HVZ2QO0uSOkNPgosfUbTWmcURCLdIgW9Jorwh3wUzRjHsVSD+9g qtiF0XD5qhX6BNltjkiiWaa+DMhwIS9BitN9FfnHN1+8VFzHp7ZUGqgjSrjckkIr2ray oRf/sna4yUf4LhEWXBWJWUeaVuwHS9zOP5VpVxpLn6ycN8woUNjut7KZ9WkCQk8lo3Id B2aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ESMlAkcQVJkP0BymB10mENkYlZia3gW1Hdg9ASnAHxo=; b=C3H4OHkQ64C2144dMzF7dWk55Of1zDtCldpvDiMEt9Ljv7lk8Hw9PRwfQXxcyxKOlD LrMZVE9tkaEQ6aqBJeBzfzZwkZQ19LJ9Bq9KVohBTUT1k9Dz9/tLktIv9Ud8oxlTMakA 06wGQKOsmq2VA4OOdrysw/2NaCWV9+1rbLd9U1Yr9waXP92MumPZvvSok8xyCEL16hZM 4RX0JUyqUpMLYAsvrFHO+Fq5K0036ZJ3JTOsDCMxdkCI4FZMOXYMyBLchnXv3Iu2E9Tg cF3NEStSBQuK1A8MFGnXsOk01b4q6RmIB2LA5Gulr/gyl7JRkt1t+HjeDeZXwQHWn7G9 wMZQ== X-Gm-Message-State: ANoB5pmDJM4w6jYQBwrrafSqySSqkjHmSDKqKQRojxQXt/+NJQAh7ElW ech1XN4MiPItz+CWYm3ZcLvxZLpCRYxljyDT61G+FvwQ63TwvhRG5p5ZYmArjusGC0BqjJtijpE 4joMjkmk06kdjf1k3Tb8riVvDx5g707/+V3xt6TcO4hETQ6N2eUx5tPmi39KSdzGkQMbRf1T2E4 c= X-Google-Smtp-Source: AA0mqf4tl9h95XDB2edFyitlJ7HBNnhwGzt96tkfDPh8PMkbfcWBN13m9pnEkMwRkyC28kPqncDzew== X-Received: by 2002:aa7:c719:0:b0:46a:bfd0:f816 with SMTP id i25-20020aa7c719000000b0046abfd0f816mr2416122edq.277.1669997279532; Fri, 02 Dec 2022 08:07:59 -0800 (PST) Received: from melexis ([91.192.183.26]) by smtp.gmail.com with ESMTPSA id bm14-20020a0564020b0e00b0046bf4935323sm675963edb.30.2022.12.02.08.07.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Dec 2022 08:07:59 -0800 (PST) From: Volodymyr Kharuk To: Cc: Andrii Kyselov , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Laurent Pinchart , devicetree@vger.kernel.org, Hans Verkuil , Sakari Ailus , Benjamin Mugnier , Volodymyr Kharuk , Krzysztof Kozlowski Subject: [PATCH v4 7/8] media: dt-bindings: Add mlx7502x camera sensor Date: Fri, 2 Dec 2022 18:07:37 +0200 Message-Id: X-Mailer: git-send-email 2.38.0 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Add device tree binding of the mlx7502x and update MAINTAINERS Signed-off-by: Volodymyr Kharuk Reviewed-by: Krzysztof Kozlowski --- .../bindings/media/i2c/melexis,mlx7502x.yaml | 126 ++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 127 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/melexis,mlx7502x.yaml diff --git a/Documentation/devicetree/bindings/media/i2c/melexis,mlx7502x.yaml b/Documentation/devicetree/bindings/media/i2c/melexis,mlx7502x.yaml new file mode 100644 index 000000000000..7b86b6c5b151 --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/melexis,mlx7502x.yaml @@ -0,0 +1,126 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/i2c/melexis,mlx7502x.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Melexis ToF 7502x MIPI CSI-2 Sensor + +maintainers: + - Volodymyr Kharuk + +description: |- + Melexis ToF 7502x sensors has a CSI-2 output. It supports 2 and 4 lanes, + and mipi speeds are 300, 600, 704, 800, 904, 960Mbs. Supported format is RAW12. + Sensor 75026 is QVGA, while 75027 is VGA sensor. + +properties: + compatible: + enum: + - melexis,mlx75026 + - melexis,mlx75027 + + reg: + maxItems: 1 + + clocks: + description: Clock frequency 8MHz + maxItems: 1 + + vdda-supply: + description: + Analog power supply(2.7V). + + vddif-supply: + description: + Interface power supply(1.8V). + + vddd-supply: + description: + Digital power supply(1.2V). + + vdmix-supply: + description: + Mixed driver power supply(1.2V). + + reset-gpios: + maxItems: 1 + description: Reset Sensor GPIO Control (active low) + + port: + description: MIPI CSI-2 transmitter port + $ref: /schemas/graph.yaml#/$defs/port-base + + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + + properties: + data-lanes: + oneOf: + - items: + - const: 1 + - const: 2 + - items: + - const: 1 + - const: 2 + - const: 3 + - const: 4 + + required: + - data-lanes + - link-frequencies + +required: + - compatible + - reg + - clocks + - port + - vdda-supply + - vddif-supply + - vddd-supply + - vdmix-supply + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + mlx7502x: camera@57 { + compatible = "melexis,mlx75027"; + reg = <0x57>; + clocks = <&mlx7502x_clk>; + + assigned-clocks = <&mlx7502x_clk>; + assigned-clock-parents = <&mlx7502x_clk_parent>; + assigned-clock-rates = <8000000>; + + vdda-supply = <®_2v7>; + vddif-supply = <®_1v8>; + vddd-supply = <®_1v2>; + vdmix-supply = <®_1v2>; + + reset-gpios = <&gpio_exp 6 GPIO_ACTIVE_HIGH>; + + port { + mlx7502x_out_mipi_csi2: endpoint { + remote-endpoint = <&mipi_csi2_from_mlx7502x>; + data-lanes = <1 2 3 4>; + link-frequencies = /bits/ 64 < 960000000 + 904000000 + 800000000 + 704000000 + 600000000 + 300000000 >; + }; + }; + }; + }; + +... diff --git a/MAINTAINERS b/MAINTAINERS index 32e49523e9c0..81ff27741d40 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -13116,6 +13116,7 @@ M: Volodymyr Kharuk L: linux-media@vger.kernel.org S: Supported W: http://www.melexis.com +F: Documentation/devicetree/bindings/media/i2c/melexis,mlx7502x.yaml F: Documentation/userspace-api/media/drivers/mlx7502x.rst F: Documentation/userspace-api/media/v4l/ext-ctrls-tof.rst F: include/uapi/linux/mlx7502x.h