Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp436837pxa; Tue, 4 Aug 2020 09:02:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwv6EqH7Z+UGcRgkkhPDWNV7d3pbc0t1oOADXRnGhhnH/IH+h3qOGnQl4zPZrJ9h8mAXSgL X-Received: by 2002:a17:906:4341:: with SMTP id z1mr21623970ejm.392.1596556942703; Tue, 04 Aug 2020 09:02:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596556942; cv=none; d=google.com; s=arc-20160816; b=06ozPA/9oyf8wLnUs97nE0/zwbEP7P/XMAiXgGVyAObP3C+3LicA2GL0w2K35hFv1I T7Gu+SR04ndhQKFKDjjBdNPvq0FXMhc2GC6WkHOLUXEVrUyrSpQLpOjKap6PpSd/99K3 aeBIX0oh5//vSkT3nRadX1msYzDcy1NuBl+owPJQqX/lBBXgqKNRXc6OwnPf3QxhgvNU t6+4XlztjgvdoOT9LnbZWf3cBIPDyH9DfQFZn/M37ZxvADqci/Rodc7B3rSyovyIuvod +GisSCN7UhLNahSNxEnW7OaDTLAo7eMNrLArlK1EbDO4znq49CK2SgJenWwFAiw6aHuF 5L2A== 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=sfpE6jROrUkHMrXZW7N894F5nzkMT9Boo4VGyJYhL3s=; b=ulWxiNIfBndu/ch550uLQRtZadD4gesxBvMAhUndWDBxQud87Q6T7jC63Q0aI4XJ3a hzRCa2xgrJEnn5Olqi/FEYoWHAfhzYWu8FYCtvYwS09nJLqnHuV0U4h44txQfaP84XVK hoNPOG55eXaQCsyP8yZn9JTYp15ZPv4/PbeyUe1ZpF9cfvfafPGAyl/V96v3Y1KbMlPh 5PNh1qj+uLU2LIDO+3UCIWScGLP/zS4KULz7cZNgvKpigkL6XICxVcqPPdwSBKjI/cVo 5Gn264zqMAsrUoCmjSHdo+OcThYX5anqk5KxtRX3z13eXNCWzqRprKDFr6J2dNzQG/YI 1t+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=VDA3GQ39; 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 dg1si2528390edb.503.2020.08.04.09.01.59; Tue, 04 Aug 2020 09:02:22 -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=VDA3GQ39; 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 S1728919AbgHDQBs (ORCPT + 99 others); Tue, 4 Aug 2020 12:01:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:58182 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726037AbgHDQBo (ORCPT ); Tue, 4 Aug 2020 12:01:44 -0400 Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (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 922B122CB2 for ; Tue, 4 Aug 2020 16:01:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596556903; bh=ts4DiOIK31WOiPOomXTChPl+/Bcxf6Gu7FQwjpiYcDs=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=VDA3GQ39CYhBDogsBHSlpvpzjjPXH+DnWJj59ptiEDTrzik30OgM7KxH6u0l2Co1f /F5c90jm2hrHfjWg/t5eC0QuFo4Z+XgmaoufZSadgkifwuzN2D6UhQbbufr30bTdtL gNOKrsNo48vUkWDfrxTKckBhHAM5RhBp/G0vHsZU= Received: by mail-ej1-f50.google.com with SMTP id c16so22641254ejx.12 for ; Tue, 04 Aug 2020 09:01:43 -0700 (PDT) X-Gm-Message-State: AOAM532O9IbRZfrA8ABjOym9QFtzM2dHcnyAy57NAnsnoXe7YaEbf6lj fVubQFI+I41PPrsNpDdznu7RgAADJhNpdWNAhg== X-Received: by 2002:a17:906:7492:: with SMTP id e18mr21774016ejl.375.1596556902019; Tue, 04 Aug 2020 09:01:42 -0700 (PDT) MIME-Version: 1.0 References: <20200804105849.70876-1-linux@fw-web.de> <20200804105849.70876-6-linux@fw-web.de> In-Reply-To: From: Chun-Kuang Hu Date: Wed, 5 Aug 2020 00:01:29 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Re: [PATCH v3 5/5] arm: dts: mt7623: add display subsystem related device nodes To: Frank Wunderlich Cc: Chun-Kuang Hu , Frank Wunderlich , "moderated list:ARM/Mediatek SoC support" , Ryder Lee , Philipp Zabel , 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=8811:23=E5=AF=AB=E9=81=93= =EF=BC=9A > > Hi > > Except mmsys (i added in Patch #1) all mt7623-compatibles are not defined= in code and fallback (mt2701-x/mt8173-x) is used. If i add it in dt-bindin= g, it should be added in code too, right? or should i remove mt7623 compati= bles and only add documentation for new mmsys? You should add mt7623 compatibles in binding document and device node (like mmsys node). The driver is optional to have it. If driver does not implement mt7623, it would fallback to mt2701. Regards, Chun-Kuang. > > regards Frank > > > > Gesendet: Dienstag, 04. August 2020 um 17:00 Uhr > > Von: "Chun-Kuang Hu" > > An: "Frank Wunderlich" > > > + 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/displa= y/mediatek/mediatek%2Cdsi.txt > > in drivers/gpu/drm/mediatek/mtk_mipi_tx.c only the compatible for mt2701 = is defined (which is fallback in dts). So should i remove mt7623 compatible= here and in the other occurences? > > > > > > + "mediatek,mt2701-mipi-tx"; > > > > + > > > + 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/displa= y/mediatek/mediatek%2Chdmi.txt > > > > > + "mediatek,mt8173-cec"; > > same here...only mt8173-cec is defined in drivers/gpu/drm/mediatek/mtk_ce= c.c > > > > 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"; > same as above (./drivers/gpu/drm/mediatek/mtk_hdmi_phy.c) > > > > + 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"= , "syscon" > > > > [3] https://www.kernel.org/doc/Documentation/devicetree/bindings/arm/me= diatek/mediatek%2Cmmsys.txt > > as i added this in driver, i add this to documentation (and maybe remove = the fallback because it results in wrong routing?) > > > > > > + 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/displa= y/mediatek/mediatek%2Cdisp.txt > also not defined in drivers/gpu/drm/mediatek/mtk_drm_drv.c so again fallb= ack used > > > > > > + "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"; > also fallback used (drivers/gpu/drm/mediatek/mtk_drm_drv.c) > > > > > + 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/displa= y/mediatek/mediatek%2Cdpi.txt > > > > > + "mediatek,mt2701-dpi"; >