From nobody Fri Sep 20 01:40:27 2024 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (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 DBB96154444 for ; Mon, 29 Jul 2024 14:48:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722264495; cv=none; b=u8XMUwH0fdAyrQlj8fFzgwEdE/Vj6BlEtKqQfw7mbxl0LCid+YMo1rrDDeGBtQ8UmOnqcbp9P26mFfQXVDrvfBpw6xKZKf41shAFWLhtPLxv1eC/dMvDW/kn2PMZR3vppbuez/WP+ymxWjQTKokITrSGSuVRQgUzmAlsZpeoO6U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722264495; c=relaxed/simple; bh=mvLYEMNbb38v1ffOgbNje3HAbrH31/YguMc4P7yIbaM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=LirWnjpDctxwkkRIJK7eR4scT+FjOdj3+azqxplvFu0abMydvbdU63R05QO1OPJhOxKEA5TRgBYHVMX5g29VqrDv0HDHxCJJuCT0fAB1nFYcjXqk1SRnZXneeN/kAEbN8/qER3jEpkiwbET4EvTjKuhZeNpoUrRgYAGaM5HLcFQ= 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=ABAJxpTy; arc=none smtp.client-ip=209.85.128.43 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="ABAJxpTy" Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-4280c55e488so11475175e9.0 for ; Mon, 29 Jul 2024 07:48:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1722264491; x=1722869291; 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=El6+JDl0XXF4OJ/yktsnr1UYCyb9C9pq8a3SoWQOeX0=; b=ABAJxpTygzvIrRawhXdz11FQFto1yYm+vaMKGAOlA0/dIj1WNeF+RcpKLo/INlx2Bb rw/qnZIUODRMSIi6TJG7Ol2fReUB4O2PQeh0ZWHnh+tcBT4tm1lzEs/ohNOWV7KDLASR gaRxqtUFSgx8LB8Ot52gfzq3L58lqJltUf7dIRxJxQ13zO3ST2fDTpYC+/aiyunF+tv1 GXllzbi94OQXAK3TkK/Q31xSnMtYfD0xMOYK7ccILYuVQAoZGw8uLMTgAQlWnIdIAu8u gNeXGQY9JoPbkuzVdU3afNrvjoX9w/MDL74tkS/6z9CArMxk6mfEZx39SkbD/qdh44wA wRnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722264491; x=1722869291; 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=El6+JDl0XXF4OJ/yktsnr1UYCyb9C9pq8a3SoWQOeX0=; b=ZlfZvjQswewlHXqxAeW16oK5crHdmjylO+X10TvcQbU1vp/Z8EY3Bh83oMTNmdVuFL WfkLBzp3VgIWbHVlHdYsyiFRsdD67JNBvKLaPmoPvpXTeDMDL3uTFKf1gOBjqoc8OKJG I6sA/+K0C/ug3lCkpvOB+PuNnbY2mM9FIyray3a57ChSBWANVPfk9CP9RN2qoDw7lT9Y 1hEBt9aJHDP87wve+4jsa+lHafArmKinYqeyx4gLsOzyQHgWBxdR1fZJ2lgn1mF+LSEF Mcudu/M8PC5tZXcp3En5bCSncCoGCUg5b7sTMrQq4ZbuSeELwQAO4yqj8vULPvf6bw+n CCCA== X-Forwarded-Encrypted: i=1; AJvYcCXqHGHJy2JQLZJyGbf8Tvn0sj18VClfk5U8rJJGQXxDJ9fEGiwQqxXSEyBC6NP35juK4dwzAWyq9reDI9Al2+vYTL57B2bhZejMC/xa X-Gm-Message-State: AOJu0YynVRyAZrk/L3eUdqjA7XnuKoG/Gq20uOvSsqcK3kr1/0OJ5HuC BZsM7PuHVVh9Gl2zjaJ0dBD9vE7rY+LECUyHiE8dgTybHEyjvSweahT95XXNbS0= X-Google-Smtp-Source: AGHT+IE8FVDrhc0tNwR4hZ5qn7fS2WRYXbujGagJOFKa+MBwNXzPpEShlqQ/xLV7SOrzYFG6J3nGKg== X-Received: by 2002:a05:600c:a4b:b0:424:8dbe:817d with SMTP id 5b1f17b1804b1-42811e6ab12mr55428045e9.10.1722264491016; Mon, 29 Jul 2024 07:48:11 -0700 (PDT) Received: from [192.168.42.0] (2a02-842a-d52e-6101-6fd0-06c4-5d68-f0a5.rev.sfr.net. [2a02:842a:d52e:6101:6fd0:6c4:5d68:f0a5]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-428057b645dsm180091705e9.43.2024.07.29.07.48.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jul 2024 07:48:10 -0700 (PDT) From: Julien Stephan Date: Mon, 29 Jul 2024 16:48:01 +0200 Subject: [PATCH v6 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: <20240729-add-mtk-isp-3-0-support-v6-2-c374c9e0c672@baylibre.com> References: <20240729-add-mtk-isp-3-0-support-v6-0-c374c9e0c672@baylibre.com> In-Reply-To: <20240729-add-mtk-isp-3-0-support-v6-0-c374c9e0c672@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 Signed-off-by: Julien Stephan Reviewed-by: Rob Herring (Arm) --- .../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..fdd076756459 --- /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>; + + 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