From patchwork Wed Dec 2 14:06:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 11946181 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=-18.2 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 1D188C64E7B for ; Wed, 2 Dec 2020 14:07:57 +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 ABDC722269 for ; Wed, 2 Dec 2020 14:07:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org ABDC722269 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=7Ut/AJ9TeCx/HQTuQkqwYkPQYlcnmOCxd4LowAZK1Cw=; b=DKpKE/po7dEUhbOfXBsPPta1a BCitRyfgmlV3Ji5yg0IYe/2Me8WN20UMkATr7y4oEcORJn0PBZzaWy+NQqLH8muJXEnazDD/Mf3QW l9CdFBFhocY7fAzdrvSVgSGOtGGrsDGh4D9XmFP4Sf+If749zri/760ALiaOPIWIvgo3bBkHqjrUr 5mX7SsZamR+YCXeo2SQPhAyN7imtFyTT0FUXXhe5R/xDYgCRBmaSNz5NhxP2UbXfFfxzl58n1z/7K cZFMTDncxZcVb5Q8+Qjg5FUrZzONT6Q72PeQSlxfsm3kudNUaQ+gIXOPcj4usnV6g7YFXT9WBDHx5 aN+xe2ZPw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kkSlz-0007CP-8P; Wed, 02 Dec 2020 14:06:23 +0000 Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kkSlu-0007Ak-KQ for linux-arm-kernel@lists.infradead.org; Wed, 02 Dec 2020 14:06:19 +0000 Received: by mail-ej1-x632.google.com with SMTP id pg6so4485716ejb.6 for ; Wed, 02 Dec 2020 06:06:17 -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=fKmg2riOs3/P1+9y1NpehsFjW/uZkwxqjKJKyWG9gb8=; b=2POr50ZRWOmsHZX9VqYgVq1T+aXbCMdblYOLMODnTa6xG8oxEXtR316lhbP0++KSOW Ah1LNDm7GGRhZutn0ivUl5eLIPHtTRaeglXyz/e4oP691WA06OCfXAf8UTl3HpB4xdxE vpa+ywLuQcaCI8V9GRWIyv9goPGJY+gUtDDs6aCRs9+S80N81iFs27zXmIE7KHcKRipO gqc5x0T7EWlCi2mj90wt9NfJDVzyqM59am22QqdSgTpqcj5qDWbmOPpfbfqPm7VaTJgL soKsm5KygRbLDrFh2svySZcAflM7j1KT9OV5ZcP3JCi5eHsvV1OGrZoCbxB5wLyVP7p7 lEGQ== 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=fKmg2riOs3/P1+9y1NpehsFjW/uZkwxqjKJKyWG9gb8=; b=fci9Dho34dxSKSyKycFIXBYqQtpGsTCmRgYVOe9/kwOrfrj5BWv2gs0q6TQlrGYeVk kGWK+LNjImrfOVTWnzgt03YUWTCfNtrblzxTeo7T7q2oWCEbClsABZzUgCxmoSXSKxHi UzJqMH22rlwRNh2fjgpYak0SC3FaSMSMCuJ+pONYBq7gbr3eUOgnVtEU5SEKjSsOyKHq NCGUU3iGZJ2c4A5A5TiAUtQwrDikqVwPHQaz1iVS/j/DUTPwIUQ1ijskIgVM2mhKkKST j1s99C0XqwLAtVilMuFa51qNvFfOvbvfIST9zHyuk31XcGGkKfLNCjhdijfe1YR6vimv MyiQ== X-Gm-Message-State: AOAM531BbarjWwF5sh65DSP9r60gdepbYaJ/vNoCoFp5BW+AICw+3LZN ZZYRvx8crUKqO+BDEwg2VWy1QQ== X-Google-Smtp-Source: ABdhPJwZXLaDTIx7lDAXfs9s+ASCrxdb7rVH8EmmNvXRLgNsrG3SZog2/M5rA+boxHpUF7RBsVOoCg== X-Received: by 2002:a17:906:6b82:: with SMTP id l2mr2415324ejr.241.1606917976819; Wed, 02 Dec 2020 06:06:16 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id e3sm1266290ejq.96.2020.12.02.06.06.15 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 02 Dec 2020 06:06:15 -0800 (PST) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu, michal.simek@xilinx.com, git@xilinx.com Subject: [PATCH 01/12] arm64: dts: zynqmp: Fix u48 si5382 chip on zcu111 Date: Wed, 2 Dec 2020 15:06:00 +0100 Message-Id: X-Mailer: git-send-email 2.29.2 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201202_090618_705201_24065B96 X-CRM114-Status: GOOD ( 14.79 ) 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: devicetree@vger.kernel.org, Anurag Kumar Vulisha , Rajan Vaja , Venkatesh Yadav Abbarapu , Rob Herring , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org u48 chip on zcu111 is si5382 not si5328. Signed-off-by: Michal Simek --- arch/arm64/boot/dts/xilinx/zynqmp-zcu111-revA.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-zcu111-revA.dts b/arch/arm64/boot/dts/xilinx/zynqmp-zcu111-revA.dts index 2e92634c77f9..d9a8fdbbcae8 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-zcu111-revA.dts +++ b/arch/arm64/boot/dts/xilinx/zynqmp-zcu111-revA.dts @@ -410,7 +410,7 @@ i2c@4 { #address-cells = <1>; #size-cells = <0>; reg = <4>; - si5328: clock-generator@69 { /* SI5328 - u48 */ + si5382: clock-generator@69 { /* SI5382 - u48 */ reg = <0x69>; }; }; From patchwork Wed Dec 2 14:06:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 11946183 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=-18.2 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=unavailable 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 AE4EFC64E7C for ; Wed, 2 Dec 2020 14:07:59 +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 3F66C20709 for ; Wed, 2 Dec 2020 14:07:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3F66C20709 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=xUUIK9oT//ijX1zI3S2w7NISlJvVwTR53qeE6TPxxwE=; b=0LlHeHzBWIUukWPq4bTbxIG8K 9VjjQXX995L64uowroaYzi889+rtK7V+cHXt/osKM3uy5mclTTrl8QOoFbEmP0pKvKIbniNC4SjXc j4Nw9jcdflKIwcROC1feUDefIz4A4KqdrWSSnyWa3UNNxvKpihHcn77YkBC59EfC1rkNkylAINjxY sFHKjYeMCnl1g+JKj/KTUMPMPRgvPH3T+QOS84DpLx/PCjWVbI/CKoUdC0hxQOhxG2frTZCWxB1YO PU0NsmYZPLS0eVyt8SpoW1yI2IMPAoy5xZB/UEFnSIdEizwcvhit03FCev21Sefj5j+m5r4SEJtU5 X9Tj+2X2A==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kkSm3-0007DQ-0h; Wed, 02 Dec 2020 14:06:27 +0000 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kkSlw-0007BS-Sk for linux-arm-kernel@lists.infradead.org; Wed, 02 Dec 2020 14:06:21 +0000 Received: by mail-ej1-x62b.google.com with SMTP id 7so4540182ejm.0 for ; Wed, 02 Dec 2020 06:06:20 -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=1ZqCiWie0X6dYLWiXiDsF92YNK3DRTjdp8U9Zg3LS4I=; b=c5uAiOA1bGp3aew2ryi5VqAuYQxpY1qkVYLEpfmNGTTMDFcMBf7EqKjpG8uo+D5co8 gOwW9s9iM9bPTEqbhp4ZmElr/sAlyLVfvaITT3un30TP6fZSslaGL4slHnduLRUtVZsN UZtuw6ljxPCtGRWR3GtJOuBPGpQAbTvY7hl+thMNHRf7dsp9rarnWe4EiUHau56jV4AH NmFqfQM3sxDdV3jNxghB6it1YAO/C54g5v0NasRQmavI6mC7VD73X1+49IkGYQYyt+NE UoWpFtqTxJFYf/MbQvHE4ZQDN4XA+y2qgFzrWFQY0mUGxuIi74OhYWrvFf1FGV7TCZzE 0qpQ== 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=1ZqCiWie0X6dYLWiXiDsF92YNK3DRTjdp8U9Zg3LS4I=; b=Ny3HnObtq9pwDzaIf5MVbb2RMrnX8uu78Q5jlC1QvGN3Se6RXsh7NiqOk1rPbQYJUT wPxF9dZWhA7tnCH5mk67ZjAvhDz8ZcL2eUCrjje/frCuClQMiQPh4lh5joW+3Ov+NQcc pCa5Avf9blN+FIYKlmvDwwDsu2xM/phvrpCDBgKdHVM7xUJ4tDd6COOMtQtMFlH+oMDi oQcBAjRqSOr1jOreq5q1faBf6eJmULp0oI+ELTGTRG0nAgwbfxgSjjjFRkP5YAwVIbs1 NtbKZgrYTdq/EAGUe7Rf5qWarQbZz6H9iCdBBhiQUhQSZG/GjD+Y8o8eSHjXn5gQwRSL 9VOA== X-Gm-Message-State: AOAM5330GP0PuiOTQ1dRN5Vh3VneeCJD3tzOSQrbfbgBjCJdKScbSqNw Q4TcsTd969rcM5Li1ynk4YdOYA== X-Google-Smtp-Source: ABdhPJxZtV1AZTwUlSPGhalqThuLlka/V0nj9X2YtpRCkiU76k1gucd90YWEpDqVokzOC9EzfQ1lVA== X-Received: by 2002:a17:906:1752:: with SMTP id d18mr2492675eje.529.1606917979213; Wed, 02 Dec 2020 06:06:19 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id l25sm1300638ejz.84.2020.12.02.06.06.17 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 02 Dec 2020 06:06:18 -0800 (PST) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu, michal.simek@xilinx.com, git@xilinx.com Subject: [PATCH 02/12] arm64: dts: zynqmp: Add DT description for si5328 for zcu102/zcu106 Date: Wed, 2 Dec 2020 15:06:01 +0100 Message-Id: <2113c593f38bf347468f1416ef197595e18be3fa.1606917949.git.michal.simek@xilinx.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201202_090620_977275_374A19CC X-CRM114-Status: GOOD ( 14.78 ) 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: devicetree@vger.kernel.org, Anurag Kumar Vulisha , Rajan Vaja , Krzysztof Kozlowski , Rob Herring , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Origin DT binding just specify driver but wasn't aligned with DT binding which came later. Extend description for zcu102 and zcu106 to cover latest binding. Signed-off-by: Michal Simek --- .../boot/dts/xilinx/zynqmp-zcu102-revA.dts | 17 ++++++++++++++ .../boot/dts/xilinx/zynqmp-zcu106-revA.dts | 22 +++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-zcu102-revA.dts b/arch/arm64/boot/dts/xilinx/zynqmp-zcu102-revA.dts index f1255f635dfd..5ff7ab665374 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-zcu102-revA.dts +++ b/arch/arm64/boot/dts/xilinx/zynqmp-zcu102-revA.dts @@ -132,6 +132,12 @@ ina226-u75 { compatible = "iio-hwmon"; io-channels = <&u75 0>, <&u75 1>, <&u75 2>, <&u75 3>; }; + + refhdmi: refhdmi { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <114285000>; + }; }; &can1 { @@ -526,6 +532,17 @@ si5328: clock-generator@69 {/* SI5328 - u20 */ * interrupt-parent = <&>; * interrupts = <>; */ + #address-cells = <1>; + #size-cells = <0>; + #clock-cells = <1>; + clocks = <&refhdmi>; + clock-names = "xtal"; + clock-output-names = "si5328"; + + si5328_clk: clk0@0 { + reg = <0>; + clock-frequency = <27000000>; + }; }; }; /* 5 - 7 unconnected */ diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-zcu106-revA.dts b/arch/arm64/boot/dts/xilinx/zynqmp-zcu106-revA.dts index 6e9efe233838..7910ac125101 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-zcu106-revA.dts +++ b/arch/arm64/boot/dts/xilinx/zynqmp-zcu106-revA.dts @@ -132,6 +132,12 @@ ina226-u75 { compatible = "iio-hwmon"; io-channels = <&u75 0>, <&u75 1>, <&u75 2>, <&u75 3>; }; + + refhdmi: refhdmi { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <114285000>; + }; }; &can1 { @@ -520,6 +526,22 @@ i2c@4 { reg = <4>; si5328: clock-generator@69 {/* SI5328 - u20 */ reg = <0x69>; + /* + * Chip has interrupt present connected to PL + * interrupt-parent = <&>; + * interrupts = <>; + */ + #address-cells = <1>; + #size-cells = <0>; + #clock-cells = <1>; + clocks = <&refhdmi>; + clock-names = "xtal"; + clock-output-names = "si5328"; + + si5328_clk: clk0@0 { + reg = <0>; + clock-frequency = <27000000>; + }; }; }; i2c@5 { From patchwork Wed Dec 2 14:06:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 11946187 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=-15.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, UNWANTED_LANGUAGE_BODY,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable 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 9CDB6C64E7C for ; Wed, 2 Dec 2020 14:08:17 +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 1A2FB21741 for ; Wed, 2 Dec 2020 14:08:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1A2FB21741 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=wbBrctDJUweQUyXh+F5L2gzp2rteBhMo8nAvRIBgASM=; b=ThsWCzmWi4UDlFjpHZXXd1zEt 8BFigbB2FQI3XOYiMOEKlE261SA8X5EVEJU1QyKh5Ej+iEsCf9rxOcqBjkI8uihgpwxA06zZbynda 4nY9JCH97fTuacN82f4RynX+lEdnm2gNSchyE5jDxGWBeP7uMGVcOBMd/WVk3uiRTieqOMUq1t08X 5RGG3E9cUGHHSDSQKx1vjq0S7FWHdGdDLlqRAnPS5Vnr3kA+DVr7nvsCyHBLsixcRHrUqynRSgsP7 P2eogqfSaM8a6PsQdCnbQRoSlIeD5PfGDmje5xFPjJvlPWxhZTATTMjD+mDX2yowX8CLFtW7w0Vqk wNODJHmGA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kkSmC-0007GZ-LX; Wed, 02 Dec 2020 14:06:36 +0000 Received: from mail-ej1-x644.google.com ([2a00:1450:4864:20::644]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kkSlz-0007Bz-6J for linux-arm-kernel@lists.infradead.org; Wed, 02 Dec 2020 14:06:24 +0000 Received: by mail-ej1-x644.google.com with SMTP id g20so4543210ejb.1 for ; Wed, 02 Dec 2020 06:06:22 -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=9fw0c1vN25O3p+wsWwRXMndS7i0G5WWG/KRE/RpibJE=; b=oNoI9O7sqt8AxEf9aQbniuMZTVMVkzdQm+4ld7zxACwP86n5QOf26HwsHZcHLvbuLo LpH/fGNUEPsS+G9TokdZAZpLjcF6JkoYnbouzZaOJimlj0kUzoFGq80FpvhRDmaMGAS6 eHD9zMKJnPn5UD1kY1LcU2V0EX2ZR24norGXsQfmH3M2wIlFfdbMOEstVvxkywKjYcvy Ozdu4yMHq4M3NYKURK38HH43AUZaF89xREF+goKFw+V9jKquv0t49xhDoEf/C9gwCrLa UMAXHgW6/ARlbmoidLjFWG5ov1B+E8zZCJWMO/+LlwQ70eXweuYIDXm/Faw36ReFFsKG tphQ== 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=9fw0c1vN25O3p+wsWwRXMndS7i0G5WWG/KRE/RpibJE=; b=MjVyU8Tga1pWDaM7nOVa019DYKLAZ/OVJtoDQTbZMoGvfT1kuMGZ7Ix472K9+QUD8e ZZfQ2etqN5N84+OL5to+dfr1lecZe8RARV5Js+4Gib/BhJ/ZU+z6NbmxIRfQgHgJEBqy M8RHgFV0MPtHrFcNySvW2sa8FOMTvjMksBDPvbgaiI5lEctjgeXCxvNsNDEB/fmKnAGE jOj1RQRCtc6HpcOgMJxpnaNWyStVk2VKjEicv8XAg76QVft8ioF6LLokmY9zIvEC5v4j 77kYzqTp5GvMFYGSaHrFNeN1f592LFL0y1OCYOQHaOZ35sAkjCYxA95Eoc72njtHuD/F l1Wg== X-Gm-Message-State: AOAM532NHrwzbT/Ow9Nu2X7Uuvr+PYjr7W7aM0sz50JyrvqRIbrovENE mXFeEiCDXmr6hND73RY1l78C2g== X-Google-Smtp-Source: ABdhPJxLGUWNldyoyyGpA5ToxlYngiIh2OO2SeZyt9xreCYBTUSa60Dqz5S0QUfA7HKWxgSqgS1Jyw== X-Received: by 2002:a17:906:ee2:: with SMTP id x2mr2542193eji.326.1606917981519; Wed, 02 Dec 2020 06:06:21 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id x16sm313775ejo.104.2020.12.02.06.06.20 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 02 Dec 2020 06:06:20 -0800 (PST) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu, michal.simek@xilinx.com, git@xilinx.com Subject: [PATCH 03/12] arm64: dts: zynqmp: Enable si5341 driver for zcu102/106/111 Date: Wed, 2 Dec 2020 15:06:02 +0100 Message-Id: <679a09c15babcc6c209e5e6466a9fa76d1e2c271.1606917949.git.michal.simek@xilinx.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201202_090623_336006_5FC47C88 X-CRM114-Status: GOOD ( 15.22 ) 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: devicetree@vger.kernel.org, Anurag Kumar Vulisha , Rajan Vaja , Venkatesh Yadav Abbarapu , Krzysztof Kozlowski , Rob Herring , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 --- .../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>; From patchwork Wed Dec 2 14:06:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 11946197 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=-18.2 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=unavailable 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 AC784C64E7C for ; Wed, 2 Dec 2020 14:08:55 +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 291FE221EB for ; Wed, 2 Dec 2020 14:08:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 291FE221EB 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=ye29WnRnRPR9jnq8UW3X+lirtUUBDCK0D0AE9UNaiRU=; b=Ac0mrc7fED/iMN5TTLHvsVJSG ARqZrwquGNQtqocjGDfBE9tnsoG2nzXXO5PKJ63IWEEI0cckMNpHjieKeqq0Hu76U+Zgrrh5/hdmY s/QkGkx3eSgm6P//CE9v8pByOqmvjKe3gAXdKHPY3d+bGDj6NiJAUtTs6AuGZry3s1BSIQA+HyiB1 Isq6F5XFkrJ7hV7GUET90UddKdayHzo9ia1c2j2BTqqmhRP8NEaFss9nDe/142xF/mNc+7qTdikFu Q2l/MJdzAeo0JJ0GYy0bsF7/KZ4UlfOaRebdLhyxTBxPO5n8SkLzpBb8Ktc8wab6oJLuabn1KHMfY gTWaLRNiw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kkSmM-0007KS-Hl; Wed, 02 Dec 2020 14:06:46 +0000 Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kkSm0-0007Cn-Uz for linux-arm-kernel@lists.infradead.org; Wed, 02 Dec 2020 14:06:27 +0000 Received: by mail-ej1-x633.google.com with SMTP id jx16so4447806ejb.10 for ; Wed, 02 Dec 2020 06:06:24 -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=yUUyNhLqJTW8Mklp6WXq5oHjE6EeQcOooLOVP8B0jRI=; b=JWOaKrZAaq9NPwZ02Snsu6Jgr33SrHEqvH97VriFEU0vpDJbt/UoR7GrQwOqIe7C8v lvM4AKccKP5i5IqCG7WpZaVmxkyE7vtG7Osn8yFcF8bo+Omc1ZNlZw4P7pqJEJFtsbUi SJFLH5H3JTPuRd4JPNFdOQhvE7T7TJeCqu9CWqssPjO4uzZ8fTRtT8xM8Fq378OIirYK eRRnoFY2Ud+sAeKickLOX4cTg8z+JeYI5J9Q/pS+e8IT72iUwY8wRYHVU4GQlcS1eOzL vx2Cx5/xfuNum0sKX7bvvA02dCJ1PZuskWwbM1w22vh5bdFfeqUQPCs3fw/pAAdt8TOW I6kA== 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=yUUyNhLqJTW8Mklp6WXq5oHjE6EeQcOooLOVP8B0jRI=; b=jYscFpJfZcIKC1hGN16W10RpCl2pVdaAJrJ5WJzdEYAF77dQul+JZ4sgpKI3E/0c4N pL6FMDRohmjnuYNCh6qYdqSiVan8+GpdKaPADUNr7fggdh2zJjsrgO9L0S/Kr35uUGwD yygAenjSVGsKeL9TzvIi2prX3Bz7/0lUZq/TgqDF4OGxa73GeLtVWDHJZ/ZmX5I6bMKg blmv4Rqt7HOgmpRHL4jBunWVTMvLs7U4VlRacLWmk5D/XNGRVWbG4TmlOjIdkcyQTqET +DfUnkl5ObSZm47gw6H8Y6aSR/ZkZzinJZgwZ0X+QsS6ATzGi/upozJU+o0Zc/G0XdJA Ib4g== X-Gm-Message-State: AOAM53293ZFEwLUj5ptZLzhHk44ysj5gDnbU2qOR5FcV1KneAH4PdmLa /y1gbVTHVTyELwU5hTWu15e77w== X-Google-Smtp-Source: ABdhPJzQkorR17XrgemWT28k0CenWfUU9I4FH0o7LTncdXq9SyFPxh17/ovr45AiPuZE8beE1G6ZNg== X-Received: by 2002:a17:906:3e02:: with SMTP id k2mr2539737eji.92.1606917983227; Wed, 02 Dec 2020 06:06:23 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id i13sm1284622ejc.57.2020.12.02.06.06.22 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 02 Dec 2020 06:06:22 -0800 (PST) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu, michal.simek@xilinx.com, git@xilinx.com Subject: [PATCH 04/12] arm64: dts: zynqmp: Enable and wire reset controller Date: Wed, 2 Dec 2020 15:06:03 +0100 Message-Id: X-Mailer: git-send-email 2.29.2 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201202_090625_092604_0F4E0F3F X-CRM114-Status: GOOD ( 12.26 ) 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: devicetree@vger.kernel.org, Rajan Vaja , Krzysztof Kozlowski , Rob Herring , Manish Narani , Laurent Pinchart , Kalyani Akula , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Enable reset controller for several IPs. Signed-off-by: Michal Simek --- arch/arm64/boot/dts/xilinx/zynqmp.dtsi | 29 ++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi index 68923fbd0e89..4fa820f78d76 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi +++ b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi @@ -187,6 +187,11 @@ zynqmp_pcap: pcap { xlnx_aes: zynqmp-aes { compatible = "xlnx,zynqmp-aes"; }; + + zynqmp_reset: reset-controller { + compatible = "xlnx,zynqmp-reset"; + #reset-cells = <1>; + }; }; }; @@ -466,6 +471,8 @@ gem0: ethernet@ff0b0000 { #address-cells = <1>; #size-cells = <0>; power-domains = <&zynqmp_firmware PD_ETH_0>; + resets = <&zynqmp_reset ZYNQMP_RESET_GEM0>; + reset-names = "gem0_rst"; }; gem1: ethernet@ff0c0000 { @@ -478,6 +485,8 @@ gem1: ethernet@ff0c0000 { #address-cells = <1>; #size-cells = <0>; power-domains = <&zynqmp_firmware PD_ETH_1>; + resets = <&zynqmp_reset ZYNQMP_RESET_GEM1>; + reset-names = "gem1_rst"; }; gem2: ethernet@ff0d0000 { @@ -490,6 +499,8 @@ gem2: ethernet@ff0d0000 { #address-cells = <1>; #size-cells = <0>; power-domains = <&zynqmp_firmware PD_ETH_2>; + resets = <&zynqmp_reset ZYNQMP_RESET_GEM2>; + reset-names = "gem2_rst"; }; gem3: ethernet@ff0e0000 { @@ -502,6 +513,8 @@ gem3: ethernet@ff0e0000 { #address-cells = <1>; #size-cells = <0>; power-domains = <&zynqmp_firmware PD_ETH_3>; + resets = <&zynqmp_reset ZYNQMP_RESET_GEM3>; + reset-names = "gem3_rst"; }; gpio: gpio@ff0a0000 { @@ -515,6 +528,8 @@ gpio: gpio@ff0a0000 { #interrupt-cells = <2>; reg = <0x0 0xff0a0000 0x0 0x1000>; power-domains = <&zynqmp_firmware PD_GPIO>; + resets = <&zynqmp_reset ZYNQMP_RESET_GPIO>; + reset-names = "gpio_rst"; }; i2c0: i2c@ff020000 { @@ -526,6 +541,8 @@ i2c0: i2c@ff020000 { #address-cells = <1>; #size-cells = <0>; power-domains = <&zynqmp_firmware PD_I2C_0>; + resets = <&zynqmp_reset ZYNQMP_RESET_I2C0>; + reset-names = "i2c0_rst"; }; i2c1: i2c@ff030000 { @@ -537,6 +554,8 @@ i2c1: i2c@ff030000 { #address-cells = <1>; #size-cells = <0>; power-domains = <&zynqmp_firmware PD_I2C_1>; + resets = <&zynqmp_reset ZYNQMP_RESET_I2C1>; + reset-names = "i2c1_rst"; }; pcie: pcie@fd0e0000 { @@ -602,6 +621,8 @@ sata: ahci@fd0c0000 { interrupt-parent = <&gic>; interrupts = <0 133 4>; power-domains = <&zynqmp_firmware PD_SATA>; + resets = <&zynqmp_reset ZYNQMP_RESET_SATA>; + reset-names = "sata_rst"; }; sdhci0: mmc@ff160000 { @@ -733,6 +754,10 @@ usb0: usb@fe200000 { reg = <0x0 0xfe200000 0x0 0x40000>; clock-names = "clk_xin", "clk_ahb"; power-domains = <&zynqmp_firmware PD_USB_0>; + resets = <&zynqmp_reset ZYNQMP_RESET_USB0_CORERESET>, + <&zynqmp_reset ZYNQMP_RESET_USB0_HIBERRESET>, + <&zynqmp_reset ZYNQMP_RESET_USB0_APB>; + reset-names = "usb0_crst", "usb0_hibrst", "usb0_apbrst"; }; usb1: usb@fe300000 { @@ -743,6 +768,10 @@ usb1: usb@fe300000 { reg = <0x0 0xfe300000 0x0 0x40000>; clock-names = "clk_xin", "clk_ahb"; power-domains = <&zynqmp_firmware PD_USB_1>; + resets = <&zynqmp_reset ZYNQMP_RESET_USB1_CORERESET>, + <&zynqmp_reset ZYNQMP_RESET_USB1_HIBERRESET>, + <&zynqmp_reset ZYNQMP_RESET_USB1_APB>; + reset-names = "usb1_crst", "usb1_hibrst", "usb1_apbrst"; }; watchdog0: watchdog@fd4d0000 { From patchwork Wed Dec 2 14:06:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 11946191 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=-15.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, UNWANTED_LANGUAGE_BODY,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable 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 7DADCC64E7B for ; Wed, 2 Dec 2020 14:08: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 E381121D7F for ; Wed, 2 Dec 2020 14:08:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E381121D7F 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=LlIdPniW6Qs18TG/5vVQlC53mBH9HN4IAF40tsIvIp8=; b=kn4dSEJyqx2Xp/xy822lbfOvM 0HJheVcBORgiGqn5Qnw5Um2XKyIQ0oSRsbeC43VIiprkqWCNDDqAmCeF0wn82aCfnqTf/dcUD/Oxp lCLZCk80qHfWrqwwhsVexfTkHtGqn9MRWb9UajJuIfRbfoAKqzpn1T3XP/8fpTdmMUWb+4vjuzZhX 9CpbcPMGoNEVd9gTYPooHZJQMUlqU44w3RRwHVR3/Em3uyIC2SwPP8j3Ejhdy8ntADravNEsLzeYk 68ZDGmNpONd31Nn0tl2XCCZL6DtyOzpaXfyjuYmMKIHytHHJaLr7hUPMIyRrb0V5sGl7PQwqUlo3F 0gZbvOzoA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kkSmS-0007NB-UH; Wed, 02 Dec 2020 14:06:52 +0000 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kkSm2-0007DS-WA for linux-arm-kernel@lists.infradead.org; Wed, 02 Dec 2020 14:06:29 +0000 Received: by mail-ed1-x52f.google.com with SMTP id l5so3974421edq.11 for ; Wed, 02 Dec 2020 06:06:26 -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=VYfQkYRVs47XikdYX7n4vb+ADGi5slPK0VELk2dqs+w=; b=s4Bt6ond8f+RcQQIlN7GS6FmmNeEmc+S5Cg/HB/z3plHum23LRkkdxEsA6w/gTii8Z Lcn2edDloqqFiOOwlWsJN2C344VX3Sc8gF6SZqikVBOuls18ctDdH0yN/L7XuB3hu1ZO a5Gq+gROU1V+0Mn7WG31ZSPyUiQaFxULp4DvH7n61qSuZsEZcebQ41Do3QO6048FQ+0e p0jKU2T6WBffB4TWU9oZuX/GZ7Bk6iVOFs9sEzmyzpvsXwL1Efr9LdK/GcVC7amwKpTd mynZx1XwhWfel8usgnWhWV0dpy04qlQHksklvZ/RnngogwqkRpwQM56mWArd576XS6OR 1y9A== 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=VYfQkYRVs47XikdYX7n4vb+ADGi5slPK0VELk2dqs+w=; b=OVM6tJ7+JCaG8wEdWV4ifBJ9RxhoWLoTGQxv67jT3rP6XLjuLSWrmpnOgt3NE++d3Z tbw3NqfET13ojwNJ2kJCB2DDF1TyK1hSw442V1rw2ma20Botq+HW7J/uyMClFpPQ+ial hibbrGqcYAoHLYuBRdqAVyW+Iybf08MZUWVG4wwNnYPXTUxvlYDpqD5MYtsdX/RhACDs DEjmrsbtWZGYsTiwHu8Y9jeGiTmavjTcFphW/Ra4Y3b534Eqnd+3/WHHWFtDM4xAP0o1 IEw7QDSUjb9agNuXhyvNOWFIxB4C5PkLYe9wCkXOkyrq5y/3nIY2KzEJYRXsvR+sjCV8 PvQw== X-Gm-Message-State: AOAM530roSLGKtIKT7sbyWKWKMy+NIH97u9NUwMUDkSkl5DrqvCVd/Du 5DuihUTaUZb7WsrPMFs2baeFFg== X-Google-Smtp-Source: ABdhPJxvtX4Ji1KYbcn/ajq6PnsBUNC4t3vFxBkm1PD0RFPAtnvazVtfL9OZ7fuhSbkEmQXwAziEOw== X-Received: by 2002:a05:6402:1d13:: with SMTP id dg19mr33800edb.111.1606917985305; Wed, 02 Dec 2020 06:06:25 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id op5sm966689ejb.43.2020.12.02.06.06.24 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 02 Dec 2020 06:06:24 -0800 (PST) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu, michal.simek@xilinx.com, git@xilinx.com Subject: [PATCH 05/12] arm64: dts: zynqmp: Enable phy driver for Sata on zcu102/zcu104/zcu106 Date: Wed, 2 Dec 2020 15:06:04 +0100 Message-Id: X-Mailer: git-send-email 2.29.2 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201202_090627_151080_340F22A5 X-CRM114-Status: GOOD ( 15.30 ) 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: devicetree@vger.kernel.org, Anurag Kumar Vulisha , Rajan Vaja , Venkatesh Yadav Abbarapu , Krzysztof Kozlowski , Rob Herring , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Enable psgtr driver and write clocks property to get sata to work. Signed-off-by: Michal Simek --- .../boot/dts/xilinx/zynqmp-zcu102-revA.dts | 10 +++++++ .../boot/dts/xilinx/zynqmp-zcu104-revA.dts | 28 +++++++++++++++++++ .../boot/dts/xilinx/zynqmp-zcu106-revA.dts | 10 +++++++ .../boot/dts/xilinx/zynqmp-zcu111-revA.dts | 10 +++++++ 4 files changed, 58 insertions(+) diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-zcu102-revA.dts b/arch/arm64/boot/dts/xilinx/zynqmp-zcu102-revA.dts index 68c2ad30d62d..d92698ffbf8c 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-zcu102-revA.dts +++ b/arch/arm64/boot/dts/xilinx/zynqmp-zcu102-revA.dts @@ -13,6 +13,7 @@ #include "zynqmp-clk-ccf.dtsi" #include #include +#include / { model = "ZynqMP ZCU102 RevA"; @@ -663,6 +664,13 @@ &pcie { status = "okay"; }; +&psgtr { + status = "okay"; + /* pcie, sata, usb3, dp */ + clocks = <&si5341 0 5>, <&si5341 0 3>, <&si5341 0 2>, <&si5341 0 0>; + clock-names = "ref0", "ref1", "ref2", "ref3"; +}; + &rtc { status = "okay"; }; @@ -678,6 +686,8 @@ &sata { ceva,p1-comwake-params = /bits/ 8 <0x06 0x14 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 1>; }; /* SD1 with level shifter */ diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-zcu104-revA.dts b/arch/arm64/boot/dts/xilinx/zynqmp-zcu104-revA.dts index 7a4614e3f5fa..5e2be9abc175 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-zcu104-revA.dts +++ b/arch/arm64/boot/dts/xilinx/zynqmp-zcu104-revA.dts @@ -12,6 +12,7 @@ #include "zynqmp.dtsi" #include "zynqmp-clk-ccf.dtsi" #include +#include / { model = "ZynqMP ZCU104 RevA"; @@ -36,6 +37,24 @@ memory@0 { device_type = "memory"; reg = <0x0 0x0 0x0 0x80000000>; }; + + clock_8t49n287_5: clk125 { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <125000000>; + }; + + clock_8t49n287_2: clk26 { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <26000000>; + }; + + clock_8t49n287_3: clk27 { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <27000000>; + }; }; &can1 { @@ -158,6 +177,13 @@ &rtc { status = "okay"; }; +&psgtr { + status = "okay"; + /* nc, sata, usb3, dp */ + clocks = <&clock_8t49n287_5>, <&clock_8t49n287_2>, <&clock_8t49n287_3>; + clock-names = "ref1", "ref2", "ref3"; +}; + &sata { status = "okay"; /* SATA OOB timing settings */ @@ -169,6 +195,8 @@ &sata { ceva,p1-comwake-params = /bits/ 8 <0x06 0x14 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 1>; }; /* SD1 with level shifter */ diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-zcu106-revA.dts b/arch/arm64/boot/dts/xilinx/zynqmp-zcu106-revA.dts index a29ff20090ce..4ec6715abab7 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-zcu106-revA.dts +++ b/arch/arm64/boot/dts/xilinx/zynqmp-zcu106-revA.dts @@ -13,6 +13,7 @@ #include "zynqmp-clk-ccf.dtsi" #include #include +#include / { model = "ZynqMP ZCU106 RevA"; @@ -658,6 +659,13 @@ i2c@7 { }; }; +&psgtr { + status = "okay"; + /* nc, sata, usb3, dp */ + clocks = <&si5341 0 3>, <&si5341 0 2>, <&si5341 0 0>; + clock-names = "ref1", "ref2", "ref3"; +}; + &rtc { status = "okay"; }; @@ -673,6 +681,8 @@ &sata { ceva,p1-comwake-params = /bits/ 8 <0x06 0x14 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 1>; }; /* SD1 with level shifter */ diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-zcu111-revA.dts b/arch/arm64/boot/dts/xilinx/zynqmp-zcu111-revA.dts index 92b3cee62d11..2969c4b71384 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-zcu111-revA.dts +++ b/arch/arm64/boot/dts/xilinx/zynqmp-zcu111-revA.dts @@ -13,6 +13,7 @@ #include "zynqmp-clk-ccf.dtsi" #include #include +#include / { model = "ZynqMP ZCU111 RevA"; @@ -541,6 +542,13 @@ i2c@7 { }; }; +&psgtr { + status = "okay"; + /* nc, sata, usb3, dp */ + clocks = <&si5341 0 3>, <&si5341 0 2>, <&si5341 0 0>; + clock-names = "ref1", "ref2", "ref3"; +}; + &rtc { status = "okay"; }; @@ -556,6 +564,8 @@ &sata { ceva,p1-comwake-params = /bits/ 8 <0x06 0x14 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 1>; }; /* SD1 with level shifter */ From patchwork Wed Dec 2 14:06:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 11946189 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=-18.2 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 1320AC64E7C for ; Wed, 2 Dec 2020 14:08:33 +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 98A5A21741 for ; Wed, 2 Dec 2020 14:08:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 98A5A21741 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=j85Ea1i2CuT/xpX9RDs3nV/WRPUGtaiHPs1LPzg4AjY=; b=YWt/OygDw5cy+ebjq+R+b/3Qm Wpni+0rbcKnZ4NKYl6/tw3zGHhAalLpi5sD7fPniyMM3FN7O4KnIsMXfd0l9wSPllKCV2/xjIFeXG uHiiEzVLtdHj5pkx2wEkm58e3uKU4C/+xCacMncli/QNabxe9nY5ojKmMnUcs3Nwpj3j8wg9d200Y KGY8oGF6AoRFvKnYRxFQHXzTrOssE7z4b4GB5KBiRZjquBYyrXP4VGfUoE8sV1y5eX0RadWP7zplh KMB3RNh+j/30eTMmCpJUA0N0rB3M4AKvIjUrD3S5/qi/nWk8tWX/EZr2LaZpXLSqsAVYxIuVUR7V9 4DjZaGXnA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kkSmW-0007Oh-1n; Wed, 02 Dec 2020 14:06:56 +0000 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kkSm4-0007E5-QX for linux-arm-kernel@lists.infradead.org; Wed, 02 Dec 2020 14:06:31 +0000 Received: by mail-ed1-x534.google.com with SMTP id k4so4072776edl.0 for ; Wed, 02 Dec 2020 06:06:27 -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=FJAKB0zdA0xuhJ4uEgBOrHtBpw3NH4gbDqp166kyyT8=; b=GdArINR/MRSfGmb3pT9LK/qJanGj5ypN/SoRo5CEPIrG205s+oMrHO1vT/DovUlTAv x6dD2N9yu7m+nrMeIXDYXNLLPKXSFWSzqBAeK2Ntb3TCU0IDLPHZvAokJg2jKeYBar30 FPq7aJ/97Zaml/uhMIEYDzlIhm0PHcnTdO2SeybxPhUTEaUV3FOaKZ5bW+EiWOagcLQ1 lsBHWt/PHcC2cad35UPvu5BjIruPWhi2h2ANINwOlGxqTIry01hACFXarcG1nF19jC3U VRq/cJMBOoT+cQTMYEbccsEN3paUsT9dme2ihGBbppT9Gn5q2CdwXvuM8K/tTRQGK54I 13jQ== 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=FJAKB0zdA0xuhJ4uEgBOrHtBpw3NH4gbDqp166kyyT8=; b=gxl3oGi2XrtMm1RRQUZUElB5joKexMJ0XRCxh3a0wYHWY8YEh74gU1+AmMAbkqT8l2 Joqj2SNz8a1O3Z+mw3D7t/Fvla9SjDmoF+FJswIjsOGAqpy95J27YgnjlqZ8KRZz3LS7 /s9taXiD0BZVtHpJ/0eYRtKKuVrGpccX5dIXMuvBvJTHlD/EFO/kMy8u93DNAhChlAj6 ywuaBXo6xNZQG1woWj90tl1A7ItRQ8zbL4vIBoitgHcNl0daMKLzmXTKpEhj/rPm2z/C /SFLAjrJ+crNyT6gfqaZyLOk7YvnNHztV+jf9yvSHY4YzEz4pRVH8PYUwkQDd13Ygvq5 YiKg== X-Gm-Message-State: AOAM531G+4Z+uHur9AGDjQMigTk5zdmIp7L9LJZfbqcnLYzEqkEKeD7s azsnnWpdihmoxCBcWZ9JZJw77A== X-Google-Smtp-Source: ABdhPJxZqoa5ApHSfYDj3Lak3S333kHG8nMsBsLfLCEp/6tH2R8oAnaJiysMDgLoseSOrp8ZkCR0wQ== X-Received: by 2002:a05:6402:c83:: with SMTP id cm3mr23501edb.189.1606917987072; Wed, 02 Dec 2020 06:06:27 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id t8sm431538eju.69.2020.12.02.06.06.26 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 02 Dec 2020 06:06:26 -0800 (PST) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu, michal.simek@xilinx.com, git@xilinx.com Subject: [PATCH 06/12] arm64: dts: zynqmp: Add label for zynqmp_ipi Date: Wed, 2 Dec 2020 15:06:05 +0100 Message-Id: <272e23e0123f02c559bfa4ada9de73eb197aced8.1606917949.git.michal.simek@xilinx.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201202_090628_981601_70075D02 X-CRM114-Status: GOOD ( 14.87 ) 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: devicetree@vger.kernel.org, Rajan Vaja , Krzysztof Kozlowski , Rob Herring , Manish Narani , Laurent Pinchart , Kalyani Akula , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add label which is used by bootloader for adding bootloader specific flag. Signed-off-by: Michal Simek --- U-Boot needs to add u-boot,dm-pre-reloc; property --- arch/arm64/boot/dts/xilinx/zynqmp.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi index 4fa820f78d76..8e9b54b5e70c 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi +++ b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi @@ -99,7 +99,7 @@ opp03 { }; }; - zynqmp_ipi { + zynqmp_ipi: zynqmp_ipi { compatible = "xlnx,zynqmp-ipi-mailbox"; interrupt-parent = <&gic>; interrupts = <0 35 4>; From patchwork Wed Dec 2 14:06:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 11946195 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=-18.2 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=unavailable 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 C0514C64E7B for ; Wed, 2 Dec 2020 14:08:53 +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 2656021741 for ; Wed, 2 Dec 2020 14:08:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2656021741 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=Y7ypr7Np/RW/Fes22Xk45RzcUQDfiOMntIGoYbRJaME=; b=rgjXCbsbZRiF6XhN5OgwLbPcZ y7+DjIecED+7OCGBp0nJjPSbY80msF/nXs/0zvk+/mQzLurOlR8QA8VDQqkUg2O4aWwHrYFX1BN9Z WjUkAigeRU5EMS9e02acRTX0kKhEqvjKux27Is9JJ7Z+ik98I26We7YvP3LLD9NplagzofQV1JQew olG5A9frkz8aQjPPSpmC0OfxXp0t/1Gd4hYl62KEIEflMOscLWK0liNTp8Frtf8iuz48Q7QiGRlM2 ChitNz8StET3e/vPJTFQKbXc4T17feAEUzFAhJtwXrai22Yo3Fk4mmv8yov7Jd4/ER8tkYbH3Us+5 rkUNn5BGA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kkSma-0007Qe-7B; Wed, 02 Dec 2020 14:07:00 +0000 Received: from mail-ej1-x644.google.com ([2a00:1450:4864:20::644]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kkSm5-0007Ei-UI for linux-arm-kernel@lists.infradead.org; Wed, 02 Dec 2020 14:06:31 +0000 Received: by mail-ej1-x644.google.com with SMTP id f23so4538905ejk.2 for ; Wed, 02 Dec 2020 06:06:29 -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=VViFxFAQk/Dkx4vjvV9oGNxK0PemXCTJcyLmBlIKKyA=; b=cL47bNhqpa3x5USkIcigZLKjV6p4UO236MRU5j/jpNIUbe72FhOmFeglcCDhruhmgd O8sRNLdcDXlY+1JiVphnRhQ7jfuZzOXJoEPb+OiZlN6GsWAdEPxR3+wPC/JCZwBAXh8P +kPyjQhoCgRU5fSJ8vZnNQ2WNGL0K+WH5exPUnjQrGDdRhJaThgdD8tAWlbcDkHbayJH 0g6SQyvu6lK6oL/UacYDKiWoAKyPF9km/oBLOY8Q5+jBm+bEOoUIHPEZLHhdsfctFjgh aEddtvV2AXPu6YLLuzIxnRspskC/BdBX/WGcYgQ6Y0FeplRn/q20H24MzFG5gLxS6yXQ GFOQ== 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=VViFxFAQk/Dkx4vjvV9oGNxK0PemXCTJcyLmBlIKKyA=; b=T2GLz8uf4vCp0chFoHj5wnjlb6RHBL23Wx6p2apxlscMnykU1egn/Kndm0+F4ff5Cy ov35OuAxwBCZvWtxH3F5Kj/3cv95nIfNMfVXDpkU6HguCTliroDdhgEmJcKHXV+9bZj6 VR/OWcW0BLWMjdc/7K0UmtSGRLfrKOvOlrVQYGQduMgiigIIyg7v7JC1LhZCErMstQDL 9iRnzPiKhUny40T7EirultQbm4XZfekZdcwef4hssLzN2qf81oRyuOFnlOVz+63pHlAF UK5EwlrmSqXq9T+OONvzKryhpfAUfVSVI0lBwPrYPGoWX2PUCoKxbonS3Fz1dUKwFfm2 POeQ== X-Gm-Message-State: AOAM533H8UwAxhTptC/WH705hOIzyMRCrlpvcvKa0akfMukOKAVKSjrU eRE6WqT/mwmvmN6MOJC7vM6BTQ== X-Google-Smtp-Source: ABdhPJzMLWC1zUilMeaUt+2C44lMS+bj//KaUelctZALEzJ6jI6HHccAyxryF32ur16l0qmPZft9Fg== X-Received: by 2002:a17:907:a96:: with SMTP id by22mr2371741ejc.171.1606917988872; Wed, 02 Dec 2020 06:06:28 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id q19sm1285936ejz.90.2020.12.02.06.06.28 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 02 Dec 2020 06:06:28 -0800 (PST) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu, michal.simek@xilinx.com, git@xilinx.com Subject: [PATCH 07/12] arm64: dts: zynqmp: Add missing mio-bank properties to sdhcis Date: Wed, 2 Dec 2020 15:06:06 +0100 Message-Id: <67301f9bf40028a223ebf81a9dfd35deb4098e11.1606917949.git.michal.simek@xilinx.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201202_090630_041065_A9FB9E65 X-CRM114-Status: GOOD ( 13.84 ) 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: devicetree@vger.kernel.org, Anurag Kumar Vulisha , Rajan Vaja , Venkatesh Yadav Abbarapu , Krzysztof Kozlowski , Rob Herring , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add missing xlnx,mio-bank property to sdhci nodes. Also add properties with 0 value to have it listed in case that files are copied to different projects where default case doesn't need to be handled in the same way. That's why explicitly list them too. Signed-off-by: Michal Simek --- Based on dt binding fix: https://lore.kernel.org/r/5fa17dfe4b42abefd84b4cbb7b8bcd4d31398f40.1606914986.git.michal.simek@xilinx.com --- arch/arm64/boot/dts/xilinx/zynqmp-zcu100-revC.dts | 2 ++ arch/arm64/boot/dts/xilinx/zynqmp-zcu102-revA.dts | 1 + arch/arm64/boot/dts/xilinx/zynqmp-zcu104-revA.dts | 1 + arch/arm64/boot/dts/xilinx/zynqmp-zcu106-revA.dts | 1 + arch/arm64/boot/dts/xilinx/zynqmp-zcu111-revA.dts | 1 + 5 files changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-zcu100-revC.dts b/arch/arm64/boot/dts/xilinx/zynqmp-zcu100-revC.dts index 68ecd0f7b2f2..71ebcaadb7c8 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-zcu100-revC.dts +++ b/arch/arm64/boot/dts/xilinx/zynqmp-zcu100-revC.dts @@ -233,11 +233,13 @@ &sdhci0 { status = "okay"; no-1-8-v; disable-wp; + xlnx,mio-bank = <0>; }; &sdhci1 { status = "okay"; bus-width = <0x4>; + xlnx,mio-bank = <0>; non-removable; disable-wp; cap-power-off-card; diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-zcu102-revA.dts b/arch/arm64/boot/dts/xilinx/zynqmp-zcu102-revA.dts index d92698ffbf8c..9abd10f6785a 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-zcu102-revA.dts +++ b/arch/arm64/boot/dts/xilinx/zynqmp-zcu102-revA.dts @@ -694,6 +694,7 @@ &sata { &sdhci1 { status = "okay"; no-1-8-v; + xlnx,mio-bank = <1>; }; &uart0 { diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-zcu104-revA.dts b/arch/arm64/boot/dts/xilinx/zynqmp-zcu104-revA.dts index 5e2be9abc175..8ede619fea52 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-zcu104-revA.dts +++ b/arch/arm64/boot/dts/xilinx/zynqmp-zcu104-revA.dts @@ -203,6 +203,7 @@ &sata { &sdhci1 { status = "okay"; no-1-8-v; + xlnx,mio-bank = <1>; disable-wp; }; diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-zcu106-revA.dts b/arch/arm64/boot/dts/xilinx/zynqmp-zcu106-revA.dts index 4ec6715abab7..d60a30787022 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-zcu106-revA.dts +++ b/arch/arm64/boot/dts/xilinx/zynqmp-zcu106-revA.dts @@ -689,6 +689,7 @@ &sata { &sdhci1 { status = "okay"; no-1-8-v; + xlnx,mio-bank = <1>; }; &uart0 { diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-zcu111-revA.dts b/arch/arm64/boot/dts/xilinx/zynqmp-zcu111-revA.dts index 2969c4b71384..758de05c4a4b 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-zcu111-revA.dts +++ b/arch/arm64/boot/dts/xilinx/zynqmp-zcu111-revA.dts @@ -572,6 +572,7 @@ &sata { &sdhci1 { status = "okay"; no-1-8-v; + xlnx,mio-bank = <1>; }; &uart0 { From patchwork Wed Dec 2 14:06:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 11946193 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=-18.2 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 686BEC64E7C for ; Wed, 2 Dec 2020 14:08:49 +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 0724421741 for ; Wed, 2 Dec 2020 14:08:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0724421741 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=aGh2qBinaNz5BHh2ffkfeLnC+2czw/J8nXBwv2ZHOtw=; b=ClgMwSch5UHQft7dYiuz2lEKK Y0yMfPTlBnlDF9eHmciPPUMP1mKURnkiMrEXlxA2QfwBWSv59NJreUs/ug37Ct2qXx0ASTsy9UIt6 ks4V4fOTEFp9C/db39BpztXq4J6ZNV/pnTqlmKji6AOk+blLKuZYV0f6tTjnvqTC89349CdVfbi94 7BCAHH5okLXByFeeeVhs1JOoVThNT4gVYpZ6mn0y/tbBkNH0CJTsInvE/WEbP+XqlvXTxsu/NhN2n qbBWHchgp7b8c5DoSqHyZWT8cYCi+T7qbeCOjiVVfYcOmGDf47grhsIKQQ0luOhcTWi1rwpdOfVZd op+UQN5Nw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kkSmg-0007Tl-Ll; Wed, 02 Dec 2020 14:07:06 +0000 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kkSm7-0007FI-Ry for linux-arm-kernel@lists.infradead.org; Wed, 02 Dec 2020 14:06:33 +0000 Received: by mail-ed1-x52f.google.com with SMTP id b73so345838edf.13 for ; Wed, 02 Dec 2020 06:06:31 -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=5kGGPno4KI9ROcXeIw+hoBmYc900cxDg8Hcle1V5lUQ=; b=DLzggIsXic3gDWS3B+/O+k8OsLTtT9P/uXNnfO/n8/qHXlLRDdJCcl8/78SEjGnjyH 1H58uCj8sXNHjbOpjvLO7+/jNeiXcKIOaUmtT1BiICyj2WJIx/K9+Hr8X9S8wTm8dN5v sN6iMxYGh6lLyYWniWdYnpPGBtNAXNK66CadVK5at96VnIQETGaqkW01wWd6/iOtUpFI rBpF5Tbjr1SYqFCmxSIsdp50P4uYfLsZxnMb30eDZ82pomTimp3BFsL8Cos0dw4gxlPY 2Mxl5naqChNtQ8vOWEiVv0Jw1jSxhVX7ZTCbXnFuOX0OHPBduxmj6u/opvISqNOneR/X /1wA== 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=5kGGPno4KI9ROcXeIw+hoBmYc900cxDg8Hcle1V5lUQ=; b=JWrQ+z3Rm2kQN40ZZ6SKAteSABE0tsh9IwHPSnDCUekIcLDrvRsW3gBIN5BIp55cKV rbDZuzAxWle9UzGU2Ms4dr8uZtiGJfLqrRk4bvSrHiz2NDy3Oavxde0YelAzyFvuFm5f eO1ttcHC2YKPeTvFhmwYFQHO/rDH60yZrxeJugpvhMaB49wgT9IZQsMnjN6E3kOVKPow NHsHovehiyCLeL8x1yFNB2NhNv+GUmuvNeCQ0jsAv+wFyP5h1SGuuKIkHZqWTyCdvMyI coMnxamtAF3eKEcI3pgevw3xDiDzSZ0yWlCBY3VIGWpMjomJ+XV3RsR0ETUcGtE6KAxN jLNg== X-Gm-Message-State: AOAM532uF2qSlk8q75s+GMEXMsxG1xc8RX3tIxslSa7pn4x/qmyEuN3s 9XhjwpjP87yqm/pAHsyRNAK8vaMMHpnC/NPZ X-Google-Smtp-Source: ABdhPJw0CUnH2U4CKTf8DG2npagiJTq9FOyhn3VMwLcXFOcpgbuPdND55lyr+JwYBN1bQjEG4QvVlg== X-Received: by 2002:a50:bec4:: with SMTP id e4mr39574edk.65.1606917990789; Wed, 02 Dec 2020 06:06:30 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id da9sm26813edb.13.2020.12.02.06.06.29 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 02 Dec 2020 06:06:30 -0800 (PST) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu, michal.simek@xilinx.com, git@xilinx.com Subject: [PATCH 08/12] arm64: dts: zynqmp: Wire arasan nand controller Date: Wed, 2 Dec 2020 15:06:07 +0100 Message-Id: <96d84568afbbe97e3520b71d8e3e1da7ef10dc66.1606917949.git.michal.simek@xilinx.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201202_090632_019436_408DBC1B X-CRM114-Status: GOOD ( 13.03 ) 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: devicetree@vger.kernel.org, Rajan Vaja , Krzysztof Kozlowski , Rob Herring , Manish Narani , Laurent Pinchart , Kalyani Akula , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add missing arasan controller with clocks. Disable it by default. Every board can enable it with specifying others properties. Signed-off-by: Michal Simek --- arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi | 4 ++++ arch/arm64/boot/dts/xilinx/zynqmp.dtsi | 12 ++++++++++++ 2 files changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi b/arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi index c94c3bb67edc..7af57619436d 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi +++ b/arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi @@ -116,6 +116,10 @@ &lpd_dma_chan8 { clocks = <&zynqmp_clk ADMA_REF>, <&zynqmp_clk LPD_LSBUS>; }; +&nand0 { + clocks = <&zynqmp_clk NAND_REF>, <&zynqmp_clk LPD_LSBUS>; +}; + &gem0 { clocks = <&zynqmp_clk LPD_LSBUS>, <&zynqmp_clk GEM0_REF>, <&zynqmp_clk GEM0_TX>, <&zynqmp_clk GEM0_RX>, diff --git a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi index 8e9b54b5e70c..fa7ea7f56299 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi +++ b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi @@ -461,6 +461,18 @@ mc: memory-controller@fd070000 { interrupts = <0 112 4>; }; + nand0: nand-controller@ff100000 { + compatible = "xlnx,zynqmp-nand-controller", "arasan,nfc-v3p10"; + status = "disabled"; + reg = <0x0 0xff100000 0x0 0x1000>; + clock-names = "controller", "bus"; + interrupt-parent = <&gic>; + interrupts = <0 14 4>; + #address-cells = <1>; + #size-cells = <0>; + power-domains = <&zynqmp_firmware PD_NAND>; + }; + gem0: ethernet@ff0b0000 { compatible = "cdns,zynqmp-gem", "cdns,gem"; status = "disabled"; From patchwork Wed Dec 2 14:06:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 11946199 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=-18.2 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 5E53CC64E7B for ; Wed, 2 Dec 2020 14:09:08 +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 DF0BF21D7F for ; Wed, 2 Dec 2020 14:09:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DF0BF21D7F 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=4F1m4sgRNkHKsmsWbF9DTHGd6/mYU24OTJyhz0f13N4=; b=yDy7PfL/c/dE6cmYhkplpIP4P nN0bL+JyqmqBYxv884X7Kkrk1wJZjr8353J90MZLH1PDXf9gUENH3AJREykXCOabpvoHiTyE9RUSP FcxkxcsPX9mEfqN5NrcmzrHt5qqzguz5RHTaBNSCB51p0gKvlQuZhOgPwb0sBoq5woXxpvTfjCUdh GxD2RHQBtTd2/bx82ZEKWbUWyHQoMIpMgDceoEDif01HYc73/lUD1zvzkEyAYXnoj6xdkfU8ztFBb u7rHOxx8iKmtcZlWZJqNHM+7XjDP5xkc/cdXWopq9nLpFshI1lBA4YotgOiZRaeAt7UYliVYZWOaz etU0xVftA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kkSmo-0007WA-CS; Wed, 02 Dec 2020 14:07:14 +0000 Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kkSmA-0007GC-R0 for linux-arm-kernel@lists.infradead.org; Wed, 02 Dec 2020 14:06:36 +0000 Received: by mail-ed1-x535.google.com with SMTP id v22so3991479edt.9 for ; Wed, 02 Dec 2020 06:06:33 -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=7BFCHrmzrOqkLjq4ZogRCirDfiv1ADrbWNpSxaRd9L8=; b=ms9iWFkReozQrKn/0bBAfxCaEEUVxvE8oH/ihmQ95Z8EM51FYNL2tezD9XUGDzN9g/ 0E+csaOzWjXrTA9d0BJVI3WXsPVdVJaRQMdDRAlH7+uDzHXuv0IpfGVs1uX9dw4h3PB3 KzNrmfM+rGoAGxSlQg8oJKJYPO98Lp2DL/HLhlh3yeoDqDOVRLUCE0UbBYaBUZ96d7OS K3GUzQgmPIuJBlwoEoHY13Xt3cQ9azn1cC1zAKJNxVnoV1nkb79hEaNX5iDb2rO/18Pd RTBovpmWuaevagI8FqjUgOFPPawQjpo1gV/9se8tNSnVG1Wqu+fqLHv31IoZNFOtgdoG KyEQ== 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=7BFCHrmzrOqkLjq4ZogRCirDfiv1ADrbWNpSxaRd9L8=; b=Mq6IpEOVpTinv1ZqHcq4BU4I+G6uWercFAwl3lSiT36AYzr6VvtzweFEz+0JLPxk19 DEaPsywDz83oj9yrowEitjzOHWZqnhrROOt/Aa5kO/yI2ve3vr0awNtxZBn1D0DQx28m wVTnAdwVRWctUPDBzl9B5zC3B/X4HrOSx9z46yzjbkgxokdz9eD3dPCg3c2Wezv9otzP 0VcMXMjNP3Cyv0Mu2v5yhTMR1mxeCQ7SOWLPnoaV1GXNaqOgABzbsWA8Fqf78ODR0O7t LX7fLG6J7Wbfo7z+TmP0bjxmkQOoX/DmGNnb7QKfQSh+Py103iYZaNapfawnR8uXHaKX BXZQ== X-Gm-Message-State: AOAM5323Hcwejh17fyn2DsgtbiGr1v67rr5KViCMnkzlDS1EW44BNw/R oCZgQo2yvWRedI6JMPfqsYN8NA== X-Google-Smtp-Source: ABdhPJwm4XCItwDaa1EUc8MFClCW8lSiRf6xeHowl7GdIA+tAYIyrrW6NhwdeIyqwlCWnUNadqShrw== X-Received: by 2002:a50:c19a:: with SMTP id m26mr53744edf.302.1606917992907; Wed, 02 Dec 2020 06:06:32 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id z19sm1282757ejj.101.2020.12.02.06.06.32 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 02 Dec 2020 06:06:32 -0800 (PST) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu, michal.simek@xilinx.com, git@xilinx.com Subject: [PATCH 09/12] arm64: dts: zynqmp: Wire zynqmp qspi controller Date: Wed, 2 Dec 2020 15:06:08 +0100 Message-Id: <13f970a9859ac0c15381e532f05371d939c138c6.1606917949.git.michal.simek@xilinx.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201202_090634_962359_9407FFBB X-CRM114-Status: GOOD ( 13.16 ) 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: devicetree@vger.kernel.org, Rajan Vaja , Krzysztof Kozlowski , Rob Herring , Manish Narani , Laurent Pinchart , Kalyani Akula , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add missing ZynqMP qspi IP. It works in single mode only. Signed-off-by: Michal Simek --- arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi | 4 ++++ arch/arm64/boot/dts/xilinx/zynqmp.dtsi | 14 ++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi b/arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi index 7af57619436d..6a577e1383c1 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi +++ b/arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi @@ -164,6 +164,10 @@ &pcie { clocks = <&zynqmp_clk PCIE_REF>; }; +&qspi { + clocks = <&zynqmp_clk QSPI_REF>, <&zynqmp_clk LPD_LSBUS>; +}; + &sata { clocks = <&zynqmp_clk SATA_REF>; }; diff --git a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi index fa7ea7f56299..4312d4594dba 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi +++ b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi @@ -607,6 +607,20 @@ pcie_intc: legacy-interrupt-controller { }; }; + qspi: spi@ff0f0000 { + compatible = "xlnx,zynqmp-qspi-1.0"; + status = "disabled"; + clock-names = "ref_clk", "pclk"; + interrupts = <0 15 4>; + interrupt-parent = <&gic>; + num-cs = <1>; + reg = <0x0 0xff0f0000 0x0 0x1000>, + <0x0 0xc0000000 0x0 0x8000000>; + #address-cells = <1>; + #size-cells = <0>; + power-domains = <&zynqmp_firmware PD_QSPI>; + }; + psgtr: phy@fd400000 { compatible = "xlnx,zynqmp-psgtr-v1.1"; status = "disabled"; From patchwork Wed Dec 2 14:06:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 11946201 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=-18.2 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 DC983C64E7C for ; Wed, 2 Dec 2020 14:09:18 +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 4171321D7F for ; Wed, 2 Dec 2020 14:09:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4171321D7F 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=fB5Vprls1LiJ2t5jerhVuYk2gK3boIYBZroGcAOKMSY=; b=C/eqo/uGdMQ58WdUwOfGuFOTp uboEOC0KHV1Cbj2ZasY4VLkiKW1S6HoLJuqCsHmGaxPrGuSU3auMg4TnLyr4oAglqgPGlvJDyp5Mj m/oXm8Ok5mdZYbfDJK9IhZL58yqh5dQSlUvOWmMQkZZ2SkRPuYNRxrjwsT4kx5xqhi1/YwteR3nln yUgZkxsCanRVNglk71CNzVL1PnMiR0nz/fJSEwA/TuK5btJXfA+gKOQySREtqE1gTXLV+4X3vhVnb WWF+e/2fA9MDGyEuoO15zH9MMk/Tpd6SwHwq252w79tjleYblCwQyQ+NbdntbPmRR8mGI0D5iDr0y U+wm4fkLg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kkSmz-0007dc-4h; Wed, 02 Dec 2020 14:07:25 +0000 Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kkSmC-0007HT-FO for linux-arm-kernel@lists.infradead.org; Wed, 02 Dec 2020 14:06:38 +0000 Received: by mail-ej1-x632.google.com with SMTP id ga15so4509443ejb.4 for ; Wed, 02 Dec 2020 06:06:36 -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=zvj9L8sor8CyXho3VJNOStq16ikUZFmX+/hnEaB78Fg=; b=tUDiuwnMlvYXKyUbget5sHaWpVGEzFIXOzFPVrC+hhScmTZNlbAai4lW/9WjcVkvwB w0G9qh1avdlNUvL5iybcp0i+2w5mLc/JCoXtlajxBTHcU2BkHmghM15EyNIA55D5pK2O j9y+k9KfW263WQTtmk9AohfK8DCOZzoliZoNH7+sZdKvvv86QbxJfp9wGE046KWq1rE/ HtzMpEMuAcfRVbK2Upbh69BwYk8c6CANVX9Ft/hpL8r6zcAPM3x9+miDeUVBFhaMRmYw NX7FLJWCQSawY49+1lYCPOuS2XQzIssvF6sSmyB4ZY3PejfmudT8SNV8vZGh7SAo8W2t 1/mg== 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=zvj9L8sor8CyXho3VJNOStq16ikUZFmX+/hnEaB78Fg=; b=J4jwjnYRVbt5NWcBnH1Cb274sd0H1OOkNqDgm69eNP0RFzJ0ETa04vJIqNUwn4jGsE yVcn3EJ2uLnbklbn+cUV8qXI0/EKyUoQWdPwacEMN4TEv7iwMQsCqoN/kf/qGuvqk5FR /jkj2EKdNRwfZt7Ls3PmBeFPR0+VzNmUyZlYfzVL0S9rLnW09uKXL5WTMQ/OE7TjVzT6 khOCdhyDwYPJq8PQREzhbELgeG3C+dYZE5qoBLDYSP5ivS+Jj/QC8w6xbiey66zAxGvr 4voi1+mDMscK6isaNDhvQNoVTWtnwkcoxrQbODzo21SzyD1W9bCLml2C15k+OeamEr/9 6XCQ== X-Gm-Message-State: AOAM530x33WcZDR4stS6DTSwtSfkldwoCIZ7fubLCL4owiWtzualqa4R LNThU7MAUk7sysFSlPZ4hz5qxw== X-Google-Smtp-Source: ABdhPJzwbTfV0676rWepFUWvNAYHfb0uHZGjPN2u6o84yNTOfdjUmdy1K5CDwdPouZvZvQ8AORZlPA== X-Received: by 2002:a17:906:81ca:: with SMTP id e10mr2385845ejx.449.1606917995393; Wed, 02 Dec 2020 06:06:35 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id v8sm32493edt.3.2020.12.02.06.06.33 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 02 Dec 2020 06:06:34 -0800 (PST) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu, michal.simek@xilinx.com, git@xilinx.com Subject: [PATCH 10/12] arm64: dts: zynqmp: Add missing lpd watchdog node Date: Wed, 2 Dec 2020 15:06:09 +0100 Message-Id: <645e5dc57a57bca766bf2a7967ac19ca43b68df2.1606917949.git.michal.simek@xilinx.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201202_090636_706467_C0EE8CD3 X-CRM114-Status: GOOD ( 13.54 ) 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: devicetree@vger.kernel.org, Rajan Vaja , Krzysztof Kozlowski , Rob Herring , Manish Narani , Laurent Pinchart , Kalyani Akula , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Xilinx ZynqMP SoC has FPD (Full Power Domain) and LPD (Low Power Domain) watchdogs. There are cases where also LPD WDT should be used by Arm cores that's why list it with disabled status. Signed-off-by: Michal Simek --- arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi | 4 ++++ arch/arm64/boot/dts/xilinx/zynqmp.dtsi | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi b/arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi index 6a577e1383c1..3ca7e4ee51b5 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi +++ b/arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi @@ -223,3 +223,7 @@ &usb1 { &watchdog0 { clocks = <&zynqmp_clk WDT>; }; + +&lpd_watchdog { + clocks = <&zynqmp_clk LPD_WDT>; +}; diff --git a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi index 4312d4594dba..704696811116 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi +++ b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi @@ -808,5 +808,14 @@ watchdog0: watchdog@fd4d0000 { reg = <0x0 0xfd4d0000 0x0 0x1000>; timeout-sec = <10>; }; + + lpd_watchdog: watchdog@ff150000 { + compatible = "cdns,wdt-r1p2"; + status = "disabled"; + interrupt-parent = <&gic>; + interrupts = <0 52 1>; + reg = <0x0 0xff150000 0x0 0x1000>; + timeout-sec = <10>; + }; }; }; From patchwork Wed Dec 2 14:06:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 11946203 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=-18.2 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=unavailable 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 D3E1DC64E7B for ; Wed, 2 Dec 2020 14:09:53 +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 4293D21D7F for ; Wed, 2 Dec 2020 14:09:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4293D21D7F 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=zPDLNMjaSA4DF6J/+8vGh8kVS3gdki/uQthczYWZL/w=; b=u4TDcQBeQ8SIpetWbPJ9qHkKB V3LALzsO5hjXqbLwpLjDLOREqV54TbMOk9bvVyLESboQ8aPnkV86+NdvxonHabDB5BNJr0xk89aZ1 2/kH4SJPxURHrJ6Ttn42G4pWrTGcLcQvO8QOUPt3XhSj1jkptK7qNUCA4ozWTGCC+4i9k6B9u9lR/ wrjSW+cCjW2O6OckEuZSVwMBPliRoGFn2ktzGhSUstJzoxiWZcV3exSETUBpvbkJZmhcYRvsTbI+P jZfSyd/zgYUGBhuraSKHo8RnyD+TssFQ0QjWe7q1Pu3pdyNwKaPQY7+iTl4jsx0FDTay7odSRqPTQ GwuDnUrZw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kkSnG-0007mo-Vg; Wed, 02 Dec 2020 14:07:43 +0000 Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kkSmE-0007IG-EE for linux-arm-kernel@lists.infradead.org; Wed, 02 Dec 2020 14:06:42 +0000 Received: by mail-ej1-x632.google.com with SMTP id x16so4473862ejj.7 for ; Wed, 02 Dec 2020 06:06:38 -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=j2JtlLp4w1Z1giGmdmjx5S9UgA6z7cseKVrEi8bWQG4=; b=OImXmOsA4pg0SUS/a/BG+be5IQ+DHkJQdC404Vt81CIJ9nxaGxv7B6PxS5goj81sjG F1WuhU/Gib+bajvJoA5cavcNou9wHv4HKAgWSEaLdCjniEcyT2WhrQPlAYFXxOBuH0ax OLoQiX7QRCm1l1QQqevgRFePsjBfD29qC7NjzM8p8YuH5sDSaHFA6PbHRvVLrYjOWQkM 0z1Y9zxntwwUlaD7Umc+uv6AtOJY6RLDxPx4IYROLCmxWTtQcYHekg5PFBGUmJeVg2FI rFL91zcWi9rm/ryskzaK4oleo7lhWurD+2F6zAaDVmDlvkis8x8TxDvTe3Db3lQ5pkjN 4DXQ== 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=j2JtlLp4w1Z1giGmdmjx5S9UgA6z7cseKVrEi8bWQG4=; b=RaTilJI7/lp9K95N6igdA43YnvO866mFqE3xKWjhzsrLln8bo2cJjT6CGehxrqtu/S iXycfNLbLv81ez7LGashG2byH6R3BOMa/jnbMxHoM+n5IhawFNXkzE6RHLIvFgplNPo5 1KiXP0+CXhe9HlefYbsETLs2+Wz4hMekibPmq0Y6hCXEqxUEo0NqYpyq3aChCbM/4qN9 3lSNW4oLuV0ATN0NTG9J+oFuW2Qr+lh8ug9AKTIFihYeVtZjtmUN4SCWQ6+UzPwMgw8d 3ZYZZJgLU4B/FcQI+WOC9FsOstFGNLTW21GtxaYX1AvJ6URLYnqbXW7opgujDOeKNkxn HkjA== X-Gm-Message-State: AOAM532moqJzJST972lvV0+wKWk07e9v/nJTiugobh2CxN4aS9B7l75f 5rx+tWgzaABYbttc/W9hI0VpTw== X-Google-Smtp-Source: ABdhPJwdnxMGJt6ac+bc3IyHxOVRZJe6Ppipm16wStzecL3j8bl+7oMKGpohjUM1sV8aaWWWUyTmWw== X-Received: by 2002:a17:906:1151:: with SMTP id i17mr1791190eja.250.1606917997323; Wed, 02 Dec 2020 06:06:37 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id y24sm27171edt.15.2020.12.02.06.06.36 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 02 Dec 2020 06:06:36 -0800 (PST) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu, michal.simek@xilinx.com, git@xilinx.com Subject: [PATCH 11/12] arm64: dts: zynqmp: Add missing iommu IDs Date: Wed, 2 Dec 2020 15:06:10 +0100 Message-Id: X-Mailer: git-send-email 2.29.2 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201202_090638_611458_6187F3D8 X-CRM114-Status: GOOD ( 12.34 ) 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: devicetree@vger.kernel.org, Rajan Vaja , Krzysztof Kozlowski , Rob Herring , Manish Narani , Laurent Pinchart , Kalyani Akula , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add missing iommu IDs to all IPs which have IDs assigned. Signed-off-by: Michal Simek --- arch/arm64/boot/dts/xilinx/zynqmp.dtsi | 52 ++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi index 704696811116..14a2e69cf98b 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi +++ b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi @@ -270,6 +270,8 @@ fpd_dma_chan1: dma@fd500000 { interrupts = <0 124 4>; clock-names = "clk_main", "clk_apb"; xlnx,bus-width = <128>; + #stream-id-cells = <1>; + iommus = <&smmu 0x14e8>; power-domains = <&zynqmp_firmware PD_GDMA>; }; @@ -281,6 +283,8 @@ fpd_dma_chan2: dma@fd510000 { interrupts = <0 125 4>; clock-names = "clk_main", "clk_apb"; xlnx,bus-width = <128>; + #stream-id-cells = <1>; + iommus = <&smmu 0x14e9>; power-domains = <&zynqmp_firmware PD_GDMA>; }; @@ -292,6 +296,8 @@ fpd_dma_chan3: dma@fd520000 { interrupts = <0 126 4>; clock-names = "clk_main", "clk_apb"; xlnx,bus-width = <128>; + #stream-id-cells = <1>; + iommus = <&smmu 0x14ea>; power-domains = <&zynqmp_firmware PD_GDMA>; }; @@ -303,6 +309,8 @@ fpd_dma_chan4: dma@fd530000 { interrupts = <0 127 4>; clock-names = "clk_main", "clk_apb"; xlnx,bus-width = <128>; + #stream-id-cells = <1>; + iommus = <&smmu 0x14eb>; power-domains = <&zynqmp_firmware PD_GDMA>; }; @@ -314,6 +322,8 @@ fpd_dma_chan5: dma@fd540000 { interrupts = <0 128 4>; clock-names = "clk_main", "clk_apb"; xlnx,bus-width = <128>; + #stream-id-cells = <1>; + iommus = <&smmu 0x14ec>; power-domains = <&zynqmp_firmware PD_GDMA>; }; @@ -325,6 +335,8 @@ fpd_dma_chan6: dma@fd550000 { interrupts = <0 129 4>; clock-names = "clk_main", "clk_apb"; xlnx,bus-width = <128>; + #stream-id-cells = <1>; + iommus = <&smmu 0x14ed>; power-domains = <&zynqmp_firmware PD_GDMA>; }; @@ -336,6 +348,8 @@ fpd_dma_chan7: dma@fd560000 { interrupts = <0 130 4>; clock-names = "clk_main", "clk_apb"; xlnx,bus-width = <128>; + #stream-id-cells = <1>; + iommus = <&smmu 0x14ee>; power-domains = <&zynqmp_firmware PD_GDMA>; }; @@ -347,6 +361,8 @@ fpd_dma_chan8: dma@fd570000 { interrupts = <0 131 4>; clock-names = "clk_main", "clk_apb"; xlnx,bus-width = <128>; + #stream-id-cells = <1>; + iommus = <&smmu 0x14ef>; power-domains = <&zynqmp_firmware PD_GDMA>; }; @@ -374,6 +390,8 @@ lpd_dma_chan1: dma@ffa80000 { interrupts = <0 77 4>; clock-names = "clk_main", "clk_apb"; xlnx,bus-width = <64>; + #stream-id-cells = <1>; + iommus = <&smmu 0x868>; power-domains = <&zynqmp_firmware PD_ADMA>; }; @@ -385,6 +403,8 @@ lpd_dma_chan2: dma@ffa90000 { interrupts = <0 78 4>; clock-names = "clk_main", "clk_apb"; xlnx,bus-width = <64>; + #stream-id-cells = <1>; + iommus = <&smmu 0x869>; power-domains = <&zynqmp_firmware PD_ADMA>; }; @@ -396,6 +416,8 @@ lpd_dma_chan3: dma@ffaa0000 { interrupts = <0 79 4>; clock-names = "clk_main", "clk_apb"; xlnx,bus-width = <64>; + #stream-id-cells = <1>; + iommus = <&smmu 0x86a>; power-domains = <&zynqmp_firmware PD_ADMA>; }; @@ -407,6 +429,8 @@ lpd_dma_chan4: dma@ffab0000 { interrupts = <0 80 4>; clock-names = "clk_main", "clk_apb"; xlnx,bus-width = <64>; + #stream-id-cells = <1>; + iommus = <&smmu 0x86b>; power-domains = <&zynqmp_firmware PD_ADMA>; }; @@ -418,6 +442,8 @@ lpd_dma_chan5: dma@ffac0000 { interrupts = <0 81 4>; clock-names = "clk_main", "clk_apb"; xlnx,bus-width = <64>; + #stream-id-cells = <1>; + iommus = <&smmu 0x86c>; power-domains = <&zynqmp_firmware PD_ADMA>; }; @@ -429,6 +455,8 @@ lpd_dma_chan6: dma@ffad0000 { interrupts = <0 82 4>; clock-names = "clk_main", "clk_apb"; xlnx,bus-width = <64>; + #stream-id-cells = <1>; + iommus = <&smmu 0x86d>; power-domains = <&zynqmp_firmware PD_ADMA>; }; @@ -440,6 +468,8 @@ lpd_dma_chan7: dma@ffae0000 { interrupts = <0 83 4>; clock-names = "clk_main", "clk_apb"; xlnx,bus-width = <64>; + #stream-id-cells = <1>; + iommus = <&smmu 0x86e>; power-domains = <&zynqmp_firmware PD_ADMA>; }; @@ -451,6 +481,8 @@ lpd_dma_chan8: dma@ffaf0000 { interrupts = <0 84 4>; clock-names = "clk_main", "clk_apb"; xlnx,bus-width = <64>; + #stream-id-cells = <1>; + iommus = <&smmu 0x86f>; power-domains = <&zynqmp_firmware PD_ADMA>; }; @@ -470,6 +502,8 @@ nand0: nand-controller@ff100000 { interrupts = <0 14 4>; #address-cells = <1>; #size-cells = <0>; + #stream-id-cells = <1>; + iommus = <&smmu 0x872>; power-domains = <&zynqmp_firmware PD_NAND>; }; @@ -482,6 +516,8 @@ gem0: ethernet@ff0b0000 { clock-names = "pclk", "hclk", "tx_clk"; #address-cells = <1>; #size-cells = <0>; + #stream-id-cells = <1>; + iommus = <&smmu 0x874>; power-domains = <&zynqmp_firmware PD_ETH_0>; resets = <&zynqmp_reset ZYNQMP_RESET_GEM0>; reset-names = "gem0_rst"; @@ -496,6 +532,8 @@ gem1: ethernet@ff0c0000 { clock-names = "pclk", "hclk", "tx_clk"; #address-cells = <1>; #size-cells = <0>; + #stream-id-cells = <1>; + iommus = <&smmu 0x875>; power-domains = <&zynqmp_firmware PD_ETH_1>; resets = <&zynqmp_reset ZYNQMP_RESET_GEM1>; reset-names = "gem1_rst"; @@ -510,6 +548,8 @@ gem2: ethernet@ff0d0000 { clock-names = "pclk", "hclk", "tx_clk"; #address-cells = <1>; #size-cells = <0>; + #stream-id-cells = <1>; + iommus = <&smmu 0x876>; power-domains = <&zynqmp_firmware PD_ETH_2>; resets = <&zynqmp_reset ZYNQMP_RESET_GEM2>; reset-names = "gem2_rst"; @@ -524,6 +564,8 @@ gem3: ethernet@ff0e0000 { clock-names = "pclk", "hclk", "tx_clk"; #address-cells = <1>; #size-cells = <0>; + #stream-id-cells = <1>; + iommus = <&smmu 0x877>; power-domains = <&zynqmp_firmware PD_ETH_3>; resets = <&zynqmp_reset ZYNQMP_RESET_GEM3>; reset-names = "gem3_rst"; @@ -618,6 +660,8 @@ qspi: spi@ff0f0000 { <0x0 0xc0000000 0x0 0x8000000>; #address-cells = <1>; #size-cells = <0>; + #stream-id-cells = <1>; + iommus = <&smmu 0x873>; power-domains = <&zynqmp_firmware PD_QSPI>; }; @@ -647,6 +691,9 @@ sata: ahci@fd0c0000 { interrupt-parent = <&gic>; interrupts = <0 133 4>; power-domains = <&zynqmp_firmware PD_SATA>; + #stream-id-cells = <4>; + iommus = <&smmu 0x4c0>, <&smmu 0x4c1>, + <&smmu 0x4c2>, <&smmu 0x4c3>; resets = <&zynqmp_reset ZYNQMP_RESET_SATA>; reset-names = "sata_rst"; }; @@ -658,6 +705,8 @@ sdhci0: mmc@ff160000 { interrupts = <0 48 4>; reg = <0x0 0xff160000 0x0 0x1000>; clock-names = "clk_xin", "clk_ahb"; + #stream-id-cells = <1>; + iommus = <&smmu 0x870>; #clock-cells = <1>; clock-output-names = "clk_out_sd0", "clk_in_sd0"; power-domains = <&zynqmp_firmware PD_SD_0>; @@ -670,6 +719,8 @@ sdhci1: mmc@ff170000 { interrupts = <0 49 4>; reg = <0x0 0xff170000 0x0 0x1000>; clock-names = "clk_xin", "clk_ahb"; + #stream-id-cells = <1>; + iommus = <&smmu 0x871>; #clock-cells = <1>; clock-output-names = "clk_out_sd1", "clk_in_sd1"; power-domains = <&zynqmp_firmware PD_SD_1>; @@ -678,6 +729,7 @@ sdhci1: mmc@ff170000 { smmu: iommu@fd800000 { compatible = "arm,mmu-500"; reg = <0x0 0xfd800000 0x0 0x20000>; + #iommu-cells = <1>; status = "disabled"; #global-interrupts = <1>; interrupt-parent = <&gic>; From patchwork Wed Dec 2 14:06:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 11946205 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=-15.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, UNWANTED_LANGUAGE_BODY,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable 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 3F981C64E7B for ; Wed, 2 Dec 2020 14:10:10 +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 CAA0721D7F for ; Wed, 2 Dec 2020 14:10:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CAA0721D7F 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=9wJUr4nzUfuyQNSNYzTtxR8+UqJVceQpO7LxO7C0ZCk=; b=txMP/NC/0/fEjKyeUgYCAS96K QikruxneO6DTUXfRE6HQJEPdpbLH2lIPSPbjFgxo5+Ik75iIB2yGWrfNMu08U60/4MsVkQgEP+mNt W0U6fpmXGBAJJSuNAxOrzcCUoqeFu8tdGA/GBOjyi2AosYi2WfSTbeJCjsDyG3zhN0tGaQTuiYsHB 95SeP2s8kh0HcebTudvt3A4fKkKp6yQ/0rS0b3oVKZ+SGKI6NofL1IYiOJN4+MK8cxR3L+2UbIVAS 8uxp1QljznvlnV14u4RK4Z2m0GKyg+t+YesNp+8DNja9HR8LLrw8R82/Wwub29Fsx8rkQDQIxYSNN hRFK+Cdsg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kkSnX-0007xT-Qq; Wed, 02 Dec 2020 14:07:59 +0000 Received: from mail-ej1-x641.google.com ([2a00:1450:4864:20::641]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kkSmI-0007Ir-Fo for linux-arm-kernel@lists.infradead.org; Wed, 02 Dec 2020 14:06:45 +0000 Received: by mail-ej1-x641.google.com with SMTP id ga15so4509872ejb.4 for ; Wed, 02 Dec 2020 06:06:40 -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=Ds9qLi+pz1g1OhGvJze7udHxEk/HtgVmujD01NJgnrU=; b=aLfhH9W2jYts06BShnEEn+N7F6fofgIzZjBKfVwxTc4PYP2zRIr4ZnVfsaUbnNj63r k/UPk2MkPGQ0JlMMUu8th/JAm49uonwS/Eu4MU4iT8XHGqKCn35X1N7kMSsxCGGPH9Q6 2GSLyh6H0UkhNvkfg0YvwrbhCi4ZWvhKR0dB5aQwq39dLWJl8xDuDX3hL1O+4WpOAebU 0eFoNAE8IvWMAP1ts4mE4XoOZ6dRSehroS0saWox/CHBqPjiQ+rgPMrEtSigcYBsPBFF VFaFZ0Eg4bMFIAM0XLddB0MPLHOjkryNAn8Nnv8PkNueYuolv3GZBE+HIVRTM0JDIwRk zsGA== 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=Ds9qLi+pz1g1OhGvJze7udHxEk/HtgVmujD01NJgnrU=; b=d+l/yx6Hu8vAtcReqcSJ1gR1FHDQKIMporh5/+ppJYhRS5Z5DPWpaUCyh8l8pVRDFU 48Z+uJEDEZv2xTtcraTaLEtrGbUnyc4hfpx8vw+hniPPmBZ+pz8CntAAkv3zJD3oZA53 LPVcXWbGoKZV9HIDQ2CdX6Azu7oD7pF+Gd/SjydHrxF0KjfDdC9DYAfX/nUgTeP52FBy +DmZyTuwVHpPxS3l5071YK+my97yKIqZvcYI3RcZffE8TOl6ThvcKVt+mW0MhcPBBrzS VsC+a/NrtZ/IMzTYIC9PLt+vvmBtFyUKnwpYcVpmbXVKqGeYg01LGt1+kiUWqZjgvtbt Lt3g== X-Gm-Message-State: AOAM5320/Knn8DIQZkt/ITMl6jgVHtszNccCkGvuKEA8AJnaGKHWAkFG 5cydsvLtrEqZXIOBU/ZWu8eUGA== X-Google-Smtp-Source: ABdhPJxBU/ZdslDgPwAEg/jquaCrf5GGzSjUQCC95mijGM8ohQ87PLq2XzazpKCv/gZ/2O1tnm61sQ== X-Received: by 2002:a17:907:d8b:: with SMTP id go11mr2440282ejc.247.1606917999037; Wed, 02 Dec 2020 06:06:39 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id d14sm22091edn.31.2020.12.02.06.06.38 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 02 Dec 2020 06:06:38 -0800 (PST) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu, michal.simek@xilinx.com, git@xilinx.com Subject: [PATCH 12/12] arm64: dts: zynqmp: Add description for zcu104 revC Date: Wed, 2 Dec 2020 15:06:11 +0100 Message-Id: <5b670099adb67b06ec0a7d1b04ed9f4076e520c1.1606917949.git.michal.simek@xilinx.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201202_090642_624981_08B3D08A X-CRM114-Status: GOOD ( 18.79 ) 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: devicetree@vger.kernel.org, Rob Herring , Anurag Kumar Vulisha , linux-arm-kernel@lists.infradead.org, Rajan Vaja Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Xilinx ZynqMP zcu104 revC and newer board revisions have different i2c structure compare to revA. The rest of the board is the same from software perspective. Also enable DMAs and QSPI. Signed-off-by: Michal Simek --- arch/arm64/boot/dts/xilinx/Makefile | 1 + .../boot/dts/xilinx/zynqmp-zcu104-revC.dts | 282 ++++++++++++++++++ 2 files changed, 283 insertions(+) create mode 100644 arch/arm64/boot/dts/xilinx/zynqmp-zcu104-revC.dts diff --git a/arch/arm64/boot/dts/xilinx/Makefile b/arch/arm64/boot/dts/xilinx/Makefile index 60f5443f3ef4..11fb4fd3ebd4 100644 --- a/arch/arm64/boot/dts/xilinx/Makefile +++ b/arch/arm64/boot/dts/xilinx/Makefile @@ -13,5 +13,6 @@ dtb-$(CONFIG_ARCH_ZYNQMP) += zynqmp-zcu102-revA.dtb dtb-$(CONFIG_ARCH_ZYNQMP) += zynqmp-zcu102-revB.dtb dtb-$(CONFIG_ARCH_ZYNQMP) += zynqmp-zcu102-rev1.0.dtb dtb-$(CONFIG_ARCH_ZYNQMP) += zynqmp-zcu104-revA.dtb +dtb-$(CONFIG_ARCH_ZYNQMP) += zynqmp-zcu104-revC.dtb dtb-$(CONFIG_ARCH_ZYNQMP) += zynqmp-zcu106-revA.dtb dtb-$(CONFIG_ARCH_ZYNQMP) += zynqmp-zcu111-revA.dtb diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-zcu104-revC.dts b/arch/arm64/boot/dts/xilinx/zynqmp-zcu104-revC.dts new file mode 100644 index 000000000000..414f98f1831e --- /dev/null +++ b/arch/arm64/boot/dts/xilinx/zynqmp-zcu104-revC.dts @@ -0,0 +1,282 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * dts file for Xilinx ZynqMP ZCU104 + * + * (C) Copyright 2017 - 2020, Xilinx, Inc. + * + * Michal Simek + */ + +/dts-v1/; + +#include "zynqmp.dtsi" +#include "zynqmp-clk-ccf.dtsi" +#include +#include + +/ { + model = "ZynqMP ZCU104 RevC"; + compatible = "xlnx,zynqmp-zcu104-revC", "xlnx,zynqmp-zcu104", "xlnx,zynqmp"; + + aliases { + ethernet0 = &gem3; + i2c0 = &i2c1; + mmc0 = &sdhci1; + rtc0 = &rtc; + serial0 = &uart0; + serial1 = &uart1; + serial2 = &dcc; + }; + + chosen { + bootargs = "earlycon"; + stdout-path = "serial0:115200n8"; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x0 0x0 0x80000000>; + }; + + ina226 { + compatible = "iio-hwmon"; + io-channels = <&u183 0>, <&u183 1>, <&u183 2>, <&u183 3>; + }; + + clock_8t49n287_5: clk125 { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <125000000>; + }; + + clock_8t49n287_2: clk26 { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <26000000>; + }; + + clock_8t49n287_3: clk27 { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <27000000>; + }; +}; + +&can1 { + status = "okay"; +}; + +&dcc { + status = "okay"; +}; + +&fpd_dma_chan1 { + status = "okay"; +}; + +&fpd_dma_chan2 { + status = "okay"; +}; + +&fpd_dma_chan3 { + status = "okay"; +}; + +&fpd_dma_chan4 { + status = "okay"; +}; + +&fpd_dma_chan5 { + status = "okay"; +}; + +&fpd_dma_chan6 { + status = "okay"; +}; + +&fpd_dma_chan7 { + status = "okay"; +}; + +&fpd_dma_chan8 { + status = "okay"; +}; + +&gem3 { + status = "okay"; + phy-handle = <&phy0>; + phy-mode = "rgmii-id"; + phy0: ethernet-phy@c { + reg = <0xc>; + ti,rx-internal-delay = <0x8>; + ti,tx-internal-delay = <0xa>; + ti,fifo-depth = <0x1>; + ti,dp83867-rxctrl-strap-quirk; + }; +}; + +&gpio { + status = "okay"; +}; + +&i2c1 { + status = "okay"; + clock-frequency = <400000>; + + tca6416_u97: gpio@20 { + compatible = "ti,tca6416"; + reg = <0x20>; + gpio-controller; + #gpio-cells = <2>; + /* + * IRQ not connected + * Lines: + * 0 - IRPS5401_ALERT_B + * 1 - HDMI_8T49N241_INT_ALM + * 2 - MAX6643_OT_B + * 3 - MAX6643_FANFAIL_B + * 5 - IIC_MUX_RESET_B + * 6 - GEM3_EXP_RESET_B + * 7 - FMC_LPC_PRSNT_M2C_B + * 4, 10 - 17 - not connected + */ + }; + + /* Another connection to this bus via PL i2c via PCA9306 - u45 */ + i2c-mux@74 { /* u34 */ + compatible = "nxp,pca9548"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x74>; + i2c@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + /* + * IIC_EEPROM 1kB memory which uses 256B blocks + * where every block has different address. + * 0 - 256B address 0x54 + * 256B - 512B address 0x55 + * 512B - 768B address 0x56 + * 768B - 1024B address 0x57 + */ + eeprom: eeprom@54 { /* u23 */ + compatible = "atmel,24c08"; + reg = <0x54>; + #address-cells = <1>; + #size-cells = <1>; + }; + }; + + i2c@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + clock_8t49n287: clock-generator@6c { /* 8T49N287 - u182 */ + reg = <0x6c>; + }; + }; + + i2c@2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <2>; + irps5401_43: irps5401@43 { /* IRPS5401 - u175 */ + compatible = "infineon,irps5401"; + reg = <0x43>; /* pmbus / i2c 0x13 */ + }; + irps5401_44: irps5401@44 { /* IRPS5401 - u180 */ + compatible = "infineon,irps5401"; + reg = <0x44>; /* pmbus / i2c 0x14 */ + }; + }; + + i2c@3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <3>; + u183: ina226@40 { /* u183 */ + compatible = "ti,ina226"; + #io-channel-cells = <1>; + reg = <0x40>; + shunt-resistor = <5000>; + }; + }; + + i2c@5 { + #address-cells = <1>; + #size-cells = <0>; + reg = <5>; + }; + + i2c@7 { + #address-cells = <1>; + #size-cells = <0>; + reg = <7>; + }; + + /* 4, 6 not connected */ + }; +}; + +&qspi { + status = "okay"; + flash@0 { + compatible = "m25p80", "jedec,spi-nor"; /* n25q512a 128MiB */ + #address-cells = <1>; + #size-cells = <1>; + reg = <0x0>; + }; +}; + +&rtc { + status = "okay"; +}; + +&psgtr { + status = "okay"; + /* nc, sata, usb3, dp */ + clocks = <&clock_8t49n287_5>, <&clock_8t49n287_2>, <&clock_8t49n287_3>; + clock-names = "ref1", "ref2", "ref3"; +}; + +&sata { + status = "okay"; + /* SATA OOB timing settings */ + ceva,p0-cominit-params = /bits/ 8 <0x18 0x40 0x18 0x28>; + ceva,p0-comwake-params = /bits/ 8 <0x06 0x14 0x08 0x0E>; + ceva,p0-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>; + ceva,p0-retry-params = /bits/ 16 <0x96A4 0x3FFC>; + ceva,p1-cominit-params = /bits/ 8 <0x18 0x40 0x18 0x28>; + ceva,p1-comwake-params = /bits/ 8 <0x06 0x14 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 1>; +}; + +/* SD1 with level shifter */ +&sdhci1 { + status = "okay"; + no-1-8-v; + xlnx,mio-bank = <1>; + disable-wp; +}; + +&uart0 { + status = "okay"; +}; + +&uart1 { + status = "okay"; +}; + +/* ULPI SMSC USB3320 */ +&usb0 { + status = "okay"; + dr_mode = "host"; +}; + +&watchdog0 { + status = "okay"; +};