From patchwork Mon Dec 28 10:01:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Tang X-Patchwork-Id: 352819 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BC896C43381 for ; Mon, 28 Dec 2020 10:02:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 97621208BA for ; Mon, 28 Dec 2020 10:02:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727164AbgL1KCn (ORCPT ); Mon, 28 Dec 2020 05:02:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726944AbgL1KCn (ORCPT ); Mon, 28 Dec 2020 05:02:43 -0500 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 293EAC061795; Mon, 28 Dec 2020 02:02:03 -0800 (PST) Received: by mail-pj1-x1031.google.com with SMTP id z12so5700762pjn.1; Mon, 28 Dec 2020 02:02:03 -0800 (PST) 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=zHfnNx0J3r3BjI2ETPq9kmvQWmw+pKoPMGoXArL8lcQ=; b=uuIkDnzFiQ46bqkuMSED83M1+xu9rcfblRWN/z96s1e/E7c/fN9Rt7wjv0khxii1SS s+XwH1wYSCfxvHtR1BYKdqkFPTwVoe8b82qEhylYMw2LbRVnAZNYBotbDosOk12b7OXT mcoKIwGT1zxTHV76dBr2nuOU1hHbk92H8SKlOxzJ6ejKDC0IcBjw34iI323jL2HrcInN vnnGQ0h6Ur9TNi6S1x/v2pOfRJ9qqVq9/XS9/f+YAq3mLJAOwWJcdYvIwOqxRprA7FbS FNDp1eNIoNu3+OSWZucW8ZFl+rsr54MSfyEjcvUdqgrmgUZbn+oKHEruRqcF8Nzh+1uZ bobA== 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=zHfnNx0J3r3BjI2ETPq9kmvQWmw+pKoPMGoXArL8lcQ=; b=gjIx4LuVWadsXVuUEDDqAbk29zxW1wJ8UkoiROjhEYXIfLrLjZHlF4ZacGXmPNDsoB xSOi7nyIQ1Fzf0sWNg5kzt/17A9L3SIa6NiMpSKyN0L47L7i6uDGO+OUKqET+kr/7vl0 hCBLZubvPMp8ijNIaOjgQYBy2pUFwWLSo0F1SXONBWZ2mkF256Q0sN1UC6JNMJexufTn gmNK1YkFu+0x5C3C3wu8obwA3iwfhQS/xlek2quMXWc2nPSB4sIHrMXSibHsXiccGjyL newaW4jxULyhWg8Z+qJFd35R4niwiwRx338gbUDIhIhXh5HDvNgWCOnK/qJf+kypd0Sf OQMg== X-Gm-Message-State: AOAM532qd0qaMAjO8l/gzfM2dB1HSyQ+zPdW+iN9de62DtQ1YZz/rEw6 M3+SFPK/dCE+F14+Ges/lDY= X-Google-Smtp-Source: ABdhPJw6MrtK9ABsb5+uxGCF/YNyyzyA3Wig1l4YTaVHxAp42e3RStEpPvNWMaEvOQq9OA/5WtxX2g== X-Received: by 2002:a17:90a:3cc6:: with SMTP id k6mr20231275pjd.204.1609149722779; Mon, 28 Dec 2020 02:02:02 -0800 (PST) Received: from nj08008nbu.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id s1sm33775240pjk.1.2020.12.28.02.01.57 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Dec 2020 02:02:02 -0800 (PST) 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, devicetree@vger.kernel.org Subject: [PATCH v2 1/6] dt-bindings: display: add Unisoc's drm master bindings Date: Mon, 28 Dec 2020 18:01:42 +0800 Message-Id: <1609149707-21411-2-git-send-email-kevin3.tang@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1609149707-21411-1-git-send-email-kevin3.tang@gmail.com> References: <1609149707-21411-1-git-send-email-kevin3.tang@gmail.com> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Kevin Tang The Unisoc DRM master device is a virtual device needed to list all DPU devices or other display interface nodes that comprise the graphics subsystem Unisoc's display pipeline have several components as below description, multi display controllers and corresponding physical interfaces. For different display scenarios, dpu0 and dpu1 maybe binding to different encoder. E.g: dpu0 and dpu1 both binding to DSI for dual mipi-dsi display; dpu0 binding to DSI for primary display, and dpu1 binding to DP for external display; Cc: Orson Zhai Cc: Chunyan Zhang Signed-off-by: Kevin Tang Reviewed-by: Rob Herring --- .../display/sprd/sprd,display-subsystem.yaml | 64 ++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/sprd/sprd,display-subsystem.yaml diff --git a/Documentation/devicetree/bindings/display/sprd/sprd,display-subsystem.yaml b/Documentation/devicetree/bindings/display/sprd/sprd,display-subsystem.yaml new file mode 100644 index 0000000..3d107e9 --- /dev/null +++ b/Documentation/devicetree/bindings/display/sprd/sprd,display-subsystem.yaml @@ -0,0 +1,64 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/sprd/sprd,display-subsystem.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Unisoc DRM master device + +maintainers: + - Kevin Tang + +description: | + The Unisoc DRM master device is a virtual device needed to list all + DPU devices or other display interface nodes that comprise the + graphics subsystem. + + Unisoc's display pipeline have several components as below description, + multi display controllers and corresponding physical interfaces. + For different display scenarios, dpu0 and dpu1 maybe binding to different + encoder. + + E.g: + dpu0 and dpu1 both binding to DSI for dual mipi-dsi display; + dpu0 binding to DSI for primary display, and dpu1 binding to DP for external display; + + +-----------------------------------------+ + | | + | +---------+ | + +----+ | +----+ +---------+ |DPHY/CPHY| | +------+ + | +----->+dpu0+--->+MIPI|DSI +--->+Combo +----->+Panel0| + |AXI | | +----+ +---------+ +---------+ | +------+ + | | | ^ | + | | | | | + | | | +-----------+ | + | | | | | + |APB | | +--+-+ +-----------+ +---+ | +------+ + | +----->+dpu1+--->+DisplayPort+--->+PHY+--------->+Panel1| + | | | +----+ +-----------+ +---+ | +------+ + +----+ | | + +-----------------------------------------+ + +properties: + compatible: + const: sprd,display-subsystem + + ports: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: + Should contain a list of phandles pointing to display interface port + of DPU devices. + +required: + - compatible + - ports + +additionalProperties: false + +examples: + - | + display-subsystem { + compatible = "sprd,display-subsystem"; + ports = <&dpu_out>; + }; + From patchwork Mon Dec 28 10:01:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Tang X-Patchwork-Id: 352818 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4273AC4332D for ; Mon, 28 Dec 2020 10:02:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 20810206F8 for ; Mon, 28 Dec 2020 10:02:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727209AbgL1KCw (ORCPT ); Mon, 28 Dec 2020 05:02:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726944AbgL1KCw (ORCPT ); Mon, 28 Dec 2020 05:02:52 -0500 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29514C061798; Mon, 28 Dec 2020 02:02:12 -0800 (PST) Received: by mail-pl1-x629.google.com with SMTP id y8so5405855plp.8; Mon, 28 Dec 2020 02:02:12 -0800 (PST) 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=vv0Tt7wUhLrWCRhDSflLKD0bX0DOHnjLkBF71kuu380=; b=vCTTnj7+GzOvNpAKrMVp2zDe4HA4xPfrZFuIio2ouwLZxOo6rLpSMbinORbG9ZBEUP cdeJWKiSVj9siXQ9tOpWstpC90V4I2viYeoYw6YANB2apV0Hpz8FGZcAVdS5xnTMyoEf LUOwykxJHhEtOAVT/KGSi+Ui3RjsXcxTsnpfBQbgw8j9NO6jC4TSw4BpDQAZkTw2/g6a qBzsW7xTYMHF0LcB+GT1HF4oV7FIQRFS+iGmXS7YklajLThkCGbK9WFGLd/NhB6MC4fR tsi7vJOloi0wVlELTJ3QFZsA2/NPSXdsen31F60+NYuy4lOixpiHH7JXEvxEeScG+G3C 8sOQ== 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=vv0Tt7wUhLrWCRhDSflLKD0bX0DOHnjLkBF71kuu380=; b=O4QmIrGFPpTBwqNaY7UmxmklrOf1K/XyCJMlWm0LAIAkIYuuZ3He15HXMfPqqSPj0g kbPDpHdr/94Lrz1EBPzNqyAW9i5wr8nvDKDmtEi9dlZ6Nn3s+1PUhCKNsJRO1rTroL1o ps1xH5KItJlaD80Wte/Hf1j3Nfvqo/EHsdkciccwFtLLwH3VdQ0rOX7Xo5GH7wmFddOW ov9S/S7EfHHgX4MZs+keHjm4cHjoEZwy7TfuqkFUOHvI/V7mx1rNWUpAMDIY+D4gw7r4 ts/kZwxsDNoTD7yy07SxNp/kX1gF5N6dB2v3uqsJB6GQQmgxKpTA+EJ+ld8ScNSOwVHY JuIA== X-Gm-Message-State: AOAM533IKzWjN7N2748aibcV3uO0Ke/4f3z3ZmIkHkRkTYjFPw9vYLsK q5Ft+JoncKxyydzMz2m0gZ4= X-Google-Smtp-Source: ABdhPJyyhLUIkAER5gLVdEXNUusmZUYOGsbveXGxvMUfapz4nXPGbqCn5VWjPq1NEDkUiCNDhj28uw== X-Received: by 2002:a17:90a:4:: with SMTP id 4mr20557128pja.19.1609149731767; Mon, 28 Dec 2020 02:02:11 -0800 (PST) Received: from nj08008nbu.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id s1sm33775240pjk.1.2020.12.28.02.02.07 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Dec 2020 02:02:11 -0800 (PST) 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, devicetree@vger.kernel.org Subject: [PATCH v2 3/6] dt-bindings: display: add Unisoc's dpu bindings Date: Mon, 28 Dec 2020 18:01:44 +0800 Message-Id: <1609149707-21411-4-git-send-email-kevin3.tang@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1609149707-21411-1-git-send-email-kevin3.tang@gmail.com> References: <1609149707-21411-1-git-send-email-kevin3.tang@gmail.com> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Kevin Tang DPU (Display Processor Unit) is the Display Controller for the Unisoc SoCs which transfers the image data from a video memory buffer to an internal LCD interface. Cc: Orson Zhai Cc: Chunyan Zhang Signed-off-by: Kevin Tang Reviewed-by: Rob Herring --- .../bindings/display/sprd/sprd,sharkl3-dpu.yaml | 77 ++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/sprd/sprd,sharkl3-dpu.yaml diff --git a/Documentation/devicetree/bindings/display/sprd/sprd,sharkl3-dpu.yaml b/Documentation/devicetree/bindings/display/sprd/sprd,sharkl3-dpu.yaml new file mode 100644 index 0000000..4ebea60 --- /dev/null +++ b/Documentation/devicetree/bindings/display/sprd/sprd,sharkl3-dpu.yaml @@ -0,0 +1,77 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/sprd/sprd,sharkl3-dpu.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Unisoc Sharkl3 Display Processor Unit (DPU) + +maintainers: + - Kevin Tang + +description: | + DPU (Display Processor Unit) is the Display Controller for the Unisoc SoCs + which transfers the image data from a video memory buffer to an internal + LCD interface. + +properties: + compatible: + const: sprd,sharkl3-dpu + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + minItems: 2 + + clock-names: + items: + - const: clk_src_128m + - const: clk_src_384m + + power-domains: + maxItems: 1 + + iommus: + maxItems: 1 + + port: + 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 DSI. + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - port + +additionalProperties: false + +examples: + - | + #include + #include + dpu: dpu@63000000 { + compatible = "sprd,sharkl3-dpu"; + reg = <0x63000000 0x1000>; + interrupts = ; + clock-names = "clk_src_128m", "clk_src_384m"; + + clocks = <&pll CLK_TWPLL_128M>, + <&pll CLK_TWPLL_384M>; + + dpu_port: port { + dpu_out: endpoint { + remote-endpoint = <&dsi_in>; + }; + }; + }; From patchwork Mon Dec 28 10:01:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Tang X-Patchwork-Id: 352817 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BAA97C433DB for ; Mon, 28 Dec 2020 10:03:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8DFD92242A for ; Mon, 28 Dec 2020 10:03:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727018AbgL1KDS (ORCPT ); Mon, 28 Dec 2020 05:03:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726944AbgL1KDS (ORCPT ); Mon, 28 Dec 2020 05:03:18 -0500 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCBCFC06179A; Mon, 28 Dec 2020 02:02:19 -0800 (PST) Received: by mail-pj1-x102b.google.com with SMTP id n3so4633134pjm.1; Mon, 28 Dec 2020 02:02:19 -0800 (PST) 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=oVRIl4Sz0MTda1/P8GVqU6JTUOlSJ4wE70cCNd4CfXk=; b=YnyTV4vyw9pVpGdEoVqKLl47nTsq5e0f8vjcw9tJZS8FL7Q6O3Ae7EzB9CGTfnVNnR Y0SaxeeH9beuaI7SuHGunidfi2kixdeXK+dPxaAzF7TSIBUUiLaB/abT5RfqxEWqvfIW IVzV+IHNqnekl7GDdrOHtVB6PlZy3nrL3G46jdk+rg0oMxlLZsFoR5T2xdz5pLkFC8Iw JXJ6lYwDwKfe+wuLIoN5Ow2nzm3FuVy56a1kXDPeqfIY00xFMntKE2fyFm1uJSgdPWc3 38DRbKaCtC7YhbNNUM72NHHa430V3ZLsNOyub5GdEwCYv5e9H9Oo79wYWNYz/7+OMIGv 80mg== 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=oVRIl4Sz0MTda1/P8GVqU6JTUOlSJ4wE70cCNd4CfXk=; b=aXgmsB7ZW/RxAjPuWlHXlUDxmodWmRM16fr17XODF0xtKyH4/DDXWN8saM+McnBPgT B+ld0YqIn+Kg/P5ZAbUPat1KctaN8NXwxG+3hA7xLXTZwpnFKEiniNLfwek3PoUDLYzj I2JwLxzrysysXY0vFYH7Gls/YaTFGT2xKLpqX36X1MwGM220QMAB7WtG1ecsXNoFVjwS MG/DLo0P2nih6kpQpW2kzOG8n6uBukPZ2oLCfovLdoJMzoIMswE3hbjyQRy/ExI2V0mY jVhP+wvKHfrjpk5jnfbjvHBRRdeI/mMLZn/0Iv3lgTvPM4zvCHizC1TlQDzsScega7DQ q1Kw== X-Gm-Message-State: AOAM5319ovnqCq0xgH4TD0nAaR6unqf9DFxLrsJ2U+E0ViT8CwCPxmMR tyaeQI7htdUrlMdH3EjfSJE= X-Google-Smtp-Source: ABdhPJxd27P0DV2n5nVvW4sWQLcddokEN0tmiJK0+RruD7GQvOCaWq4cUZEAPb+SjxWUzX41JPqeDA== X-Received: by 2002:a17:902:fe91:b029:da:6bf3:7ba0 with SMTP id x17-20020a170902fe91b02900da6bf37ba0mr44270797plm.2.1609149739451; Mon, 28 Dec 2020 02:02:19 -0800 (PST) Received: from nj08008nbu.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id s1sm33775240pjk.1.2020.12.28.02.02.16 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Dec 2020 02:02:18 -0800 (PST) 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, devicetree@vger.kernel.org Subject: [PATCH v2 5/6] dt-bindings: display: add Unisoc's mipi dsi controller bindings Date: Mon, 28 Dec 2020 18:01:46 +0800 Message-Id: <1609149707-21411-6-git-send-email-kevin3.tang@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1609149707-21411-1-git-send-email-kevin3.tang@gmail.com> References: <1609149707-21411-1-git-send-email-kevin3.tang@gmail.com> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Kevin Tang Adds MIPI DSI Controller support for Unisoc's display subsystem. Cc: Orson Zhai Cc: Chunyan Zhang Signed-off-by: Kevin Tang Reviewed-by: Rob Herring --- .../display/sprd/sprd,sharkl3-dsi-host.yaml | 107 +++++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/sprd/sprd,sharkl3-dsi-host.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..f7ee6b2 --- /dev/null +++ b/Documentation/devicetree/bindings/display/sprd/sprd,sharkl3-dsi-host.yaml @@ -0,0 +1,107 @@ +# 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 + + ports: + type: object + + properties: + "#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 panel. + + required: + - "#address-cells" + - "#size-cells" + - port@0 + - port@1 + + additionalProperties: false + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - ports + +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>; + ports { + #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 = <&panel_in>; + }; + }; + }; + };