From patchwork Mon May 8 20:11:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 98848 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp1498640qge; Mon, 8 May 2017 13:12:10 -0700 (PDT) X-Received: by 10.84.138.193 with SMTP id 59mr87099246plp.184.1494274330392; Mon, 08 May 2017 13:12:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1494274330; cv=none; d=google.com; s=arc-20160816; b=kvIQUy2INgoVdapcrsdDKr4iS5fR3jY4tR9t9DJlZPf0dbr1vQzWZt2ZiwDyZ0D1xS 74Y1NIZ7JbR163eeCcoVfMJRIwDFZmfk70jZq56QK3ZZJ0/BFDsbakhMM3T96/p5jrFa A9hsWdEGffmHu8rFEKH+h4eRJXYoQ40nTdIkaXiJLeuYiiKNvVj6O5JJLenC9Y1LBK/Y QoGJMT1gVukhdWScctLyJXPJm5soK0RyTniQrifwUDYxfWtkaCBI80TCtH459MjV62AJ kPxSfco+l9ShXaY6+qfSGwUHyYm7wdScdMsYfSGTChXDUhSrq5ELgVrQFdJiqUV+wiFH Bg8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=uvGQDwjXH/MDgqYo0aBkG2qBz7pQdEKZ6tUZZZxVT9A=; b=TYRndxltpFK9D8qILSr4PiIcYhYsz9Y0z+VghrzrjONWuzx4Xij84VS2twZCwUnN14 n5Y/+leDSjTIAVayr0QnW97z1QddpA1K26516QtM0RN1hCsKQaJZ0tReHZKiS3W3CaHg 8NcPEKChlaniQbCFiGbBKjOY60j+to1LabPhZHZMIle129vdmUgbZauzDM9nzc6Q3pV1 2zri3WEbnht3OMCbXcS9zro2j8jm56ln2dVcNAqsW0+BnJIMJIhM/PBSuCiQXox49ytf 6Y5Bkkm9MtGIa3EvR3/BtFo0FsesHSLD/caH4eit33QC/BX0eTB+xda0fWr088rwexu1 ubYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a203si709089pfa.17.2017.05.08.13.12.10; Mon, 08 May 2017 13:12:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756749AbdEHUMJ (ORCPT + 7 others); Mon, 8 May 2017 16:12:09 -0400 Received: from mail-wm0-f54.google.com ([74.125.82.54]:37529 "EHLO mail-wm0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756729AbdEHUMI (ORCPT ); Mon, 8 May 2017 16:12:08 -0400 Received: by mail-wm0-f54.google.com with SMTP id m123so77366895wma.0 for ; Mon, 08 May 2017 13:12:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=OQvNxhfmAKI+8FIfm87ESv10HLjfj5sy08ZQ+0wnNVc=; b=eGNOs/Zq2aw+VWbJRXm7RWfww2K7JmJvz3WnZyvvKYc0sVn/ruhi4blgXlopY86Xx5 0WrbAHHSqhBr1kaPZF6so62HhYYo8NbxeUISwOt2P2428gCtCD/F35xZdyXye2Eiswbd dcbl4ES3lYeykDtVNk2F0Z+7qG0G+ZA+N5j1k= 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; bh=OQvNxhfmAKI+8FIfm87ESv10HLjfj5sy08ZQ+0wnNVc=; b=qhdag4pIygLsPwHR30eTAhVDvGhBYC2zkXjAGqsp6fsA7t4RMvDBdToe3IG6/6ihPb qEYyXihPlmmLKBje+435dmMyriYiCNu71aIAkwAu9ATYq6uXi/1AkANxdPasCEvYjMOR C7hRKAl21KyOkKLPQgt4+vgixsAr6N5Rg+gZnb2OiR+Xtq2sh5kXIOfUBC5ZgwfGuwrD 76b/zEi4BsxwSzoRyA9rdQHMfJoPfskn6yEeNZv3JcrY3C5fbMerHqhTrvRsrw6lqzYM Gm5HJI76Ak1J27gyhohWyY3l9wHtSCp9eC653/Pwmtp4bRA+tyXYGn7r5HFw24H3zFZN RpXQ== X-Gm-Message-State: AN3rC/7f4G17iQ6JmY/PRlW/0WfV0ChQGzO5P1D7hyvRgRUFlot30vdj JGNYwkosnJsuUpmR X-Received: by 10.25.67.81 with SMTP id m17mr24314401lfj.33.1494274326990; Mon, 08 May 2017 13:12:06 -0700 (PDT) Received: from fabina.bredbandsbolaget.se (c-8f0ae055.014-348-6c756e10.cust.bredbandsbolaget.se. [85.224.10.143]) by smtp.gmail.com with ESMTPSA id f128sm2867240lfg.55.2017.05.08.13.12.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 May 2017 13:12:05 -0700 (PDT) From: Linus Walleij To: Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, Rob Herring Cc: Janos Laube , Paulius Zaleckas , openwrt-devel@openwrt.org, linux-arm-kernel@lists.infradead.org, Hans Ulli Kroll , Florian Fainelli , Linus Walleij Subject: [PATCH 1/2 v2] clk: Add bindings for the Gemini Clock Controller Date: Mon, 8 May 2017 22:11:59 +0200 Message-Id: <20170508201159.31634-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.9.3 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This adds device tree bindings and a header for the Gemini SoC Clock Controller. Signed-off-by: Linus Walleij --- ChangeLog v1->v2: - Move the clock controller to be directly in the parent syscon node. --- .../clock/cortina,gemini-clock-controller.txt | 22 ++++++++++++++++ include/dt-bindings/clock/cortina,gemini-clock.h | 29 ++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/cortina,gemini-clock-controller.txt create mode 100644 include/dt-bindings/clock/cortina,gemini-clock.h -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/devicetree/bindings/clock/cortina,gemini-clock-controller.txt b/Documentation/devicetree/bindings/clock/cortina,gemini-clock-controller.txt new file mode 100644 index 000000000000..ae0046bccba0 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/cortina,gemini-clock-controller.txt @@ -0,0 +1,22 @@ +Clock bindings for the Cortina Systems Gemini SoC Clock Controller + +Required properties : +- compatible : shall contain the following: + "cortina,gemini-clock-controller" +- #clock-cells should be <1> + +The Gemini clock controller needs to be identical to the system controller +node. + +All available clocks are defined as preprocessor macros in +dt-bindings/clock/cortina,gemini-clock.h header and can be used in device +tree sources. + +Example: + +syscon: syscon@40000000 { + compatible = "cortina,gemini-syscon", "cortina,gemini-clock-controller", + "syscon", "simple-mfd"; + reg = <0x40000000 0x1000>; + #clock-cells = <1>; +}; diff --git a/include/dt-bindings/clock/cortina,gemini-clock.h b/include/dt-bindings/clock/cortina,gemini-clock.h new file mode 100644 index 000000000000..acf5cd550b0c --- /dev/null +++ b/include/dt-bindings/clock/cortina,gemini-clock.h @@ -0,0 +1,29 @@ +#ifndef DT_BINDINGS_CORTINA_GEMINI_CLOCK_H +#define DT_BINDINGS_CORTINA_GEMINI_CLOCK_H + +/* RTC, AHB, APB, CPU, PCI, TVC, UART clocks and 13 gates */ +#define GEMINI_NUM_CLKS 20 + +#define GEMINI_CLK_RTC 0 +#define GEMINI_CLK_AHB 1 +#define GEMINI_CLK_APB 2 +#define GEMINI_CLK_CPU 3 +#define GEMINI_CLK_PCI 4 +#define GEMINI_CLK_TVC 5 +#define GEMINI_CLK_UART 6 +#define GEMINI_CLK_GATES 7 +#define GEMINI_CLK_GATE_SECURITY 7 +#define GEMINI_CLK_GATE_GMAC0 8 +#define GEMINI_CLK_GATE_GMAC1 9 +#define GEMINI_CLK_GATE_SATA0 10 +#define GEMINI_CLK_GATE_SATA1 11 +#define GEMINI_CLK_GATE_USB0 12 +#define GEMINI_CLK_GATE_USB1 13 +#define GEMINI_CLK_GATE_IDE 14 +#define GEMINI_CLK_GATE_PCI 15 +#define GEMINI_CLK_GATE_DDR 16 +#define GEMINI_CLK_GATE_FLASH 17 +#define GEMINI_CLK_GATE_TVC 18 +#define GEMINI_CLK_GATE_BOOT 19 + +#endif /* DT_BINDINGS_CORTINA_GEMINI_CLOCK_H */