Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3225744ybl; Sun, 8 Dec 2019 10:06:29 -0800 (PST) X-Google-Smtp-Source: APXvYqyt/6DEy2CxXjw7Wte22VRkruqoczYmKmSm/kB/R99n+Lo154JZeRpyYMdWdhZGRPPn6QTB X-Received: by 2002:a9d:7ccc:: with SMTP id r12mr19500125otn.22.1575828389525; Sun, 08 Dec 2019 10:06:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575828389; cv=none; d=google.com; s=arc-20160816; b=mqM70gkJEiO/IWvI4ajIkXzrFplnbtLTaGn4/BAthIwl9/9lI23QWM0AFd2qQZ2spb 0G1rmV/CCx8NMNcRXlCaBLCB6puoPaZvjZg4saZddNQM8lxo2GZ+C+9uI9f1TvZPprxr +2+LPwsOoxTu34bsPYTHdNDs0HV99KcsBrO0uCrJnPDm8tVNgFd2/Z0Odh+biSFyyc9m mTZnDRdUlemcPiVVOE6EkObXjrAZhIkGTtS3rRp7ydhj/FON2LVSYa5pMiWkpTKOTL84 vowG5DdXjuiIRLxEPkRH9R2YiFS4atEAfWSbHXiKlIMjyp2j67WUfMDazZsW1+nI6SoQ ahBA== 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=UuP9LhRtgkK8koesUiLux4flnpKR/nS/46pWP1bbRQo=; b=A47jsZ3oAbtzPhYra6X6mikmWGPhQl0fKI2PNlY31HzusVLlgKshgvSMoUm7L+G8nV AV5cH0TDt99Yc/puJmw8Egrt966bLcxqykbRtdUiV+1eQjYC56vJIYzz4Agg6DAsmNcb OVdRrA4Z7A6fykKeLKvNHTLsW25GcXRJH+eLErHQ27Q+kgHGDsLOnzXRVct6Pbgvuc9g lRFXJVpUo2qpT9b9FywfPMdArqxU4l9VEW1ZsyzJ++JmWZBN7PdgqsMrBUO6sF66WPaK LiKAS1W/zxApPZuW0qYmXPD2zAo0UYZjnguMRYvQqUh7gB5FhbP+qK3zdzrvJtOf9i8/ HZMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=DjcQP7b2; 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 n84si6637833oib.157.2019.12.08.10.06.18; Sun, 08 Dec 2019 10:06:29 -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=DjcQP7b2; 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 S1726674AbfLHSFq (ORCPT + 99 others); Sun, 8 Dec 2019 13:05:46 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:39380 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726626AbfLHSFq (ORCPT ); Sun, 8 Dec 2019 13:05:46 -0500 Received: by mail-wr1-f68.google.com with SMTP id y11so13451373wrt.6 for ; Sun, 08 Dec 2019 10:05:44 -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=UuP9LhRtgkK8koesUiLux4flnpKR/nS/46pWP1bbRQo=; b=DjcQP7b2GrL9Y8doqAnmZen1LtRo/zLBC1HSPEYSk45emHJ+l/CcOF1N1rZ0x69LE5 5pUjYqbdjixV6s7xBJFTymPx/cpB7o8w2ZOK/Xqhq+Xis2+H+x6f8gboyA1cGUWizrdg OfO+6IxkHRsV7ut1LzxU67zJhph+4MZDY4tJHjiClgNH+AFuU5LsH1Gqs3W7RvQO5+r7 LpkfjwfqnkxffPgmzDG4oRgf4/5mFsHvohvSj5eXsMbzM5eDCVhzMCvUD4ZAapaUEqW/ 8UAfaLVY/lvEwQ9xx19uBmvslYY2oZ1GgLiTeh6nI5TMaNwAp8h0G6y4lHFgub8LlG4e l3Dg== 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=UuP9LhRtgkK8koesUiLux4flnpKR/nS/46pWP1bbRQo=; b=TZWnb7Da4goQRQTV04xVI9q7nZG+SUjOvI0OIgRAwQF6qR3DH9eRJV4eCWXbFUp4td S/SK5f3K+QxgzwzMuRlzvBvM8sjOkEwPlpkum97duXfj21brE2M3utsgybwjgh0PV9oa NdrtiSwA9ypZ6IQpAxxfaFcIfMMAblol4QAMOyanOXC3i6auZ3zielbon0mgKMDBH107 VfIUZpcj2UzJ8hb8VV00D8aSVmuuM6Q1cBlV4/TEi5C1LLQ4aUKMBiVXOHrPqJzLM+mB ABrGR1O5pmAW+vSjDBUO4FScPUO+TPA66ye9/rJBsffZn3RIDyJjg8voG1I3lOrFjeIn ltJQ== X-Gm-Message-State: APjAAAVFzGhFyjQI7P5ArNrZZib26tdvnlvzp3vdXTl5pFDmvkA/p4gd 2AirDzLSybIMYYJ+DWogmyU= X-Received: by 2002:adf:b605:: with SMTP id f5mr25821137wre.383.1575828343648; Sun, 08 Dec 2019 10:05:43 -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.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Dec 2019 10:05:43 -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 2/3] ARM: dts: meson8: add the DDR clock controller Date: Sun, 8 Dec 2019 19:05:24 +0100 Message-Id: <20191208180525.1076152-3-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/meson8.dtsi | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/meson8.dtsi b/arch/arm/boot/dts/meson8.dtsi index add6d7991fdf..b35d7444c1f4 100644 --- a/arch/arm/boot/dts/meson8.dtsi +++ b/arch/arm/boot/dts/meson8.dtsi @@ -3,6 +3,7 @@ * Copyright 2014 Carlo Caione */ +#include #include #include #include @@ -195,6 +196,14 @@ mmcbus: bus@c8000000 { #size-cells = <1>; ranges = <0x0 0xc8000000 0x8000>; + ddr_clkc: clock-controller@400 { + compatible = "amlogic,meson8-ddr-clkc"; + reg = <0x400 0x20>; + clocks = <&xtal>; + clock-names = "xtal"; + #clock-cells = <1>; + }; + dmcbus: bus@6000 { compatible = "simple-bus"; reg = <0x6000 0x400>; @@ -455,8 +464,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