From patchwork Wed Feb 22 06:59:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 9586275 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 5B7EF600CA for ; Wed, 22 Feb 2017 06:59:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3815928684 for ; Wed, 22 Feb 2017 06:59:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2AA4D28688; Wed, 22 Feb 2017 06:59:21 +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 BF04828684 for ; Wed, 22 Feb 2017 06:59:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752203AbdBVG7T (ORCPT ); Wed, 22 Feb 2017 01:59:19 -0500 Received: from mail-wr0-f194.google.com ([209.85.128.194]:35300 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752033AbdBVG7T (ORCPT ); Wed, 22 Feb 2017 01:59:19 -0500 Received: by mail-wr0-f194.google.com with SMTP id q39so277926wrb.2; Tue, 21 Feb 2017 22:59:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=gPPsJe6orU+xcplVADypMuAwwpPKfSoUDC1xRi+vHOQ=; b=AqqwRxIA+cyrjnRD652PqU4yAy50lKI+LY2rD8307QuT/3/+3ZRP5K9KwUShdMu1V1 SPzpr1lbv8C8r9LaPPzpgcNZV2LRr36XeO70cX0HO4rSZJ0EIaxbol14OUobhAr1mRtt LfCZ7ZcxaGt27Nv3aolMaDQCF8mxlvvIhPU1JiSRcVAkaTSFBlzISDK6gPr+hF+PxffL OKZdGurzRjKYu6uxW5J0Y3kbBtfF4Wbimh6vM7HmtpvEVvtBCjaCWQBr+sFemJSlmdGU ZCcapIqiP3axm2IqHSBpwFPQ19tb7QcPd65etmkGpvs5KSfuAL8zKSbTjDanturW3mH0 i/+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=gPPsJe6orU+xcplVADypMuAwwpPKfSoUDC1xRi+vHOQ=; b=buzM+hw0Y09YL1Qakx6gqsLucspz+/KckwAdmcKjNnFwBmrPlLDoZ1EZIJS9t628rH oIU+Q25Iv30l1Rtp1FlW9WTrzM1jdvTnB8Fv7ZTtswVfln3nW+Svb9zSb2FvGgTBrSDK 2fslUv64mJO4eNBSFKWH7vCibeNiL3VTk/VI87feDCx/qRe6pC8ff4+0i5DFvz4JwJNT yzr2n3OVDF83D5kj+NKS4eZYWZc2LhQ/mQgK7xZJVcA3yGsJga+Keco+Ux6jDQIobeah fVhvTqrXNtZhcCATj0T6bacLBS55eA6q6nAYYHhZGtJoEzMmMjcm7G66pQXU/i3kaqCd bjOA== X-Gm-Message-State: AMke39m7VM/uCSc9c1Fme3LKjG4iebgqCEOH1xuvlqk51GlD658+U2L7B3AGeOfv2HxsDw== X-Received: by 10.223.140.145 with SMTP id a17mr25073377wrb.1.1487746756977; Tue, 21 Feb 2017 22:59:16 -0800 (PST) Received: from ?IPv6:2003:c6:ebdc:4000:4dac:58d5:169c:6ecb? (p200300C6EBDC40004DAC58D5169C6ECB.dip0.t-ipconnect.de. [2003:c6:ebdc:4000:4dac:58d5:169c:6ecb]) by smtp.googlemail.com with ESMTPSA id 8sm1682472wmg.1.2017.02.21.22.59.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Feb 2017 22:59:16 -0800 (PST) Subject: [PATCH v3 2/4] ARM64: dts: meson-gx: add clock to DT binding documentation for hwrng To: Jerome Brunet , Kevin Hilman , Herbert Xu , Neil Armstrong , linux-amlogic@lists.infradead.org, linux-crypto@vger.kernel.org, Stephen Boyd , Michael Turquette References: <4e2d12e5-f75b-3ac6-a3f7-18e8a8b7283b@gmail.com> Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org From: Heiner Kallweit Message-ID: <86db7397-8355-0d07-5180-c78d6cd06c84@gmail.com> Date: Wed, 22 Feb 2017 07:59:08 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <4e2d12e5-f75b-3ac6-a3f7-18e8a8b7283b@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 Add clock to DT binding documentation. Signed-off-by: Heiner Kallweit Acked-by: Rob Herring --- v2: - splitted first version of patch into two - add DT binding documentation - mention that clock is optional - replace spaces with tabs in DT binding example v3: - splitted DT extension and binding documentation update into two patches --- Documentation/devicetree/bindings/rng/amlogic,meson-rng.txt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/rng/amlogic,meson-rng.txt b/Documentation/devicetree/bindings/rng/amlogic,meson-rng.txt index 202f2d09..4d403645 100644 --- a/Documentation/devicetree/bindings/rng/amlogic,meson-rng.txt +++ b/Documentation/devicetree/bindings/rng/amlogic,meson-rng.txt @@ -6,9 +6,16 @@ Required properties: - compatible : should be "amlogic,meson-rng" - reg : Specifies base physical address and size of the registers. +Optional properties: + +- clocks : phandle to the following named clocks +- clock-names: Name of core clock, must be "core" + Example: rng { - compatible = "amlogic,meson-rng"; - reg = <0x0 0xc8834000 0x0 0x4>; + compatible = "amlogic,meson-rng"; + reg = <0x0 0xc8834000 0x0 0x4>; + clocks = <&clkc CLKID_RNG0>; + clock-names = "core"; };