Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2802368pxk; Sun, 27 Sep 2020 23:32:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySCc3khaKT5y8iB3cR1X/WjG4Xh2DMoaOmrNJTeWxE37amMJZa5PFgKZPqkpKKKq55hu9e X-Received: by 2002:a50:fa88:: with SMTP id w8mr88184edr.179.1601274764566; Sun, 27 Sep 2020 23:32:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601274764; cv=none; d=google.com; s=arc-20160816; b=WSAcK6dTJvRU9z7xfpzWNlrysuWJMY0VbT31lWpZfZSI+6yl6wLZJ/4pjphSzppU7c r42xP6j/mDdgEeKhvNHPKz7XjemiIcZ2/sFXf+aJp77Ld/oo4xzK/+coS5eWnym5eoyE 156pcHPMHlQd5sVljk4bBn+9mOyIpVO+4OhR+L0QJzI7PXqJyOgITIdd5JJtbmvp4lrl PfwbzjOlZoXq/7GuROAg4Xn+NMdUjCpOBnnFjPSDBCMMtfYbhs+c+WjrPpgwK6lI6u6P OKln7ARZxuJ6akgwsRDxwvTPEc2rS+kch4/bwSwbQ76uU8PrdqsmMzm0Vm7m+dc4k/xk qyCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=wkcAukPVeQX/XX3VbeBj4swrCvj8XPck6PFWXkBMmfM=; b=LjrP7JjeZQ2Wg5LbQH15MtJah4emTTMQNSSOIushkTqYAgt47VfU5m4SHIF0FUDk4J /cIY9XM2wlWLYSca0kmefozDTCMa/8CwYP4+QaX8ZwsfVcrnDuPGM+de9ruu91PQiAZS kKhRLE7mMP5ioFlS5U/nlLORLka9oaK8rhpf62cC0Lu9/ljQj3aMNvKT1NEjUAnHXDLb n5fRupUWFKwc4MGWxxfsf2TImFINaiAQPzB1YhlEWsgou9vUwKbAYG9TU1SUcTIdMTcG nSgsM8RKlXfrbZD7FBdTy8ZktIW4OabnWt/K3eIYKIbt+toZE99tXJvN52mydDtM7rto tEwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="u6bwuaQ/"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a21si7137954edr.363.2020.09.27.23.32.21; Sun, 27 Sep 2020 23:32:44 -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=@gmail.com header.s=20161025 header.b="u6bwuaQ/"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726613AbgI1G2L (ORCPT + 99 others); Mon, 28 Sep 2020 02:28:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725290AbgI1G2K (ORCPT ); Mon, 28 Sep 2020 02:28:10 -0400 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A17DC0613CF for ; Sun, 27 Sep 2020 23:28:10 -0700 (PDT) Received: by mail-pf1-x42d.google.com with SMTP id o20so8414435pfp.11 for ; Sun, 27 Sep 2020 23:28:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=wkcAukPVeQX/XX3VbeBj4swrCvj8XPck6PFWXkBMmfM=; b=u6bwuaQ/VWWPYDNv6doCwWuLXdjezSbkaHmJ07vmboOQTL71AQoyXeoAU/vUr/7JxR vhuzqXLpVhYGZHyCLbhb0TU4G9rUIN11DFNeTsd4BouCBecBHUckjhAVEoljFEzFIcDg 9BAhOTLF4Vg2TbA5uxlkeCQ8F67icwWMuXFxMG6PPdPzxa/QDnuOvoXgRS8wFiJKSNUJ c6cwHlIHuu+mI7KtJpdQzBJbh6Q6vuuIVt4ooemyz07I7aw/ybmSHRrlKG/6A2RpK4/K 6PGykAT17nMHTWDHFSjKllKZXPd4sBad+gpMaV5gq69XXilI7xlMIcfk6DVU1jFsP+uJ i+0w== 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; bh=wkcAukPVeQX/XX3VbeBj4swrCvj8XPck6PFWXkBMmfM=; b=IMgIJrsmeDLAY/keMeD5FBZjaWV+OMEetwa2vREs9+szM9LZLAGtF2aHatttVu8TOy UnT7O87JwNfIWAy4vL418+6DXf6bjzfgWMRKkwpzChOd1FfGKx9o2PfDpo2U1/bwy9hE h1fZlTi1TKb1E4O7cT1rcU07NKX3hF6SwyrO7gzucQ+bbWHunSnj3ojOORPOUi9BlYKV YSvOpCZ3v6zQpUaJFwg41U3vq0M9PQ93O6raKlbeTNUHg5Fc2kmR1GFgUtBazo6hHmLg rLfyUn84TU4HWzvPsoudX13eld66ufzYmutv8ukrqEKlQhKOgnL3nmxpXQr5sFY5jVGX TXhg== X-Gm-Message-State: AOAM533+9P5JsHPfa5UyZur/+2tEQfzm7IfSjrV4/33vTcNGsIJVmbrY 31EMtaw15AZAg0Kzxn+4zUE= X-Received: by 2002:a63:c74f:: with SMTP id v15mr94995pgg.143.1601274489479; Sun, 27 Sep 2020 23:28:09 -0700 (PDT) Received: from nj08008nbu.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id il14sm5712509pjb.54.2020.09.27.23.28.05 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 27 Sep 2020 23:28:08 -0700 (PDT) From: Kevin Tang To: maarten.lankhorst@linux.intel.com, mripard@kernel.org, sean@poorly.run, airlied@linux.ie, daniel@ffwll.ch, robh+dt@kernel.org, mark.rutland@arm.com, kevin3.tang@gmail.com Cc: orsonzhai@gmail.com, zhang.lyra@gmail.com, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [PATCH RFC v7 5/6] dt-bindings: display: add Unisoc's mipi dsi&dphy bindings Date: Mon, 28 Sep 2020 14:27:39 +0800 Message-Id: <1601274460-7866-6-git-send-email-kevin3.tang@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1601274460-7866-1-git-send-email-kevin3.tang@gmail.com> References: <1601274460-7866-1-git-send-email-kevin3.tang@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kevin Tang Adds MIPI DSI Master and MIPI DSI-PHY (D-PHY) support for Unisoc's display subsystem. RFC v7: - Fix DTC unit name warnings - Fix the problem of maintainers Cc: Orson Zhai Cc: Chunyan Zhang Signed-off-by: Kevin Tang --- .../display/sprd/sprd,sharkl3-dsi-host.yaml | 98 ++++++++++++++++++++++ .../display/sprd/sprd,sharkl3-dsi-phy.yaml | 75 +++++++++++++++++ 2 files changed, 173 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/sprd/sprd,sharkl3-dsi-host.yaml create mode 100644 Documentation/devicetree/bindings/display/sprd/sprd,sharkl3-dsi-phy.yaml diff --git a/Documentation/devicetree/bindings/display/sprd/sprd,sharkl3-dsi-host.yaml b/Documentation/devicetree/bindings/display/sprd/sprd,sharkl3-dsi-host.yaml new file mode 100644 index 0000000..b6bbf67 --- /dev/null +++ b/Documentation/devicetree/bindings/display/sprd/sprd,sharkl3-dsi-host.yaml @@ -0,0 +1,98 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/sprd/sprd,sharkl3-dsi-host.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Unisoc MIPI DSI Controller + +maintainers: + - Kevin Tang + +properties: + compatible: + const: sprd,sharkl3-dsi-host + + reg: + maxItems: 1 + description: + Physical base address and length of the registers set for the device. + + interrupts: + maxItems: 2 + description: + Should contain DSI interrupt. + + clocks: + minItems: 1 + + clock-names: + items: + - const: clk_src_96m + + power-domains: + maxItems: 1 + description: A phandle to DSIM power domain node + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + port@0: + type: object + description: + A port node with endpoint definitions as defined in + Documentation/devicetree/bindings/media/video-interfaces.txt. + That port should be the input endpoint, usually coming from + the associated DPU. + port@1: + type: object + description: + A port node with endpoint definitions as defined in + Documentation/devicetree/bindings/media/video-interfaces.txt. + That port should be the output endpoint, usually output to + the associated DPHY. + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - port@0 + - port@1 + - "#address-cells" + - "#size-cells" + +additionalProperties: false + +examples: + - | + #include + #include + dsi: dsi@63100000 { + compatible = "sprd,sharkl3-dsi-host"; + reg = <0x63100000 0x1000>; + interrupts = , + ; + clock-names = "clk_src_96m"; + clocks = <&pll CLK_TWPLL_96M>; + + #address-cells = <1>; + #size-cells = <0>; + port@0 { + reg = <0>; + dsi_in: endpoint { + remote-endpoint = <&dpu_out>; + }; + }; + + port@1 { + reg = <1>; + dsi_out: endpoint { + remote-endpoint = <&dphy_in>; + }; + }; + }; diff --git a/Documentation/devicetree/bindings/display/sprd/sprd,sharkl3-dsi-phy.yaml b/Documentation/devicetree/bindings/display/sprd/sprd,sharkl3-dsi-phy.yaml new file mode 100644 index 0000000..0ab8c33 --- /dev/null +++ b/Documentation/devicetree/bindings/display/sprd/sprd,sharkl3-dsi-phy.yaml @@ -0,0 +1,75 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/sprd/sprd,sharkl3-dsi-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Unisoc MIPI DSI-PHY (D-PHY) + +maintainers: + - Kevin Tang + +properties: + compatible: + const: sprd,sharkl3-dsi-phy + + reg: + maxItems: 1 + description: + Must be the dsi controller base address. + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + port@0: + type: object + description: + A port node with endpoint definitions as defined in + Documentation/devicetree/bindings/media/video-interfaces.txt. + That port should be the output endpoint, usually output to + the associated panel. + port@1: + type: object + description: + A port node with endpoint definitions as defined in + Documentation/devicetree/bindings/media/video-interfaces.txt. + That port should be the input endpoint, usually coming from + the associated DSI controller. + +required: + - compatible + - reg + - port@0 + - port@1 + - "#address-cells" + - "#size-cells" + +additionalProperties: false + +examples: + - | + dphy: dphy@63100000 { + compatible = "sprd,sharkl3-dsi-phy"; + reg = <0x63100000 0x1000>; + #address-cells = <1>; + #size-cells = <0>; + + /* input port*/ + port@1 { + reg = <1>; + dphy_in: endpoint { + remote-endpoint = <&dsi_out>; + }; + }; + + /* output port */ + port@0 { + reg = <0>; + dphy_out: endpoint { + remote-endpoint = <&panel_in>; + }; + }; + }; -- 2.7.4