Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp389607pxa; Tue, 4 Aug 2020 08:02:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNsUPN8x/O9X3GJvjFwbuDpPFTzpHti2cJw90d4KZBGP/yUkwu7NIDFmB4cNCZ10oLw0PG X-Received: by 2002:a50:a6da:: with SMTP id f26mr21204668edc.4.1596553350787; Tue, 04 Aug 2020 08:02:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596553350; cv=none; d=google.com; s=arc-20160816; b=ea+A7qWLeACB9JtS2ooYuZiiOO6vp/sX5z4HWnUag49PD+602Qjih1+6z4bfuHBWR2 FEc7YAEUs1aEa56pjlEKm8ucbAk0//mNz1SRTjMGopokEeRr2A0FGhdY1Aa07amcjGV7 c/xmn/iE8QisHR9M4Zzp1bMhAcvUvO/zerNaVzDzAuVS/TUvYzsUMcTANMPFydPDohqX 7ae6go1aOckMl4vL7+oNwm3kOLmFELTdX95qsFmGUSX8q4TjWpbtoZF1+1l6jfv4araR K1bS4kDyZHMzolgdrJ8jYPT9rAt56iJjyeLqoabM+sJP7svLyqdDIoI7sM9AIVdUqIpt a8AQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=6Rxq+4WoaeaRYmxj3XRBG1n6cGjQQupyfKUGdS7thXE=; b=dycuDeSm38s+hPmgp84bD0R9XFKj/mrjLOpWvb7KXI15WZfFPstUuQ5qPQAE63tqLx Fdc2a0tr+wPoIeVLj37A8/Bqjz+hmpBkBRLMMrcY7fUdFDeJMELOf0RcVOnXNBb+XHfX iieB7f6MNWEEQzzoRDDIg25FDAdl6wCmu69Q4RtXtu16yUbrPWBzTFcZKbSQBWe0T3t8 yet4d/+eBTQNaw8HxtGCLtKXtLWmf17twi+jUAmZL82A0F/cjrbH5Fr2fujyqkcEqtT2 BYBzRg3DqvXFJoeCXXB9ymtWM13bOYIrgWB1obsWnajPJGpb98tLlD3kyjnQ6ezmLIFf UXoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hBmXwqbA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jz19si13066226ejb.133.2020.08.04.08.02.02; Tue, 04 Aug 2020 08:02:30 -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=@kernel.org header.s=default header.b=hBmXwqbA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729494AbgHDPAx (ORCPT + 99 others); Tue, 4 Aug 2020 11:00:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:41230 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729113AbgHDPAT (ORCPT ); Tue, 4 Aug 2020 11:00:19 -0400 Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3CA9D22CB2 for ; Tue, 4 Aug 2020 15:00:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596553218; bh=UGKz0laAMAeoRRMQ/WBIHLisQCLwq1BVQrmk9x1SlPo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=hBmXwqbAD0aEV/RyYT8DMQykRoxAtVj0av0RbXEIsl6QY6lW7RRWsYvqXC4zuixUB X2f1x6fQHOTI40vGFC2qD6o3lMRBfLWEaT3I/gTEJytRbbOlhQr7iIlvO/wCitSdeN bKIYMjAiqMcnBEddhlDUeoUuBM1o+SJ4K1IBHZ04= Received: by mail-ed1-f42.google.com with SMTP id a14so13147403edx.7 for ; Tue, 04 Aug 2020 08:00:18 -0700 (PDT) X-Gm-Message-State: AOAM532FpzgAcWoFRC0zjqeVATkIzEbAMAitoCRG60FM1An2SxLWIPV1 opAZnYfRXvNfCfNiuZy31vyaqRm0+7TRIgjsUw== X-Received: by 2002:aa7:c606:: with SMTP id h6mr8396427edq.288.1596553216689; Tue, 04 Aug 2020 08:00:16 -0700 (PDT) MIME-Version: 1.0 References: <20200804105849.70876-1-linux@fw-web.de> <20200804105849.70876-6-linux@fw-web.de> In-Reply-To: <20200804105849.70876-6-linux@fw-web.de> From: Chun-Kuang Hu Date: Tue, 4 Aug 2020 23:00:05 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 5/5] arm: dts: mt7623: add display subsystem related device nodes To: Frank Wunderlich Cc: "moderated list:ARM/Mediatek SoC support" , Chun-Kuang Hu , Ryder Lee , Philipp Zabel , Frank Wunderlich , David Airlie , chunhui dai , linux-kernel , DRI Development , CK Hu , Daniel Vetter , Matthias Brugger , Bibby Hsieh , Linux ARM Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Frank: Frank Wunderlich =E6=96=BC 2020=E5=B9=B48=E6=9C=884=E6=97= =A5 =E9=80=B1=E4=BA=8C =E4=B8=8B=E5=8D=887:00=E5=AF=AB=E9=81=93=EF=BC=9A > > From: Ryder Lee > > Add display subsystem related device nodes for MT7623. > > Cc: CK Hu > Signed-off-by: chunhui dai > Signed-off-by: Bibby Hsieh > Signed-off-by: Ryder Lee > Signed-off-by: Frank Wunderlich > Tested-by: Frank Wunderlich > --- > changed v2->v3: > drop bls to dpi routing > --- > arch/arm/boot/dts/mt7623.dtsi | 177 ++++++++++++++++++ > arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts | 72 +++++++ > arch/arm/boot/dts/mt7623n-rfb-emmc.dts | 72 +++++++ > 3 files changed, 321 insertions(+) > > diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/arm/boot/dts/mt7623.dts= i > index a106c0d90a52..d584a3d678ba 100644 > --- a/arch/arm/boot/dts/mt7623.dtsi > +++ b/arch/arm/boot/dts/mt7623.dtsi > @@ -24,6 +24,11 @@ / { > #address-cells =3D <2>; > #size-cells =3D <2>; > > + aliases { > + rdma0 =3D &rdma0; > + rdma1 =3D &rdma1; > + }; > + > cpu_opp_table: opp-table { > compatible =3D "operating-points-v2"; > opp-shared; > @@ -321,6 +326,25 @@ pwrap: pwrap@1000d000 { > clock-names =3D "spi", "wrap"; > }; > > + mipi_tx0: mipi-dphy@10010000 { > + compatible =3D "mediatek,mt7623-mipi-tx", In mediatek,dsi.txt [1], "mediatek,mt7623-mipi-tx" is undefined. [1] https://www.kernel.org/doc/Documentation/devicetree/bindings/display/me= diatek/mediatek%2Cdsi.txt > + "mediatek,mt2701-mipi-tx"; > + reg =3D <0 0x10010000 0 0x90>; > + clocks =3D <&clk26m>; > + clock-output-names =3D "mipi_tx0_pll"; > + #clock-cells =3D <0>; > + #phy-cells =3D <0>; > + }; > + > + cec: cec@10012000 { > + compatible =3D "mediatek,mt7623-cec", Please explicitly define "mediatek,mt7623-cec" in mediatek,hdmi.txt [2]. [2] https://www.kernel.org/doc/Documentation/devicetree/bindings/display/me= diatek/mediatek%2Chdmi.txt > + "mediatek,mt8173-cec"; > + reg =3D <0 0x10012000 0 0xbc>; > + interrupts =3D ; > + clocks =3D <&infracfg CLK_INFRA_CEC>; > + status =3D "disabled"; > + }; > + > cir: cir@10013000 { > compatible =3D "mediatek,mt7623-cir"; > reg =3D <0 0x10013000 0 0x1000>; > @@ -369,6 +393,18 @@ apmixedsys: syscon@10209000 { > #clock-cells =3D <1>; > }; > > + hdmi_phy: phy@10209100 { > + compatible =3D "mediatek,mt7623-hdmi-phy", Ditto. > + "mediatek,mt2701-hdmi-phy"; > + reg =3D <0 0x10209100 0 0x24>; > + clocks =3D <&apmixedsys CLK_APMIXED_HDMI_REF>; > + clock-names =3D "pll_ref"; > + clock-output-names =3D "hdmitx_dig_cts"; > + #clock-cells =3D <0>; > + #phy-cells =3D <0>; > + status =3D "disabled"; > + }; > + > rng: rng@1020f000 { > compatible =3D "mediatek,mt7623-rng"; > reg =3D <0 0x1020f000 0 0x1000>; > @@ -568,6 +604,16 @@ bch: ecc@1100e000 { > status =3D "disabled"; > }; > > + hdmiddc0: i2c@11013000 { > + compatible =3D "mediatek,mt7623-hdmi-ddc", Ditto. > + "mediatek,mt8173-hdmi-ddc"; > + interrupts =3D ; > + reg =3D <0 0x11013000 0 0x1C>; > + clocks =3D <&pericfg CLK_PERI_I2C3>; > + clock-names =3D "ddc-i2c"; > + status =3D "disabled"; > + }; > + > nor_flash: spi@11014000 { > compatible =3D "mediatek,mt7623-nor", > "mediatek,mt8173-nor"; > @@ -766,6 +812,84 @@ mmsys: syscon@14000000 { > #clock-cells =3D <1>; > }; > > + display_components: dispsys@14000000 { > + compatible =3D "mediatek,mt7623-mmsys", > + "mediatek,mt2701-mmsys"; In mediatek,mmsys.txt [3], this should be: mmsys: syscon@14000000 { compatible =3D "mediatek,mt7623-mmsys", "mediatek,mt2701-mmsys", "s= yscon" [3] https://www.kernel.org/doc/Documentation/devicetree/bindings/arm/mediat= ek/mediatek%2Cmmsys.txt > + reg =3D <0 0x14000000 0 0x1000>; > + power-domains =3D <&scpsys MT2701_POWER_DOMAIN_DISP>; > + }; > + > + ovl@14007000 { > + compatible =3D "mediatek,mt7623-disp-ovl", This is not defined in mediatek,disp.txt [4]. [4] https://www.kernel.org/doc/Documentation/devicetree/bindings/display/me= diatek/mediatek%2Cdisp.txt > + "mediatek,mt2701-disp-ovl"; > + reg =3D <0 0x14007000 0 0x1000>; > + interrupts =3D ; > + clocks =3D <&mmsys CLK_MM_DISP_OVL>; > + iommus =3D <&iommu MT2701_M4U_PORT_DISP_OVL_0>; > + mediatek,larb =3D <&larb0>; > + }; > + > + rdma0: rdma@14008000 { > + compatible =3D "mediatek,mt7623-disp-rdma", > + "mediatek,mt2701-disp-rdma"; > + reg =3D <0 0x14008000 0 0x1000>; > + interrupts =3D ; > + clocks =3D <&mmsys CLK_MM_DISP_RDMA>; > + iommus =3D <&iommu MT2701_M4U_PORT_DISP_RDMA>; > + mediatek,larb =3D <&larb0>; > + }; > + > + wdma@14009000 { > + compatible =3D "mediatek,mt7623-disp-wdma", > + "mediatek,mt2701-disp-wdma"; > + reg =3D <0 0x14009000 0 0x1000>; > + interrupts =3D ; > + clocks =3D <&mmsys CLK_MM_DISP_WDMA>; > + iommus =3D <&iommu MT2701_M4U_PORT_DISP_WDMA>; > + mediatek,larb =3D <&larb0>; > + }; > + > + bls: pwm@1400a000 { > + compatible =3D "mediatek,mt7623-disp-pwm", > + "mediatek,mt2701-disp-pwm"; > + reg =3D <0 0x1400a000 0 0x1000>; > + #pwm-cells =3D <2>; > + clocks =3D <&mmsys CLK_MM_MDP_BLS_26M>, > + <&mmsys CLK_MM_DISP_BLS>; > + clock-names =3D "main", "mm"; > + status =3D "disabled"; > + }; > + > + color@1400b000 { > + compatible =3D "mediatek,mt7623-disp-color", > + "mediatek,mt2701-disp-color"; > + reg =3D <0 0x1400b000 0 0x1000>; > + interrupts =3D ; > + clocks =3D <&mmsys CLK_MM_DISP_COLOR>; > + }; > + > + dsi: dsi@1400c000 { > + compatible =3D "mediatek,mt7623-dsi", This is not defined in mediatek,dsi.txt [1]. > + "mediatek,mt2701-dsi"; > + reg =3D <0 0x1400c000 0 0x1000>; > + interrupts =3D ; > + clocks =3D <&mmsys CLK_MM_DSI_ENGINE>, > + <&mmsys CLK_MM_DSI_DIG>, > + <&mipi_tx0>; > + clock-names =3D "engine", "digital", "hs"; > + phys =3D <&mipi_tx0>; > + phy-names =3D "dphy"; > + status =3D "disabled"; > + }; > + > + mutex: mutex@1400e000 { > + compatible =3D "mediatek,mt7623-disp-mutex", > + "mediatek,mt2701-disp-mutex"; > + reg =3D <0 0x1400e000 0 0x1000>; > + interrupts =3D ; > + clocks =3D <&mmsys CLK_MM_MUTEX_32K>; > + }; > + > larb0: larb@14010000 { > compatible =3D "mediatek,mt7623-smi-larb", > "mediatek,mt2701-smi-larb"; > @@ -778,6 +902,44 @@ larb0: larb@14010000 { > power-domains =3D <&scpsys MT2701_POWER_DOMAIN_DISP>; > }; > > + rdma1: rdma@14012000 { > + compatible =3D "mediatek,mt7623-disp-rdma", > + "mediatek,mt2701-disp-rdma"; > + reg =3D <0 0x14012000 0 0x1000>; > + interrupts =3D ; > + clocks =3D <&mmsys CLK_MM_DISP_RDMA1>; > + iommus =3D <&iommu MT2701_M4U_PORT_DISP_RDMA1>; > + mediatek,larb =3D <&larb0>; > + }; > + > + dpi0: dpi@14014000 { > + compatible =3D "mediatek,mt7623-dpi", This is not defined in mediatek,dpi.txt [5]. [5] https://www.kernel.org/doc/Documentation/devicetree/bindings/display/me= diatek/mediatek%2Cdpi.txt Regards, Chun-Kuang. > + "mediatek,mt2701-dpi"; > + reg =3D <0 0x14014000 0 0x1000>; > + interrupts =3D ; > + clocks =3D <&mmsys CLK_MM_DPI1_DIGL>, > + <&mmsys CLK_MM_DPI1_ENGINE>, > + <&apmixedsys CLK_APMIXED_TVDPLL>; > + clock-names =3D "pixel", "engine", "pll"; > + status =3D "disabled"; > + }; > + > + hdmi0: hdmi@14015000 { > + compatible =3D "mediatek,mt7623-hdmi", > + "mediatek,mt8173-hdmi"; > + reg =3D <0 0x14015000 0 0x400>; > + clocks =3D <&mmsys CLK_MM_HDMI_PIXEL>, > + <&mmsys CLK_MM_HDMI_PLL>, > + <&mmsys CLK_MM_HDMI_AUDIO>, > + <&mmsys CLK_MM_HDMI_SPDIF>; > + clock-names =3D "pixel", "pll", "bclk", "spdif"; > + phys =3D <&hdmi_phy>; > + phy-names =3D "hdmi"; > + mediatek,syscon-hdmi =3D <&mmsys 0x900>; > + cec =3D <&cec>; > + status =3D "disabled"; > + }; > +