Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp155040pxf; Tue, 6 Apr 2021 17:59:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCm35GqWUcvGnGbdZehlzswyjfJEMWahIkjd2eCNqwmBkqvwS6SchRVArTz2/wdHEtDYYB X-Received: by 2002:a6b:4e01:: with SMTP id c1mr476432iob.61.1617757144857; Tue, 06 Apr 2021 17:59:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617757144; cv=none; d=google.com; s=arc-20160816; b=fEEQKAzwTOZI1f2z8tDXU0j2Zs/cX55R28vUE/3m727kxZcuKevYSNX9TIx9acSrds pXUYCojcZ1B6BX4864L5crAUTVsX/TzVHEUmwDZQ7HY3f9GZDqVWnJ9Quag0N9heHnp4 MxfYI45/Q6yuDa1+ZBiUCf44YQ2uN30MKq39m54at1IqLHJQdGCoXqEunWHZB4DU6gfm 4jYUbaQKB5+L6CLgrwITToztqrNwb4uOSDWTkgj6nmaTmD/IBpW9g7aVcreXvEcwXn4V iq9fLkLeeEgE/xh5KG0sVvjJNozbVQJJPr3MxTlFthA/+bicracb5r4GKnfos3A/UuRN brNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/WrfJBPUqj+pJuJ9zBexAX8WZoPsoVyF075jvOPfdlY=; b=gHg6dCClkXxkz50gsBbbjMeMl4e6KWusv4Rtz3MwPz1Z3TmHMAzOjbjZ/2RXIPgp8v mrbxsNSOWPkwsVixxm0n4Ri+Y8DY4nsjmVfOMg7KtQQs1ZzJ0LbrdKMGkfnsADpagLb4 cQfRVwRoX4Omc0zw1YNRjC6f3FKFAM8SNRQinmbjiNnFteUNp3aJtvOVA2Jjo+WwaPcf 0ZW2Ahkf8mS+qlm9NGu9j3w7+7CdFwFnqADp4e58MJZBdd3vG9x2Fq7WzXTFkh7bINuP cSZWGnQ7N9ND1Edy4LqK4cgji751B5v9GAccLSr7vwk/x5vlh9gYA/j4QclI4/DpjzGH 17hA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b="Bp/Z/zWx"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t4si9954743ilo.19.2021.04.06.17.58.51; Tue, 06 Apr 2021 17:59:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b="Bp/Z/zWx"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241538AbhDFLdA (ORCPT + 99 others); Tue, 6 Apr 2021 07:33:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238475AbhDFLc6 (ORCPT ); Tue, 6 Apr 2021 07:32:58 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09A89C061756 for ; Tue, 6 Apr 2021 04:32:51 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id a12so4066121wrq.13 for ; Tue, 06 Apr 2021 04:32:50 -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=/WrfJBPUqj+pJuJ9zBexAX8WZoPsoVyF075jvOPfdlY=; b=Bp/Z/zWxoHFpQSJSE6Hu6Ia0GSqvoN9sQgjVNjl4JkC2NgSSbThJtwBQkbW0eGjA88 DOnwaSndjcZWcY8nxtFaiDwVycSDeuaotovhFchb+wqsONgHsWrAW4kXhiumJDPuj/5j CKsd9qbq8fzjaRyF/5/xYTUwz8BzQTNOnUkmvnE09euBhJ5fAZvhW6Qyni+CjqENLs3k Kf0F3xfR6hSqmg/9IqySKgc0XTYaYMJd5xYbCgEttqQ5FrctshFjNUix0Q76gJ4HKZcg OrMxGVWksCKxCmbonMe2wwUGNFa3HoG6mBKv3S2loDdiOPo8hIODg5qcjitI/Mt4k0j0 Mwvw== 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=/WrfJBPUqj+pJuJ9zBexAX8WZoPsoVyF075jvOPfdlY=; b=VbuEUtsLE1SZrsWKIBy0w6wnx9jzrjn2jtTjCyn39JKFxwaNgT1lUZnpqBlf2Mjlu4 FXQQjBRRecMylU/RynYDpVnXDUb5quIhkarJuXZyiSob01E31lNcTKhiSVPyX+hPQDoq oiDWGZlpHfRbNRrwo/NKLYZ4uK/xjygF0VLzn8Cw+qEi079imo8g/xbeDlfJICu9mTPe 1MtnmRimUHcj6lB66obDgZRj91nkwjrH93z4Tbf4SkxFwfG5Hjuarr5nzzAfTDqvYfSp 4Xk8JH7xb/22zEe9bOK2NjfmDM4hyBAwgEU4cng6HF6iRBwn/ySpSB27BAApaDj9FHEd en8w== X-Gm-Message-State: AOAM532kV45/o2VZFv0PG5xCPYfvLej2ZnMutmkT6/2gcUWwxzQZlR6c j1I+pkkS1TPbBaYzvkXgRdJAhUA4h5XfyDwl X-Received: by 2002:a5d:4683:: with SMTP id u3mr10783679wrq.358.1617708769799; Tue, 06 Apr 2021 04:32:49 -0700 (PDT) Received: from localhost.localdomain ([88.160.162.107]) by smtp.gmail.com with ESMTPSA id j6sm2424229wmq.16.2021.04.06.04.32.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Apr 2021 04:32:49 -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 v2 3/3] =?UTF-8?q?=F0=9F=93=A4=20arm64:=20dts:=20mediatek:?= =?UTF-8?q?=20mt8167:=20add=20some=20DRM=20nodes?= Date: Tue, 6 Apr 2021 13:32:42 +0200 Message-Id: <20210406113243.2665847-3-fparent@baylibre.com> X-Mailer: git-send-email 2.31.0 In-Reply-To: <20210406113243.2665847-1-fparent@baylibre.com> References: <20210406113243.2665847-1-fparent@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add all the DRM nodes required to get DSI to work on MT8167 SoC. Signed-off-by: Fabien Parent --- Note: This series is based on https://git.kernel.org/pub/scm/linux/kernel/git/matthias.bgg/linux.git/log/?h=v5.12-next/dts64-2 V2: * No changes 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 9029051624a6..17942095944e 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>; -- 2.31.0