From patchwork Fri Aug 6 10:14:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 12423165 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=-17.4 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 BBADAC4338F for ; Fri, 6 Aug 2021 10:16:22 +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 7632760E97 for ; Fri, 6 Aug 2021 10:16:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 7632760E97 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=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: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:In-Reply-To:References: List-Owner; bh=T/SsidIEUsMQ8uowDOtPzkdkYeE9P+pxXuzgeX0MymQ=; b=niIHcqwAs0eD3V +xq0kW4mzDipYXF7ZN8mz+WJVF7D3J/LIZgT2n+PQZRgqVf8/18aShxKj7x8Zd2zwVRwW6AXI/R5O Udv0+P5wyWqGDOnY36Z7KloYlZLhj1Sej8ZxYhGgvNW215+7p1qUZJmqHnv+OJhCV7F29S9fblbr3 mQ0OD4vKBFJB+ObGZUBrKp5M3Y3eL7PGOZutolO4QfTIMj/VxvPXrG1H58Vpsq4vjCwe3qbx9pIII u+9AagyRIEb0+WEdCcz4pRf7h5Ohpqzfo1y+kpKKzErwxmkDvaW3u21FykpUD+g1nf6du6ojZSGqD VwzIJx3ebBVZc3ypZfEg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mBws2-00C64P-97; Fri, 06 Aug 2021 10:14:30 +0000 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mBwrx-00C62k-Ui for linux-arm-kernel@lists.infradead.org; Fri, 06 Aug 2021 10:14:27 +0000 Received: by mail-ed1-x532.google.com with SMTP id ec13so12412535edb.0 for ; Fri, 06 Aug 2021 03:14:25 -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:mime-version :content-transfer-encoding; bh=FraMKiuwqRJEEp0VY/xE3q2Xu80ABlyGMu9aYVFQwIo=; b=AO0OcPI8g1krDcZz2jpbJ+cGIaFZnhskk4x3kVoCtCF6eX4Q7fCLkt+Nph+B/98N83 6QZwj8G2vE6QlLB5c0dg20bABuf4F1PCYP8UAwBJDEdWQ+NzbDeiK2atXCXVdnENzad4 5gk/hlKifSSdZ245dG1zMqfwc2Pc9U9JGNqAnm+xW3eES06lXOX4q0lBTxgV47WjtbZb eFu2cbwrU/2DE3uMTa+yS9TICN+crMnncUBcXnBYPNlgeQGEdA3z+WercjBe+LYaiMNd q+BS4FhzPs8/dtJyc+pKODrxsZLgJwM0izCJyduLWeD22JDCms+FD90jd3TMsS3kd15N Ylvw== 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 :mime-version:content-transfer-encoding; bh=FraMKiuwqRJEEp0VY/xE3q2Xu80ABlyGMu9aYVFQwIo=; b=LaevSMhFRE5Er5QQvKl7p+Z1igxeZKQ4vBJiThfX6M1rdma6HeW235ucQ6eU6Izzjr R3gCRvmvYRHgSlnmC5ZpAdrCJTqKHlIg+BqIkbq1b1PomsJFg5PrPpIwQ1W4A/3dfMWz 4hm6AyEyVxf2Sz5wDCGXxoKnpdjnnpzsSNg8FopFa2AZ16Zfjs1EhVKGpqbJCrKSpj4B 208O3zt7Hn0RpyJwMyQnPCKox4vSfK9YIxOu5cl0nAeOn9sDx7qy+/zOH/7UFbVXg4iH UCaeHoNNzDn5NZzxz0KEA0WN874WE7LBvKwrUf9aaFS6hHBDtztnuSudIyA6RFH9IYZp lE2g== X-Gm-Message-State: AOAM532hWf9D0deabW5r0etuLnM/RyRcMiisMwaaQvfLF8p2eo6QmrEl BoocdIqRKviO2pObi7iKUtA5Tw== X-Google-Smtp-Source: ABdhPJyqklZ8NR5PP4B4PIOZAYBYEY38HFNg+eVeye0F9Qh9scqnA4dYFf2Ct/eFuyCmIzeONs25YQ== X-Received: by 2002:a50:ed14:: with SMTP id j20mr11719765eds.323.1628244864494; Fri, 06 Aug 2021 03:14:24 -0700 (PDT) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id bx11sm2725816ejb.107.2021.08.06.03.14.24 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 06 Aug 2021 03:14:24 -0700 (PDT) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu, michal.simek@xilinx.com, git@xilinx.com Cc: Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH] arm64: zynqmp: Wire psgtr for zc1751-xm013 Date: Fri, 6 Aug 2021 12:14:23 +0200 Message-Id: <8c78625f08c16385a4798e0a62d20df7491ac00e.1628244860.git.michal.simek@xilinx.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210806_031426_034775_C721C428 X-CRM114-Status: GOOD ( 11.02 ) 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. Signed-off-by: Michal Simek --- Based on https://lore.kernel.org/r/cover.1628244703.git.michal.simek@xilinx.com --- .../dts/xilinx/zynqmp-zc1751-xm017-dc3.dts | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm017-dc3.dts b/arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm017-dc3.dts index 4394ec3b6a23..381cc682cef9 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm017-dc3.dts +++ b/arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm017-dc3.dts @@ -11,6 +11,7 @@ #include "zynqmp.dtsi" #include "zynqmp-clk-ccf.dtsi" +#include / { model = "ZynqMP zc1751-xm017-dc3 RevA"; @@ -37,6 +38,18 @@ memory@0 { device_type = "memory"; reg = <0x0 0x0 0x0 0x80000000>, <0x8 0x00000000 0x0 0x80000000>; }; + + clock_si5338_2: clk26 { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <26000000>; + }; + + clock_si5338_3: clk125 { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <125000000>; + }; }; &fpd_dma_chan1 { @@ -116,6 +129,13 @@ &nand0 { num-cs = <2>; }; +&psgtr { + status = "okay"; + /* usb3, sata */ + clocks = <&clock_si5338_2>, <&clock_si5338_3>; + clock-names = "ref2", "ref3"; +}; + &rtc { status = "okay"; }; @@ -131,6 +151,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 2 PHY_TYPE_SATA 0 3>; }; &sdhci1 { /* emmc with some settings */ @@ -149,6 +171,8 @@ &uart1 { &usb0 { status = "okay"; + phy-names = "usb3-phy"; + phys = <&psgtr 0 PHY_TYPE_USB3 0 2>; }; &dwc3_0 { @@ -161,6 +185,8 @@ &dwc3_0 { /* ULPI SMSC USB3320 */ &usb1 { status = "okay"; + phy-names = "usb3-phy"; + phys = <&psgtr 3 PHY_TYPE_USB3 1 2>; }; &dwc3_1 {