From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4C7DE3CCA19 for ; Fri, 5 Jun 2026 08:28:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.61.82.184 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780648107; cv=none; b=gc/PvDV/v9cVH0+nU2VNWIjJzXk5SAQmEkzLWAm3/kS90H9pGkx7YFiAuz5rxALg9iJhvpgW/vXXRn5rV+0mICzR2E5KVsSyMsJ4aXmIgUmQ5JYbvwwOtdAoDNm4FZ3aEB7kRgC3bjn1D1cz0Gw/5gDdkoho6TWPjPZuaZQ+BFo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780648107; c=relaxed/simple; bh=ySOt6TS/0vB9/nIPIomkU/iLKo62zNU0PSaoYs1yc64=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=h4V/5IL4d71sz8ICNnuLlo/GfX9mpwgmjg2du84KEStp/I6lzz8m0Go4aXEPniHhKCLVlwUCBALNzXftkbX8ArzQUMjQOR36MOuKcLTCxoisiO7NelxRxZJSOw7DVZHeO/EFYcTJ22r+oMOwkkLiyADOBgOYLM/TIMyFSmJ4KqA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com; spf=pass smtp.mailfrom=mediatek.com; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b=OVl3P2mK; arc=none smtp.client-ip=210.61.82.184 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mediatek.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="OVl3P2mK" X-UUID: 82a8468260b811f18dc8c9802ae25ab1-20260605 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=VXB/XnlUH5N+OdMSntezinBqogXwuskEjjKrwrJejx8=; b=OVl3P2mKz64rKwcItuGBTgqsxgHe1G39Q06fZqBdHiNQEDo9qcl8QJ1mlBLCKsyVnPhayVrV5yik/JzA9Kz4Nn1OVTHCQrH5plUUR7emutATkH9QNKZYzfoEZDYfuHhRuHy9nmrZ/dEctb3xZi/YWMguWc9+McGIMY9UZnInuI8=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.3.15,REQID:2a5e1000-2b24-4113-9d70-0a4f60408f71,IP:0,U RL:25,TC:0,Content:-25,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTI ON:release,TS:0 X-CID-META: VersionHash:e276073,CLOUDID:ada05737-f46c-458c-9a64-0117b9a7c6af,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102|136|836|865|888|898,TC:-5,Conten t:0|15|50,EDM:-3,IP:nil,URL:11|97|99|83|106|1,File:130,RT:0,Bulk:nil,QS:ni l,BEC:-1,COL:0,OSI:0,OSA:0,AV:0,LES:1,SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0,ARC:0 X-CID-BVR: 2,SSN|SDN X-CID-BAS: 2,SSN|SDN,0,_ X-CID-FACTOR: TF_CID_SPAM_ULN,TF_CID_SPAM_SNR X-CID-RHF: D41D8CD98F00B204E9800998ECF8427E X-UUID: 82a8468260b811f18dc8c9802ae25ab1-20260605 Received: from mtkmbs13n1.mediatek.inc [(172.21.101.193)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 491185138; Fri, 05 Jun 2026 16:28:20 +0800 Received: from mtkmbs13n2.mediatek.inc (172.21.101.108) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.29; Fri, 5 Jun 2026 16:28:19 +0800 Received: from mtksitap99.mediatek.inc (10.233.130.16) by mtkmbs13n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.2562.29 via Frontend Transport; Fri, 5 Jun 2026 16:28:19 +0800 From: Sarang Chaudhari To: Rob Herring , AngeloGioacchino Del Regno , Mauro Carvalho Chehab , , , CC: , , , Sarang Chaudhari Subject: [PATCH v6 1/4] media: dt-bindings: mediatek: Add AIE face detection support for MT8188 Date: Fri, 5 Jun 2026 16:28:00 +0800 Message-ID: <20260605082816.2589809-1-sarang.chaudhari@mediatek.com> X-Mailer: git-send-email 2.45.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-MTK: N Add YAML device tree bindings for the MediaTek AI Engine (AIE) hardware accelerator found in MT8188 SoCs. The AIE provides hardware-accelerated face detection, facial landmark detection, and face attribute analysis capabilities. Add a MAINTAINERS entry covering the binding, the UAPI header and the driver directory. Signed-off-by: Sarang Chaudhari --- Changes in v6: - Add ipe-smi-larb12 clock to the binding (was missing in v5 binding but present in v5 dtsi). - Remove iommus from required properties (made optional for platforms that can operate without IOMMU). - Add mediatek,larb as an optional property. - Improve description text. Changes in v5: - Modify the description to make it more concise. - Delete the description of reg. - Modify the description of iommus and delete the maxItems of iommus. - Delete all mediatek,larb. - Modify the name of clock, change _ to -. Changes in v4: - Remove address-cells and size-cells. - Remove larb12 related content. - Update id content. Changes in v3: None Changes in v2: - Fix coding style. .../bindings/media/mediatek,mt8188-aie.yaml | 85 +++++++++++++++++++ MAINTAINERS | 10 +++ 2 files changed, 95 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/mediatek,mt8188-aie.yaml diff --git a/Documentation/devicetree/bindings/media/mediatek,mt8188-aie.yaml b/Documentation/devicetree/bindings/media/mediatek,mt8188-aie.yaml new file mode 100644 index 0000000..ab888f0 --- /dev/null +++ b/Documentation/devicetree/bindings/media/mediatek,mt8188-aie.yaml @@ -0,0 +1,85 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/mediatek,mt8188-aie.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek AI Engine (AIE) for Face Detection + +maintainers: + - Fish Wu + - Bo Kong + +description: | + The MediaTek AI Engine (AIE) provides hardware-accelerated face detection, + facial landmark detection, and face attribute analysis. It is found in the + IPE (Image Processing Engine) subsystem of MediaTek SoCs. + +properties: + compatible: + enum: + - mediatek,mt8188-aie + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + items: + - description: clock for imgsys main ipe + - description: clock for ipe fdvt + - description: clock for ipe smi larb12 + - description: clock for ipe top + + clock-names: + items: + - const: img-ipe + - const: ipe-fdvt + - const: ipe-smi-larb12 + - const: ipe-top + + power-domains: + maxItems: 1 + + iommus: + maxItems: 1 + + mediatek,larb: + $ref: /schemas/types.yaml#/definitions/phandle + description: phandle to the local arbiter (LARB) node + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - power-domains + +additionalProperties: false + +examples: + - | + #include + #include + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + aie@15310000 { + compatible = "mediatek,mt8188-aie"; + reg = <0 0x15310000 0 0x1000>; + interrupts = ; + clocks = <&imgsys CLK_IMGSYS_MAIN_IPE>, + <&ipesys CLK_IPE_FDVT>, + <&ipesys CLK_IPE_SMI_LARB12>, + <&ipesys CLK_IPESYS_TOP>; + clock-names = "img-ipe", "ipe-fdvt", + "ipe-smi-larb12", "ipe-top"; + power-domains = <&spm MT8188_POWER_DOMAIN_IPE>; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index afb7487..fa631d6 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3,6 +3,16 @@ M: Felix Fietkau S: Maintained F: drivers/net/ethernet/mediatek/ +MEDIATEK MT8188 AIE DRIVER +M: Fish Wu +M: Bo Kong +L: linux-media@vger.kernel.org +L: linux-mediatek@lists.infradead.org (moderated for non-subscribers) +S: Maintained +F: Documentation/devicetree/bindings/media/mediatek,mt8188-aie.yaml +F: drivers/media/platform/mediatek/aie/ +F: include/uapi/linux/mtk_aie_v4l2_controls.h + MEDIATEK MDP DRIVER M: Minghsiu Tsai S: Supported -- 2.45.2