From patchwork Fri Jun 28 21:17:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Spencer Hill X-Patchwork-Id: 13716662 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04on2110.outbound.protection.outlook.com [40.107.102.110]) (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 4BD497BB0A; Fri, 28 Jun 2024 21:17:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.102.110 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719609438; cv=fail; b=h28smC8nGwOVJptB2fMu/8pEvWX1MpL6He28YDNSpirXIMUWUbN+kL7LPlEG8vgVxdx1RH/ZR79CYKKVbjMYsNWfZes5dcvtT992+o8MTUC5+Qg6sh6Q0TgAn4YOJD4nEzZoY7yGl6DijnMkZuArbnM6jZva2hnP9x3bAdsEtSI= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719609438; c=relaxed/simple; bh=fAWf46ncXXb9dmffePnSvfIo9PFaHGPbEWh7okKhwGM=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=l+iI3uSYgGtFyDtWoKR7n1MJmtzKckYdtIK81qtfNwPdJR3IwI1wG+LnfLGU9l3ePWXnnL22S66BmXYlvEhUwiMw7+TgqA2TESFW5WkN31rB7vKcRMJEeOsm1glKnf/G+Bl9ZwGBs/zZPwM7k/dA2yaOxXE12aZcmH4VkEuqVz0= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=d3engineering.com; spf=pass smtp.mailfrom=d3engineering.com; dkim=pass (1024-bit key) header.d=d3engineering.com header.i=@d3engineering.com header.b=vYwhF+wZ; arc=fail smtp.client-ip=40.107.102.110 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=d3engineering.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=d3engineering.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=d3engineering.com header.i=@d3engineering.com header.b="vYwhF+wZ" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VcAV5I3QwPaUwzV7dwKL8pRq1hDq4m9EuG6i93LJJwJB2yu9d7GuX0yWd1niYJ+Q9+WdEnapUefnFb79CmBQgtH+spHpL62n9AW/yLs9UZWriVaRb4MYYIEh3BDc9oqz+cgOwOXGWXcAgyVEnITv+8hw1dfFRNILg88Dqs+cQmBw9qIgH07aQWg+pipnZDEUYHBpZsTNBPwmntQUqDy1JVpyoM59jeitkFKmeqOomzTipWL5o8iepFWYe4X+KX6lSkJ6/lJWThNmg6qRd+Y7U9UmoG1jZ5O7UjPrdEptwLpE89gUd+U785IyNJXXr68OnWxZcBMfvKOdLceKnMomeA== 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=hNkm38ZURXntlQyXUM7MtRje49xmRoDMoSU1iHVyhuU=; b=Q4nwn+jvyv+17v5zbEZz4gIxRk748GuX5Bhye2xGckPPRRmQvk7CFDsIN1hTRm9wJDlTvTTt22vVxTam7ZeKx9PBiods/+tVJ4QTYLt6QfpnV/b0v86+NLy1ALo2iDWS0WWBBkLd67kvTFFrT34ncHM4IhjpZnTN5wLCGE1AIC33s/6SLMbzW3OLxyc7ZngGCfjBCfw6FL92ZMBQedU6X3CWXPumFdvu8W3tOzNCecKmAMnNjUDfArjEdQwGgSjkwCtNO38P3/byxHSzmrW+4jzh+c2+lS2omUay03AraZnKdpYQHQCaepmsCVtW4YGK1DToj3Y41Dmavh4xd9hAJg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=d3engineering.com; dmarc=pass action=none header.from=d3engineering.com; dkim=pass header.d=d3engineering.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=d3engineering.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hNkm38ZURXntlQyXUM7MtRje49xmRoDMoSU1iHVyhuU=; b=vYwhF+wZs79LfeiI/KYAjlbraMWR7qte4cOPw4Afe/UsOcKJcmBQY1cCbIASVFMyAmkr0FhLV78WHqvELp/nM5XZ4iovLTc9mrdRwistP9RlzgoBrvtj3N/ocGK7jY+/tPOa4Qxtfd64AbwTogz29BbklXEtviJUbcqyRzkv3yo= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=d3engineering.com; Received: from CO6PR14MB4385.namprd14.prod.outlook.com (2603:10b6:5:34c::9) by BN8PR14MB3314.namprd14.prod.outlook.com (2603:10b6:408:78::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.8; Fri, 28 Jun 2024 21:17:13 +0000 Received: from CO6PR14MB4385.namprd14.prod.outlook.com ([fe80::14b7:fa74:423b:6864]) by CO6PR14MB4385.namprd14.prod.outlook.com ([fe80::14b7:fa74:423b:6864%4]) with mapi id 15.20.7719.014; Fri, 28 Jun 2024 21:17:13 +0000 From: Spencer Hill Date: Fri, 28 Jun 2024 17:17:00 -0400 Subject: [PATCH v2 1/2] media: dt-bindings: Add Sony IMX728 Message-Id: <20240628-imx728-driver-v2-1-80efa6774286@d3engineering.com> References: <20240628-imx728-driver-v2-0-80efa6774286@d3engineering.com> In-Reply-To: <20240628-imx728-driver-v2-0-80efa6774286@d3engineering.com> To: Mauro Carvalho Chehab , Sakari Ailus , Spencer Hill , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Dave Stevenson , Alexander Stein Cc: linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1719609428; l=4031; i=shill@d3engineering.com; s=20240628; h=from:subject:message-id; bh=Qz911O+Q7Llxm35ZGzaCO5leDDGhmHT0rY7rSuvLaqs=; b=4+EcCQ8Sk4zrGKBHJPnx7GJ5XjOygz7ea2APzX7Lnlb/z5tSKNnKN7OaaZnT7gAmMpVdNCzBt WxVlnrZ8za8B6RPspL9IjMkLT2wJgAv2Gw82kUGig+ZoZwok5JcP4rD X-Developer-Key: i=shill@d3engineering.com; a=ed25519; pk=WiUnCaWmHh41mktqx3wOb/1u4lviNHgPHRL6fwkHnsY= X-ClientProxiedBy: MN2PR11CA0027.namprd11.prod.outlook.com (2603:10b6:208:23b::32) To CO6PR14MB4385.namprd14.prod.outlook.com (2603:10b6:5:34c::9) 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: CO6PR14MB4385:EE_|BN8PR14MB3314:EE_ X-MS-Office365-Filtering-Correlation-Id: 5f5dc40c-c89b-4cc6-caca-08dc97b7ade9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|376014|366016|52116014|1800799024|38350700014|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?Mxf0++GcGg0+LDaGsYqwWNAFCSNWabd?= =?utf-8?q?xb3g3uEzUTdDz/nMpJ1htC5eOECkCpzo9nupSxoybaZ4br2TU1FsxVLHxmIbT0Tnj?= =?utf-8?q?qZS5LEdA1B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+QDNCqqKb88zYO0hBGQXuavgAeTpV37authpp3y3VgzCFXn+8BhtzyJigJla?= =?utf-8?q?c3RCZht4aeQ1cpEP9W2FasWqx6PiELft5WoxTDHXkZwaRG9IRVah0mcWyX+T6Pye3?= =?utf-8?q?6H+dTki25j1GuDRhpCbueEBX5MwKQUaWA6ZJkpnlwS7Sub7OO+wM5sULTtT6ENnTO?= =?utf-8?q?pM7hvlsZlXk3yzvMynnFwuXEUeRiuBdueRBkvA0Fyp9mi9YY69oJUjHbXB9AxBfZT?= =?utf-8?q?h3o+fF+DpXCjtPLhxwRFs4bWGVlrwvkr8DNU5m4kHCsPR2VwuAlQcdTcZGt9wT4oL?= =?utf-8?q?4uQ2kVVTBkWH+bmPv0JnH9rWzL1l1AJ6B752N6Ue4jTg9CXfwcWQh7T0=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO6PR14MB4385.namprd14.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(7416014)(376014)(366016)(52116014)(1800799024)(38350700014)(921020);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?62jhdLC+SrAe6zQ56ADAz0SHWjlu?= =?utf-8?q?cBpjYWoZipWOTG8rpNbI97gOKuKn/zU2YryHsMws8J/7w+aGjsvZCYkTOvQdMiOki?= =?utf-8?q?e78jddWknxrACYg8lUoxqu+tfsdEy10tZSjvxiIVF0HYLgP/x3YJdqxV80UO9gL86?= =?utf-8?q?/WiLI9QjOK8hO7j7WNk2qNk7IfG5M6UtlInKHaAfz1OMn85t5wj3WqdmY7+dzebn6?= =?utf-8?q?TtLGZWkmOg3JnGXghbeJmRffq04bmk1ESccyfsn8j7Pg1+JPERsPpsaI2Y/d9J9yj?= =?utf-8?q?gHoFcaP+mHzdO6ydad5ujYlFjzVt5AkBx5EaeJYSzp9+7sZoO86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Paj+Ul9EUrMRda2f?= =?utf-8?q?MV86W0V1GMzo5bS7/6g4ly4atEMMFo6ZKwfMgljdaKWv/VZpAl1jd1Iy1P5scRb0T?= =?utf-8?q?XoL4hvOYCIoxfEkADqW5PlwZRPnJxVt9hLTilxj67fIWJ6SzcAGvLf3R+PjEYxZtb?= =?utf-8?q?YG8hpBjnOQ+2Qgc1GarbTspBi9fQqUWDGpAwlrVM40Gr9PKHQq2Q35buhREicv18h?= =?utf-8?q?8a8xaprb3+zjcFW2TMq5xoFpkgthBOI46Js41NFcuJ/Gw0IBpSnjbYR1x5H+uAZvz?= =?utf-8?q?8loX6EXrTSl+SRekajFKpf5TnzUntVkPs83+YgFyYndy+Qqr/keGx8b1A+BeQy9hT?= =?utf-8?q?gCf+LQeqbHwbYG3kbD1k0FdBTba2RJenlA=3D=3D?= X-OriginatorOrg: d3engineering.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5f5dc40c-c89b-4cc6-caca-08dc97b7ade9 X-MS-Exchange-CrossTenant-AuthSource: CO6PR14MB4385.namprd14.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jun 2024 21:17:13.3548 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b7153db5-3376-478b-b601-92ce9bc0d3bc X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ewDmY9dzqEzXLx8tQVWeSevaOyx6WLpJyaLvK7vCId4DTLjPdLHHPAVBMH485Uyq6bh0EvVYIZERLlzpBj0EWA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR14MB3314 Add bindings for Sony IMX728. Signed-off-by: Spencer Hill --- .../devicetree/bindings/media/i2c/sony,imx728.yaml | 119 +++++++++++++++++++++ MAINTAINERS | 7 ++ 2 files changed, 126 insertions(+) -- 2.43.0 Please be aware that this email includes email addresses outside of the organization. diff --git a/Documentation/devicetree/bindings/media/i2c/sony,imx728.yaml b/Documentation/devicetree/bindings/media/i2c/sony,imx728.yaml new file mode 100644 index 000000000000..1b14dbcc473a --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/sony,imx728.yaml @@ -0,0 +1,119 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/i2c/sony,imx728.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sony IMX728 Camera Sensor + +maintainers: + - Spencer Hill + +description: + The Sony IMX728 is a 1/1.72-Inch CMOS Solid-state image sensor with a + color square pixel array and 8.39M active pixels. It is programmed + through an I2C interface. + + The sensor can output up to 3840x2160 at a maximum of 45 frames/s over + a CSI-2 serial interface. It supports RAW24/20/16/12 and 10. + +properties: + compatible: + enum: + - sony,imx728 + + reg: + maxItems: 1 + + clocks: + description: Clock frequency from 18 to 30MHz + maxItems: 1 + + clock-names: + const: inck + + reset-gpios: + maxItems: 1 + description: + Specifier for the GPIO connected to the XCLR (System Reset) pin. + + avdd-supply: + description: Analog power supply (3.3V) + + dvdd-supply: + description: Digital core power supply (1.1V) + + ovdd-supply: + description: Digital I/O power supply (1.8V) + + port: + $ref: /schemas/graph.yaml#/properties/port + additionalProperties: false + + properties: + endpoint: + $ref: ../video-interfaces.yaml# + unevaluatedProperties: false + + properties: + data-lanes: + oneOf: + - items: + - const: 1 + - const: 2 + - items: + - const: 1 + - const: 2 + - const: 3 + - const: 4 + link-frequencies: true + + required: + - data-lanes + - link-frequencies + + required: + - endpoint + +required: + - compatible + - reg + - clocks + - clock-names + - port + +additionalProperties: false + +examples: + - | + #include + + i2c { + clock-frequency = <400000>; + #address-cells = <1>; + #size-cells = <0>; + + camera@1a { + compatible = "sony,imx728"; + reg = <0x1a>; + + clocks = <&fixed_clock>; + clock-names = "inck"; + + reset-gpios = <&gpio4 17 GPIO_ACTIVE_LOW>; + + avdd-supply = <&camera_vdda_3v3>; + dvdd-supply = <&camera_vddd_1v1>; + ovdd-supply = <&camera_vddo_1v8>; + + port { + camera1: endpoint { + remote-endpoint = <&csi2_phy0>; + data-lanes = <1 2 3 4>; + link-frequencies = /bits/ 64 <800000000>; + }; + }; + }; + }; + +... diff --git a/MAINTAINERS b/MAINTAINERS index ef6be9d95143..a2811249ac8c 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -20589,6 +20589,13 @@ T: git git://linuxtv.org/media_tree.git F: Documentation/devicetree/bindings/media/i2c/sony,imx415.yaml F: drivers/media/i2c/imx415.c +SONY IMX728 SENSOR DRIVER +M: Spencer Hill +L: linux-media@vger.kernel.org +S: Maintained +F: Documentation/devicetree/bindings/media/i2c/sony,imx728.yaml +F: drivers/media/i2c/imx728.c + SONY MEMORYSTICK SUBSYSTEM M: Maxim Levitsky M: Alex Dubov