From patchwork Mon Apr 7 09:13:07 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 14040041 Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0ACD722F154 for ; Mon, 7 Apr 2025 09:13:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744017194; cv=none; b=fXRWPRi3/c4yhBTCkNc/6DVJbDHn9nTURZPJgs+VLyNLy4RmjNAzI6u/erz75P+Q7EmwO2nF5b192XN3RkawHh00VN7yXwcj27V+l+LpOFD044xp7ZdwvbFHAylVdCs3AjJJnl4qRiekcKzFtUPEOqAe5LhDYEK31GFXfMNHntI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744017194; c=relaxed/simple; bh=ffRvJE/4BkyQpmYML9g9ITvn94Gn2ipUOTX9D0Ct3KU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=uRKHppPiB5GFNOo2U7jAoK8Cge0a8Dg659hyulcuyLIhzgi1WAWSmkVy4JfTynZ+nwp2y8I0WPE9a4c7SyqM/diDOSipdwmhodMv3V+MSEzVzLNyvKa6V9TvoOnMgoQHQrWOYcP69P93ZEjuroMfxObFA/oA0s5xeSIEH/OF8S0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=QxwsdBE7; arc=none smtp.client-ip=209.85.221.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="QxwsdBE7" Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-39c1efc4577so2162848f8f.0 for ; Mon, 07 Apr 2025 02:13:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1744017191; x=1744621991; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=DhCv4j7CCOy4gHHp9VAGi9s30D/BhAAdMeNmK1XUyNQ=; b=QxwsdBE7x+tpJhCP2ds+dEbRaaA2e6jOX0RSMcxkGd3lkUtEpDyGHZCZSlq3MlNOLR gXolXH0Cz+w4hsQAVuAU9jH7Y+JvC94jLNHgcXdkHjeHMgAbuEWrq5nIraMiDJzf4UM0 Dmb/XSG82n9ozfJl/Vwga+rVg734IVZjCh39PkH3blK14KHZTsxAyrzn4DfkvO3DbeIx K/eQHKhKLJi2tr+zjPXrxk1VezVTfGVHHmGI/5S/G4HNF4Cq7YGtsNPbtAYFsXrNjEP4 Sj1AuxyD4VgkqE0dKCc3sVqlQKcS4pQ6ISZuDVjQEyChm4AegStM3pjS9BxH2Xjaqt+K EsFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744017191; x=1744621991; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DhCv4j7CCOy4gHHp9VAGi9s30D/BhAAdMeNmK1XUyNQ=; b=u8y/aaPJJYyaMpbFaOo6Cmj7jZxNoiEIxMNDSi4EtaXfYyC5ROdP91+KQqm5DLrrxm jhgejpWosPM6g1FhrTOKiulQY+Wfw7lt4M79yUotrT13zxlDfd/3uUPph18adz2n+KRI 93KpxDphRfSnirtR8uPPteudak4xPobT3bJBHQDuXt/BY8W2wPAyA1e1bFlsO4tVQc+8 VCRWwadtzsTWOXdto0jzVCmXBHP3a5bvVk63MUqKYX7CyaDrHmdyF7XYzlFm9Bf9n7t5 GpfPU0K8NaXtcSb5O9uOWxVAYzIwQGR33Dl8ApuEYNv/xqvleGLLjQgWcIFKPH2JSwbS 91pw== X-Forwarded-Encrypted: i=1; AJvYcCVgcNxRxAAdQfvQBxfRRk4RoeyFXG0BG7lmJK6IGNa5aozzJdOWOwOtNOVoedBhQ0mTLQQ64K707XPNRA==@vger.kernel.org X-Gm-Message-State: AOJu0YwmzX2YLHV++0ZHG8Ov7jkPWyb8x201f+wp4406121jj/LSVWsq sLzNze4crL3eM/n/7XPBGClgDff8SbAs8OfZ9H2EpJ9YLindgOxZk8B9NuACWmY= X-Gm-Gg: ASbGnctnAJjrmsXXwdPZXW9GKGN4dpCtIlqp1feiFREEdXEp8+BMf3Fnx4up/3VT4ZU YUak7UZAhdR64TLypQro63uF/paCLkJVrcqGMSqUQtk6q8zcXNqQLXJJh9nOyAQbnPCZTSf42Qz PYyNbPNuDcIXosbwSzCAnhhqTVt7UB1yi4hHMrkq9HRUyOY+hpcEWpCe72MfJ3/oEt2Pc6RYRE+ uFhV6Gpi/7NF4AFZG6GBWsFfTQRfM0WUzDfnlL1cekz+RbEWohSU+8J78TfpnO34fgoI+kXSpTJ U6lk6InXdHorwXQL4box5R9aOMMToWBbqlWNlbO3OBcjGOBJ6Cd/3v4viyRXmiPUew8pzPuVHyg LXuGwb6Aknw== X-Google-Smtp-Source: AGHT+IGs5HlrDGvZVZkhmSuKrijT1Ug79ZSuEMbsX26TOBZ6vvC2KpIvx52Q7XQg7DUkZOdtIJ+lyA== X-Received: by 2002:adf:9dc7:0:b0:39d:724f:a8bf with SMTP id ffacd0b85a97d-39d724facb1mr4328926f8f.4.1744017191269; Mon, 07 Apr 2025 02:13:11 -0700 (PDT) Received: from [192.168.0.34] (188-141-3-146.dynamic.upc.ie. [188.141.3.146]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-39c301a9bcfsm11673977f8f.33.2025.04.07.02.13.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Apr 2025 02:13:10 -0700 (PDT) From: Bryan O'Donoghue Date: Mon, 07 Apr 2025 10:13:07 +0100 Subject: [PATCH v4 1/2] media: dt-bindings: Add OmniVision OV02E10 Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250407-b4-media-comitters-next-25-03-13-ov02e10-v4-1-211e3e6fae90@linaro.org> References: <20250407-b4-media-comitters-next-25-03-13-ov02e10-v4-0-211e3e6fae90@linaro.org> In-Reply-To: <20250407-b4-media-comitters-next-25-03-13-ov02e10-v4-0-211e3e6fae90@linaro.org> To: Mauro Carvalho Chehab , Sakari Ailus , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bryan O'Donoghue , Hans de Goede Cc: Jingjing Xiong , Hao Yao , Jim Lai , You-Sheng Yang , Alan Stern , Hans de Goede , linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, devicetree@vger.kernel.org, Bryan O'Donoghue , Krzysztof Kozlowski X-Mailer: b4 0.14.2 Add bindings for OVO2E10 a two lane MIPI CSI, two megapixel 1080p RGB sensor. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Bryan O'Donoghue --- .../bindings/media/i2c/ovti,ov02e10.yaml | 113 +++++++++++++++++++++ 1 file changed, 113 insertions(+) diff --git a/Documentation/devicetree/bindings/media/i2c/ovti,ov02e10.yaml b/Documentation/devicetree/bindings/media/i2c/ovti,ov02e10.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4ac4e11a16c8bb7a53db0c44289b1004dbdc282a --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/ovti,ov02e10.yaml @@ -0,0 +1,113 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright (c) 2025 Linaro Ltd. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/i2c/ovti,ov02e10.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Omnivision OV02E10 CMOS Sensor + +maintainers: + - Bryan O'Donoghue + +description: | + The Omnivision OV02E10 is a 2 megapixel, CMOS image sensor which supports: + - Automatic black level calibration (ABLC) + - Programmable controls for frame rate, mirror and flip, binning, cropping + and windowing + - Output formats 10-bit 4C RGB RAW, 10-bit Bayer RAW + - 2-lane MIPI D-PHY TX @ 720 Mbps per lane + - Dynamic defect pixel cancellation + - Standard SCCB command interface + +allOf: + - $ref: /schemas/media/video-interface-devices.yaml# + +properties: + compatible: + const: ovti,ov02e10 + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + avdd-supply: + description: Analogue circuit voltage supply. + + dovdd-supply: + description: I/O circuit voltage supply. + + dvdd-supply: + description: Digital circuit voltage supply. + + reset-gpios: + description: Active low GPIO connected to XSHUTDOWN pad of the sensor. + + port: + $ref: /schemas/graph.yaml#/$defs/port-base + additionalProperties: false + + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + additionalProperties: false + + properties: + data-lanes: + items: + - const: 1 + - const: 2 + link-frequencies: true + remote-endpoint: true + + required: + - data-lanes + - link-frequencies + - remote-endpoint + +required: + - compatible + - reg + - clocks + - port + +unevaluatedProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + ov02e10: camera@10 { + compatible = "ovti,ov02e10"; + reg = <0x10>; + + reset-gpios = <&tlmm 237 GPIO_ACTIVE_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&cam_rgb_defaultt>; + + clocks = <&ov02e10_clk>; + + assigned-clocks = <&ov02e10_clk>; + assigned-clock-parents = <&ov02e10_clk_parent>; + assigned-clock-rates = <19200000>; + + avdd-supply = <&vreg_l7b_2p8>; + dvdd-supply = <&vreg_l7b_1p8>; + dovdd-supply = <&vreg_l3m_1p8>; + + port { + ov02e10_ep: endpoint { + remote-endpoint = <&csiphy4_ep>; + data-lanes = <1 2>; + link-frequencies = /bits/ 64 <400000000>; + }; + }; + }; + }; +...