From patchwork Wed Feb 22 07:00:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 9586285 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 0C59F600CA for ; Wed, 22 Feb 2017 07:01:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E75FD20373 for ; Wed, 22 Feb 2017 07:01:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DC06E28686; Wed, 22 Feb 2017 07:01: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=-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 8A60120373 for ; Wed, 22 Feb 2017 07:01:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752323AbdBVHBH (ORCPT ); Wed, 22 Feb 2017 02:01:07 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:36567 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751349AbdBVHBG (ORCPT ); Wed, 22 Feb 2017 02:01:06 -0500 Received: by mail-wm0-f68.google.com with SMTP id r18so662490wmd.3; Tue, 21 Feb 2017 23:01:04 -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=/QGrg95LZol6oDjtzZ/zFFgTzpN2+1Bs+6KwEK9MWGo=; b=HWALzkY0ldq/M3Zkp8W2ut0hAAqtZY+bQBQrapHp6tfZebOoXtbmFpEKll7lPZyjxw 9EtzWY2cKa6eGx3IWUjTSpXHzi0vBAlAgm5Jy9iWIebf7fR1ypxYkP52W3ieaRxaAsGv 5mt8mUFQlRB1MCdhEc8jJ7USIMV8zrvabgfv3NAUqGxe4ni8PyVexa9HIvTrVMOID8WZ R0VklChWhxFFDUCYxqjdmjFd4Gz/rSZy6NbC4qMfMlU6psHbdxP2oj2aKhmtz7h1yH6/ f2yc3OyGK4X3unSqncP8IMmOOhVlXdxMyTFayrMR0hSXIDHF9FJ014iwDqyCXzuxSVQt Jgzg== 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=/QGrg95LZol6oDjtzZ/zFFgTzpN2+1Bs+6KwEK9MWGo=; b=lPR4Kil8X2FVRIQ0PNpRgUqqMBm44S2YcKK67bVyvP8aKDlEv3UjRBBGGXlj1uW5Yp PBeC81sR5fc5vpxGj+2Rjm9UGsOJDVnmtSG3wBhCuScoTpGRiI4FRnnGnp+7Wbxj+lDT vw8Tapvl4hOK0Db4A7qRjSXrAMfpifHF07Qf4OoDew3rU8DFbFD/wD/k/dV/RW4n/tUJ 2ynqNZ8cdhlB1jzUQiPJ1YM/IU/b/tLtDwEPLGw5THt50WnzA44kX+0ORlMC91COPA2k j/FTGWfkU1yCLgY9qEWMFyTO0WnYYAfjdPu3gxZph6KbBAstPexJ9NJumuOkmhWjYX7t c9LA== X-Gm-Message-State: AMke39n+TN39FQuqGO7LBa3D95GSvsugdumxG1aFJnPaqklDh5QKnmqniVvZDDTG9P3INw== X-Received: by 10.28.111.78 with SMTP id k75mr913582wmc.71.1487746864181; Tue, 21 Feb 2017 23:01:04 -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 d29sm477818wrc.34.2017.02.21.23.01.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Feb 2017 23:01:03 -0800 (PST) Subject: [PATCH v3 3/4] ARM64: dts: meson-gx: add clock CLKID_RNG0 to hwrng node 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: <2135c29a-41c2-f649-ea6d-bd635cbe0714@gmail.com> Date: Wed, 22 Feb 2017 08:00:55 +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 CLKID_RNG0 to HW randon number generator node. Signed-off-by: Heiner Kallweit --- 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 --- arch/arm64/boot/dts/amlogic/meson-gx.dtsi | 2 +- arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/amlogic/meson-gx.dtsi b/arch/arm64/boot/dts/amlogic/meson-gx.dtsi index 5d995f77..620495a4 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gx.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gx.dtsi @@ -380,7 +380,7 @@ #size-cells = <2>; ranges = <0x0 0x0 0x0 0xc8834000 0x0 0x2000>; - rng { + hwrng: rng { compatible = "amlogic,meson-rng"; reg = <0x0 0x0 0x0 0x4>; }; diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi index 04b3324b..a375cb21 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi @@ -524,3 +524,8 @@ &vpu { compatible = "amlogic,meson-gxbb-vpu", "amlogic,meson-gx-vpu"; }; + +&hwrng { + clocks = <&clkc CLKID_RNG0>; + clock-names = "core"; +};