From patchwork Mon Jun 14 15:25:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 12319295 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 CA677C2B9F4 for ; Mon, 14 Jun 2021 15:50:20 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 8EEF761352 for ; Mon, 14 Jun 2021 15:50:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8EEF761352 Authentication-Results: mail.kernel.org; dmarc=fail (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=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=wj0IJdY5kgKaZXQym6Hj7M6OZGKjY15ATEaY8k/hoPs=; b=AH/dd5yuh/1VGG YO1rpc7ZYYfsbEdLJ+T5ce80BfI7uR3MGRPX+b2HGzuS1OswHCMcQSIIxtKWvmzp438VvS7hb0qiG G7MpRU0KSrIOEAi4ydIp6wDdvFgnAaMfXliOMCTvHLIV+KBLOSYZRGzvtRF7qMR4PPVx0tWVknDxg uAuVcwlD4c+WR1tRZTFi3H9RtwRGMihKa96qHlwfHzrnFnFoqKhJugb12Mlu091WUbpFVNaWcc/YS 724QiXNt6Y+Ad9sHVWbyGCzqtPhnK1/G1CvhbIzP3qFURx8OUMyNEgl02LvqG0SwyIeLaF97bYVW2 6quvkWBTtSBbn5vRtHlw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lsoon-00ErCv-7x; Mon, 14 Jun 2021 15:48:06 +0000 Received: from mail-ej1-f48.google.com ([209.85.218.48]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lsoUJ-00EjLm-Mk for linux-arm-kernel@lists.infradead.org; Mon, 14 Jun 2021 15:26:58 +0000 Received: by mail-ej1-f48.google.com with SMTP id k25so17348198eja.9 for ; Mon, 14 Jun 2021 08:26:54 -0700 (PDT) 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=suucIjcD7AZEOlm9ZQcvacG4OEzi3IigwuSu3QmJxiE=; b=bgJk0fMBeSUnXHJNemWtNsg2vGXZUWnJdu986JZn9FqFfiS3O1/fyDpHZUtI643qvf Zruuj+rzXLgcMCXyM1TvY1eGygPt7so9Up42au6wmkrsrevJgRAmo6OUb05SP159kfbG KUF7eOuVpj6m1m2TihC00UR7sPCyao7guU3+yBBuhG92GHzECkeypYlHjHAxTWPxGG7t FPxw4STL3mf3L06OxeL4jUzMP9Xuq+8aj7NOjlpAvNVUVmu270HEowXJlLA4R57vcTEN /cQ1RehpPSvlmwQ+XrykJTqOKFzQAue+BzQWSsoM8F+R9P74gxojcFIVva+2vHrruFFq u8RQ== 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=suucIjcD7AZEOlm9ZQcvacG4OEzi3IigwuSu3QmJxiE=; b=TAcMjWqd0AUU5xUj0L2DdJqXuDcEUjFFk8a/P/J1Cg97yPjYdRofZO61N3kIT/w2Pd 5aOpCT1D6WQ/8otEOxh1Jj2FuMmmEo5KvMeizwByCHtYicu81tfi+BMURH3hVQ15gb9D xjgYSFjsoqp2NyvRK/YPHq4RG7QnXTVuxH5K2H60CDIj2SKMdDF8/Le+qtik+AXaYlsu GSr6XVuWb4flQvlCEU52ThE5Mu1OXipwlZ2JPg3nko4nOah5Doa+vOmmGo+ZShIT8k+u xrfDeqH3b+uuCrwI2pyRE+zPpE/WZ6tSusO+n3Ss0QWiOGA1TUtYo2yJ1rckx0f9ZpsH RwTA== X-Gm-Message-State: AOAM531818bQTA/YJYi7pcPgoMQk3udw+Tin2d7I2kSbWlNaSoHXWLDw 2H4fxtThZZDJdi0O6mv2tnrq2Q== X-Google-Smtp-Source: ABdhPJxwnJGDsxzjhTQCU3oCfEaG6nwTBZiodeca/8pcFoac7qsiRLAHNd4MeodliTpBh4QVRMuMEA== X-Received: by 2002:a17:906:3c56:: with SMTP id i22mr16134001ejg.369.1623684353741; Mon, 14 Jun 2021 08:25:53 -0700 (PDT) Received: from localhost ([2a02:768:2307:40d6:f666:9af6:3fed:e53b]) by smtp.gmail.com with ESMTPSA id u13sm2302398ejt.23.2021.06.14.08.25.53 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Jun 2021 08:25:53 -0700 (PDT) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu, michal.simek@xilinx.com, git@xilinx.com, Viresh Kumar Cc: Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 07/33] arm64: zynqmp: Wire psgtr for zc1751-xm015 Date: Mon, 14 Jun 2021 17:25:15 +0200 Message-Id: <3fb11fdb9ade828fa174379515e45ba02bc17247.1623684253.git.michal.simek@xilinx.com> X-Mailer: git-send-email 2.32.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-20210614_082655_810661_528052E2 X-CRM114-Status: GOOD ( 12.03 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add psgtr description for SATA and USB. Display Port could be also added but it wasn't tested yet. Signed-off-by: Michal Simek --- Changes in v2: None .../dts/xilinx/zynqmp-zc1751-xm015-dc1.dts | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm015-dc1.dts b/arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm015-dc1.dts index 5b258129c7ef..f57cb5356cef 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm015-dc1.dts +++ b/arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm015-dc1.dts @@ -11,6 +11,7 @@ #include "zynqmp.dtsi" #include "zynqmp-clk-ccf.dtsi" +#include #include #include @@ -36,6 +37,31 @@ memory@0 { device_type = "memory"; reg = <0x0 0x0 0x0 0x80000000>, <0x8 0x00000000 0x0 0x80000000>; }; + + clock_si5338_0: clk27 { /* u55 SI5338-GM */ + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <27000000>; + }; + + clock_si5338_2: clk26 { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <26000000>; + }; + + clock_si5338_3: clk150 { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <150000000>; + }; +}; + +&psgtr { + status = "okay"; + /* dp, usb3, sata */ + clocks = <&clock_si5338_0>, <&clock_si5338_2>, <&clock_si5338_3>; + clock-names = "ref1", "ref2", "ref3"; }; &fpd_dma_chan1 { @@ -328,6 +354,8 @@ &sata { ceva,p1-comwake-params = /bits/ 8 <0x06 0x19 0x08 0x0E>; ceva,p1-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>; ceva,p1-retry-params = /bits/ 16 <0x96A4 0x3FFC>; + phy-names = "sata-phy"; + phys = <&psgtr 3 PHY_TYPE_SATA 1 3>; }; /* eMMC */ @@ -357,4 +385,7 @@ &usb0 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usb0_default>; dr_mode = "host"; + phy-names = "usb3-phy"; + phys = <&psgtr 2 PHY_TYPE_USB3 0 2>; + maximum-speed = "super-speed"; };