From patchwork Thu Jul 4 13:36:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Stephan X-Patchwork-Id: 13723768 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6C792C30653 for ; Thu, 4 Jul 2024 13:37:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ZYPMoH4bkrCa+3pw12nCoA9Tah8I9q1IjZ3LY8Md8Pc=; b=cZZxWFz4Dy8x/TTiEgXgIcjS2V YvCeODKBoAFgiJYPGh+QcnZXsiusWwZy3FxhnvUqjxVSmpGMIR4+bw9/TvNESbGkO6fV0yHYnUFg2 D4BTtCHVirmElvMcI43WmCn8nBxEJukgiKAzwGJro/Yfvoy/B23SKreZJGo6rDHIKdtHXNkk0YE0A /G4omcwLKJ0woIQ+O3gYA1rCh11RIphcqF0BA+FhIIo3wGkPC8ANdaTv4EjKzpwb8eCDNvH+TFuim RtwGXEDbfKLuJ0ZZEcmF9u8VNzk8c6hn/6Ktp6iDbIuRBHncs4JATzmSWfHHkQ2HqFuB+knBCCWm8 xFZxgudA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sPMeL-0000000DJ3D-0JNO; Thu, 04 Jul 2024 13:37:25 +0000 Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sPMdi-0000000DIl9-0X67 for linux-arm-kernel@lists.infradead.org; Thu, 04 Jul 2024 13:36:49 +0000 Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-52e992a24a1so723623e87.0 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=lists.infradead.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=Aqu/3foYazwpj9jkLDsNaXpXgR7V5gHwNv3M421U0B0JVQ5m0hx1QJrpFVoCf4FbPH XzqcDLqAM/daetRzidtP9HZSCOel4s18I5RFWWLNALaIgDqQobZqe06wlzvLfEpRjmND WvsFudJE1KI3fM7l8Kgu+Sn5iCYbUQCLVQj3TQ9MyI766Ih5B+rWLhtY5XEUNPs9lUMb Huj2RajltcTTf071WmOtlA/btyJSrqoN2HT1NDRyluneDi2lgcW69/vjhVJ2HKMWpXLa yxW9iqCty4dkEBtGC259UKnMk+VEUsXzffPYrvZIlaq7clhTbIsOyrqr8p3xjJqd8e1C XceQ== 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=exciOZf0TUVAd+RE3IQkPWU5eKK3MF27xxc1Uvj3e+FDAPeN7b26e2cXz7h8/2FIfV NVoGhtYRkugIKlGfD24ZEVpqlMVpu4pkkv1EFHmYBh9lCZq+zoU5nGRt1/HOwKbbgGKJ shfnPYJGk+qZlNFru4B/da1nyHrAcdno+BYgphgp64veixoYO/+/XPMUZfk37ZfRp/z1 VH07s9RT1CPJfU96ydnx6z60rxCIun0qsAJSkjsKGyWHQyawQgz4kr7TqrgOYOjCjr0V hbkB+wKA9w6/i/e0ESS7Qq3Wob3BpTVa9gbvuNu8bK+WEJtMkGY3mAkU9mr1VtHTv5v4 Qyqg== X-Forwarded-Encrypted: i=1; AJvYcCXGAHEspa9NTNkSgjUFVKLnimLZ5qATAxek1p66XDKxZDnabaIdn/j5KClbU6gPjkxsiIAFOq7CXFWSBCIkgpBED6bYpD2GwVrx0Pnhjenw9oJC9rI= X-Gm-Message-State: AOJu0Yy+TtQpizXO6YK5Hhn+C5ZMrvGwHXx4URaU2QDP2gU2TkTzQ/MN IFwuuYVWt7X6whKYYwnDe0WCq9MnA87LzaotvJmuq0m6+j9v/Zypm7Xf8k81b3w= 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 MIME-Version: 1.0 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240704_063646_235121_261E55E3 X-CRM114-Status: GOOD ( 16.88 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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.com 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 = <2>; + #size-cells = <2>; + + camsv1: camsv@15050000 { + compatible = "mediatek,mt8365-camsv"; + reg = <0 0x15050000 0 0x0040>, + <0 0x15050208 0 0x0020>, + <0 0x15050400 0 0x0100>; + interrupts = ; + clocks = <&camsys CLK_CAM>, + <&camsys CLK_CAMTG>, + <&camsys CLK_CAMSV0>; + clock-names = "cam", "camtg", "camsv"; + iommus = <&iommu M4U_PORT_CAM_IMGO>; + power-domains = <&spm MT8365_POWER_DOMAIN_CAM>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + port@0 { + reg = <0>; + camsv1_endpoint: endpoint { + remote-endpoint = <&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 MEDIATEK SMI DRIVER