From patchwork Wed Jan 18 10:32:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Riesch X-Patchwork-Id: 644487 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 527A1C46467 for ; Wed, 18 Jan 2023 11:19:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229485AbjARLS4 (ORCPT ); Wed, 18 Jan 2023 06:18:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230281AbjARLQp (ORCPT ); Wed, 18 Jan 2023 06:16:45 -0500 Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on2077.outbound.protection.outlook.com [40.107.15.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17BDA458B1; Wed, 18 Jan 2023 02:32:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YsYqyBDSstqF1o4hC3ZZCwpC+q8vzo7xCf38KX0NfWSG4BjZ/HMO4gCwPibyDEQzL3MyXUAIpTbuUafWcZnlNR2+42kTwhmBtwYSZUXljcOrh7aEPoNFtSkuJjrEMBP3fR3LZbrKXXOPtEgIGZz8nYMHRVQPrtMiKWctx6fa/3zqde6VJkRPOiNuQ6zh01vwJ6vSBaYbuIHdh//qxB9nuePi1IOb7rPsqr/KORUtzBZ3lHN8N5WVkhPj+7UzQ86WwL4lGitk0ioCl5AmYvfnwY0TKfq9l5YqpztGQw3CpXs34xplQnz+tVoZK8bJfZWs0HO3jXwYE2oi5a01hNo6rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=vryhRBJFdNxBWzhe/MQfm5Mx7tNmJ6fraVBj+N90tAM=; b=KpWVowkGF8jImEnTlru2/zkoDiElw/lwceZEpoLetnylFIfPwk8JJrFqoDs49Nf+ZIVHorlITDBRLEjfx81JPEdaYIG1CNrJmmCY2MxZ8T9vx4j2KzRWM2oYVaBF2FqKgp0DrHtnArLItBOoQuQitBndOhx5YEVNoQpn19zFY4ldH0rbq9Dw5IbWvc6U7nilgMAbRk1k0czEI6A8Zvxe0s19vyOQcM7oyimhYbt+DsFTxcYrqi1chuqdxXNJt8qYBTcWmR+YBFRpvf3Yt7abIH4VDvu0JfQ+brhGDfTlSZG8dx7DPRH9c56RC7Igw6g00k6qNLsEwKCJctmMMD1uDQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wolfvision.net; dmarc=pass action=none header.from=wolfvision.net; dkim=pass header.d=wolfvision.net; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vryhRBJFdNxBWzhe/MQfm5Mx7tNmJ6fraVBj+N90tAM=; b=LZ1SWqIUybPVKyuz6kpHGEe+i/SvLx7XGBP/I6ntPAjfbvdTN8zdTWJAJSuuEmqhYH2dJ8JI8sHqzyZJ4e4fb3gpA6tr/esrQKc07UW3ho1rlRiE3EmZQOPBzYq8wfJSQ/WfTqGMAEX4MQ8sepG+h/I8cf5WWtiSDWJoDQg+fqI= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from DU0PR08MB9155.eurprd08.prod.outlook.com (2603:10a6:10:416::5) by AS8PR08MB5990.eurprd08.prod.outlook.com (2603:10a6:20b:296::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.12; Wed, 18 Jan 2023 10:32:55 +0000 Received: from DU0PR08MB9155.eurprd08.prod.outlook.com ([fe80::4718:6092:e763:4219]) by DU0PR08MB9155.eurprd08.prod.outlook.com ([fe80::4718:6092:e763:4219%2]) with mapi id 15.20.5986.022; Wed, 18 Jan 2023 10:32:55 +0000 From: Michael Riesch To: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Michael Riesch , Gerald Loacker , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Sakari Ailus , Shawn Tu , Laurent Pinchart , Hans Verkuil , Marco Felsch , Mikhail Rudenko , =?utf-8?q?Krzysztof_Ha=C5=82asa?= , Marek Vasut Subject: [PATCH 1/2] dt-bindings: media: i2c: add imx415 cmos image sensor Date: Wed, 18 Jan 2023 11:32:38 +0100 Message-Id: <20230118103239.3409674-2-michael.riesch@wolfvision.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230118103239.3409674-1-michael.riesch@wolfvision.net> References: <20230118103239.3409674-1-michael.riesch@wolfvision.net> X-ClientProxiedBy: ZR2P278CA0021.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:46::17) To DU0PR08MB9155.eurprd08.prod.outlook.com (2603:10a6:10:416::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR08MB9155:EE_|AS8PR08MB5990:EE_ X-MS-Office365-Filtering-Correlation-Id: 50850b39-bd3c-4364-0743-08daf93f5bf9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YadP+eanf9tbRlRwLtxHl1d08wcNsavUI6ipId/hfQOcXf0VIYkvMIBqpd03ic2QmnB4ok4cqeJpbSRvvF1vcllSYw6eADNBGFD778nkxOw5R9xkw/imgV+zOCTgiOdFUYIgayOphMlhGZbDaqGhHVtSh+LxP+mxg/nk3bX/mN7ns9oeRCytuNkhGUaFo1UdDGSmcdfojpUwAS2EjPF7Q/J4s+f3YuqlQjtI7qi0Ju01ylyTW8D7Lt8lJA8phJuk5NK35RS0sQFOd2/MTRnPDOFxLzpOfPMHbHyqiV3I8X24e/BEx/EQ9DvC1/gdJVicVypjsl68ryrr84ZZI/C+7D1HK9C6FLLREDmdfTkreylUZRMuWu+Pnn8u5H0IUJwLfnY9Ljfu5qmRdwsc+Pl46iQoWlp7TuRf7iix1TGTU9rL83Q8t3JJ2A2H7KDXqNhBs2uUi0Jfc3zgI6PjGCr76ODPdH83HBlRGpWqtP43yp7rNR0HN6begqtYQ7GB+4T6LPH3jmvBMM7+8INRbCSwKMzTtMN+Xcz+5URSFcYUFiLpqk9Gv+902Ld928HMJX5GvqCkrR6OKrNz7tXV74i2/87avSh/TJ7vOWjBygEEX1V4TU7nVTX7t5KZLjKV3orQJLh29DOynhK4SWRS0y43NOVaJ6s4t+D+OcIrh3TxT20= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU0PR08MB9155.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(39850400004)(376002)(396003)(346002)(136003)(366004)(451199015)(52116002)(4326008)(6486002)(966005)(478600001)(36756003)(86362001)(38100700002)(6512007)(1076003)(186003)(2616005)(83380400001)(2906002)(6666004)(6506007)(316002)(5660300002)(66946007)(7416002)(66476007)(8676002)(41300700001)(66556008)(8936002)(44832011)(54906003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: PQrtg3+1MdXeaB7f8sfJ8HTnJocJoHmcp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XEdn2FirSF3n52Gku7O2sMTpTWdFjq70Kialp1Pa+O+15OkOvvNM/MA1pRgFSQfQno6xSyAmLs5Q10VU1hsI0Wx2yND4f5GILrLEc9gI9wqksnq+/lJLYCwOIQB+3PJvof0udqG9gXRRucMV1JgCnJM2rZaHwy3TBL9/kiBhYkOSy/G1T1931ayiVdiUeemIkm6+Ng+AiJS0YRa4hCZSj1muEaj+WyQ8HiBge7/ZXgrMp3pdBeK3xgRmK4h+Hec3/aCHeXIxKeTmYuXUzmBN6bWI6iKpcxGJKcg7CIWnupdwLyZAjY9wUTK8YEhV+F1hm6Z7VPlx/VeTK/I2nY2EiiWPvl1b8JEzRYLGBMoN8p7EiGxG+m+fzkcBk9n5wVfkNhzex0NXaaL4YJk/IWD7pNUlmT5k6/2Cpqb5R6zA4rY87SKOerDDA2d62Uuej/Ws7Sht8XiwmSzN8+QiyS89mGlUkQxUzZF8SawbA6QPBU7rGKj7QTbcp6B6+3QjAZTdzfg82k4cK5N4KHbxkG0ZQtOU3b2eFAQZ20pikHjljs7NzskVwA830zqIT6kJfDddTUr3vOYQLo1ME+4= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 50850b39-bd3c-4364-0743-08daf93f5bf9 X-MS-Exchange-CrossTenant-AuthSource: DU0PR08MB9155.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jan 2023 10:32:54.9211 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: exebdLwgQx81IgVNf3MdmyTjZMpmTfWgR7HMop2aewK6v+GCmd3ycjlhMq0zy7U0wfWjhLLAxTXEmHr6+7jZWMp8iRazKFmaZY0FsmlQpS8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB5990 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Add devicetree binding for the Sony IMX415 CMOS image sensor. Signed-off-by: Michael Riesch --- .../bindings/media/i2c/sony,imx415.yaml | 120 ++++++++++++++++++ MAINTAINERS | 7 + 2 files changed, 127 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/sony,imx415.yaml diff --git a/Documentation/devicetree/bindings/media/i2c/sony,imx415.yaml b/Documentation/devicetree/bindings/media/i2c/sony,imx415.yaml new file mode 100644 index 000000000000..ae54834a2341 --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/sony,imx415.yaml @@ -0,0 +1,120 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/i2c/sony,imx415.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sony IMX415 CMOS Image Sensor + +maintainers: + - Michael Riesch + +description: |- + The Sony IMX415 is a diagonal 6.4 mm (Type 1/2.8) CMOS active pixel type + solid-state image sensor with a square pixel array and 8.46 M effective + pixels. This chip operates with analog 2.9 V, digital 1.1 V, and interface + 1.8 V triple power supply, and has low power consumption. + The IMX415 is programmable through I2C interface. The sensor output is + available via CSI-2 serial data output (two or four lanes). + +allOf: + - $ref: ../video-interface-devices.yaml# + +properties: + compatible: + const: sony,imx415 + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + description: Input clock (24 MHz, 27 MHz, 37.125 MHz, 72 MHz or 74.25 MHz) + items: + - const: inck + + avdd-supply: + description: Analog power supply (2.9 V) + + dvdd-supply: + description: Digital power supply (1.1 V) + + ovdd-supply: + description: Interface power supply (1.8 V) + + reset-gpios: + description: Sensor reset (XCLR) GPIO + maxItems: 1 + + flash-leds: true + + lens-focus: true + + orientation: true + + rotation: true + + port: + $ref: /schemas/graph.yaml#/properties/port + + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + + properties: + data-lanes: true + link-frequencies: true + + required: + - data-lanes + - link-frequencies + + required: + - endpoint + +required: + - compatible + - reg + - clocks + - clock-names + - avdd-supply + - dvdd-supply + - ovdd-supply + - port + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + imx415: camera-sensor@1a { + compatible = "sony,imx415"; + reg = <0x1a>; + avdd-supply = <&vcc2v9_cam>; + clocks = <&clock_cam>; + clock-names = "inck"; + dvdd-supply = <&vcc1v1_cam>; + ovdd-supply = <&vcc1v8_cam>; + lens-focus = <&vcm>; + rotation = <180>; + orientation = <2>; + reset-gpios = <&gpio_expander 14 GPIO_ACTIVE_LOW>; + + port { + imx415_ep: endpoint { + remote-endpoint = <&mipi_in>; + clock-lanes = <0>; + data-lanes = <1 2>; + }; + }; + }; + }; +... diff --git a/MAINTAINERS b/MAINTAINERS index f61eb221415b..c9fa893bf649 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -19493,6 +19493,13 @@ T: git git://linuxtv.org/media_tree.git F: Documentation/devicetree/bindings/media/i2c/sony,imx412.yaml F: drivers/media/i2c/imx412.c +SONY IMX415 SENSOR DRIVER +M: Michael Riesch +L: linux-media@vger.kernel.org +S: Maintained +T: git git://linuxtv.org/media_tree.git +F: Documentation/devicetree/bindings/media/i2c/sony,imx415.yaml + SONY MEMORYSTICK SUBSYSTEM M: Maxim Levitsky M: Alex Dubov