From patchwork Fri Jan 24 00:12:40 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mirela Rabulea X-Patchwork-Id: 13948799 Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2082.outbound.protection.outlook.com [40.107.247.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2BB4217E0; Fri, 24 Jan 2025 00:13:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.247.82 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737677609; cv=fail; b=br55PL6XNPwNXfKNxIvkhIdm0QtXJ6PRaTmGhb6f40CEVxSGuJtTpQWTebaPoaaPopTGgGeFH365Fs3mwjMJzUm6sVmHbiT79PKegclxVlW5OOrbaHfG1/Or+8DyeGZdHh4JOuKO51aLUxfXmgZnxO/z9givacLiYX87X3osr+A= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737677609; c=relaxed/simple; bh=udWy57/yMikxTbEDtQZa9hSzVL7eG4ZLgsYkg5p5NDc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=sWBG1WSZJrU97pTmfpbX+qyz/LGGa3cu5ZVXDJO8jX/yyIl/5ieEwjDfkttovGAReCmH6hL+pdjwdkQqajiZWJyUGez8ZSYMbobhyNFJQSnXyjfP5zHtTN2hZxmO8tQ9fGXYNooWvxwYSrRYpyAcOfCKLj2YnPdixrpVrZUh5nU= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=HfSs6oyi; arc=fail smtp.client-ip=40.107.247.82 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="HfSs6oyi" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=DpNgUEyGgtWGKJiXIpDeG1tiXVfUKsiHBziaAFzaqYGv0uJsssGgWhlU1edYAHr2MWNLgNsIygBI5nVy1WLuMdNh9vixHXlPBps+pb0zQJBlpW1sxE41JsjKzE/feSWWtUsUmsZYUqmfFkl5CIQ3VfS0rLZzc/p7y54DZcETTVXVRTSN/Q5UbL3CA4hddQEP5tDgVAGaq1bfwg4QTr9PTcP6BtDqC/GFX6DqU4/wMkAVze6bOg4EWB8TM1mlslfATyC/YD2OAtz+aTxNoeLzMiCURFzuvpAu2otyyyDUA5vPMrr1GvGdRic07UFk3BRp8fpx/5Qt0eBXif0h2tmj/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=qHIWasp8SiOZ3zxQuGXMl3OkhBt6p7Hcw2aqnzjd1Fo=; b=M2KS5U+DLNVkOfCIg7vjRbgWhYTKgNev2k3vfNbhe8PBmmSx5i1wgxZt1UbDCeYWe0tnA094PfHaeyMdEUPjTE+GxsPzKQoS2kSeGzQJD/NL+ngGke5bPUOskJKNolvZX/rz/5L4ZEdddiqpp9403jG2Qvh5TWo3Wd+EAXJJ5T28J/KFFu3ffIeCeUZIHyqkZFmeJPO/IXp9kEisMKzvLeZIrKydbeB0YBNmMJMgURO3QjxBgvBsRr5RCUl783TDNMxjuQSswnKehrRroG8gHwvS0GkivJfhjieD4jHrctZObmxXMCj3+MuQjHLKmBUbMMbWW/TGdXD6+0uNtoCTPA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qHIWasp8SiOZ3zxQuGXMl3OkhBt6p7Hcw2aqnzjd1Fo=; b=HfSs6oyi0x9B3XsxAzzEY1pm9J+3nILxCq4wlk1fsE857rEKBIUqmL03arKWP76UgdWGr2wVSL4AoJOG5KZk5Usu5QweuQRNO5rxk0137PqBVezgap88l8zfecCVp0UOs5zVqabOeL7yh7pLpWq51kUerD570Uj8U5uAx16M5bk1Y1fwgjRia9MUBwsQt/M0AcrDNqHzepzZjEKl/GJGcvfMF68yMzWSxAUvouXKWcPHwvVFBlRneqW4DELgt3vU/LxQnBo87Jiuh7ZwSInbTUSdJD7Kna+sEABiw1ToKQ7BpR8MLy1Obn0D1XRye/EjTsukXZcoZQgEgf5TSz8/gQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9231.eurprd04.prod.outlook.com (2603:10a6:102:2bb::10) by PAXPR04MB9201.eurprd04.prod.outlook.com (2603:10a6:102:232::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8377.18; Fri, 24 Jan 2025 00:13:23 +0000 Received: from PAXPR04MB9231.eurprd04.prod.outlook.com ([fe80::766c:5fb5:2049:dd01]) by PAXPR04MB9231.eurprd04.prod.outlook.com ([fe80::766c:5fb5:2049:dd01%4]) with mapi id 15.20.8377.009; Fri, 24 Jan 2025 00:13:23 +0000 From: Mirela Rabulea To: mchehab@kernel.org, sakari.ailus@linux.intel.com, hverkuil-cisco@xs4all.nl, laurent.pinchart+renesas@ideasonboard.com, robh@kernel.org, krzk+dt@kernel.org, bryan.odonoghue@linaro.org, laurentiu.palcu@nxp.com, robert.chiras@nxp.com Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, LnxRevLi@nxp.com, kieran.bingham@ideasonboard.com, hdegoede@redhat.com, dave.stevenson@raspberrypi.com, mike.rudenko@gmail.com, alain.volmat@foss.st.com, devicetree@vger.kernel.org, conor+dt@kernel.org, alexander.stein@ew.tq-group.com, umang.jain@ideasonboard.com, zhi.mao@mediatek.com, festevam@denx.de, julien.vuillaumier@nxp.com, alice.yuan@nxp.com Subject: [PATCH v3 1/4] dt-bindings: media: i2c: Add OX05B1S sensor Date: Fri, 24 Jan 2025 02:12:40 +0200 Message-Id: <20250124001243.446511-2-mirela.rabulea@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20250124001243.446511-1-mirela.rabulea@nxp.com> References: <20250124001243.446511-1-mirela.rabulea@nxp.com> X-ClientProxiedBy: VI1P191CA0005.EURP191.PROD.OUTLOOK.COM (2603:10a6:800:1ba::12) To PAXPR04MB9231.eurprd04.prod.outlook.com (2603:10a6:102:2bb::10) Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9231:EE_|PAXPR04MB9201:EE_ X-MS-Office365-Filtering-Correlation-Id: 696673b4-8b68-46ab-ad33-08dd3c0bea58 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|52116014|7416014|366016|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: AkOBAYo5xFg45XM6Q1i8lmjaGh4fmVHPMHGeEHfp4eD+iK1qTw21U/iYum4Yv/UQZNQeGxS20eLWr+6NEpIejBxF+JaTCvLFm1YRacVIHr030kaFNon0bsk4slAGDhs3U+5f8ynQK1CR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Vzc7TL9mDQGfu1jBf9psLPZmiwnTDOnV1BJr4xhEcXxJDZ5DjmgfW02dgMSJZz0cCoJNz1R7n8pJtso72KRlo/WXXjaEIn8xYRyo8c2kjcvhlOEKfJ6mCYG513zcv9Q0yDMaxvavuw/OuGSmC+FiR1yUZFi4VkZvbrc/6SunsEyFLSovw5WkQw14RVW7baikMqY X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9231.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(52116014)(7416014)(366016)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: lFy5yV06xwsK9WXL+oy8kKTGPKw7UXossRoIyBRbUuzgpg4jT9V9v5YZ6cRYUpwTpvIzwY4cGqjmaOhNOKLx0dcjzqtZw3lTvbXWpT3osdKeipVC2vRZQz9ybq4KXOmdgUYxTLuvDKJG8z9HDeJr4oEpuELNBiRVEXExOkV7mwcZ2HXDYIElmNN8HHMCG2Nmnffi7NSaLPrrrIo9qvegzZoC19dhxKRXk+2Q81iGP569H0p95/ml8ggnkS0qI98Pi8536/yP5JE338cF5FsBaZOYhzarZjmYmi25TQqBvgea8bAKhVBV0tiNnqWB9t/mYwPRPXxNFEO0TiqE4+RYcx0AkVrr/EKhoT3aKX47PTJmg3Uln7MGZPD9i5rwRMVDJfhMTbLN9UNLqU2WH+x4KDcnGWuVACOkTgpTfyV+MVWop1Rg9moidU0M1o97z+vAVJnAqi3pgSfo6kmEhNUFm7kw42NKe1UEMdodNZ+uB9t9xIQMvg9gTGFhfNdw1uVKJGuQNVudYj+nh4etcD9GfNGRcqPN0bee41HIMivW/xMU9AfZZ2CiA7NrT01gaGglyqDA5r9xgOwWKF/4IntlOpZRiCWJyG3wUtKSwo4kboT0sebOJ4GbZpKSFb9TBY28Yw8XLrIB9p4yga3pBiz/opHoUW+fEjpEW4W+f6CyLA8qMJXYHMrj8s38iaw1bdGZkU6xQTShtjlmPP/tmZwVopSRdzDuzwyQcWVWHFUACcQnvd31Red53GE78hXzT8x7l++NHfLS7k3/ersomdcgyQmvppd5GR0rx5x+U7fkSeEH0P71jJwVgN8kQBbwVCXk8MiNV/aQ5ED/nk8ANJNSYMKgFXuuQ/DJJ/2/TnEyDiOi9QWaIKxMyJJ8yQ+rVv1kBtkum5YhYyHM5l4trpiXpWytpO6QfDJBb4YrUdXz4wM6iZ4ZbxMnGo6JyW6SjHV6SRIxYF/6Gx0u72+jkpj0McyvbkK7zIk1+doUsCzdyL3efSBLAIFiWhBKFKu2FpdZvHU/yW3e41qzJsaRJkTBn0SnPODZ5TBK1MiNTKu0myCfVaOtkGk/NkSESD3ZzWOn3RdyAwNBQrqrc8T56p9C1IddNMRhuHI3tDbc0rTaMnSu271nFQgpZED6yrEWKrKZvbOT0ATnmP9/zwZX0plQuOP3QPSfWNAzz0JP/4ktnOPEBxCQEeCbcPptyMxvrzu/E1X07nr4jewKKPIlQv1EI0eB+M3W1haDQM6rCMu/EzqJURb0Zsd1q0OjVsMp86YTuCDlaxoKjjIpx1uJEfn6p2umJFIp71YeYRGrdA+hTK4eocv3KpCxSbAEKhhi1unr0JZJD2q5m3mscKfqXu8ldZpuwvVcsQGN0MGmWvaScEJdD8YabvAefx1qbd7HoSsu8kcpGmuDhD3YKpf2lxI2eA0LGGpmINDFFC/pgwY8FxGJ752zpjTar8xqisBDq8laPqWRK81Tp1rcE9wdrDaRf8ZkXyJS+KOzMFfBTf6UjnqTqJKRdcX1CbEoF3RgMmgg2yC92Mqf1vWndumFYITBRSFwd796RdhLTt0/0cW+32pmBIIcw3kadvIRTTQWp0uCkX55k+3r7qzd92Exv50hGA== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 696673b4-8b68-46ab-ad33-08dd3c0bea58 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9231.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jan 2025 00:13:23.1774 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: G6iJ3yP16u61jWA454hbMKmBeHzJceJv8RzgVzUCTDe0GuAt+AzEVDQsm+ZyFuEjnD1nNL/5hMN93mu3jLTDqw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9201 Add bindings for Omnivision OX05B1S sensor. Also add compatible for Omnivision OS08A20 sensor. Signed-off-by: Mirela Rabulea Reviewed-by: Krzysztof Kozlowski --- Changes in v3: Use unevaluatedProperties: false and drop orientation/rotation Drop items and keep alphabetical order in compatible property Shorten the description for reset_gpio Make the supplies required. Use generic node name (camera instead of ox05b1s) Changes in v2: Small updates on description Update subject, drop "bindings" and "driver" Just one binding patch (squash os08a20 bindings) Re-flow to 80 columns. Drop clock name (not needed in case of single clock) Make the clock required property, strictly from sensor module point of view, it is mandatory (will use a fixed clock for nxp board) Add regulators: avdd, dvdd, dovdd Add $ref: /schemas/media/video-interface-devices.yaml Drop assigned-clock* properties (defined in clocks.yaml) Keep "additionalProperties : false" and orientation/rotation (unevaluatedProperties: false was suggested, but only orientation/rotation are needed from video-interface-devices.yaml) Include assigned-clock* in the example, for completeness sake (although it was also suggested to omit them) .../bindings/media/i2c/ovti,ox05b1s.yaml | 119 ++++++++++++++++++ 1 file changed, 119 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/ovti,ox05b1s.yaml diff --git a/Documentation/devicetree/bindings/media/i2c/ovti,ox05b1s.yaml b/Documentation/devicetree/bindings/media/i2c/ovti,ox05b1s.yaml new file mode 100644 index 000000000000..9f35b4e67bea --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/ovti,ox05b1s.yaml @@ -0,0 +1,119 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (C) 2024 NXP +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/i2c/ovti,ox05b1s.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Omnivision OX05B1S Image Sensor + +maintainers: + - Mirela Rabulea + +description: + The Omnivision OX05B1S is a 1/2.5-Inch CMOS image sensor with an active + array size of 2592 x 1944. It is programmable through I2C interface. + Image data is available via MIPI CSI-2 serial data output. + +allOf: + - $ref: /schemas/media/video-interface-devices.yaml# + +properties: + compatible: + enum: + - ovti,os08a20 + - ovti,ox05b1s + + reg: + maxItems: 1 + + clocks: + description: Input clock (24 MHz) + maxItems: 1 + + reset-gpios: + description: Active low XSHUTDOWN pin + maxItems: 1 + + avdd-supply: + description: Power for analog circuit (2.8V) + + dovdd-supply: + description: Power for I/O circuit (1.8V) + + dvdd-supply: + description: Power for digital circuit (1.2V) + + port: + $ref: /schemas/graph.yaml#/$defs/port-base + additionalProperties: false + description: MIPI CSI-2 transmitter port + + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + + properties: + data-lanes: + anyOf: + - items: + - const: 1 + - const: 2 + - items: + - const: 1 + - const: 2 + - const: 3 + - const: 4 + required: + - data-lanes + + required: + - endpoint + +required: + - compatible + - reg + - clocks + - port + - avdd-supply + - dovdd-supply + - dvdd-supply + +unevaluatedProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + camera@36 { + compatible = "ovti,ox05b1s"; + reg = <0x36>; + clocks = <&ox05b1s_clk>; + + assigned-clocks = <&ox05b1s_clk>; + assigned-clock-parents = <&ox05b1s_clk_parent>; + assigned-clock-rates = <24000000>; + + reset-gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + + avdd-supply = <&camera_avdd_2v8>; + dovdd-supply = <&camera_dovdd_1v8>; + dvdd-supply = <&camera_dvdd_1v2>; + + orientation = <2>; + rotation = <0>; + + port { + ox05b1s_mipi_0_ep: endpoint { + remote-endpoint = <&mipi_csi0_ep>; + data-lanes = <1 2 3 4>; + }; + }; + }; + }; +...