From patchwork Wed Jan 11 16:16:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 9510577 X-Patchwork-Delegate: sboyd@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 38ACD60762 for ; Wed, 11 Jan 2017 16:17:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3D5AA284E7 for ; Wed, 11 Jan 2017 16:17:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 325A3285FE; Wed, 11 Jan 2017 16:17:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7A3C828577 for ; Wed, 11 Jan 2017 16:16:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760124AbdAKQQg (ORCPT ); Wed, 11 Jan 2017 11:16:36 -0500 Received: from mail-oi0-f65.google.com ([209.85.218.65]:33717 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751092AbdAKQQf (ORCPT ); Wed, 11 Jan 2017 11:16:35 -0500 Received: by mail-oi0-f65.google.com with SMTP id j15so22577366oih.0; Wed, 11 Jan 2017 08:16:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=dKxnHH67eNVSjT1+V9k2V07HbKVm2dR8lnk3UHT+3Xg=; b=oiBfyL+eI+yeoWBUQRFN6f0FCC/HBZ8XAo2RSw2svdCUWSnFlnCo9Kx+RI08ckqlEj cTxebyh0+UIi7z67qitxaYgCHWSmBPU0t1+SG5kQIeOQ9t6GcCxSgLnhoh/K9BFwtK75 +n4bWIp743ltnRzdh+mhX+3sN/QbrUh+63XY5kZ9LGP2j2iJir7qAoJ3AHgh2OzGhT4L FP895b6XB8vPv6ZCGzX4A1PDjg8LGswtxAOlfCrHy7f1HHCmn9RZTy34gJweTBMmU4a6 GWGdFkENWWHwH3kshKZhM5jvkxmmxf6SSkUAm+gHMAG/xZE++DGlDWYjGQ1H23+BpL47 bOUw== 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=dKxnHH67eNVSjT1+V9k2V07HbKVm2dR8lnk3UHT+3Xg=; b=czvYsYpAWnvfjXFaX7gKSYqjqfrKVbwZDMRoC3V3poIBVbdk8l/Q9bXNd1XA03I1m1 2C+YM782afr7Z3vKDOto7wYccMR+eFMLJTuKpdWjVqYv4tPxOzU6FfQpxo3toZ0OMDt1 QLb/+DR2l9mHnv8Wkv4IU+UjGjiNWFcHhvSZSR/mVvrnU9UG8LkKBw/8T9qqFfC405Pc E9GEsKNckclTU2Htma65iGiNJdTsFhKJl292qocReA0PYxxv9TfTfmnKMG6UQQDPvF4m xejkiasyedqAe+WKtyDyzAnA6Gy75fbNfUi5wtnFIdJnnTKi+R0qrdA5wAJYn60mvSha 449w== X-Gm-Message-State: AIkVDXIlGbGF6r2yWm3SIWpCLuDXCY6RTgTYm10QYhT6GsXgFOgfBg3d+203R26GdfxbMQ== X-Received: by 10.157.21.19 with SMTP id u19mr5014030otf.229.1484151394460; Wed, 11 Jan 2017 08:16:34 -0800 (PST) Received: from kurokawa.lan ([195.140.253.167]) by smtp.gmail.com with ESMTPSA id s125sm2641777oia.0.2017.01.11.08.16.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Jan 2017 08:16:33 -0800 (PST) From: Marek Vasut To: linux-clk@vger.kernel.org Cc: Marek Vasut , Michael Turquette , Stephen Boyd , Laurent Pinchart , Rob Herring , devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org Subject: [PATCH 1/2] clk: vc5: Add bindings for IDT VersaClock 5P49V5923 and 5P49V5933 Date: Wed, 11 Jan 2017 17:16:02 +0100 Message-Id: <20170111161603.18905-1-marek.vasut@gmail.com> X-Mailer: git-send-email 2.11.0 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add bindings for IDT VersaClock 5 5P49V5923 and 5P49V5933 chips. These are I2C clock generators with optional clock source from either XTal or dedicated clock generator and, depending on the model, two or more clock outputs. Signed-off-by: Marek Vasut Cc: Michael Turquette Cc: Stephen Boyd Cc: Laurent Pinchart Cc: Rob Herring Cc: devicetree@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org Reviewed-by: Laurent Pinchart --- .../devicetree/bindings/clock/idt,versaclock5.txt | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/idt,versaclock5.txt diff --git a/Documentation/devicetree/bindings/clock/idt,versaclock5.txt b/Documentation/devicetree/bindings/clock/idt,versaclock5.txt new file mode 100644 index 000000000000..82ebed9a8a15 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/idt,versaclock5.txt @@ -0,0 +1,43 @@ +Binding for IDT VersaClock5 programmable i2c clock generator. + +The IDT VersaClock5 are programmable i2c clock generators providing +from 3 to 12 output clocks. + +==I2C device node== + +Required properties: +- compatible: shall be one of "idt,5p49v5923" , "idt,5p49v5933". +- reg: i2c device address, shall be 0x68 or 0x6a. +- #clock-cells: from common clock binding; shall be set to 1. +- clocks: from common clock binding; list of parent clock handles, + - 5p49v5923: (required) either or both of XTAL or CLKIN + reference clock. + - 5p49v5933: (optional) property not present (internal + Xtal used) or CLKIN reference + clock. +- clock-names: from common clock binding; clock input names, can be + - 5p49v5923: (required) either or both of "xin", "clkin". + - 5p49v5933: (optional) property not present or "clkin". + +==Example== + +/* 25MHz reference crystal */ +ref25: ref25m { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <25000000>; +}; + +i2c-master-node { + + /* IDT 5P49V5923 i2c clock generator */ + vc5: clock-generator@6a { + compatible = "idt,5p49v5923"; + reg = <0x6a>; + #clock-cells = <1>; + + /* Connect XIN input to 25MHz reference */ + clocks = <&ref25m>; + clock-names = "xin"; + }; +};