From patchwork Mon Apr 5 20:08:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 12183515 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 61B34C433B4 for ; Mon, 5 Apr 2021 20:10:35 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D06F8613C7 for ; Mon, 5 Apr 2021 20:10:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D06F8613C7 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=a0chBXIz2z7IMv5y7sBHzNn2HAa4mxe8E4ZqOos4OVo=; b=cR1jZQ9fUrV/RcEJTBRM9ie1wv 1m5C1Z3/9yWcYG1ifzdL/LcAj5r1yhQvvV5RPWz82ZQMM3y4B/7/ccVWIWJC45Cu7PO/42FckJKnE R1bpBTTiR6tM086XMbs7D690oUSQiGu8rL4iJGfBvksH1Z76K368cdUSjomQrThmcvXj9mKKHw3h2 wsWWI+ijgUe+w6E1I6pUF2lt2lR61C+laVSES07NWuEHu87zhqbbxRp7FCQhX2Ngc3p0imEwna/81 4oMj6o2X2rOni7vCQCeTW9AY5kOKx/8jigbktU1R3BPnWb8aFK0x3+MX3DZDAUx+l3v4IuKdzo3Wb N4bkXqdw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lTVWV-000Y4y-9h; Mon, 05 Apr 2021 20:08:35 +0000 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lTVWM-000Y0r-R0 for linux-arm-kernel@lists.infradead.org; Mon, 05 Apr 2021 20:08:29 +0000 Received: by mail-wm1-x32f.google.com with SMTP id g18-20020a7bc4d20000b0290116042cfdd8so3009435wmk.4 for ; Mon, 05 Apr 2021 13:08:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=UzJH7Fk4Fc61upKjMDDFY31BpQ2CJ0Y/l0pKp7AosC0=; b=mODRn7zvxl0fGW6yidpUQBRF97c/OL+PBw/eoFfwBcpqF5W6k26SYTHEjDXBWxi2bT TYQyvSBlDlFu6LSvRqq+gQjAU9sJUS1Zn6f2p1Tr9SysGLQ4OHC7YzjwSFZfzKxq2Wv4 7Mm7oIyndndB6lp2nFL1eEkyv1MSQo/Va3rEgZ1FORGHaDQPTLWNbWjjBpZH1xwjp3dh BV3cygGjErNUadI2ZyLGiFNdNDcSXX6n4WEFDdMsDIF4NhrJvoeWbby2EUzII+U6wFZV Sbwb1vq8Iu9eDwYQruPqUY99gvUvcY9/uPRlPEWwU+UoglD0GmSdPuNw36McAhos1TXr jdbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=UzJH7Fk4Fc61upKjMDDFY31BpQ2CJ0Y/l0pKp7AosC0=; b=Hg880nSqPpg+YjMRT6jzB7uHAP2pxkwz2BFLvsDL6ZfUY29fLw4TCtcEVjZHVzzngq WQdJ+OIC7SltbMrsxXTtUrDYmE4CbQp+J6PdVZtxO2KBvlcpM4v/wGiYkPi37CedPa7d wOGZgMI8sQcz/F4QdkuKlfTqSVCof8qeKt3+47C7E1NNw5fFRGf9HM+zb6fPA3lgGj30 L1KyHPQJl59gjDXoOwGWuDXx7wLH7S6ct/aNIXY3/Ma4ntBiBlME18stuQ7TTts6rPrK +hJcbrA94qlNWlaYXJl5/3o6hvaiBfWpopHUEH4m7ndYPMB+9X4fbWGcGVrk4aXlc4U2 5BVg== X-Gm-Message-State: AOAM5336NxvkW5thdIzBWguuiYdirkfvKrY1B2oKvDwqGPfEIr5W9aA0 Dq+iKOgDD+LI8DFI8j37RFY8rw== X-Google-Smtp-Source: ABdhPJxjoSeWcA1NNDsqV2aXCmphXzWc6o535OR+3DoQcmV5mwnWNxuP21QvzdZfY/H1pw/6atiHKg== X-Received: by 2002:a1c:7d56:: with SMTP id y83mr717892wmc.6.1617653305072; Mon, 05 Apr 2021 13:08:25 -0700 (PDT) Received: from localhost.localdomain ([88.160.162.107]) by smtp.gmail.com with ESMTPSA id v185sm609420wmb.25.2021.04.05.13.08.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Apr 2021 13:08:24 -0700 (PDT) From: Fabien Parent To: Rob Herring , Matthias Brugger Cc: mkorpershoek@baylibre.com, Fabien Parent , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/5] arm64: dts: mediatek: mt8167: add mmsys node Date: Mon, 5 Apr 2021 22:08:17 +0200 Message-Id: <20210405200821.2203458-1-fparent@baylibre.com> X-Mailer: git-send-email 2.31.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210405_210827_502145_1B88A38B X-CRM114-Status: UNSURE ( 9.99 ) X-CRM114-Notice: Please train this message. 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 Add node for MMSYS. Signed-off-by: Fabien Parent --- arch/arm64/boot/dts/mediatek/mt8167.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8167.dtsi b/arch/arm64/boot/dts/mediatek/mt8167.dtsi index 156fbdad01fb..9d765034dfb0 100644 --- a/arch/arm64/boot/dts/mediatek/mt8167.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8167.dtsi @@ -125,5 +125,11 @@ pio: pinctrl@1000b000 { #interrupt-cells = <2>; interrupts = ; }; + + mmsys: mmsys@14000000 { + compatible = "mediatek,mt8167-mmsys", "syscon"; + reg = <0 0x14000000 0 0x1000>; + #clock-cells = <1>; + }; }; }; From patchwork Mon Apr 5 20:08:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 12183517 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9272EC433ED for ; Mon, 5 Apr 2021 20:10:35 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2E207613C6 for ; Mon, 5 Apr 2021 20:10:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2E207613C6 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=TLJ7MvvTjco5kpidOoPuYq5R50ptHnQMkFFjh4uX21s=; b=Oye2XIVP/TF99+7k2mox+647F qEszxaxbsmuv4XMD0nAuTUTgjSNxbhFg4qKrx2CAuHjsaHfhDLZrBW7s1q4+Bnfg7+l41gvHI7pLa L5f/UGVnbYXBDvrqLu5PcW7X36wMK060HI+OidlW5rRW1CE5wAnN5/drl1JJqfM1pWkinem02u06s hNLR2ZzRj32ZkWofGWKNur9m/ii0VB2m/uf4RsCnlsAFQsN5AKTuB4qGEoKMr++MCcUFnka9kfPJU xbFO4NzrGXQfgS1g5u5iyeKL0hLsBxN8/gpMcxMETA1W9+S+TCTtWid3iuk1K4uqaW3Y2QQc4aG14 1bWTzc7Vg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lTVWe-000Y8G-26; Mon, 05 Apr 2021 20:08:44 +0000 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lTVWO-000Y17-2t for linux-arm-kernel@lists.infradead.org; Mon, 05 Apr 2021 20:08:29 +0000 Received: by mail-wm1-x331.google.com with SMTP id g18-20020a7bc4d20000b0290116042cfdd8so3009464wmk.4 for ; Mon, 05 Apr 2021 13:08:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8aknEMXfHwgN2+JZLeFSPHnrU6CH5XTJuE/06jhcA4M=; b=PeMmuOhPfspxHBXQBSuaj+W2sB7MTucUvkDloX4KsqMG5rMb8sTP7aROvNS+Gka7qb WUj8as9h5MfSEWB4jkxHpaOVzbN2SOWFTueVB3rObZ6IGLNQUogIhEqB8V9MTjSwZ+vg XlUxk5+sCp4l3fhbVpulvFSTrqbGeoV7T1cbaUzOFjfVf50fPGi3FfOPqa83TAXB0/Y8 WATdKCCeoSZeOOqLCgmJ+LKff428wbCuoZCpWZTiOXWkxaYA/5f+lsLA+f+BD7Cd7Pdh vpiR92fJ1S6XBbuCHhJy5yeddomOSuzZ4NI4llOFRZevhS2xNLPghAxoKbj6ow1yEQkw JmDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=8aknEMXfHwgN2+JZLeFSPHnrU6CH5XTJuE/06jhcA4M=; b=DU0yVkYZ/TOzXvvM4Drt2YdP/FDIuZCg9FZccKszE9HfHLUbtVg74GtWGtLTvbeUis TR0qgkbq735v7lmPBZMWwPmIvqVvGwQMIIQMVi7wnVJrRB8UE3m7vBuTh4R9sREKwOLy 25XPjKFCdMLtyT2jjtQIHxdB8b2G5Jir9TX6lopmhEAgeSllRbVHtePgr/BQnGUoa2XB a/sT2Of3yDi061RP7+Vq+nRbTqOkJXVYb0VtQY10FIeaRjuTjlQG3yMsqpdG7JfHDBzV +yX/015KX3Zqyb8MtukY/rFBNWAbZcg8OIKRzs/XcBHd65AIYUSr3muTRoRY7Ug9IeWY vgxg== X-Gm-Message-State: AOAM53085GBuGbi1rLJxhs5vgdLpMPl9bAr5TnMCTFprgeSXX3kws6LM XKbmIoLVoGX3L/fthqTW8jgkPQ== X-Google-Smtp-Source: ABdhPJzPj8X6QTxHPnI9UzmRqR2H2VyXqprQJZiKTL4Sys9bnTOxc1P7fNfj75aFRhkg1Gxn6jMDlQ== X-Received: by 2002:a1c:197:: with SMTP id 145mr727322wmb.48.1617653306403; Mon, 05 Apr 2021 13:08:26 -0700 (PDT) Received: from localhost.localdomain ([88.160.162.107]) by smtp.gmail.com with ESMTPSA id v185sm609420wmb.25.2021.04.05.13.08.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Apr 2021 13:08:25 -0700 (PDT) From: Fabien Parent To: Rob Herring , Matthias Brugger Cc: mkorpershoek@baylibre.com, Fabien Parent , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/5] arm64: dts: mediatek: mt8167: add smi_common node Date: Mon, 5 Apr 2021 22:08:18 +0200 Message-Id: <20210405200821.2203458-2-fparent@baylibre.com> X-Mailer: git-send-email 2.31.0 In-Reply-To: <20210405200821.2203458-1-fparent@baylibre.com> References: <20210405200821.2203458-1-fparent@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210405_210828_236069_D2A03133 X-CRM114-Status: GOOD ( 10.35 ) 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 Add the smi_common node. Signed-off-by: Fabien Parent Reported-by: kernel test robot --- arch/arm64/boot/dts/mediatek/mt8167.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8167.dtsi b/arch/arm64/boot/dts/mediatek/mt8167.dtsi index 9d765034dfb0..4b951f81db9e 100644 --- a/arch/arm64/boot/dts/mediatek/mt8167.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8167.dtsi @@ -131,5 +131,14 @@ mmsys: mmsys@14000000 { reg = <0 0x14000000 0 0x1000>; #clock-cells = <1>; }; + + smi_common: smi@14017000 { + compatible = "mediatek,mt8167-smi-common"; + reg = <0 0x14017000 0 0x1000>; + clocks = <&mmsys CLK_MM_SMI_COMMON>, + <&mmsys CLK_MM_SMI_COMMON>; + clock-names = "apb", "smi"; + power-domains = <&spm MT8167_POWER_DOMAIN_MM>; + }; }; }; From patchwork Mon Apr 5 20:08:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 12183521 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 81772C433ED for ; Mon, 5 Apr 2021 20:10:46 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 21F06613C7 for ; Mon, 5 Apr 2021 20:10:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 21F06613C7 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=52XhJQxyZQ6Kqf8en0k7IKF+xzA+cfNx95cXZuiZ5bA=; b=kO5HMmhjW64PwkoB+qZDish1l +sRvvewqtDJl/yLVCX+d/YE7K+SXIlu2U1qTN1maY+t4nJVMZqReQgZlFydVjfE+95reM58YuA/ZT 7iCFwAuWI2CXIT8Wnp6l1Zvaow1WmblK1F36QE0ro8O8BbbFw5dZrWXCoAAo8zVyURz10OjGG6GT1 7fZKK2Q8lEMtr2Yko989IMgMSkYdu4bN4tMTWnGqzgBSmSnu1cJOrJCP5/0Umdk9vucsAWlWbtyEi J2eReccbK9POYaXD7hZlQpgvfpSMYoR673Ao2dw9sCH1Fy7pTpquMiHoM5J0LfNXrg7obfPYa50ga oZW43ucQg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lTVWo-000YBM-S3; Mon, 05 Apr 2021 20:08:55 +0000 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lTVWO-000Y1b-O6 for linux-arm-kernel@lists.infradead.org; Mon, 05 Apr 2021 20:08:30 +0000 Received: by mail-wr1-x42b.google.com with SMTP id f6so5807736wrv.12 for ; Mon, 05 Apr 2021 13:08:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HQjvCSuY3St5Kr8py6j3qL+C5LXPpboAqFQK0TU9PiQ=; b=R7cCRBNeaQvmb8IkPfmisOjsWT68xXtTAVsRDbMFzIPnHyCl7/8lSiczp8zLPlDeK0 CIeI89vK102N877hxMU+u4wUJijhVgQe3HttbpYWFJ/KLVAgZ0S9G+9tM1FrfgQ0kiFW Iwe22p0tPxNbDLqmhGb/wNakVN19eYos40x1w/0EddzaYE4dYsUh4579T02OyXYKtG0x 9pHuFwSCisK9v0DOrOgbu5yPnHcx/xVPYnKBDhiePi+K27OXDVfBI3UEcIp0T1e7GLRq T7PE82WeGcQBPraAtYLgAHZ/1IyjirvkhpKgkjtwg7CXGkxncS26b/oSNvjBSdFjv7ZD 2sPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=HQjvCSuY3St5Kr8py6j3qL+C5LXPpboAqFQK0TU9PiQ=; b=BTOBkVmTtojmKBXA1ARBlMzPkUIMHXSkDMMX3/eLa74jwYpqSdKsMMannvayLazRJN lFE2x6UujF/M1sUQxSwxS1uHo3fTxXLoWplETXDfhS10d/4PPtP6S4IPpfVDYehCVh9d SqU7zGnFGICF7UeWCXdhEYC4xQgeCfW1wN8Lo6wwbz8V2p0vFSe0BEsOkXs0b+Vkbikp PRPbMpnX/YZ/cMKdg1//7oNzZpF3S9q+IXKMDl9Q7WQToTNAeLBc98UuJ3P0LkskE1sa j2T16MqcH6IrbRrpoTZjPoWV9VTWiMkZrBTqkhUA9DPzWpzfm+xuX8YBDX4bD+LEaFav DQ4A== X-Gm-Message-State: AOAM533w4lBhboLcgYAqLKfcOpagEiZBC+8l5aeaJpZIVr18XS1s8Poe iXHvmwYFPtkph5NiajSE86atgw== X-Google-Smtp-Source: ABdhPJy4L/8IJtSpiQaFFtJCSbkReJXmhnkJ9qqX03CzIEk1YXCwDpR2G3qSjmqZ7jIVRDVVmzGlxA== X-Received: by 2002:adf:ee0f:: with SMTP id y15mr6563507wrn.43.1617653307855; Mon, 05 Apr 2021 13:08:27 -0700 (PDT) Received: from localhost.localdomain ([88.160.162.107]) by smtp.gmail.com with ESMTPSA id v185sm609420wmb.25.2021.04.05.13.08.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Apr 2021 13:08:27 -0700 (PDT) From: Fabien Parent To: Rob Herring , Matthias Brugger Cc: mkorpershoek@baylibre.com, Fabien Parent , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/5] arm64: dts: mediatek: mt8167: add larb nodes Date: Mon, 5 Apr 2021 22:08:19 +0200 Message-Id: <20210405200821.2203458-3-fparent@baylibre.com> X-Mailer: git-send-email 2.31.0 In-Reply-To: <20210405200821.2203458-1-fparent@baylibre.com> References: <20210405200821.2203458-1-fparent@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210405_210829_040356_09C5CA40 X-CRM114-Status: GOOD ( 11.30 ) 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 Add larb nodes for MT8167: * larb0 is used for display (dsi and hdmi) * larb1 is used for camera (csi) * larb2 is used for the video hardware decoder Signed-off-by: Fabien Parent --- arch/arm64/boot/dts/mediatek/mt8167.dtsi | 33 ++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8167.dtsi b/arch/arm64/boot/dts/mediatek/mt8167.dtsi index 4b951f81db9e..9b352031c5f6 100644 --- a/arch/arm64/boot/dts/mediatek/mt8167.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8167.dtsi @@ -140,5 +140,38 @@ smi_common: smi@14017000 { clock-names = "apb", "smi"; power-domains = <&spm MT8167_POWER_DOMAIN_MM>; }; + + larb0: larb@14016000 { + compatible = "mediatek,mt8167-smi-larb"; + reg = <0 0x14016000 0 0x1000>; + mediatek,smi = <&smi_common>; + mediatek,larbid = <0>; + clocks = <&mmsys CLK_MM_SMI_LARB0>, + <&mmsys CLK_MM_SMI_LARB0>; + clock-names = "apb", "smi"; + power-domains = <&spm MT8167_POWER_DOMAIN_MM>; + }; + + larb1: larb@15001000 { + compatible = "mediatek,mt8167-smi-larb"; + reg = <0 0x15001000 0 0x1000>; + mediatek,smi = <&smi_common>; + mediatek,larbid = <1>; + clocks = <&imgsys CLK_IMG_LARB1_SMI>, + <&imgsys CLK_IMG_LARB1_SMI>; + clock-names = "apb", "smi"; + power-domains = <&spm MT8167_POWER_DOMAIN_ISP>; + }; + + larb2: larb@16010000 { + compatible = "mediatek,mt8167-smi-larb"; + reg = <0 0x16010000 0 0x1000>; + mediatek,smi = <&smi_common>; + mediatek,larbid = <2>; + clocks = <&vdecsys CLK_VDEC_CKEN>, + <&vdecsys CLK_VDEC_LARB1_CKEN>; + clock-names = "apb", "smi"; + power-domains = <&spm MT8167_POWER_DOMAIN_VDEC>; + }; }; }; From patchwork Mon Apr 5 20:08:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 12183519 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1B118C433B4 for ; Mon, 5 Apr 2021 20:10:46 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B579C613C5 for ; Mon, 5 Apr 2021 20:10:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B579C613C5 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=HLPRnmdTKCnzghrUAqf0hymannCz/wBrzFCXUfwW0aM=; b=F2TOg1dTSk3vyuoSb/Sv7SghO udvS2iwh55Xv5aYeyiYt8/Q5x+HJEup7GPmrFl7nDebwoQ+m7Va+j799E1AaG9ac+JAEnwOHI6oX5 W1uAOiid0zckD+LuuAbAZwOUp3AiUCbR6UV2/rFc8im/yVL5oLjStIiTUcWOarltqBBVKLBlM4c8a tf/1U5Bpzzpu+GCYwtK2pzqGG2YgFgJySescbBtTmSyWxwxbuw7Fhg1quFMklNywa0OViibFODLQm dsHAmzL/GAGRBS9csSRAFMmVfIIenSqHLfuBq218QYFdkvsOV27IuijVxOaHz0nju2HSXrn0WdKMs ea389Hjpw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lTVWy-000YF3-KD; Mon, 05 Apr 2021 20:09:05 +0000 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lTVWQ-000Y33-6l for linux-arm-kernel@lists.infradead.org; Mon, 05 Apr 2021 20:08:31 +0000 Received: by mail-wr1-x434.google.com with SMTP id a6so5885853wrw.8 for ; Mon, 05 Apr 2021 13:08:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ufQs2y0GBwgw7m0MhJTgtFAbHPutYUxFjCpTMhooQfg=; b=MRq1WUxPFgF+Cs5EgYUOsD3R2vpiujpm+kGD9l34xo2KTiFNld0V9y1x5GNvacaVaG n9kl8wT6n0xT3lTK9SVx5XeEF9GK2WxYf5bLTuMJtSjpPVsJDHq7iiG1eoezrkeHiZ0r dg7sI2ADz9yVJ0oJhTk/DM28PboLllHecZTVQb/jI3USzDiITW+XYI295LuZd/6C37PS QcKse72YV/07gLbWCVAlwQ3ThVQOjWotlP9OcB8Jnc4UOiycKQxLRXt0nRWMXVze2hHw moPEZ9BUSkXcwpoTYpbnQyncKhkK2KtB7Ga82MR6kbEyXlNXq1r6ooeX+/S/0Peez6VE XFZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ufQs2y0GBwgw7m0MhJTgtFAbHPutYUxFjCpTMhooQfg=; b=bi+gLdeCXHVLk0z7HcK9La4f1LqZbFplMZs3FfIp2cUr9xRjGHtty0O5BQx7HNOoGa NjUzS03LPCZ36fMm/tWd4CwxyLJ9SXPm/2pcx9nDU3TdGkv0BZrbtG0A9QRERek9fjCt MFO9NvYLNBpUfbC2o2xXmNCiRBACGkGyHnXl31U1Tcdb4IZ2wV3hGrMXgAwCCX5B4u7o H1ba7MlqJSpVeDsAkDYiJorJXxf1PWpReWdRFxQ91QYFbKTpoCIhkGqVS3yYdhnJBvUg PKw+EGuQ02KZqntdOJ74YZ4DKcapOQ/wX6vK3bpUNPEGrmM7viES/D9kfK79AICaqnnl 3V8Q== X-Gm-Message-State: AOAM532f9MRZ02Jfe4sBCn8heQ8zCnRrzNUVm9JUisyntjRPDxExTd2z RH+wsGpMlqyfmSKUp53+Ng2CEQ== X-Google-Smtp-Source: ABdhPJzEXHOtw1Doi7xuzKLw96hEFfLJr5a0TsJ0YqgqlCvQ2W5ad0fVOww5uP6iFptbJD0eje7BFQ== X-Received: by 2002:a5d:558b:: with SMTP id i11mr30210250wrv.176.1617653309236; Mon, 05 Apr 2021 13:08:29 -0700 (PDT) Received: from localhost.localdomain ([88.160.162.107]) by smtp.gmail.com with ESMTPSA id v185sm609420wmb.25.2021.04.05.13.08.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Apr 2021 13:08:28 -0700 (PDT) From: Fabien Parent To: Rob Herring , Matthias Brugger Cc: mkorpershoek@baylibre.com, Fabien Parent , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/5] arm64: dts: mediatek: mt8167: add iommu node Date: Mon, 5 Apr 2021 22:08:20 +0200 Message-Id: <20210405200821.2203458-4-fparent@baylibre.com> X-Mailer: git-send-email 2.31.0 In-Reply-To: <20210405200821.2203458-1-fparent@baylibre.com> References: <20210405200821.2203458-1-fparent@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210405_210830_432159_9270B4A7 X-CRM114-Status: GOOD ( 10.75 ) 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 Add node for the MT8167's IOMMU. Signed-off-by: Fabien Parent --- arch/arm64/boot/dts/mediatek/mt8167.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8167.dtsi b/arch/arm64/boot/dts/mediatek/mt8167.dtsi index 9b352031c5f6..3ba03ca749b2 100644 --- a/arch/arm64/boot/dts/mediatek/mt8167.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8167.dtsi @@ -173,5 +173,14 @@ larb2: larb@16010000 { clock-names = "apb", "smi"; power-domains = <&spm MT8167_POWER_DOMAIN_VDEC>; }; + + iommu: m4u@10203000 { + cell-index = <0>; + compatible = "mediatek,mt8167-m4u"; + reg = <0 0x10203000 0 0x1000>; + mediatek,larbs = <&larb0 &larb1 &larb2>; + interrupts = ; + #iommu-cells = <1>; + }; }; }; From patchwork Mon Apr 5 20:08:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 12183523 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 609E8C433ED for ; Mon, 5 Apr 2021 20:11:00 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D8826613C5 for ; Mon, 5 Apr 2021 20:10:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D8826613C5 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=v7xEAmiL22xB8aZZ18fM+TPDjGd92PvYsMXCF5bG+88=; b=VnPejrcRaNeJhnRai1HypiQi5 KA4u/ieyl8DcOvJJhA/xvuyB435ibg8jmIFDUKh2rEvo9NudQ16SoOrqQRd4xITAMxE80OioVUvGX DIsmy7gPyiiSvcAuYxkVPh8fnsWhh/2ynYCy+Ev6ZCBoRElfoHM6uB6wN74R2ykUJ8vFyr8dmgYHY j6xdOt6VzNClMPNviNwPXM5Nhd7H+W3x0NULSkuoC58lv60e4YO0OF6kjp7s+1qvMMYit8nv1f5Hx pserFclu3S+XxaRuQ21TdLLLpzR6QS5XCAMmR7hAQcIptktnc1k/Uwm8TVCWt39/MhV+cdQvgiqUG zmYYFTB4g==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lTVX8-000YI6-U3; Mon, 05 Apr 2021 20:09:15 +0000 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lTVWR-000Y3g-3q for linux-arm-kernel@lists.infradead.org; Mon, 05 Apr 2021 20:08:33 +0000 Received: by mail-wm1-x331.google.com with SMTP id f22-20020a7bc8d60000b029010c024a1407so8123489wml.2 for ; Mon, 05 Apr 2021 13:08:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=zBI59S0esvtyRJVOZTHC86ExpUhwst9TBLwdi/kDYn8=; b=tiGffN4digjOme3ZvvrFri/s9NDzwTOWr1qHeG7BhTyV469zeXcoPoWnAOWuxGsYAi Az5xcWk7WCcViBojAQEXw5P/uuykrC+FsLOcTwv9ubhKl9S3/hJRgTCCENfz+BrqWfC8 ba6I1hvGtwuyC8L6h+lyGyzCHxZ/QLnrrzO4Zglshtj0IhwYd2Kxug+1/FTNIYOfL3VW SBUcPjQIKzojr6sSAiwT8Li40JANAE3kv9jDylR8RBujP55GTbjMeQ6Y78a9pvYvtWZN cacolBfsSb0/bf5zJ145x7bvf2NLcro51gQMdpFj38C9jhg4E3+wNxMbsAD0xenGezdf be3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=zBI59S0esvtyRJVOZTHC86ExpUhwst9TBLwdi/kDYn8=; b=Cri0aXjaisekVc3gTRef4VnDJRu57cIcPvT5zJ6cxS6HJnFUHnv71LKP7aEqlXFYL6 TxuwhvX3nRSNlmzE8SqdG+/I9ScXqMA9TqnynGJPDRyd1mBju9435l/eoOLaRJe6xy00 3AfopmiAgQwilDYC+CtaDdgERJzio9of1wYwVwzRB41rL756QF/6jNg/02m1kuCoRUQP 05QFp5DW8E0NUbDctUkCJVGfy5EaXQYt5/kWLp3amr23NbCzsQH+FXOK7TpSs2MiOCMR amiLzjYbBhqiE7fPPqZdpWbH1j+ll6/3HYuHZ3G8JhgKHi2x444tfD4tzoNrgymzLrLx fvAg== X-Gm-Message-State: AOAM5325i8NAS8t0HcSFSqOnJmMKIrI+vPLB1nMGAnLuz23UzOrcUd39 /tcWsBhKCd04XdnGHGhCCgy0VA== X-Google-Smtp-Source: ABdhPJyfy0YtdT4isJjzVUiZ5iElNhki0/lybno+DvYH9leDZPbn06qlgznbrXa6NBC610NsrAp3HA== X-Received: by 2002:a05:600c:228d:: with SMTP id 13mr689696wmf.49.1617653310820; Mon, 05 Apr 2021 13:08:30 -0700 (PDT) Received: from localhost.localdomain ([88.160.162.107]) by smtp.gmail.com with ESMTPSA id v185sm609420wmb.25.2021.04.05.13.08.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Apr 2021 13:08:30 -0700 (PDT) From: Fabien Parent To: Rob Herring , Matthias Brugger Cc: mkorpershoek@baylibre.com, Fabien Parent , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/5] arm64: dts: mediatek: mt8167: add some DRM nodes Date: Mon, 5 Apr 2021 22:08:21 +0200 Message-Id: <20210405200821.2203458-5-fparent@baylibre.com> X-Mailer: git-send-email 2.31.0 In-Reply-To: <20210405200821.2203458-1-fparent@baylibre.com> References: <20210405200821.2203458-1-fparent@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210405_210831_734554_3426886A X-CRM114-Status: GOOD ( 11.25 ) 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 Add all the DRM nodes required to get DSI to work on MT8167 SoC. Signed-off-by: Fabien Parent --- arch/arm64/boot/dts/mediatek/mt8167.dtsi | 149 +++++++++++++++++++++++ 1 file changed, 149 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8167.dtsi b/arch/arm64/boot/dts/mediatek/mt8167.dtsi index 3ba03ca749b2..8ca92d6b203a 100644 --- a/arch/arm64/boot/dts/mediatek/mt8167.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8167.dtsi @@ -16,6 +16,19 @@ / { compatible = "mediatek,mt8167"; + aliases { + aal0 = &aal; + ccorr0 = &ccorr; + color0 = &color; + dither0 = &dither; + dsi0 = &dsi; + ovl0 = &ovl0; + pwm0 = &disp_pwm; + rdma0 = &rdma0; + rdma1 = &rdma1; + wdma0 = &wdma; + }; + soc { topckgen: topckgen@10000000 { compatible = "mediatek,mt8167-topckgen", "syscon"; @@ -114,6 +127,13 @@ vdecsys: syscon@16000000 { #clock-cells = <1>; }; + mutex: mutex@14015000 { + compatible = "mediatek,mt8167-disp-mutex"; + reg = <0 0x14015000 0 0x1000>; + interrupts = ; + power-domains = <&spm MT8167_POWER_DOMAIN_MM>; + }; + pio: pinctrl@1000b000 { compatible = "mediatek,mt8167-pinctrl"; reg = <0 0x1000b000 0 0x1000>; @@ -126,6 +146,135 @@ pio: pinctrl@1000b000 { interrupts = ; }; + rdma1: rdma1@1400a000 { + compatible = "mediatek,mt8167-disp-rdma", + "mediatek,mt2701-disp-rdma"; + reg = <0 0x1400a000 0 0x1000>; + interrupts = ; + power-domains = <&spm MT8167_POWER_DOMAIN_MM>; + clocks = <&mmsys CLK_MM_DISP_RDMA1>; + iommus = <&iommu M4U_PORT_DISP_RDMA1>; + mediatek,larb = <&larb0>; + }; + + disp_pwm: disp_pwm@1100f000 { + compatible = "mediatek,mt8167-disp-pwm", + "mediatek,mt8173-disp-pwn"; + reg = <0 0x1100f000 0 0x1000>; + #pwm-cells = <2>; + power-domains = <&spm MT8167_POWER_DOMAIN_MM>; + clocks = <&topckgen CLK_TOP_PWM_SEL>, + <&topckgen CLK_TOP_PWM_MM>, + <&mmsys CLK_MM_DISP_PWM_26M>, + <&mmsys CLK_MM_DISP_PWM_MM>; + clock-names = "pwm_sel", + "pwm_mm", + "main", + "mm"; + status = "disabled"; + }; + + dsi: dsi@14012000 { + compatible = "mediatek,mt8167-dsi", + "mediatek,mt2701-dsi"; + reg = <0 0x14012000 0 0x1000>; + interrupts = ; + power-domains = <&spm MT8167_POWER_DOMAIN_MM>; + clocks = <&mmsys CLK_MM_DSI_ENGINE>, + <&mmsys CLK_MM_DSI_DIGITAL>, + <&mipi_tx>; + clock-names = "engine", "digital", "hs"; + phys = <&mipi_tx>; + phy-names = "dphy"; + status = "disabled"; + }; + + mipi_tx: mipi_dphy@14018000 { + compatible = "mediatek,mt8167-mipi-tx", + "mediatek,mt2701-mipi-tx"; + reg = <0 0x14018000 0 0x90>; + clocks = <&topckgen CLK_TOP_MIPI_26M_DBG>; + clock-output-names = "mipi_tx0_pll"; + #clock-cells = <0>; + #phy-cells = <0>; + status = "disabled"; + }; + + ovl0: ovl0@14007000 { + compatible = "mediatek,mt8167-disp-ovl", + "mediatek,mt8173-disp-ovl"; + reg = <0 0x14007000 0 0x1000>; + interrupts = ; + power-domains = <&spm MT8167_POWER_DOMAIN_MM>; + clocks = <&mmsys CLK_MM_DISP_OVL0>; + iommus = <&iommu M4U_PORT_DISP_OVL0>; + mediatek,larb = <&larb0>; + }; + + rdma0: rdma0@14009000 { + compatible = "mediatek,mt8167-disp-rdma", + "mediatek,mt2701-disp-rdma"; + reg = <0 0x14009000 0 0x1000>; + interrupts = ; + power-domains = <&spm MT8167_POWER_DOMAIN_MM>; + clocks = <&mmsys CLK_MM_DISP_RDMA0>; + iommus = <&iommu M4U_PORT_DISP_RDMA0>; + mediatek,larb = <&larb0>; + }; + + color: color@1400c000 { + compatible = "mediatek,mt8167-disp-color", + "mediatek,mt8173-disp-color"; + reg = <0 0x1400c000 0 0x1000>; + interrupts = ; + power-domains = <&spm MT8167_POWER_DOMAIN_MM>; + clocks = <&mmsys CLK_MM_DISP_COLOR>; + }; + + ccorr: ccorr@1400d000 { + compatible = "mediatek,mt8167-disp-ccorr", + "mediatek,mt8183-disp-ccorr"; + reg = <0 0x1400d000 0 0x1000>; + interrupts = ; + power-domains = <&spm MT8167_POWER_DOMAIN_MM>; + clocks = <&mmsys CLK_MM_DISP_CCORR>; + }; + + aal: aal@1400e000 { + compatible = "mediatek,mt8167-disp-aal"; + reg = <0 0x1400e000 0 0x1000>; + interrupts = ; + power-domains = <&spm MT8167_POWER_DOMAIN_MM>; + clocks = <&mmsys CLK_MM_DISP_AAL>; + }; + + gamma: gamma@1400f000 { + compatible = "mediatek,mt8167-disp-gamma", + "mediatek,mt8173-disp-gamma"; + reg = <0 0x1400f000 0 0x1000>; + interrupts = ; + power-domains = <&spm MT8167_POWER_DOMAIN_MM>; + clocks = <&mmsys CLK_MM_DISP_GAMMA>; + }; + + dither: dither@14010000 { + compatible = "mediatek,mt8167-disp-dither"; + reg = <0 0x14010000 0 0x1000>; + interrupts = ; + power-domains = <&spm MT8167_POWER_DOMAIN_MM>; + clocks = <&mmsys CLK_MM_DISP_DITHER>; + }; + + wdma: wdma0@1400b000 { + compatible = "mediatek,mt8167-disp-wdma"; + reg = <0 0x1400b000 0 0x1000>; + interrupts = ; + power-domains = <&spm MT8167_POWER_DOMAIN_MM>; + clocks = <&mmsys CLK_MM_DISP_WDMA>; + iommus = <&iommu M4U_PORT_DISP_WDMA0>; + mediatek,larb = <&larb0>; + }; + mmsys: mmsys@14000000 { compatible = "mediatek,mt8167-mmsys", "syscon"; reg = <0 0x14000000 0 0x1000>;