Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp401984rdb; Sat, 17 Feb 2024 14:04:14 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVPANaoY3xvW6uMmhV/7XO+KndzlJvGkbq0Nefqboq+gwzFniD7x3YoKBIQVpPGzKZUvQLvX9I8ha9P0xKApuPuFotU67CmtvFc6MX2dg== X-Google-Smtp-Source: AGHT+IFVM5BRBYZMx+ni0atqRmaQrnL6pG5PS151pmjVpOAMEorx/CVOtjjUOC78/EsWdkCjjlhR X-Received: by 2002:a05:620a:4007:b0:787:3fa9:8880 with SMTP id h7-20020a05620a400700b007873fa98880mr7309086qko.14.1708207453898; Sat, 17 Feb 2024 14:04:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708207453; cv=pass; d=google.com; s=arc-20160816; b=AY92S0uMVVH9T+A9tgh2qBHTW3CuUuysKFV4wNcZehAG9VBkqMy0h/8xAZe1ZepRkC qP+6HNlBgBXECZpAo8WeqrUn7zeF2NXPF9GLohbXxMLRg70EOUeXwK3BrJPwhk7+A7zm RN7G0wxKMSaLK1nHDWnI7f47FfDbX8U14FZMxYO1EuVS293ff6UxT7epLR8mQ0lF2OVN imK+eoITdRGNb9eSIx8TJkpnxZAF3mDjNB7/ogwJemUHvOnRfBV9OBfv9LUSRIZXBbxn rfzqYaEC/Abeps/teZB5qbEYgYC+ReTLIREXIgr2WBM3BoVITmFQDJwa+SnHiUhvW21/ S6wA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=5M1YSE81QKZG/kSHWWVAPeSPQl4ZwhZA94VajK9D/Zg=; fh=QoL52bn8EWi6ju9+aa9GAVI2Uizvr10BRA1BcIaODNo=; b=CN0GYiJoZt/nYpvgDTlcGcGCTaeS8iSsCpSlVGs01GDWEZi5Dx3AoUmRl4JgGGFEcY /jepxv1BTvKh2Qm7Gq22wXIv1kY4+yOtxr35YV8c/WzU7+oxFpmxX3e1/qpKf2yJO1Pt m1BqsCvmPrQwvUyBiN8jdOaWAv/0An2yB92FZPVUPWtaAJUj16SzPVNwTVHPWoSGMZy2 BMYlSOM/5wkZWzZeWEUpBd8Vjrv9RaDzWZiG3gc7yGvvLH9JFLeSUmYF4tLLh9hw/Lxp AbQC+fQ5bHffhmXnMu15ZhH6WIE3utyH6/jhJLJyysDNPGaPHOVoAPS89VDv9tMRRwFA CNCA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=I9twV0LV; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-70103-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70103-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id v3-20020a05620a440300b007873073549fsi3241927qkp.752.2024.02.17.14.04.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Feb 2024 14:04:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-70103-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=I9twV0LV; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-70103-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70103-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id A4F031C21206 for ; Sat, 17 Feb 2024 22:04:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 660A780612; Sat, 17 Feb 2024 22:03:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="I9twV0LV" Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.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 E708A8005B; Sat, 17 Feb 2024 22:03:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708207427; cv=none; b=JhihOtlD2ZKNlp+DeLCJx3AcwNH2gbZayBdSbF/S3dLJb5Z+3smugv9EuoC4yDfDQxwE9zUblF8DdqWrkYg1mN6iSZUsadETcWxK86dqrdPvT5z8eLl8C85lWygLmpvqqr2P/e7Q7vPH/L8Pqi1CZJmwscPVYiA3XuWpLj/I/z8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708207427; c=relaxed/simple; bh=tuNHywPBJTYXwQUVEt7KzPYJvhBz5lRqgPaGOkUzsEA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IKdnHX0xeF0C4OKk7t/yPpT1PIx+2PQO2aEUTonBq+DDDnLsTszTMAsPuP6bkRZYGEHMnvSdpYsXTCnmP/deH+Lo/lch9B4ju4pWGH8kpbMvZK8DOWylG9OeNzEU9UkiHACdoPiPSC8M05eBW9xlq5P4nniES2oECL70hfRYU3g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=I9twV0LV; arc=none smtp.client-ip=209.85.167.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-51197ca63f5so2642328e87.1; Sat, 17 Feb 2024 14:03:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708207424; x=1708812224; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=5M1YSE81QKZG/kSHWWVAPeSPQl4ZwhZA94VajK9D/Zg=; b=I9twV0LVppLuO/a70Q0UdoHLE7cmqGjG2ZjIAycWSalyiIfmV67DrqeWqTn4rT+gym p5dJYWecHDxPzycV66P7KEbg8d16D+z+ol6sO/p89eqzkq8Mg5eBAjj1d34OmABIz70U CjZBUrOlKVZx1gwcB5u16gDyUXmOY0+dWlvrhX7mut1MCRzArqHUkVq7ahAf/P9qTmot 01WTnF8Hjn8YH9aQuAUPcMlQpkEt5reHO5u+cWcc2nwAGZN5ECtDeUl4SSutT7pjg9Cc uc99yDldcCAYLvNPng2aDA7D7EpSHn2zQZwss1QTd1uC5WBok/8Djs5sqMNfOjObR8l9 fsMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708207424; x=1708812224; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5M1YSE81QKZG/kSHWWVAPeSPQl4ZwhZA94VajK9D/Zg=; b=j/fnBLoDm9vDDdrqFJN8t7UQH1j5j2TK7YWb+VxZWl717Bal/rGhFc2uVYAJcX3RpE aNdVhr8J0ehSUtqKLUt2YsKwTMIzGy5J2/W1k1THyE3hGXxKglDknyfHYH4YTgLew5wR BhCQqwqN/ZUv6fSAUmrpJPI8aCnqVmDUzWHFi+gpwmeg2Ar/Bg5Pk2cXyJSMMIhQ1WPf s+GquaEM3zfc9Gds4Jdo/wF3XF73fpxh/Dn/4JpKif8Te2kU8DCCzxxTs0ysUNnJ/Mvb cpj2tiaSKjFKmVXk09vDaG2H7wn8SoDVCpL5QzXU2mS78e6tL7fGYEF+FYbG2Ycg6va4 hwgA== X-Forwarded-Encrypted: i=1; AJvYcCUARu30ATJDnmX72eEKvbo2Wd9knWJyWruwvaQr+tldhoNnNmTgDwmF3pWuah0j4Wi9xtAup3pMy1d84Zs7NFzKbJhK2q3gUnj4pph6ebZr2jqMZ5YYieyqF5dD9SAvdqXFcM2sYyXUl/gqdZDqmtlzOEi9Lq93Ndwy+kPy2OrvonoaMvr0 X-Gm-Message-State: AOJu0YxVjn59yh47cf1r3/krcq1zu/fGxza8BuAKeVILW2mSURnw24Mz XHMIePArPqc28av70pLEGN4WyXiem4kdKPM5tn7fi6UxmO8aqwoJ X-Received: by 2002:a19:7407:0:b0:512:9e9f:2f1d with SMTP id v7-20020a197407000000b005129e9f2f1dmr2099232lfe.58.1708207423888; Sat, 17 Feb 2024 14:03:43 -0800 (PST) Received: from localhost.localdomain ([2a05:3580:f312:6c01:1b8f:2a1b:d18:1951]) by smtp.gmail.com with ESMTPSA id p19-20020a056512313300b00511936e2d61sm363836lfd.56.2024.02.17.14.03.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Feb 2024 14:03:43 -0800 (PST) From: Andrey Skvortsov To: Sakari Ailus , Alain Volmat , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: =?UTF-8?q?Ond=C5=99ej=20Jirman?= , Pavel Machek , Arnaud Ferraris , Andrey Skvortsov Subject: [PATCH 1/2] dt-bindings: media: i2c: add galaxycore,gc2145 DVP bus support Date: Sun, 18 Feb 2024 01:03:07 +0300 Message-ID: <20240217220308.594883-2-andrej.skvortzov@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240217220308.594883-1-andrej.skvortzov@gmail.com> References: <20240217220308.594883-1-andrej.skvortzov@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Don't require link-frequencies like it's done for ov5640, that supports both CSI-2 and DVP. And v4l2_fwnode_endpoint_alloc_parse ignores link-frequencies property for DVP endpoint. It's used only for CSI-2 endpoints Signed-off-by: Andrey Skvortsov --- .../bindings/media/i2c/galaxycore,gc2145.yaml | 33 +++++++++++++++++-- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/media/i2c/galaxycore,gc2145.yaml b/Documentation/devicetree/bindings/media/i2c/galaxycore,gc2145.yaml index 1726ecca4c77..fb376b9d0f2a 100644 --- a/Documentation/devicetree/bindings/media/i2c/galaxycore,gc2145.yaml +++ b/Documentation/devicetree/bindings/media/i2c/galaxycore,gc2145.yaml @@ -61,9 +61,6 @@ properties: properties: link-frequencies: true - required: - - link-frequencies - required: - endpoint @@ -110,4 +107,34 @@ examples: }; }; + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + camera@3c { + compatible = "galaxycore,gc2145"; + reg = <0x3c>; + clocks = <&clk_ext_camera>; + iovdd-supply = <&scmi_v3v3_sw>; + avdd-supply = <&scmi_v3v3_sw>; + dvdd-supply = <&scmi_v3v3_sw>; + powerdown-gpios = <&mcp23017 3 (GPIO_ACTIVE_LOW | GPIO_PUSH_PULL)>; + reset-gpios = <&mcp23017 4 (GPIO_ACTIVE_LOW | GPIO_PUSH_PULL)>; + + port { + endpoint { + remote-endpoint = <¶llel_from_gc2145>; + bus-width = <8>; + hsync-active = <1>; + vsync-active = <1>; + data-active = <1>; + pclk-sample = <1>; + }; + }; + }; + }; + ... -- 2.43.0