Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3155474pxj; Mon, 7 Jun 2021 03:54:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwIYCsRclfG35GQLredHfmAlAyYDcThh7UwseFX4wBE12SoaPV/LQ/5tFnU/fp51Sib6ERN X-Received: by 2002:a17:906:ccd9:: with SMTP id ot25mr17188345ejb.386.1623063254921; Mon, 07 Jun 2021 03:54:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623063254; cv=none; d=google.com; s=arc-20160816; b=gFLq/Ab/+KXe+MMqZB/MVf8Ctwgp64XJuTne896OEH3DvYGwss1YG/8oPOiUn3dlNy 1zH3KIKfO6LxhbqvHB05iDaQMsKoTMcQ49NdHNTeyY4xXkuRHDypa1+0rOPxsvqiMWng JpmyRkZk25teie5xVSX9Duyq4dmiAXBauAME1XqxxQNjypkQndPuFw8GMrEznqm7pBZu r1m3ReMp+kqpV9H0oD3UINHZbrthQaLX8UMKEP89lZhJGji5vYivxgYWUF2mZwgC1Wj1 KQE3zzK0n4p9Ei0Xee5cEyjiD3RM5H2n26VoXoZZSIoM1mR3FmMozc8dwYzY6Ug/cCs8 kSxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:references:in-reply-to :message-id:date:subject:cc:to:from; bh=yN1rlrZHz+F2IkkkZ18X1Co1eH9KiVohsvqZ0zXBZow=; b=jQp8dNtwqq8MWUKfnwo0S4s7vV/cRO5S/nNvq3MszmVw6HeHWh4b5XmMGLraWDiwmS 3CxJdYdRqwa7nfjtBkJtOiqnaUPjt4Am/YiQrhDCHd3/xdLOfSAYCCz3jHTV8h2NJqZ7 gdnAeTWbUqh6uIPtQoRD3LdOpoCYowmUji3kmhg2FujbZz71c4XnHv8gkz15TiNdxJZv v5HGqWGlvKBSt5YnrB22gpEjrpZV0fZx3W+NfM96y/qdXZx6B+zT8zM9VEGiipTz/eLc 0n0N6UMoZfbNru4BJoqzpjqB9frvpECif+LsllO0hG6fZ8WQjkxjtvdcxvm+2Goe8imk SyqA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=puri.sm Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t19si12212613ejb.193.2021.06.07.03.53.52; Mon, 07 Jun 2021 03:54:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=puri.sm Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231183AbhFGKyb (ORCPT + 99 others); Mon, 7 Jun 2021 06:54:31 -0400 Received: from comms.puri.sm ([159.203.221.185]:53050 "EHLO comms.puri.sm" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230519AbhFGKya (ORCPT ); Mon, 7 Jun 2021 06:54:30 -0400 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id 4847FE0053; Mon, 7 Jun 2021 03:52:39 -0700 (PDT) Received: from comms.puri.sm ([127.0.0.1]) by localhost (comms.puri.sm [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id v42KR8C6YYmv; Mon, 7 Jun 2021 03:52:34 -0700 (PDT) From: Martin Kepplinger To: martin.kepplinger@puri.sm, krzysztof.kozlowski@canonical.com, laurent.pinchart@ideasonboard.com, mchehab@kernel.org, paul.kocialkowski@bootlin.com, pavel@ucw.cz Cc: devicetree@vger.kernel.org, kernel@puri.sm, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, phone-devel@vger.kernel.org, robh@kernel.org, shawnx.tu@intel.com Subject: [PATCH v4 2/5] dt-bindings: media: document SK Hynix Hi-846 MIPI CSI-2 8M pixel sensor Date: Mon, 7 Jun 2021 12:52:10 +0200 Message-Id: <20210607105213.1211722-3-martin.kepplinger@puri.sm> In-Reply-To: <20210607105213.1211722-1-martin.kepplinger@puri.sm> References: <20210607105213.1211722-1-martin.kepplinger@puri.sm> Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document the bindings used for the SK Hynix Hi-846 CMOS camera driver. Signed-off-by: Martin Kepplinger --- .../bindings/media/i2c/hynix,hi846.yaml | 105 ++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/hynix,hi846.yaml diff --git a/Documentation/devicetree/bindings/media/i2c/hynix,hi846.yaml b/Documentation/devicetree/bindings/media/i2c/hynix,hi846.yaml new file mode 100644 index 000000000000..19825392fb1f --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/hynix,hi846.yaml @@ -0,0 +1,105 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/i2c/hynix,hi846.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: SK Hynix Hi-846 1/4" 8M Pixel MIPI CSI-2 sensor + +maintainers: + - Martin Kepplinger + +description: |- + The Hi-846 is a raw image sensor with an MIPI CSI-2 image data + interface and CCI (I2C compatible) control bus. The output format + is raw Bayer. + +properties: + compatible: + const: hynix,hi846 + + reg: + maxItems: 1 + + clocks: + items: + - description: Reference to the mclk clock. + + reset-gpios: + description: Reference to the GPIO connected to the RESETB pin. Active low. + maxItems: 1 + + shutdown-gpios: + description: Reference to the GPIO connected to the XSHUTDOWN pin. Active low. + maxItems: 1 + + vddi-supply: + description: Definition of the regulator used for the 1.8V or 2.8V I/O power supply. + + vdda-supply: + description: Definition of the regulator used for the 2.8V analog power supply. + + vddd-supply: + description: Definition of the regulator used for the 1.2V core power supply. + + port: + $ref: /schemas/graph.yaml#/properties/port + + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + + properties: + data-lanes: + oneOf: + - items: + - const: 1 + - const: 2 + - const: 3 + - const: 4 + - items: + - const: 1 + - const: 2 + + required: + - data-lanes + +required: + - compatible + - reg + - clocks + - vddi-supply + - vdda-supply + - vddd-supply + - port + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + hi846: camera@20 { + compatible = "hynix,hi846"; + reg = <0x20>; + clocks = <&clk>; + vddi-supply = <®_camera_pwr_en>; + vdda-supply = <®_camera_pwr_en>; + vddd-supply = <®_camera_pwr_en>; + reset-gpios = <&gpio1 25 GPIO_ACTIVE_LOW>; + + port { + camera_out: endpoint { + remote-endpoint = <&csi1_ep1>; + data-lanes = <1 2>; + }; + }; + }; + }; + +... -- 2.30.2