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: 492935 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.8 required=3.0 tests=BAYES_00,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 6FBF9C4338F for ; Fri, 6 Aug 2021 10:14:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5766460FE7 for ; Fri, 6 Aug 2021 10:14:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244949AbhHFKOo (ORCPT ); Fri, 6 Aug 2021 06:14:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244760AbhHFKOl (ORCPT ); Fri, 6 Aug 2021 06:14:41 -0400 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC46BC06179A for ; Fri, 6 Aug 2021 03:14:25 -0700 (PDT) Received: by mail-ed1-x52c.google.com with SMTP id z11so12316356edb.11 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=XOtaXr24tFsc+aeFLfU81lKDcfHZPO6nHLYVqKlIkf+Fri8sBAhHsFq1EZ8RKdDvG0 1knHLJlnDj1z0EdCIOnYXtAm6gbYQ194UeBPVak48Q/5Eio4lWZpI0iwmgHr6QohgkD/ lHuAg6xNuMYlK67Y+snjA817qS7YKtIuB3Bb9wdY5h7M1AYOS4ZK4JvMfsIxYJCyvPBU j3y9nrMsqfagkCRXHk/P+t6cuht4HemSBh9I4Dhe6h/fJEVP5FtI0hdJ+emTfnDrc7BQ pKNu+otg8dVTF4v0rzlttnKqm8tHCMO2AhGaBDYVu9bDwgsKXnyI/uUqmLUPKxCjyUnT 1mFA== X-Gm-Message-State: AOAM532zhJj78xpQ6dFj31WNAD/tjWSMCfBOn+lcgT5K+hz3Za6+edyw FqGLjMG/uu1XZaoMsPpHAqpDGg== 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) Sender: Michal Simek 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 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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 {