Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1608359imj; Fri, 8 Feb 2019 04:27:49 -0800 (PST) X-Google-Smtp-Source: AHgI3IbA6QNYjjjzN7A9BmP1vMz9Nlb+ys61Fj0Xf5wOxp1CoVFSN41lu4JnFaqmbZ0hY4lsFvBi X-Received: by 2002:a63:e21:: with SMTP id d33mr6295026pgl.272.1549628869362; Fri, 08 Feb 2019 04:27:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549628869; cv=none; d=google.com; s=arc-20160816; b=MNxFL8TusIhePU1AD4VKGD2wxvWXixEkF/1Ni7j1t6WyciMc1iSM+nHui4U9OBc8MU R/NE6h+blJhcDHf471mTVUqUgJUyDO18JKQGPUZ7peJ41JYE+NszPXEaHBxRqG2wmd29 4Ucdix4+DrcGZhs/E0CQQHE3XgbEawnqWX69wE/nITQiHCnDRHGdQzxzWH1qcK+fDB/c 5O2EwXU1gduU/joIwN/Bu9uFHocnUGUyb4+lsBx1ObJqsVw+4cG8Kzjqa+Nzxw9Rbnb6 J5XUu2Go+aTUepbiLJKbMXUVErXCBUYP/tusvJPA4X3W57MALQmA4KZTD7VE87noUY0H wFzQ== 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; bh=Yj4kEwJIUquUDD8RV//075Xtny1YuWNOlvpbn/CR698=; b=q0hB/Hy1Qm1cbZQ0sdt7Vvw7T+pRdByMp942Qf6TVsaZga2BKXq8Kzoc1hOAZahjLo 8M/eIuhbXKwzEg2izsvrHDGgALXsBvZmKxNdJ22OB6KftPZGIiUlyTmnUXsv4MhBWuts 9BI5fQ6rHZ8IrIt9sscwauSGrRyqfxsaYxB8t0rW7O+/nEMTwxcUvXHAB+NNnKZPdTZl EBhMWTgBX3qZBbuxbt2ZowfPW/AP9O/2XIdpOOF7YlllJr+7ptrdENAVxFvGHgdzOdn/ RYLzPBqcaNq8aVyLSYQ7RRX3DHRREmGjSgysRit38IjeoqDmqYbVTvj5v4s0v6nFUNeD TEYg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w6si2026941pfb.191.2019.02.08.04.27.33; Fri, 08 Feb 2019 04:27:49 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727671AbfBHM0V (ORCPT + 99 others); Fri, 8 Feb 2019 07:26:21 -0500 Received: from mx.socionext.com ([202.248.49.38]:27777 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726565AbfBHM0U (ORCPT ); Fri, 8 Feb 2019 07:26:20 -0500 Received: from unknown (HELO iyokan-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 08 Feb 2019 21:26:18 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by iyokan-ex.css.socionext.com (Postfix) with ESMTP id D2CCD60062; Fri, 8 Feb 2019 21:26:18 +0900 (JST) Received: from 172.31.9.53 (172.31.9.53) by m-FILTER with ESMTP; Fri, 8 Feb 2019 21:26:18 +0900 Received: from yuzu.css.socionext.com (yuzu [172.31.8.45]) by iyokan.css.socionext.com (Postfix) with ESMTP id AA4EA4036D; Fri, 8 Feb 2019 21:26:18 +0900 (JST) Received: from M20VSDK.e01.socionext.com (unknown [10.213.118.34]) by yuzu.css.socionext.com (Postfix) with ESMTP id 874BD1202F1; Fri, 8 Feb 2019 21:26:18 +0900 (JST) From: Sugaya Taichi To: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Michael Turquette , Stephen Boyd , Rob Herring , Mark Rutland , Takao Orito , Kazuhiro Kasai , Shinji Kanematsu , Jassi Brar , Masami Hiramatsu , Sugaya Taichi Subject: [PATCH v2 07/15] ndings: clock: milbeaut: add Milbeaut clock description Date: Fri, 8 Feb 2019 21:27:03 +0900 Message-Id: <1549628823-31388-1-git-send-email-sugaya.taichi@socionext.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add DT bindings document for Milbeaut clock. Signed-off-by: Sugaya Taichi --- .../devicetree/bindings/clock/milbeaut-clock.txt | 49 ++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/milbeaut-clock.txt diff --git a/Documentation/devicetree/bindings/clock/milbeaut-clock.txt b/Documentation/devicetree/bindings/clock/milbeaut-clock.txt new file mode 100644 index 0000000..bcfc5df --- /dev/null +++ b/Documentation/devicetree/bindings/clock/milbeaut-clock.txt @@ -0,0 +1,49 @@ +Milbeaut SoCs Clock Controller Binding +---------------------------------------- +Milbeaut SoCs Clock controller is an integrated clock controller, which +generates and supplies to all modules. + +This binding uses common clock bindings +[1] Documentation/devicetree/bindings/clock/clock-bindings.txt + +Required properties: +- compatible: should be one of the following: + "socionext,milbeaut-m10v-ccu" - for M10V SoC +- reg: shall contain base address and length of clock registers +- #clock-cells: shall be 1 +- clocks: shall be an external clock + +Example: Clock controller node: + + clk: m10v-clk-ctrl@1d021000 { + compatible = "socionext,milbeaut-m10v-clk-ccu"; + reg = <0x1d021000 0x4000>; + #clock-cells = <1> + clocks = <&clki40mhz> + }; + +Example: Required an external clock for Clock controller node: + + clocks { + clki40mhz: clki40mhz { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <40000000>; + }; + + /* other clocks */ + }; + +The clock consumer shall specify the desired clock-output of the clock +controller as below by specifying output-id in its "clk" phandle cell. +2: uart +4: 32-bit timer + +Example: uart1 node: + uart1: serial@1e700010 { + compatible = "socionext,milbeaut-usio-uart"; + reg = <0x1e700010 0x10>; + interrupts = <0 141 0x4>, <0 149 0x4>; + interrupt-names = "rx", "tx"; + clocks = <&clk 2>; + }; -- 1.9.1