Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp2877520ybj; Mon, 23 Sep 2019 10:54:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqzTC1VFA4ffRirdrQAHhTzBQVY77C/h1b5fPglJqPzwLq+O6ob9iqCpdimlkh8nZv1qedv0 X-Received: by 2002:a50:ac0a:: with SMTP id v10mr1381599edc.83.1569261268229; Mon, 23 Sep 2019 10:54:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569261268; cv=none; d=google.com; s=arc-20160816; b=zYDrSWH5IXz3LrxODjQ9N3fwX4h5WKodHvnAvtjQQNZ+lcq7jk//7s24pbVH/2CnWj gr35lUd0e1+D/g1hE3MROfJ8Vv4QrfkbTgaGhpqWSLr07sKu1gvkB2+fEwgM933UndAL /q0EVHGXqZ4JreTEvwPyvZTcFAzc0Ok/uqeKxyRv9nzE49u9hqTv+Jy6Q6LQ7VuQHoEa jxxFEXxGv8Id1mm4sHL82A7SgZii280geig/B5K1QdYYTGzPAmfaRgMLLz8R0Q4QYmAT +bQJBOFRf51LOIZmkcI/TIiNXQNia4fvrKbzkcrPmkOKh9Vzpr37VOAE27Hx+3xCADb/ z0GQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=5OzBxZ0+t9wPFf+C2nN8hPMeCG+6RrzJB994YNsSPow=; b=O2+H0aZql+9PpDwspsv3/EHwQRZ+bh2F8xN1FxjTySx70le6vZBrK0IfQ+eRNPxsJ8 YpvISDc7gYGipCY7e7pdq3GFghaobezB1pYguYGQGPxpDaHBb2TNHaRDdDX4Q98v1QbS nj0BV7UVXH4qU8H/Bb3yeJ6HQ20SzsUVh4dytN0rlvkeTCJUV2kyCofrbFrkAQO3+0t1 E8+z7TcYfwXHg40xzXuc6O3hcoCsWidEhytNITE+UfAvqVgM483voD2LE4AZymrGPsNS 28/f+QEVs+XMxP2yPm78o5jtc2A1q0QlWab1TsSN5nOozOufFCNMJY/Czcg5jmDjFZlf owgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=JoExe4w0; 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 p15si5375365ejx.56.2019.09.23.10.54.04; Mon, 23 Sep 2019 10:54:28 -0700 (PDT) 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=JoExe4w0; 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 S2394279AbfIUPSt (ORCPT + 99 others); Sat, 21 Sep 2019 11:18:49 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:40395 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389472AbfIUPSt (ORCPT ); Sat, 21 Sep 2019 11:18:49 -0400 Received: by mail-wr1-f68.google.com with SMTP id l3so9591623wru.7; Sat, 21 Sep 2019 08:18:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=5OzBxZ0+t9wPFf+C2nN8hPMeCG+6RrzJB994YNsSPow=; b=JoExe4w00+RQX07OVlrkNWAZ+jqPrWWMn48DHOqgsVcWwFyn0HG3+LxNK4j4btrwPb RwcxKjLaRQyOsW5QhswDb6Bua+1o4gIWqvofch6Tp+fsdMQF4kjKlZXeBj3u8YOcmcZQ k0YRb5NKvPR8ybhIJHwFv12zoFj8fy2YhJ0FhE+9MtZtlx+cyIGitCSJmCoq78jpIad/ hCfaP2kjMobcXwN0ahzom+Lj95/Qi9JhGblOIpeDpOEhCkMEQl96Pv2AhXIONST7t+J9 nlpvKVRjN+CHd6JY+Kaba4pnncYqmYASPyfMAnR5Uk11K73r4mKWqeqD2otLsbzGsq9B i73w== 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:mime-version :content-transfer-encoding; bh=5OzBxZ0+t9wPFf+C2nN8hPMeCG+6RrzJB994YNsSPow=; b=WFfckQNlKKgjfKwEmL9QXzL6rVwo38YAZDgw3s5MzQQaraie8U90m9kCnRbMvxzrhd jYAjjCLNLsRhx5NV5IfUrOlACRIwcRaCGa3aLGcCb0L8b2FeCAgcUu5K/CnH9ZYYXm3Y sf3jHYelDTVNc/rXg693hNzUSXwX/eofgeb8CdGarK+f9PF41Jp3opMGccewT/X1k7MR JxYU+CT8DhdzwQyjiOMJEsxxJRbEKBQTKqmbRf3fbzGSf7T0IrNPXGDSU9GC0bQ1Zxns lVy0AQnhzI+jnS6J3OuJ+wu7ZQgBKHOqehrls+P+RvaXPak88DRryfty0EBfxl2sf4Ya RvLg== X-Gm-Message-State: APjAAAWvwsadKUfWpylpM2r9c7ORaBdOy4ERSEBtE45B4qJYHNWv+Tw9 Y4Nb+DkY9PZ5CANIDKzWRGc= X-Received: by 2002:a5d:4fcf:: with SMTP id h15mr15997165wrw.237.1569079127155; Sat, 21 Sep 2019 08:18:47 -0700 (PDT) Received: from blackbox.darklights.net (p200300F133CE0B0028BAA8C744A6F562.dip0.t-ipconnect.de. [2003:f1:33ce:b00:28ba:a8c7:44a6:f562]) by smtp.googlemail.com with ESMTPSA id c6sm6003120wrb.60.2019.09.21.08.18.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Sep 2019 08:18:46 -0700 (PDT) From: Martin Blumenstingl To: narmstrong@baylibre.com, jbrunet@baylibre.com, robh+dt@kernel.org, mark.rutland@arm.com, linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, khilman@baylibre.com Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, Martin Blumenstingl Subject: [PATCH 0/6] add the DDR clock controller on Meson8 and Meson8b Date: Sat, 21 Sep 2019 17:18:29 +0200 Message-Id: <20190921151835.770263-1-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.23.0 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 Meson8 and Meson8b SoCs embed a DDR clock controller in their MMCBUS registers. This series: - adds support for this DDR clock controller (patches 0 and 1) - wires up the DDR PLL as input for two audio clocks (patches 2 and 3) - adds the DDR clock controller to meson8.dtsi and meson8b.dtsi Special thanks go out to Alexandre Mergnat for switching the Amlogic clock drivers over to parent_hws and parent_data. That made this series a lot easier for me! This series depends on my other series from [0]: "provide the XTAL clock via OF on Meson8/8b/8m2" [0] https://patchwork.kernel.org/cover/11155515/ Martin Blumenstingl (6): dt-bindings: clock: add the Amlogic Meson8 DDR clock controller binding clk: meson: add a driver for the Meson8/8b/8m2 DDR clock controller clk: meson: meson8b: use of_clk_hw_register to register the clocks clk: meson: meson8b: add the ddr_pll input for the audio clocks ARM: dts: meson8: add the DDR clock controller ARM: dts: meson8b: add the DDR clock controller .../clock/amlogic,meson8-ddr-clkc.yaml | 50 ++++++ arch/arm/boot/dts/meson8.dtsi | 13 +- arch/arm/boot/dts/meson8b.dtsi | 13 +- drivers/clk/meson/Makefile | 2 +- drivers/clk/meson/meson8-ddr.c | 153 ++++++++++++++++++ drivers/clk/meson/meson8b.c | 36 ++--- include/dt-bindings/clock/meson8-ddr-clkc.h | 4 + 7 files changed, 245 insertions(+), 26 deletions(-) create mode 100644 Documentation/devicetree/bindings/clock/amlogic,meson8-ddr-clkc.yaml create mode 100644 drivers/clk/meson/meson8-ddr.c create mode 100644 include/dt-bindings/clock/meson8-ddr-clkc.h -- 2.23.0