Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2731710ybi; Sun, 9 Jun 2019 19:38:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqzVb3gfN8gnX2qxKQhCSNdA13Scz++uGOLhhtyQQEBdM+FIMj0MvW0Vu1N+3YO5EWKBdhBc X-Received: by 2002:a17:902:6bcb:: with SMTP id m11mr41196764plt.318.1560134286991; Sun, 09 Jun 2019 19:38:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560134286; cv=none; d=google.com; s=arc-20160816; b=dCPszqqz9nnc/ukMDr7VCw1MhciJCbvulhx96gyGGJQZ/w3fv2eDsuHcoLUHmmozBm 9sIGFSbRFMjxuwe2wsi4GNx39mxRLaATp/0d9L9E1Msze0NM7E5SYOO9ZshmN5v5IhWF qv3Wk9tS58SSnIxMeOQIU2nVhvGdwJgQKom884CGiD2vnM4oEmT+g/9kzPg/yCsOjQo5 CwAK18HupGY/TXBA5mY7PEIfA5Hn/v6J0jBj4TxiEWCrKxKQWFP0CXWJriDCLKKZj30C l/lQeEHkVKWpUa+CHA8m7uhnJMcNxM/mL67OyBmxVBfU7iq+q3oRKNtBNtqe0RZnjOHl y+YA== 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:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=fwU/6hhk338oO66r5YfO74jMzljxlmBhyJ/QWAQOmDE=; b=EpAcvePeWON9sR6AtoTtLz4p9ibY5M4bWMIClWuFIqDbOOIvvmWwCQKJ8pvWNRg5Qj GTsx12BbY04+gCPyx+kYkl5iLhdNidi4X/IOx+z7Aur/j6Dyl9/cosdavcJZ3jvhk9c7 8fuJY8kMxRYbOB4c4n1gOvCx+pYkoF5aCnexhEWYsm4c1JKmz4AMXPPD72EGcE1VwyiI Y8zj2gVwjnAB7m3b1sl0tAGrG0fqHdJVIDbjqMCwUpvGs32grwmiddNmWVAqLx2mg9nt 7BKLV7aa5wiGfoXvlYFt1BY7uKvAHbKgLSr/J3WlQGAowLjmjWTu+iWrca6a4QteTN2+ yHaw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g145si8855668pfb.173.2019.06.09.19.37.50; Sun, 09 Jun 2019 19:38:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387464AbfFJCeg (ORCPT + 99 others); Sun, 9 Jun 2019 22:34:36 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:35692 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1730224AbfFJCef (ORCPT ); Sun, 9 Jun 2019 22:34:35 -0400 X-UUID: 28b4b304262c4b5982a4936f05fcd734-20190610 X-UUID: 28b4b304262c4b5982a4936f05fcd734-20190610 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1668713502; Mon, 10 Jun 2019 10:34:25 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 10 Jun 2019 10:34:24 +0800 Received: from [172.21.77.4] (172.21.77.4) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Mon, 10 Jun 2019 10:34:17 +0800 Message-ID: <1560134057.28527.5.camel@mtksdaap41> Subject: Re: [PATCH v4 01/14] dt-bindings: Add binding for MT2712 MIPI-CSI2 From: CK Hu To: Stu Hsieh CC: Mauro Carvalho Chehab , Rob Herring , Mark Rutland , "Matthias Brugger" , , , , , , Date: Mon, 10 Jun 2019 10:34:17 +0800 In-Reply-To: <1559643115-15124-2-git-send-email-stu.hsieh@mediatek.com> References: <1559643115-15124-1-git-send-email-stu.hsieh@mediatek.com> <1559643115-15124-2-git-send-email-stu.hsieh@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Stu: "mediatek,mt2712-mipicsi" and "mediatek,mt2712-mipicsi-common" have many common part with "mediatek,mt8183-seninf", and I've a discussion in [1], so I would like these two to be merged together. [1] https://patchwork.kernel.org/patch/10979131/ Regards, CK On Tue, 2019-06-04 at 18:11 +0800, Stu Hsieh wrote: > Add MIPI-CSI2 dt-binding for Mediatek MT2712 SoC > > Signed-off-by: Stu Hsieh > --- > .../bindings/media/mediatek-mipicsi.txt | 58 +++++++++++++++++++ > 1 file changed, 58 insertions(+) > create mode 100644 Documentation/devicetree/bindings/media/mediatek-mipicsi.txt > > diff --git a/Documentation/devicetree/bindings/media/mediatek-mipicsi.txt b/Documentation/devicetree/bindings/media/mediatek-mipicsi.txt > new file mode 100644 > index 000000000000..e30b6a468129 > --- /dev/null > +++ b/Documentation/devicetree/bindings/media/mediatek-mipicsi.txt > @@ -0,0 +1,58 @@ > +* Mediatek MIPI-CSI2 receiver > + > +Mediatek MIPI-CSI2 receiver is the MIPI Signal capture hardware present in Mediatek SoCs > + > +Required properties: > +- compatible: should be "mediatek,mt2712-mipicsi" > +- reg : physical base address of the mipicsi receiver registers and length of > + memory mapped region. > +- power-domains: a phandle to the power domain, see > + Documentation/devicetree/bindings/power/power_domain.txt for details. > +- mediatek,larb: must contain the local arbiters in the current Socs, see > + Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.txt > + for details. > +- iommus: should point to the respective IOMMU block with master port as > + argument, see Documentation/devicetree/bindings/iommu/mediatek,iommu.txt > + for details. > +- mediatek,seninf_mux_camsv: seninf_mux_camsv the data go through of the mipicsi port > + any mipicsi port can contain max four seninf_mux_camsv > + The Total seninf_mux_camsv is six for mt2712 > +- mediatek,mipicsiid: the id of the mipicsi port, there are two port for mt2712 > +- mediatek,mipicsi: the common component of the two mipicsi port > +- mediatek,mipicsi_max_vc: the number of virtual channel which subdev used > +- mediatek,serdes_link_reg: the register of subdev to get the link status > + > +Example: > + mipicsi0: mipicsi@10217000 { > + compatible = "mediatek,mt2712-mipicsi"; > + mediatek,mipicsi = <&mipicsi>; > + iommus = <&iommu0 M4U_PORT_CAM_DMA0>, > + <&iommu0 M4U_PORT_CAM_DMA1>; > + mediatek,larb = <&larb2>; > + power-domains = <&scpsys MT2712_POWER_DOMAIN_ISP>; > + > + mediatek,seninf_mux_camsv = <&seninf1_mux_camsv0 > + &seninf2_mux_camsv1 > + &seninf3_mux_camsv2 > + &seninf4_mux_camsv3>; > + reg = <0 0x10217000 0 0x60>, > + <0 0x15002100 0 0x4>, > + <0 0x15002300 0 0x100>; > + mediatek,mipicsiid = <0>; > + mediatek,mipicsi_max_vc = <4>; > + mediatek,serdes_link_reg = <0x49>; > + }; > + > + mipicsi1: mipicsi@10218000 { > + compatible = "mediatek,mt2712-mipicsi"; > + mediatek,mipicsi = <&mipicsi>; > + iommus = <&iommu0 M4U_PORT_CAM_DMA2>; > + mediatek,larb = <&larb2>; > + power-domains = <&scpsys MT2712_POWER_DOMAIN_ISP>; > + mediatek,seninf_mux_camsv = <&seninf5_mux_camsv4 > + &seninf6_mux_camsv5>; > + reg = <0 0x10218000 0 0x60>, > + <0 0x15002500 0 0x4>, > + <0 0x15002700 0 0x100>; > + mediatek,mipicsiid = <1>; > + };