From patchwork Sun Jul 9 13:28:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 9831807 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 49515602BD for ; Sun, 9 Jul 2017 13:28:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 384AA27165 for ; Sun, 9 Jul 2017 13:28:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2D103283C5; Sun, 9 Jul 2017 13:28:47 +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=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham 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 AC1E927165 for ; Sun, 9 Jul 2017 13:28:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752313AbdGIN2q (ORCPT ); Sun, 9 Jul 2017 09:28:46 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:36236 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752168AbdGIN2o (ORCPT ); Sun, 9 Jul 2017 09:28:44 -0400 Received: by mail-wr0-f193.google.com with SMTP id 77so18766350wrb.3; Sun, 09 Jul 2017 06:28:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=wT5hHpDH3EI7+iLJ+23yECBiP0N6LF8bYamlTPNnHS0=; b=pSHUdFMhlPJsjd3PuIDLc325iOJOw7+DkCVJC6xVkJj3/huwg3/TXCAFH5Ch4kTBkO 0xb6tWp00tq6WdcucfcCimG8Dh9N++UDpX0WZIiy55sIjg1si/6TMd9ZzJ54zll0QdU1 BWsoYWhGrdcLa8/+HosR7xLl36OJtBsdnJGmOgiRQwjaU6WFQ0M3TM+zfpFJU3WFISMJ OoEBvqVYLUndP9RvvylbWZc98eOilgOV+vBS7w5jX/LZ/EVdDYX+F7maDlQ3Ga4nb/0X PrdKNNG1NRncqiPvR0I4qNMig73Og/hvJOOuSM+wYXwvw7nQ15RtU5ABCNPzswWxg83a fZBQ== 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; bh=wT5hHpDH3EI7+iLJ+23yECBiP0N6LF8bYamlTPNnHS0=; b=SNIe9/PyF3BLql+GyazVtDQiXl39tqKMeXmskJk2N80iuxscMfJzOioxYA262jaMZi wVnY2uGDD7fGl7wJVrc4xQRkqzS2vdUmU0AM6e0X+YvCguThS7vftexS4Jr4snhO9Vd0 FVd+3PMmN9Bao0gFeTTkV+5Dkry9CTL4fjwQgvL9bybxHUkw1XC7kMb41X0kiMG9gZnx maeA+kccenvNGdVjgbkDflMVTYUR90R3HFl4TqQHoJrEzBmV7j7XtefRv6Uob7zXl/y7 iA8OJaJAV4PBs/9oI5ohDJBc4+crX8+J3bYaG61mA7LSui27CvwekiIQwjhJL41jfPRf w/Ww== X-Gm-Message-State: AIVw111I6BdX5y1oLcv1zY/GMSyfT38N6pqf4Rop/xvtHOSONA/8ybP4 mZNoCEbH9E29ozyWSyI= X-Received: by 10.28.140.143 with SMTP id o137mr4909696wmd.47.1499606922487; Sun, 09 Jul 2017 06:28:42 -0700 (PDT) Received: from kurokawa.lan (ip-86-49-107-50.net.upcbroadband.cz. [86.49.107.50]) by smtp.gmail.com with ESMTPSA id o197sm8482585wmd.9.2017.07.09.06.28.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 09 Jul 2017 06:28:41 -0700 (PDT) From: Marek Vasut X-Google-Original-From: Marek Vasut To: linux-clk@vger.kernel.org Cc: Marek Vasut , Alexey Firago , Rob Herring , Stephen Boyd , Michael Turquette , Laurent Pinchart , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH V3 7/8] clk: vc5: Add bindings for IDT VersaClock 5P49V6901 Date: Sun, 9 Jul 2017 15:28:13 +0200 Message-Id: <20170709132814.2339-7-marek.vasut+renesas@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170709132814.2339-1-marek.vasut+renesas@gmail.com> References: <20170709132814.2339-1-marek.vasut+renesas@gmail.com> 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 IDT VersaClock 6 5P49V6901 has 4 clock outputs, 4 fractional dividers. Input clock source can be taken from either external crystal or from external reference clock. Signed-off-by: Marek Vasut Cc: Alexey Firago Cc: Rob Herring Cc: Stephen Boyd Cc: Michael Turquette Cc: Laurent Pinchart Cc: linux-renesas-soc@vger.kernel.org Cc: devicetree@vger.kernel.org Acked-by: Rob Herring --- V2: Edit the top of the DT binding document to mention VersaClock 6 V3: Reformat the compatible entry to list one per line --- .../devicetree/bindings/clock/idt,versaclock5.txt | 26 ++++++++++++++++------ 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/clock/idt,versaclock5.txt b/Documentation/devicetree/bindings/clock/idt,versaclock5.txt index 53d7e50ed875..66ef0a009b95 100644 --- a/Documentation/devicetree/bindings/clock/idt,versaclock5.txt +++ b/Documentation/devicetree/bindings/clock/idt,versaclock5.txt @@ -1,24 +1,29 @@ -Binding for IDT VersaClock5 programmable i2c clock generator. +Binding for IDT VersaClock 5,6 programmable i2c clock generators. -The IDT VersaClock5 are programmable i2c clock generators providing -from 3 to 12 output clocks. +The IDT VersaClock 5 and VersaClock 6 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" , - "idt,5p49v5935". +- compatible: shall be one of + "idt,5p49v5923" + "idt,5p49v5933" + "idt,5p49v5935" + "idt,5p49v6901" - 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 + - 5p49v5923 and + 5p49v6901: (required) either or both of XTAL or CLKIN reference clock. - 5p49v5933 and - 5p49v5935: (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". + - 5p49v5923 and + 5p49v6901: (required) either or both of "xin", "clkin". - 5p49v5933 and - 5p49v5935: (optional) property not present or "clkin". @@ -44,6 +49,13 @@ clock specifier, the following mapping applies: 3 -- OUT3 4 -- OUT4 +5P49V6901: + 0 -- OUT0_SEL_I2CB + 1 -- OUT1 + 2 -- OUT2 + 3 -- OUT3 + 4 -- OUT4 + ==Example== /* 25MHz reference crystal */