Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp420254pxb; Thu, 21 Jan 2021 10:08:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJwuOBgZoThuH7PXYDRD7+T9eUB6vf7CH+mKyaJoIkPhT0w0gdfz3YBFb8Dx37/VAk79BWFg X-Received: by 2002:a50:fc97:: with SMTP id f23mr288730edq.307.1611252537825; Thu, 21 Jan 2021 10:08:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611252537; cv=none; d=google.com; s=arc-20160816; b=YuJpYNvR8/4huQvUpJgaMaju8Dt3Fh7i5iKRSEc9NOicu378xRl9YelhPAsYaa/mFy WyOJ6itwArf0a9obnPZkzcBrYJoqrSVvql0gL3mkdVcqZzECY3tVq+JYpeNZUAddMZzO byVqVVr9Khl64OrhBvvKd1eaR3Ewi2PG0jYofR5u/lnZCvhB7/NUB0tCKtfaFLiK5S0I dpEW1iu1s8kBY8QMYkL6EnoiZiCbWBFfFUsEC+ESZvaRu3tEkEd4ZC42vMSnLhqouLZ4 e9QzQjWMJlGXY3YWW0NrDhhHUzFK7iV5zuDG82pQqQDg9BYcb67PVpMU1GIC1zKJNuEh AGsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from:sender :dkim-signature; bh=XftOrF3pZsYjg7wIL3rdWbwK37uOKDGUWg/X4U2EjrY=; b=JN6bKVZSig/9oVV/D3hM7EP7tLAp2mxJyGgmsO22lzq7rHllRaF6eskKJSIeH/9aea ouo+y5OizzJel++8D3pKrN1msOwz1ehNJGx34U58JtQ9IZ9Aojek1naGvNZFOQKxop+7 B0mG7Dvil0DnxY8mqAb8sK0StIyJr2C9zV3k3GCt7HJJA0KuZYAStF2JIe6by/lGMX2r LJiylCXcEl8lyBthRX7Z6ezZw0H3KDOG95bl03MPTS3Atym5av+uZ3mZUGsPoAbXkXy2 pAgZ4K5dOqLcrvZbRCjIcgEw9ni45D3sVcvxV/0uWiuG6+Z9rDUf/8zpoCHbpySUl2v8 9AkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=mX9O08H2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gj13si1987335ejb.41.2021.01.21.10.08.30; Thu, 21 Jan 2021 10:08:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=mX9O08H2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389645AbhAUSEz (ORCPT + 99 others); Thu, 21 Jan 2021 13:04:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729183AbhAUK2r (ORCPT ); Thu, 21 Jan 2021 05:28:47 -0500 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C49DC061786 for ; Thu, 21 Jan 2021 02:27:12 -0800 (PST) Received: by mail-ed1-x52b.google.com with SMTP id j13so1828211edp.2 for ; Thu, 21 Jan 2021 02:27:12 -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=XftOrF3pZsYjg7wIL3rdWbwK37uOKDGUWg/X4U2EjrY=; b=mX9O08H2hRdIKpnalbY1xKILUPly7ewHKlxmtthed1+gAaX8dU78Eh4VqpSANCk2ZB 4feghOQ/vWhhi7l0klj2UBLiq50hdPs7sPGIoUdI3YuNdwJStjaSBK79DUcTJDvULNM4 pfruVtOVg+qtJZEt1qRhCbDE2Km53mdUZTDYfhv7OVnpNr2sMcmG3u0NbDpX56gWx2Tx o83ZUGv5Hr+zONv4F9VZ44NEo17nBUdwu4NYCT8i1N024aHZb3Fyyhf9NDSfNuyx+7b0 mJxEJQcTVU91iMdYJPWgKaD5jzR/3rYmyjkmB16VxmeLpTwn4fOziZwpwV/Ygne7JKZN b30g== 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=XftOrF3pZsYjg7wIL3rdWbwK37uOKDGUWg/X4U2EjrY=; b=mlWuHTTNlemt6i1rVjOKb0j5kkEuknIxzoBGvve4+p8RI2iyZEDkrRen+PfnqHodcf clev3uzFfKtSzHYA5Lxk4C9RUQZd0+GSQL6S7vJxV9ct75tAe//M/fgxHO99k0MHgZgj 7olagSRDFuv+PAwTRe9Na251lnA2bTSxwYc/wUOC83WXfjOmMroUFAExFmJ9Y/4Nzmp+ nDYvd28Qys8Hv5T9XiwxdUovBaFrRi+oaPEMZWFpzqKj64VHpkbMvKBPWCUlorbS5uoe +JCPw3l7504/Gw7H1Ptl3lAMjGhjfaWc4yvEq5SFzcI+SHBmMXvNCij9oHgpuG+OucJY EXWQ== X-Gm-Message-State: AOAM533z4dWItgIAzYokLY2S1aVZyWurDvUSQmS2AJwj+Fi58iPMg+xp CYv+yyPaB0toRrLTxeDIobOikuG3EqxL8VYb X-Received: by 2002:aa7:c384:: with SMTP id k4mr10349733edq.23.1611224830847; Thu, 21 Jan 2021 02:27:10 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id a22sm2518005edv.67.2021.01.21.02.27.10 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Jan 2021 02:27:10 -0800 (PST) Sender: Michal Simek From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu, michal.simek@xilinx.com, git@xilinx.com Cc: Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 03/12] arm64: dts: zynqmp: Enable si5341 driver for zcu102/106/111 Date: Thu, 21 Jan 2021 11:26:51 +0100 Message-Id: X-Mailer: git-send-email 2.30.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Enable si5341 driver is the main chip for providing preprogrammed clocks for the whole platform. # cat /sys/kernel/debug/clk/clk_summary ... refhdmi 1 1 0 114285000 0 0 50000 xtal_0 0 0 0 114285000 0 0 50000 pll_0 0 0 0 40731174000000 0 0 50000 clk1_0 0 0 0 27000000 0 0 50000 clk0_0 0 0 0 27000000 0 0 50000 ref48M 1 2 0 48000000 0 0 50000 si5341 0 4 0 14000000 0 0 50000 clock-generator.N4 0 0 0 0 0 0 50000 clock-generator.N3 0 1 0 733260000 0 0 50000 clock-generator.9 0 1 0 33330000 0 0 50000 clock-generator.N2 0 1 0 104000000 0 0 50000 clock-generator.2 0 1 0 26000000 0 0 50000 clock-generator.N1 0 2 0 594000000 0 0 50000 clock-generator.7 0 1 0 74250000 0 0 50000 clock-generator.0 0 1 0 27000000 0 0 50000 clock-generator.N0 0 4 0 1000000000 0 0 50000 clock-generator.8 0 0 0 0 0 0 50000 clock-generator.6 0 1 0 125000000 0 0 50000 clock-generator.5 0 1 0 100000000 0 0 50000 clock-generator.4 0 1 0 100000000 0 0 50000 clock-generator.3 0 1 0 125000000 0 0 50000 clock-generator.1 0 0 0 0 0 0 50000 ... Signed-off-by: Michal Simek --- Changes in v2: None .../boot/dts/xilinx/zynqmp-zcu102-revA.dts | 56 ++++++++++++++++++- .../boot/dts/xilinx/zynqmp-zcu106-revA.dts | 45 +++++++++++++++ .../boot/dts/xilinx/zynqmp-zcu111-revA.dts | 46 ++++++++++++++- 3 files changed, 145 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-zcu102-revA.dts b/arch/arm64/boot/dts/xilinx/zynqmp-zcu102-revA.dts index 5ff7ab665374..68c2ad30d62d 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-zcu102-revA.dts +++ b/arch/arm64/boot/dts/xilinx/zynqmp-zcu102-revA.dts @@ -133,6 +133,13 @@ ina226-u75 { io-channels = <&u75 0>, <&u75 1>, <&u75 2>, <&u75 3>; }; + /* 48MHz reference crystal */ + ref48: ref48M { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <48000000>; + }; + refhdmi: refhdmi { compatible = "fixed-clock"; #clock-cells = <0>; @@ -489,9 +496,56 @@ i2c@1 { #size-cells = <0>; reg = <1>; si5341: clock-generator@36 { /* SI5341 - u69 */ + compatible = "silabs,si5341"; reg = <0x36>; - }; + #clock-cells = <2>; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&ref48>; + clock-names = "xtal"; + clock-output-names = "si5341"; + si5341_0: out@0 { + /* refclk0 for PS-GT, used for DP */ + reg = <0>; + always-on; + }; + si5341_2: out@2 { + /* refclk2 for PS-GT, used for USB3 */ + reg = <2>; + always-on; + }; + si5341_3: out@3 { + /* refclk3 for PS-GT, used for SATA */ + reg = <3>; + always-on; + }; + si5341_4: out@4 { + /* refclk4 for PS-GT, used for PCIE slot */ + reg = <4>; + always-on; + }; + si5341_5: out@5 { + /* refclk5 for PS-GT, used for PCIE */ + reg = <5>; + always-on; + }; + si5341_6: out@6 { + /* refclk6 PL CLK125 */ + reg = <6>; + always-on; + }; + si5341_7: out@7 { + /* refclk7 PL CLK74 */ + reg = <7>; + always-on; + }; + si5341_9: out@9 { + /* refclk9 used for PS_REF_CLK 33.3 MHz */ + reg = <9>; + always-on; + }; + }; }; i2c@2 { #address-cells = <1>; diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-zcu106-revA.dts b/arch/arm64/boot/dts/xilinx/zynqmp-zcu106-revA.dts index 7910ac125101..a29ff20090ce 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-zcu106-revA.dts +++ b/arch/arm64/boot/dts/xilinx/zynqmp-zcu106-revA.dts @@ -133,6 +133,13 @@ ina226-u75 { io-channels = <&u75 0>, <&u75 1>, <&u75 2>, <&u75 3>; }; + /* 48MHz reference crystal */ + ref48: ref48M { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <48000000>; + }; + refhdmi: refhdmi { compatible = "fixed-clock"; #clock-cells = <0>; @@ -488,7 +495,45 @@ i2c@1 { #size-cells = <0>; reg = <1>; si5341: clock-generator@36 { /* SI5341 - u69 */ + compatible = "silabs,si5341"; reg = <0x36>; + #clock-cells = <2>; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&ref48>; + clock-names = "xtal"; + clock-output-names = "si5341"; + + si5341_0: out@0 { + /* refclk0 for PS-GT, used for DP */ + reg = <0>; + always-on; + }; + si5341_2: out@2 { + /* refclk2 for PS-GT, used for USB3 */ + reg = <2>; + always-on; + }; + si5341_3: out@3 { + /* refclk3 for PS-GT, used for SATA */ + reg = <3>; + always-on; + }; + si5341_6: out@6 { + /* refclk6 PL CLK125 */ + reg = <6>; + always-on; + }; + si5341_7: out@7 { + /* refclk7 PL CLK74 */ + reg = <7>; + always-on; + }; + si5341_9: out@9 { + /* refclk9 used for PS_REF_CLK 33.3 MHz */ + reg = <9>; + always-on; + }; }; }; diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-zcu111-revA.dts b/arch/arm64/boot/dts/xilinx/zynqmp-zcu111-revA.dts index d9a8fdbbcae8..92b3cee62d11 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-zcu111-revA.dts +++ b/arch/arm64/boot/dts/xilinx/zynqmp-zcu111-revA.dts @@ -116,6 +116,13 @@ ina226-u79 { compatible = "iio-hwmon"; io-channels = <&u79 0>, <&u79 1>, <&u79 2>, <&u79 3>; }; + + /* 48MHz reference crystal */ + ref48: ref48M { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <48000000>; + }; }; &dcc { @@ -374,9 +381,46 @@ i2c@1 { #size-cells = <0>; reg = <1>; si5341: clock-generator@36 { /* SI5341 - u46 */ + compatible = "silabs,si5341"; reg = <0x36>; + #clock-cells = <2>; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&ref48>; + clock-names = "xtal"; + clock-output-names = "si5341"; + + si5341_0: out@0 { + /* refclk0 for PS-GT, used for DP */ + reg = <0>; + always-on; + }; + si5341_2: out@2 { + /* refclk2 for PS-GT, used for USB3 */ + reg = <2>; + always-on; + }; + si5341_3: out@3 { + /* refclk3 for PS-GT, used for SATA */ + reg = <3>; + always-on; + }; + si5341_5: out@5 { + /* refclk5 PL CLK100 */ + reg = <5>; + always-on; + }; + si5341_6: out@6 { + /* refclk6 PL CLK125 */ + reg = <6>; + always-on; + }; + si5341_9: out@9 { + /* refclk9 used for PS_REF_CLK 33.3 MHz */ + reg = <9>; + always-on; + }; }; - }; i2c@2 { #address-cells = <1>; -- 2.30.0