Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3993379pxj; Mon, 21 Jun 2021 11:00:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmts7493coJQ3ZIU2YMwNaZto7+fynDGXXGXY9QuZ9UhPTrkS2JE+uih4oHHoGGXaPgGWX X-Received: by 2002:a02:cca6:: with SMTP id t6mr8702082jap.36.1624298426062; Mon, 21 Jun 2021 11:00:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624298426; cv=none; d=google.com; s=arc-20160816; b=XmEj8BX8b9AFBzzys2PHSDQAsa27eodT5smmgo2ghYLSqq7C3QK+FmpsZ1AM6q/h/X mVaj9hVVymwpKal29T5Z6PgdJsc6HJZdcPHQpm1t6/ij3f2/25qnY7xrj54rjMKIDRu2 XYHUk/C0v8WLFbCSup2rFdSLPmLHx6RpKnvvVyL9kT8/FoHIgTysLMuCU1L5h7YV59JB xi+/fCns1CepszH6Wc2KkcTHEXyXfdQxTehvuxnUdhNxGKfHekQdTdgtHkOfhww11Qzq eraSqQRJWpBUd5bolQwHTm9v3KgTlhlUBdWfEJIq7W9JOU6uqHfUbyNM1uXtq/1ys0Oc mwpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=dug7DihyI5pSG2Yw99A6X6r0GY+3oN9YqBsbBqXTuW8=; b=dWG8BAHwrIh8kKEb5VKJ3o8qkfUl+eIDU+oPxSfIpYdwVc+F1+AHkK3pSJ6Sy0DUof Ax+5WPZAzxbDucrACvq8MPtcwxI0XNIJqn+HvmsgkldCfkzVLFrDd4EJc5/hBSDRIXRX rr607TfsWygeEsKT+5rhJH0/e5Fy/jEkqJcNCk2tbLxVDt4R+LJBQlOdwovwL5Buh5X1 Noy/1kII74bGT3zkOg/JFrcCQhkvVtpx8H/sU7R3sn/8CGslJNUj/92qI7lKEbA5EQR4 vMvX8L6kK/4AOY3dfsOHcqzTeQNuYoLXpdAevcX04wSd7BFF/xPeFrHuHBcp6X1+oYIR PUYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=LfWdClqW; 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 f6si17396580iox.103.2021.06.21.11.00.12; Mon, 21 Jun 2021 11:00:26 -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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=LfWdClqW; 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 S232455AbhFUSBJ (ORCPT + 99 others); Mon, 21 Jun 2021 14:01:09 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:58254 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233161AbhFUR6b (ORCPT ); Mon, 21 Jun 2021 13:58:31 -0400 Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 654F75E17; Mon, 21 Jun 2021 19:56:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1624298174; bh=xTAY6XehRVOvS40XWKwQ0ZxduxmilFWHgm+B43wpOtk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LfWdClqW2kQ6uB7QoP6STkQ08ylCf9woPfaGaApNrjNI6NChKCGJenjYRIPetky1q JKwS5IDWB0LO3DvoiZU03U6xpabHxbwPjne9FRGYCZgyhptOLomgX7XSSO+u9YzUiY d6WEo81pq6a8aUgM+XvgzDhTE2t7Dw2Nxe2Gc7R0= Date: Mon, 21 Jun 2021 20:55:48 +0300 From: Laurent Pinchart To: Jagan Teki Cc: Peng Fan , Shawn Guo , Sascha Hauer , Tomasz Figa , Fancy Fang , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, NXP Linux Team , linux-amarula@amarulasolutions.com, Anthony Brandon , Francis Laniel , Matteo Lisi , Milco Pratesi , Andrzej Hajda , Neil Armstrong , Robert Foss , Rob Herring Subject: Re: [RFC PATCH 1/9] dt-bindings: display: bridge: Add Samsung SEC MIPI DSIM bindings Message-ID: References: <20210621072424.111733-1-jagan@amarulasolutions.com> <20210621072424.111733-2-jagan@amarulasolutions.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210621072424.111733-2-jagan@amarulasolutions.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jagan, Thank you for the patch. On Mon, Jun 21, 2021 at 12:54:16PM +0530, Jagan Teki wrote: > Samsung SEC MIPI DSIM Bridge controller is MIPI DSI bridge > available in NXP's i.MX8M Mini and Nano Processors. > > Add dt-bingings for it. > > Cc: Andrzej Hajda > Cc: Neil Armstrong > Cc: Robert Foss > Cc: Laurent Pinchart > Cc: Rob Herring > Signed-off-by: Jagan Teki > --- > .../display/bridge/samsung,sec-dsim.yaml | 184 ++++++++++++++++++ > 1 file changed, 184 insertions(+) > create mode 100644 Documentation/devicetree/bindings/display/bridge/samsung,sec-dsim.yaml > > diff --git a/Documentation/devicetree/bindings/display/bridge/samsung,sec-dsim.yaml b/Documentation/devicetree/bindings/display/bridge/samsung,sec-dsim.yaml > new file mode 100644 > index 000000000000..32f67f313dfd > --- /dev/null > +++ b/Documentation/devicetree/bindings/display/bridge/samsung,sec-dsim.yaml > @@ -0,0 +1,184 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/display/bridge/samsung,sec-dsim.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Samsung SEC MIPI DSIM Bridge controller on i.MX8M Mini and Nano SoCs > + > +maintainers: > + - Jagan Teki > + > +description: | > + NWL MIPI-DSI host controller found on i.MX8 platforms. This is a dsi bridge for > + the SOCs NWL MIPI-DSI host controller. > + > +allOf: > + - $ref: ../dsi-controller.yaml# > + > +properties: > + compatible: > + enum: > + - fsl,imx8mm-sec-dsim > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + '#address-cells': > + const: 1 > + > + '#size-cells': > + const: 0 > + > + assigned-clock-parents: true > + assigned-clock-rates: true > + assigned-clocks: true > + > + clocks: > + items: > + - description: DSI bus clock > + - description: PHY_REF clock > + > + clock-names: > + items: > + - const: bus > + - const: phy_ref > + > + phys: > + maxItems: 1 > + description: phandle to the phy module representing the DPHY > + > + phy-names: > + items: > + - const: dphy > + > + power-domains: > + maxItems: 1 > + description: phandle to the associated power domain > + > + samsung,burst-clock-frequency: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + DSIM high speed burst mode frequency. > + > + samsung,esc-clock-frequency: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + DSIM escape mode frequency. > + > + samsung,pll-clock-frequency: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + DSIM oscillator clock frequency. Why do you need those three properties ? They look like configuration information to me, not system description. If they are needed, their description needs to explain how to set them. Looking at the three descriptions above I have no idea what to select for those frequencies. > + > + ports: > + $ref: /schemas/graph.yaml#/properties/ports > + > + properties: > + port@0: > + $ref: /schemas/graph.yaml#/$defs/port-base > + description: > + Input port node to receive pixel data from the > + display controller. Exactly one endpoint must be > + specified. > + properties: > + endpoint@0: > + $ref: /schemas/graph.yaml#/properties/endpoint > + description: sub-node describing the input from LCDIF > + > + endpoint@1: > + $ref: /schemas/graph.yaml#/properties/endpoint > + description: sub-node describing the input from DCSS > + > + oneOf: > + - required: > + - endpoint@0 > + - required: > + - endpoint@1 > + > + unevaluatedProperties: false > + > + port@1: > + $ref: /schemas/graph.yaml#/properties/port > + description: > + DSI output port node to the panel or the next bridge > + in the chain > + > + required: > + - port@0 > + - port@1 > + > +required: > + - '#address-cells' > + - '#size-cells' > + - clock-names > + - clocks > + - compatible > + - interrupts > + - phy-names > + - phys > + - ports > + - reg > + - samsung,burst-clock-frequency > + - samsung,esc-clock-frequency > + - samsung,pll-clock-frequency > + > +unevaluatedProperties: false > + > +examples: > + - | > + #include > + #include > + #include > + #include > + > + dsi: dsi@32e10000 { > + compatible = "fsl,imx8mm-sec-dsim"; > + reg = <0x32e10000 0xa0>; > + clocks = <&clk IMX8MM_CLK_DSI_CORE>, > + <&clk IMX8MM_CLK_DSI_PHY_REF>; > + clock-names = "bus", "phy_ref"; > + assigned-clocks = <&clk IMX8MM_CLK_DSI_CORE>, > + <&clk IMX8MM_VIDEO_PLL1_OUT>, > + <&clk IMX8MM_CLK_DSI_PHY_REF>; > + assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_266M>, > + <&clk IMX8MM_VIDEO_PLL1_BYPASS>, > + <&clk IMX8MM_VIDEO_PLL1_OUT>; > + assigned-clock-rates = <266000000>, <594000000>, <27000000>; > + interrupts = ; > + phys = <&dphy>; > + phy-names = "dphy"; > + power-domains = <&dispmix_blk_ctl IMX8MM_BLK_CTL_PD_DISPMIX_MIPI_DSI>; > + samsung,burst-clock-frequency = <891000000>; > + samsung,esc-clock-frequency = <54000000>; > + samsung,pll-clock-frequency = <27000000>; > + #address-cells = <1>; > + #size-cells = <0>; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + #size-cells = <0>; > + #address-cells = <1>; > + > + dsi_in_lcdif: endpoint@0 { > + reg = <0>; > + remote-endpoint = <&lcdif_out_dsi>; > + }; > + }; > + > + port@1 { > + reg = <1>; > + > + dsi_out_panel: endpoint { > + remote-endpoint = <&panel_in_dsi>; > + }; > + }; > + }; > + }; -- Regards, Laurent Pinchart