Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3225949ybl; Sun, 8 Dec 2019 10:06:46 -0800 (PST) X-Google-Smtp-Source: APXvYqyMWjcMe8WKKUvPUKbnVT1BhR1JTUkau5ryPhrmMHSvc9RgWmZRYV/TTb4Vay2amYPOFpro X-Received: by 2002:a05:6830:1d4c:: with SMTP id p12mr10547233oth.198.1575828406168; Sun, 08 Dec 2019 10:06:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575828406; cv=none; d=google.com; s=arc-20160816; b=rkMOmHUovERPSRSqnjpeb+QknPqVKD+qtnI4/V/nRVshP/nzJSrsKv6MeS5t2i+ALy 1a+O2vwMfeiA7vKVe1F+GNxMYXHc+e3B+ioOigP3hylIi8GzDweTneTBQXp2L2qY+boO xHy/NXW438MzH84bx7td0Lnq26c5lqyrkTP8PYy13Ziy/wykgJ/JdcGJVgh+I5zBoTnf ZMCxwnqswvImhB3djOOeJXHVUiB0QVyB1JnWaaLLohjIGdqp4n5r1QmYZ/UNNkADZYR7 3sTMpbsd0D4jfCnYvP2bmNWGIMsenlTxf6qrZZh1E445SYx/nZjl0k0NCHsgj/yZNq4o ZcBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=t0XKcjck8Slbhi+L1r11b0VN49r+cr19/9Vv0kqVx+o=; b=VXYB9ObK5i8qgj3zOPxSc5yj2hfjrL7xSAPg7Z1J9UM9QrF9ncOxErv+ENazIHroK+ TCR4D2hS9Ol6qvp3vAT4dM8R0c0XGN5W6BcXXF7NJnNGlseYix8MMnsgcOX2phScWZlu VhrFMr+qzTssBV4G6xjp+LeCldaEG0Fkf8YRz3mT3iubKxD9x7nA4vhVLzMlBKQQM68r Te+8cy++HrzeGhbPCiUzX2JytMvaE2D+jeQEO44nv7rqWUbxg+x5Yz5z0yX9g8Gur9JI dFNj24Cvlv66VAR8VuW4SB8BJuUwNl4CsImhIUp5AGCaTGvaFvVth6G0VJ6w2cKHPJtn fRaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=HtyNtbPN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u9si10075312otg.90.2019.12.08.10.06.35; Sun, 08 Dec 2019 10:06:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=HtyNtbPN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726691AbfLHSFu (ORCPT + 99 others); Sun, 8 Dec 2019 13:05:50 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:34269 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726220AbfLHSFq (ORCPT ); Sun, 8 Dec 2019 13:05:46 -0500 Received: by mail-wr1-f66.google.com with SMTP id t2so13507928wrr.1 for ; Sun, 08 Dec 2019 10:05:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=t0XKcjck8Slbhi+L1r11b0VN49r+cr19/9Vv0kqVx+o=; b=HtyNtbPN7Ttbygqr0BrZZ9yArlU2yvhY7/YuojoZyM2ftyokwrnpg3pFtsTCDqoWU5 xP9B0pVsToNNHY9+yVx8D6NM1XyyE0/WlJA4aWYTxZ0i477Y4jgFUGxi/8m17nGQ5djt gvhvPyCIas3P82Q/L4u9N4dxcxNU4lRxXz3mPlDLLkQnUQwmkp2obGIC1rrfFbS8aKu1 P3Nz50kKbKiHuJlvX9BKTCJDH2yYK2JSN2tjLSXNs6He4vXsKoz8IldyuDHTAGZ0cqr5 V9HK+0oHAL7keu0LNd7y1HnXw/Bnxd2bwYwrSvw7JqfM5jrqjjqLCPNnileR+IQ/tsQF aOOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=t0XKcjck8Slbhi+L1r11b0VN49r+cr19/9Vv0kqVx+o=; b=eNDGWsd4jex3QPJDMgpnamPLM/PphHebtZA2IzIAF6nOCo2BttyFoMpUjuUovwTgWO kDEfMEhKztjhZQiJajR2YHXtB7kdJq6i1Yliyyd1KViiPW8ndjFnftF7AUat9qRWyzwE cceuhydlpqzK7dcXbzFkvuLD6Xa7Wnt2Du9CY/K4S5qqa6Fmvl/UQE8XQssUzsdMJJep hX7UhPd5mPbys2HO1l1wxNnYdiAtQTONmol0HfsQDWQla7eriJFi9wqQEEQyTNQhsEDK MJWKCunX++F9aUC6fR/HnpIMYLNfzVSk8V5GMndxnIgr6V4Uwp1xUpIef3TNpub490zK APsg== X-Gm-Message-State: APjAAAVfYY+fHQCNlCnqY+bNq/HY2scnp3E5cVWo/wOriSG7yGNDiQjq vFssQnP58fdp5lWhOc5/XMnWV+Ay X-Received: by 2002:a5d:52c4:: with SMTP id r4mr9143995wrv.368.1575828344729; Sun, 08 Dec 2019 10:05:44 -0800 (PST) Received: from localhost.localdomain (p200300F1371AD700428D5CFFFEB99DB8.dip0.t-ipconnect.de. [2003:f1:371a:d700:428d:5cff:feb9:9db8]) by smtp.googlemail.com with ESMTPSA id a64sm11797687wmc.18.2019.12.08.10.05.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Dec 2019 10:05:44 -0800 (PST) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, khilman@baylibre.com, jbrunet@baylibre.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Martin Blumenstingl Subject: [PATCH 3/3] ARM: dts: meson8b: add the DDR clock controller Date: Sun, 8 Dec 2019 19:05:25 +0100 Message-Id: <20191208180525.1076152-4-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191208180525.1076152-1-martin.blumenstingl@googlemail.com> References: <20191208180525.1076152-1-martin.blumenstingl@googlemail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the DDR clock controller and pass it's DDR_CLKID_DDR_PLL to the main (HHI) clock controller as "ddr_clk". The "ddr_clk" is used as one of the inputs for the audio clock muxes. Signed-off-by: Martin Blumenstingl --- arch/arm/boot/dts/meson8b.dtsi | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/meson8b.dtsi b/arch/arm/boot/dts/meson8b.dtsi index 1934666ff60f..8ac8bdfaf58f 100644 --- a/arch/arm/boot/dts/meson8b.dtsi +++ b/arch/arm/boot/dts/meson8b.dtsi @@ -4,6 +4,7 @@ * Author: Carlo Caione */ +#include #include #include #include @@ -172,6 +173,14 @@ mmcbus: bus@c8000000 { #size-cells = <1>; ranges = <0x0 0xc8000000 0x8000>; + ddr_clkc: clock-controller@400 { + compatible = "amlogic,meson8b-ddr-clkc"; + reg = <0x400 0x20>; + clocks = <&xtal>; + clock-names = "xtal"; + #clock-cells = <1>; + }; + dmcbus: bus@6000 { compatible = "simple-bus"; reg = <0x6000 0x400>; @@ -434,8 +443,8 @@ &gpio_intc { &hhi { clkc: clock-controller { compatible = "amlogic,meson8-clkc"; - clocks = <&xtal>; - clock-names = "xtal"; + clocks = <&xtal>, <&ddr_clkc DDR_CLKID_DDR_PLL>; + clock-names = "xtal", "ddr_pll"; #clock-cells = <1>; #reset-cells = <1>; }; -- 2.24.0