From patchwork Tue Oct 31 19:54:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 10035319 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 758C1602B9 for ; Tue, 31 Oct 2017 19:55:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 678F428A7C for ; Tue, 31 Oct 2017 19:55:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5C97528AB0; Tue, 31 Oct 2017 19:55:32 +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_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=unavailable 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 E82F528A7C for ; Tue, 31 Oct 2017 19:55:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932896AbdJaTzN (ORCPT ); Tue, 31 Oct 2017 15:55:13 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:44500 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932892AbdJaTzK (ORCPT ); Tue, 31 Oct 2017 15:55:10 -0400 Received: by mail-pf0-f196.google.com with SMTP id x7so116696pfa.1 for ; Tue, 31 Oct 2017 12:55:10 -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:in-reply-to:references; bh=MjRguICDKVjzl7irl2WwsYnsLeJ4YFzhZ8Mkcs898ws=; b=UtM4pTT4r4SUbX/w8fl887r1jCOlYFJ12FQlezqEzNr/5ftDogbWsDlD7NpVX6CzVA SpyVeaC21Yn7jDL3Mf2v4PEYtI0HjVGB/Bpxl1zncKy9QG1gPwSnSO8iCkbY3JWa5D2E Fr0DKIBJs8JPSuNL3W2aUAEdv6Tuc1sOSRHmU= 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=MjRguICDKVjzl7irl2WwsYnsLeJ4YFzhZ8Mkcs898ws=; b=q5wyY/Z3GYe7Cqc3enmFCYKJphN3s9oKCIsDFxTFu00SWMsX0n0ONuqVbkxakSN6DD hLjpc4YCOKbghlyfsJajbJrWhz3fVKkXOhpVVPFZGLuwHexkyhZB/8YSU1BPlA70Gqsx sPygI/PJktp8KpSvvpYGpAttrskE1IV5LQvhY5pUFL5MVHIN2IqpW3Y2wYQNNt2Hugny dbgsh2+Pwce7rqoar3y6j0UCDjYdcj2N6r//VcseUMWHfQDxj96gsj1IJRgII42rBigy VKy4aaWATmMUnZ1h15LF8UUkfG4rFNXnOVVmRQt9tLl0eabU/4XHC4gucgdMrF7pJeh3 bObQ== X-Gm-Message-State: AMCzsaV4uRLFp/qkDswqa1gKFqhFXkUQdZOySdpqzuB8mdd1le9JumCE EW3+QYXJwsOAx13G/zqEvaxd X-Google-Smtp-Source: ABhQp+RVU4tioqFiNJioojvRniFqHdHunhN45wnLSVaF/o58/dj1Ij+dz89iuI7NjvTn754KlQ/awA== X-Received: by 10.98.194.86 with SMTP id l83mr3197009pfg.314.1509479709918; Tue, 31 Oct 2017 12:55:09 -0700 (PDT) Received: from localhost.localdomain ([2405:204:7307:c0df:a955:b01b:cf95:dedf]) by smtp.gmail.com with ESMTPSA id r18sm4254289pfe.99.2017.10.31.12.55.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 31 Oct 2017 12:55:09 -0700 (PDT) From: Manivannan Sadhasivam To: mturquette@baylibre.com, sboyd@codeaurora.org, afaerber@suse.de, robh+dt@kernel.org, mark.rutland@arm.com Cc: linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, davem@davemloft.net, mchehab@kernel.org, rdunlap@infradead.org, daniel.thompson@linaro.org, amit.kucheria@linaro.org, liuwei@actions-semi.com, Manivannan Sadhasivam Subject: [PATCH 3/3] Documentation: add Actions S900 clock bindings Date: Wed, 1 Nov 2017 01:24:23 +0530 Message-Id: <1509479663-8985-4-git-send-email-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509479663-8985-1-git-send-email-manivannan.sadhasivam@linaro.org> References: <1509479663-8985-1-git-send-email-manivannan.sadhasivam@linaro.org> 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 This patch adds clock bindings for Actions Semi S900 SoC. Signed-off-by: Manivannan Sadhasivam --- .../bindings/clock/actions,s900-clock.txt | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/actions,s900-clock.txt diff --git a/Documentation/devicetree/bindings/clock/actions,s900-clock.txt b/Documentation/devicetree/bindings/clock/actions,s900-clock.txt new file mode 100644 index 0000000..951d6ad --- /dev/null +++ b/Documentation/devicetree/bindings/clock/actions,s900-clock.txt @@ -0,0 +1,47 @@ +* Actions s900 Clock Controller + +The Actions s900 clock controller generates and supplies clock to various +controllers within the SoC. The clock binding described here is applicable to +s900 SoC. + +Required Properties: + +- compatible: should be "actions,s900-clock" +- reg: physical base address of the controller and length of memory mapped + region. +- #clock-cells: should be 1. + +Each clock is assigned an identifier and client nodes can use this identifier +to specify the clock which they consume. + +All available clocks are defined as preprocessor macros in +dt-bindings/clock/actions,s900-clock.h header and can be used in device +tree sources. + +External clocks: + +The hosc clock used as input for the plls is generated outside the SoC. It is +expected that it is defined using standard clock bindings as "hosc". + +Actions s900 Clock Controller also require two more clocks: + - "losc" - internal low frequency oscillator + - "diff_24M" - internal differential 24MHz clock + +Example: Clock controller node: + + clock: clock-controller@e0160000 { + compatible = "actions,s900-clock"; + reg = <0 0xe0160000 0 0x1000>; + #clock-cells = <1>; + }; + +Example: UART controller node that consumes clock generated by the clock +controller: + + serial5: uart@e012a000 { + compatible = "actions,s900-uart", "actions,owl-uart"; + reg = <0x0 0xe012a000 0x0 0x2000>; + interrupts = ; + clocks = <&clock CLK_UART5>; + clock-names = "uart"; + };