From patchwork Thu Jan 21 12:36:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 12035951 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=-16.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, 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 325A2C433DB for ; Thu, 21 Jan 2021 12:37:40 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C2EC1239EF for ; Thu, 21 Jan 2021 12:37:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C2EC1239EF Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=xilinx.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=BfTlJ3Z88TC0I+Aj/BcU6YdfGJe8xWjdnxhm0hrMquo=; b=U8iHWrq+50mB/LHUWj9LHuCyG u1PgU4TxyZyZ1TgCZ3CFlx7OMWLCwJSUM46/gL4JpOlz1xLd9pp8JS9bY/yET5FXu8vRpYBqBRmLq KxQtZ7xinBSRTg4EtKHEexk7C99umLxvP48yTTOi+GDgpEj3PpU5F6PYHazp6AVb11rDflpDKLYh9 FwxuY98E5TLncGte3uR1jcLof8t8qJnASbFFqWvRuI7WYXE3xGyjm+arEKHJtN5kcdhZ6qayiMFRB vHBg7fspG4JhyOBJRxQl4Thb4p4Ne0Ko9GjxVke66VI+T7n9iIwD8cQd7XVqrTmb3w1bSvyFEFVPX XLf3Ls0iQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l2ZCI-0006IU-D5; Thu, 21 Jan 2021 12:36:22 +0000 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l2ZCB-0006Gz-Jv for linux-arm-kernel@lists.infradead.org; Thu, 21 Jan 2021 12:36:16 +0000 Received: by mail-ed1-x530.google.com with SMTP id g24so2231560edw.9 for ; Thu, 21 Jan 2021 04:36:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=yvQMuexDbhMSXwYbNjPquFBOfzpSEFh9WcFXAwIfqIo=; b=RPjMKN4Cw7l30TUpPlC9C10+HLQlZRMnvHYK3X8rEmCC+WQrV+eWSrXQ9l0ui3SANf MJjjskuZAza5KVUrz7ha5z8poBzPMTJDhaBN7H+CCEVHCCo4lE6Fjdhiefits2l/4kSG Q2vW5uXdVwpMp5tzQdtNQ6YMe0fyM3rffOy4K844a+jwQ5qAA6w5an0KTHE3ZpiNdh6d RP+04glJ1qdkk3zIp2vwTEaq2Y0kAxDh+iBWTuvTBVEmJMKKgYFoPF38IHXhDRpA1oQR g68L2UmN2aJsxUtlIBMvwO4ge5+pjofs/YT+2Tt4mFzKAila7jRyionzi45/IyiIjimQ DYCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=yvQMuexDbhMSXwYbNjPquFBOfzpSEFh9WcFXAwIfqIo=; b=habX6E4ynWBnmlxtFbYfEYGfT+eRkRhowE05EQDRIX9pj0QmBp+OT2dFrGGIkU0llq la+o2ogIikPZUu3c8nKFiwmsHBtY8P24ywZfFmrOG0MdCOk2M69KVQ27Q4oXDVO90s5T WzvJ7Z5hmdLFM68EtqERK1QE+/ysJS2qoMcMn6cFJeWYrcwCjy0rLxE/I+5pimdOpPIf DNeILdaQyPG/PxJ130Fmsi7oSY2AOkx6u1Z1kqoPMPJ5wU7fxVFbSXoqOrYVwNCYkqKQ mkNnpcxWNskMUKDxvLtGU+SwwTDy8eS2VgUejwwmkbmxyGHYGoLCvu/KGg4LzHWUNhii dFbQ== X-Gm-Message-State: AOAM533OAJH7zZ4R9MmnH9QshaKoU8Zlw6di4WUDj9p2LaFH+/ODiazn WPJvfDXRFEU78vCsm1C1ltmYQA== X-Google-Smtp-Source: ABdhPJy6IVsFSZTBKZ2z3IxDESTrY9sQpHaFjC+3KqiYDyRYVVmhyPMbbr8z+Qbas0Z4odhzdxoJYA== X-Received: by 2002:aa7:d8c6:: with SMTP id k6mr11070408eds.265.1611232574012; Thu, 21 Jan 2021 04:36:14 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id gt12sm2168052ejb.38.2021.01.21.04.36.13 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Jan 2021 04:36:13 -0800 (PST) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu, michal.simek@xilinx.com, git@xilinx.com Subject: [PATCH 3/3] arm64: dts: zynqmp: Wire up the DisplayPort subsystem Date: Thu, 21 Jan 2021 13:36:07 +0100 Message-Id: <9769d4d103b6eb75e3324825117f6832a746004e.1611232558.git.michal.simek@xilinx.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210121_073615_713840_C2ABEADE X-CRM114-Status: GOOD ( 15.32 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Rob Herring , Laurent Pinchart , Krzysztof Kozlowski Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Laurent Pinchart Enable the dpsub device and wire it up to the PS-GTR PHY lanes routed to the DisplayPort connector. Signed-off-by: Laurent Pinchart Signed-off-by: Michal Simek --- Wire all the boards --- .../boot/dts/xilinx/zynqmp-zcu100-revC.dts | 31 +++++++++++++++++++ .../boot/dts/xilinx/zynqmp-zcu102-revA.dts | 10 ++++++ .../boot/dts/xilinx/zynqmp-zcu104-revA.dts | 11 +++++++ .../boot/dts/xilinx/zynqmp-zcu104-revC.dts | 11 +++++++ .../boot/dts/xilinx/zynqmp-zcu106-revA.dts | 11 +++++++ .../boot/dts/xilinx/zynqmp-zcu111-revA.dts | 11 +++++++ 6 files changed, 85 insertions(+) diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-zcu100-revC.dts b/arch/arm64/boot/dts/xilinx/zynqmp-zcu100-revC.dts index 71ebcaadb7c8..a53598c3624b 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-zcu100-revC.dts +++ b/arch/arm64/boot/dts/xilinx/zynqmp-zcu100-revC.dts @@ -15,6 +15,7 @@ #include #include #include +#include / { model = "ZynqMP ZCU100 RevC"; @@ -108,6 +109,18 @@ ina226 { compatible = "iio-hwmon"; io-channels = <&u35 0>, <&u35 1>, <&u35 2>, <&u35 3>; }; + + si5335a_0: clk26 { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <26000000>; + }; + + si5335a_1: clk27 { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <27000000>; + }; }; &dcc { @@ -224,6 +237,13 @@ i2csw_7: i2c@7 { }; }; +&psgtr { + status = "okay"; + /* usb3, dps */ + clocks = <&si5335a_0>, <&si5335a_1>; + clock-names = "ref0", "ref1"; +}; + &rtc { status = "okay"; }; @@ -295,3 +315,14 @@ &usb1 { &watchdog0 { status = "okay"; }; + +&zynqmp_dpdma { + status = "okay"; +}; + +&zynqmp_dpsub { + status = "okay"; + phy-names = "dp-phy0", "dp-phy1"; + phys = <&psgtr 1 PHY_TYPE_DP 0 1>, + <&psgtr 0 PHY_TYPE_DP 1 1>; +}; diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-zcu102-revA.dts b/arch/arm64/boot/dts/xilinx/zynqmp-zcu102-revA.dts index 9abd10f6785a..12e8bd48dc8c 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-zcu102-revA.dts +++ b/arch/arm64/boot/dts/xilinx/zynqmp-zcu102-revA.dts @@ -714,3 +714,13 @@ &usb0 { &watchdog0 { status = "okay"; }; + +&zynqmp_dpdma { + status = "okay"; +}; + +&zynqmp_dpsub { + status = "okay"; + phy-names = "dp-phy0"; + phys = <&psgtr 1 PHY_TYPE_DP 0 3>; +}; diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-zcu104-revA.dts b/arch/arm64/boot/dts/xilinx/zynqmp-zcu104-revA.dts index 8ede619fea52..5637e1c17fdf 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-zcu104-revA.dts +++ b/arch/arm64/boot/dts/xilinx/zynqmp-zcu104-revA.dts @@ -224,3 +224,14 @@ &usb0 { &watchdog0 { status = "okay"; }; + +&zynqmp_dpdma { + status = "okay"; +}; + +&zynqmp_dpsub { + status = "okay"; + phy-names = "dp-phy0", "dp-phy1"; + phys = <&psgtr 1 PHY_TYPE_DP 0 3>, + <&psgtr 0 PHY_TYPE_DP 1 3>; +}; diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-zcu104-revC.dts b/arch/arm64/boot/dts/xilinx/zynqmp-zcu104-revC.dts index 414f98f1831e..7f2e32831b05 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-zcu104-revC.dts +++ b/arch/arm64/boot/dts/xilinx/zynqmp-zcu104-revC.dts @@ -280,3 +280,14 @@ &usb0 { &watchdog0 { status = "okay"; }; + +&zynqmp_dpdma { + status = "okay"; +}; + +&zynqmp_dpsub { + status = "okay"; + phy-names = "dp-phy0", "dp-phy1"; + phys = <&psgtr 1 PHY_TYPE_DP 0 3>, + <&psgtr 0 PHY_TYPE_DP 1 3>; +}; diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-zcu106-revA.dts b/arch/arm64/boot/dts/xilinx/zynqmp-zcu106-revA.dts index d60a30787022..18771e868399 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-zcu106-revA.dts +++ b/arch/arm64/boot/dts/xilinx/zynqmp-zcu106-revA.dts @@ -156,6 +156,17 @@ &dcc { status = "okay"; }; +&zynqmp_dpdma { + status = "okay"; +}; + +&zynqmp_dpsub { + status = "okay"; + phy-names = "dp-phy0", "dp-phy1"; + phys = <&psgtr 1 PHY_TYPE_DP 0 3>, + <&psgtr 0 PHY_TYPE_DP 1 3>; +}; + /* fpd_dma clk 667MHz, lpd_dma 500MHz */ &fpd_dma_chan1 { status = "okay"; diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-zcu111-revA.dts b/arch/arm64/boot/dts/xilinx/zynqmp-zcu111-revA.dts index 758de05c4a4b..d4b68f0d0098 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-zcu111-revA.dts +++ b/arch/arm64/boot/dts/xilinx/zynqmp-zcu111-revA.dts @@ -584,3 +584,14 @@ &usb0 { status = "okay"; dr_mode = "host"; }; + +&zynqmp_dpdma { + status = "okay"; +}; + +&zynqmp_dpsub { + status = "okay"; + phy-names = "dp-phy0", "dp-phy1"; + phys = <&psgtr 1 PHY_TYPE_DP 0 1>, + <&psgtr 0 PHY_TYPE_DP 1 1>; +};