linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "CK Hu (胡俊光)" <ck.hu@mediatek.com>
To: "robh@kernel.org" <robh@kernel.org>,
	"mchehab@kernel.org" <mchehab@kernel.org>,
	"krzk+dt@kernel.org" <krzk+dt@kernel.org>,
	"conor+dt@kernel.org" <conor+dt@kernel.org>,
	"matthias.bgg@gmail.com" <matthias.bgg@gmail.com>,
	"Shangyao Lin (林上堯)" <Shangyao.Lin@mediatek.com>,
	"AngeloGioacchino Del Regno"
	<angelogioacchino.delregno@collabora.com>
Cc: "linux-media@vger.kernel.org" <linux-media@vger.kernel.org>,
	"linaro-mm-sig@lists.linaro.org" <linaro-mm-sig@lists.linaro.org>,
	Project_Global_Chrome_Upstream_Group
	<Project_Global_Chrome_Upstream_Group@mediatek.com>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"dri-devel@lists.freedesktop.org"
	<dri-devel@lists.freedesktop.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>,
	"linux-mediatek@lists.infradead.org"
	<linux-mediatek@lists.infradead.org>
Subject: Re: [PATCH v2 03/13] dt-bindings: media: mediatek: add cam-raw binding
Date: Tue, 15 Jul 2025 08:13:21 +0000	[thread overview]
Message-ID: <5f92b96a927c193232a3b11d96c3986448dd8dd2.camel@mediatek.com> (raw)
In-Reply-To: <20250707013154.4055874-4-shangyao.lin@mediatek.com>

On Mon, 2025-07-07 at 09:31 +0800, shangyao lin wrote:
> From: "shangyao.lin" <shangyao.lin@mediatek.com>
> 
> Add camera isp7x module device document.
> 
> ---

[snip]

> +$id: https://urldefense.com/v3/__http://devicetree.org/schemas/media/mediatek/mediatek,cam-raw.yaml*__;Iw!!CTRNKA9wMg0ARbw!huoB5nm0-eewqNovfUlZpTbH1XdMjr0yWt3-_bNow3GppcMua0_ihDD4W1-due6CzcSdZJqTKs9hUNrWwljl0mM$ 
> +$schema: https://urldefense.com/v3/__http://devicetree.org/meta-schemas/core.yaml*__;Iw!!CTRNKA9wMg0ARbw!huoB5nm0-eewqNovfUlZpTbH1XdMjr0yWt3-_bNow3GppcMua0_ihDD4W1-due6CzcSdZJqTKs9hUNrWTOQ4FiY$ 
> +
> +title: The cam-raw unit of MediaTek ISP system
> +
> +maintainers:
> +  - Shangyao Lin <shangyao.lin@mediatek.com>
> +  - Shu-hsiang Yang <shu-hsiang.yang@mediatek.com>
> +  - Shun-yi Wang <shun-yi.wang@mediatek.com>
> +  - Teddy Chen <teddy.chen@mediatek.com>
> +
> +description:
> +  MediaTek cam-raw is the camera RAW processing unit in MediaTek SoC.

After reading this description, I still don't understand what is cam-raw.
Describe more here.
What's the main function of it?
It has many iommu port, introduce the function of each port.

Regards,
CK

> +
> +properties:
> +  compatible:
> +    const: mediatek,mt8188-cam-raw
> +
> +  reg:
> +    minItems: 1
> +    maxItems: 2
> +    description:
> +      Base address and optional inner base address of the cam-raw hardware block.
> +
> +  reg-names:
> +    items:
> +      - const: base
> +      - const: inner_base
> +    minItems: 1
> +    maxItems: 2
> +    description:
> +      Names for each register region. Must be "base" and optionally "inner_base".
> +
> +  mediatek,larbs:
> +    description:
> +      List of phandles to the local arbiters in the current SoCs.
> +      Refer to bindings/memory-controllers/mediatek,smi-larb.yaml.
> +    $ref: /schemas/types.yaml#/definitions/phandle-array
> +    minItems: 1
> +    maxItems: 32
> +
> +  interrupts:
> +    minItems: 1
> +    description: Interrupts for the cam-raw block.
> +
> +  dma-ranges:
> +    minItems: 1
> +    description: Address information of IOMMU mapping to memory.
> +
> +  power-domains:
> +    minItems: 1
> +    description: Power domains for the cam-raw block.
> +
> +  clocks:
> +    minItems: 4
> +    maxItems: 16
> +    description: List of phandles to the clocks required by the cam-raw block.
> +
> +  clock-names:
> +    items:
> +      - const: camsys_cam2mm0_cgpdn
> +      - const: camsys_cam2mm1_cgpdn
> +      - const: camsys_cam2sys_cgpdn
> +      - const: camsys_cam_cgpdn
> +      - const: camsys_camtg_cgpdn
> +      - const: camsys_rawa_larbx_cgpdn
> +      - const: camsys_rawa_cam_cgpdn
> +      - const: camsys_rawa_camtg_cgpdn
> +      - const: topckgen_top_cam
> +      - const: topckgen_top_camtg
> +      - const: topckgen_top_camtm
> +    minItems: 4
> +    maxItems: 16
> +    description: Names of the clocks, must match the order of the clocks property.
> +
> +  iommus:
> +    minItems: 1
> +    maxItems: 32
> +    description: Points to the respective IOMMU block with master port as argument.
> +
> +required:
> +  - compatible
> +  - reg
> +  - reg-names
> +  - interrupts
> +  - power-domains
> +  - clocks
> +  - clock-names
> +  - iommus
> +
> +additionalProperties: false
> +
> +examples:
> +  - |
> +    #include <dt-bindings/interrupt-controller/arm-gic.h>
> +    #include <dt-bindings/interrupt-controller/irq.h>
> +    #include <dt-bindings/power/mediatek,mt8188-power.h>
> +    #include <dt-bindings/clock/mediatek,mt8188-clk.h>
> +    #include <dt-bindings/memory/mediatek,mt8188-memory-port.h>
> +
> +    soc {
> +      raw@16030000 {
> +        compatible = "mediatek,mt8188-cam-raw";
> +        reg = <0 0x16030000 0 0x8000>,
> +              <0 0x16038000 0 0x8000>;
> +        reg-names = "base", "inner_base";
> +        interrupts = <GIC_SPI 300 IRQ_TYPE_LEVEL_HIGH 0>;
> +        dma-ranges = <0x2 0x0 0x0 0x40000000 0x1 0x0>;
> +        power-domains = <&spm MT8188_POWER_DOMAIN_CAM_SUBA>;
> +        clocks = <&camsys CLK_CAM_MAIN_CAM2MM0_GALS>,
> +                 <&camsys CLK_CAM_MAIN_CAM2MM1_GALS>,
> +                 <&camsys CLK_CAM_MAIN_CAM2SYS_GALS>,
> +                 <&camsys CLK_CAM_MAIN_CAM>,
> +                 <&camsys CLK_CAM_MAIN_CAMTG>,
> +                 <&camsys_rawa CLK_CAM_RAWA_LARBX>,
> +                 <&camsys_rawa CLK_CAM_RAWA_CAM>,
> +                 <&camsys_rawa CLK_CAM_RAWA_CAMTG>,
> +                 <&topckgen CLK_TOP_CAM>,
> +                 <&topckgen CLK_TOP_CAMTG>,
> +                 <&topckgen CLK_TOP_CAMTM>;
> +        clock-names = "camsys_cam2mm0_cgpdn",
> +                      "camsys_cam2mm1_cgpdn",
> +                      "camsys_cam2sys_cgpdn",
> +                      "camsys_cam_cgpdn",
> +                      "camsys_camtg_cgpdn",
> +                      "camsys_rawa_larbx_cgpdn",
> +                      "camsys_rawa_cam_cgpdn",
> +                      "camsys_rawa_camtg_cgpdn",
> +                      "topckgen_top_cam",
> +                      "topckgen_top_camtg",
> +                      "topckgen_top_camtm";
> +        iommus = <&vpp_iommu M4U_PORT_L16A_IMGO_R1>,
> +                 <&vpp_iommu M4U_PORT_L16A_CQI_R1>,
> +                 <&vpp_iommu M4U_PORT_L16A_CQI_R2>,
> +                 <&vpp_iommu M4U_PORT_L16A_BPCI_R1>,
> +                 <&vpp_iommu M4U_PORT_L16A_LSCI_R1>,
> +                 <&vpp_iommu M4U_PORT_L16A_RAWI_R2>,
> +                 <&vpp_iommu M4U_PORT_L16A_RAWI_R3>,
> +                 <&vpp_iommu M4U_PORT_L16A_UFDI_R2>,
> +                 <&vpp_iommu M4U_PORT_L16A_UFDI_R3>,
> +                 <&vpp_iommu M4U_PORT_L16A_RAWI_R4>,
> +                 <&vpp_iommu M4U_PORT_L16A_RAWI_R5>,
> +                 <&vpp_iommu M4U_PORT_L16A_AAI_R1>,
> +                 <&vpp_iommu M4U_PORT_L16A_UFDI_R5>,
> +                 <&vpp_iommu M4U_PORT_L16A_FHO_R1>,
> +                 <&vpp_iommu M4U_PORT_L16A_AAO_R1>,
> +                 <&vpp_iommu M4U_PORT_L16A_TSFSO_R1>,
> +                 <&vpp_iommu M4U_PORT_L16A_FLKO_R1>;
> +      };
> +    };
> +
> +...
> \ No newline at end of file


  parent reply	other threads:[~2025-07-15  8:13 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-07  1:31 [PATCH v2 00/13] Add MediaTek ISP7.x camera system support shangyao lin
2025-07-07  1:31 ` [PATCH v2 01/13] dt-bindings: media: mediatek: add camisp binding shangyao lin
2025-07-07  2:46   ` Rob Herring (Arm)
2025-07-07  5:42   ` Krzysztof Kozlowski
2025-07-15  8:25   ` CK Hu (胡俊光)
2025-07-07  1:31 ` [PATCH v2 02/13] dt-bindings: media: mediatek: add seninf-core binding shangyao lin
2025-07-07  2:46   ` Rob Herring (Arm)
2025-07-07  5:44   ` Krzysztof Kozlowski
2025-07-15  7:28   ` CK Hu (胡俊光)
2025-07-07  1:31 ` [PATCH v2 03/13] dt-bindings: media: mediatek: add cam-raw binding shangyao lin
2025-07-07  2:46   ` Rob Herring (Arm)
2025-07-07  5:48   ` Krzysztof Kozlowski
2025-07-15  8:13   ` CK Hu (胡俊光) [this message]
2025-07-07  1:31 ` [PATCH v2 04/13] dt-bindings: media: mediatek: add cam-yuv binding shangyao lin
2025-07-07  2:46   ` Rob Herring (Arm)
2025-07-07  5:47   ` Krzysztof Kozlowski
2025-07-15  7:41   ` CK Hu (胡俊光)
2025-07-07  1:31 ` [PATCH v2 05/13] media: platform: mediatek: add isp_7x seninf unit shangyao lin
2025-07-07  5:50   ` Krzysztof Kozlowski
2025-07-10  6:39   ` CK Hu (胡俊光)
2025-07-16  4:06   ` CK Hu (胡俊光)
2025-07-07  1:31 ` [PATCH v2 06/13] media: platform: mediatek: add isp_7x state ctrl shangyao lin
2025-07-11  8:56   ` CK Hu (胡俊光)
2025-07-21  1:40   ` CK Hu (胡俊光)
2025-07-07  1:31 ` [PATCH v2 07/13] MEDIA: PLATFORM: MEDIATEK: ADD ISP_7X CAM-RAW UNIT shangyao lin
2025-07-15  4:07   ` CK Hu (胡俊光)
2025-07-07  1:31 ` [PATCH v2 08/13] media: platform: mediatek: add isp_7x camsys unit shangyao lin
2025-07-07  5:58   ` Krzysztof Kozlowski
2025-07-10  5:20   ` CK Hu (胡俊光)
2025-07-10  7:46   ` CK Hu (胡俊光)
2025-07-24  8:36   ` CK Hu (胡俊光)
2025-07-07  1:31 ` [PATCH v2 09/13] media: platform: mediatek: add isp_7x utility shangyao lin
2025-07-22  2:19   ` CK Hu (胡俊光)
2025-07-07  1:31 ` [PATCH v2 10/13] media: platform: mediatek: add isp_7x video ops shangyao lin
2025-08-01  5:45   ` CK Hu (胡俊光)
2025-07-07  1:31 ` [PATCH v2 11/13] media: platform: mediatek: add isp_7x build config shangyao lin
2025-07-07  1:31 ` [PATCH v2 12/13] uapi: linux: add mediatek isp_7x camsys user api shangyao lin
2025-07-08  1:34   ` CK Hu (胡俊光)
2025-07-07  1:31 ` [PATCH v2 13/13] media: uapi: mediatek: document ISP7x camera system and user controls shangyao lin
2025-07-11  3:12   ` CK Hu (胡俊光)
2025-07-07  5:55 ` [PATCH v2 00/13] Add MediaTek ISP7.x camera system support Krzysztof Kozlowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5f92b96a927c193232a3b11d96c3986448dd8dd2.camel@mediatek.com \
    --to=ck.hu@mediatek.com \
    --cc=Project_Global_Chrome_Upstream_Group@mediatek.com \
    --cc=Shangyao.Lin@mediatek.com \
    --cc=angelogioacchino.delregno@collabora.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=krzk+dt@kernel.org \
    --cc=linaro-mm-sig@lists.linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=matthias.bgg@gmail.com \
    --cc=mchehab@kernel.org \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).