From nobody Fri Sep 20 04:11:12 2024 Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) (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 197FC1AED3B for ; Thu, 4 Jul 2024 13:36:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720100208; cv=none; b=BB2Trr+SO1B0HuJFttXImoQTqOWDxNN0v+7q5NmdGy4N3YfDR25SWQ2dfuYrQsP6OeEZ5TPqZjPV4aukdx87B79OiiRYl/3yokkG3cQnfMSxwtcU7fzAnL39Kdjkkm4DgE63qNtO12ZE7UaJ6Aw7ew5N+o+zoDIVsxyLqeXgmvA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720100208; c=relaxed/simple; bh=RYYgeCPrB7TpDP5ZOKb8zJx1/s5LUJcmb8/1KsBaWcA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=A2rO5I9eH0ZdTYu6XlCC9yaGqenOwgWzhK5aK961Vvw2QXTXF8ZtedtXJMvc8XFJdQTFOVOA9G2jPWmf5N26d7GSzCh++v4k5yl768diweJteeSYRb4cDB8bvt/fy12OC/PpQYVPEprjDVbp64FV4Cd0U0SyPcBQGXGira5K+M4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=Qk7rq5LL; arc=none smtp.client-ip=209.85.167.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="Qk7rq5LL" Received: by mail-lf1-f53.google.com with SMTP id 2adb3069b0e04-52e99060b41so654910e87.2 for ; Thu, 04 Jul 2024 06:36:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1720100204; x=1720705004; 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=ZYPMoH4bkrCa+3pw12nCoA9Tah8I9q1IjZ3LY8Md8Pc=; b=Qk7rq5LLaqclLtUxSfffMDzwJ6KVbcut6mB4JPZO4uCaMXvkDV8GVP2pYZMzmmN7B4 bPEIpxVkhCgCxB3AZ7cNZuec9qREZdJt63tBZUuPblKygD24X/Xf1ZVIVOkWTiYQSy8l +DiYWBpZ1K1BI0in1/rtU4Om6dlFc3wIUhj0KZi7uzBxzBECVTUg4TcNpA7u+tvues5q UaXVvusVCi+1u0uOgi7RVM97RN6dPq/63Z81xdo1EFEvNJQ32iJ0KCPplu/zYbZxLzv8 2Ykk4KRPPll4C0DHNrrYHrTEsg9d5ZxmuGNwYijIbp8hr0Oq3/FVGHH/gvCLzJ/XJH4I 1NsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720100204; x=1720705004; 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=ZYPMoH4bkrCa+3pw12nCoA9Tah8I9q1IjZ3LY8Md8Pc=; b=Ho12CyCVCBjpci8fps+nn3/JH4qiDPGeW+odAV4K1rnBk1X+q/0+8/QQFiniZKBirA fQSFKJGmvvp4OUyJb4dcgbdnVgxC1VgFG/rpv4ACPoWYC1R+RFsRh7IawF7/qjdpT3BP 5tHcZUDCjbRueK7axonb4iAvvwc5/RE0Zm6XA0HIHK4uWvhcXTEShza2SfZpE/zJT3JH k+sTmrVNU6BjG6GD+R7gctpLgE1ErL756kz5aEuCasN40wsceaa/kn+rTB2Gms3CA1pP BAhmjXyoauyZ/G/q1I1KIqYbO0GygNEYJJ37nhsITp0nUcaKmP+pNxEukO3FqK+XhvEV nB1A== X-Forwarded-Encrypted: i=1; AJvYcCUznD+xOqYr3IH/xoJVlUYZNsC2nWCxvwsbTr9/uZF8ere6IqB80ALQ2QE9RjiFzFI7hXoxVP0sMTiWq4NeT9hLKyQcVMtQqLf9MScq X-Gm-Message-State: AOJu0YzijZvWCY5x17fhGHvAKyAtCUJwYvfCuUKoqozO7Q18bnS0rq1L dPP49pru+TQNBPmvmgEBLUjAzlEEyGng/BpVS9O7i4OosGOQlSHQkmwqMiU2W2o= X-Google-Smtp-Source: AGHT+IEhWbShkVQDJ7LiqZTQQVwiHASOCjjIiWgwIddLZs/YqTU94+mV1Q1k51ht0YvrQI4O1pNBPA== X-Received: by 2002:a19:f51a:0:b0:52e:9762:2ba4 with SMTP id 2adb3069b0e04-52ea063a4a8mr1093804e87.25.1720100204178; Thu, 04 Jul 2024 06:36:44 -0700 (PDT) Received: from [192.168.42.0] ([2a02:8428:e55b:1101:1e41:304e:170b:482f]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4264a2ca5d5sm25382025e9.30.2024.07.04.06.36.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jul 2024 06:36:43 -0700 (PDT) From: Julien Stephan Date: Thu, 04 Jul 2024 15:36:41 +0200 Subject: [PATCH v5 2/5] dt-bindings: media: add mediatek ISP3.0 camsv Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240704-add-mtk-isp-3-0-support-v5-2-bfccccc5ec21@baylibre.com> References: <20240704-add-mtk-isp-3-0-support-v5-0-bfccccc5ec21@baylibre.com> In-Reply-To: <20240704-add-mtk-isp-3-0-support-v5-0-bfccccc5ec21@baylibre.com> To: Laurent Pinchart , Andy Hsieh , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Julien Stephan , Phi-bang Nguyen X-Mailer: b4 0.13.0 From: Phi-bang Nguyen This adds the bindings, for the ISP3.0 camsv module embedded in some Mediatek SoC, such as the mt8365 Signed-off-by: Phi-bang Nguyen Link: https://lore.kernel.org/r/20230807094940.329165-4-jstephan@baylibre.c= om Signed-off-by: Julien Stephan --- .../bindings/media/mediatek,mt8365-camsv.yaml | 109 +++++++++++++++++= ++++ MAINTAINERS | 1 + 2 files changed, 110 insertions(+) diff --git a/Documentation/devicetree/bindings/media/mediatek,mt8365-camsv.= yaml b/Documentation/devicetree/bindings/media/mediatek,mt8365-camsv.yaml new file mode 100644 index 000000000000..850231e8e6c3 --- /dev/null +++ b/Documentation/devicetree/bindings/media/mediatek,mt8365-camsv.yaml @@ -0,0 +1,109 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (c) 2023 MediaTek, BayLibre +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/mediatek,mt8365-camsv.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek CAMSV 3.0 + +maintainers: + - Laurent Pinchart + - Julien Stephan + - Andy Hsieh + +description: + The CAMSV is a video capture device that includes a DMA engine connected= to + the SENINF CSI-2 receivers. The number of CAMSVs depend on the SoC model. + +properties: + compatible: + const: mediatek,mt8365-camsv + + reg: + items: + - description: camsv base + - description: img0 base + - description: tg base + + interrupts: + maxItems: 1 + + power-domains: + maxItems: 1 + + clocks: + items: + - description: cam clock + - description: camtg clock + - description: camsv clock + + clock-names: + items: + - const: cam + - const: camtg + - const: camsv + + iommus: + maxItems: 1 + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/properties/port + description: Connection to the SENINF output + + required: + - port@0 + +required: + - compatible + - interrupts + - clocks + - clock-names + - power-domains + - iommus + - ports + +additionalProperties: false + +examples: + - | + #include + #include + #include + #include + #include + + soc { + #address-cells =3D <2>; + #size-cells =3D <2>; + + camsv1: camsv@15050000 { + compatible =3D "mediatek,mt8365-camsv"; + reg =3D <0 0x15050000 0 0x0040>, + <0 0x15050208 0 0x0020>, + <0 0x15050400 0 0x0100>; + interrupts =3D ; + clocks =3D <&camsys CLK_CAM>, + <&camsys CLK_CAMTG>, + <&camsys CLK_CAMSV0>; + clock-names =3D "cam", "camtg", "camsv"; + iommus =3D <&iommu M4U_PORT_CAM_IMGO>; + power-domains =3D <&spm MT8365_POWER_DOMAIN_CAM>; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + port@0 { + reg =3D <0>; + camsv1_endpoint: endpoint { + remote-endpoint =3D <&seninf_camsv1_endpoint>; + }; + }; + }; + }; + }; +... diff --git a/MAINTAINERS b/MAINTAINERS index 6bd7df1c3e08..9ac8c08ba692 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -14163,6 +14163,7 @@ M: Laurent Pinchart M: Julien Stephan M: Andy Hsieh S: Supported +F: Documentation/devicetree/bindings/media/mediatek,mt8365-camsv.yaml F: Documentation/devicetree/bindings/media/mediatek,mt8365-seninf.yaml =20 MEDIATEK SMI DRIVER --=20 2.45.1