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: 9586291 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 ABFA8600CA for ; Wed, 22 Feb 2017 07:01:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 93E7A20373 for ; Wed, 22 Feb 2017 07:01:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 888D028686; Wed, 22 Feb 2017 07:01:38 +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.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7028520373 for ; Wed, 22 Feb 2017 07:01:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:From:References:To:Subject:Reply-To:Content-ID:Content-Description :Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=WVI971a/dhAQsr0F2kvUhzz8+SyI+ku3Yu52a5Y74OQ=; b=QH4JNmHmyYrPW3 dwm2WZgEX6ybMPZaeqATXVa8Hx8Pf4WdRs2QrCF1tO+VcKYnnarh6BlEOgcGvFfQ/pS4LXuepaIcS G7MkDl8/T1kbu5whD7puD0lOez5H0ZdUe1xPVW5iXZ5eiVVYW2Vr1bqWghgbe0U76IltpNQBjOTGa usZGOYZZTH1Gb76bDawFPWTMdDyTinjKd6VNQMwE4tyKKM3qlticLuDm8O/ORZ27Tex4RWpx/iJmm xyOgk9MQWFo61vvyqhqDKLNk14B4FyjvM6hOP3EEjK+78hcToM6mpbd6z/4RqTPw1kxCIKB16o8CX DjiDuWjYSMlSkcgirfjw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cgQvY-0007Cp-PW; Wed, 22 Feb 2017 07:01:28 +0000 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cgQvV-00079Y-Qg for linux-amlogic@lists.infradead.org; Wed, 22 Feb 2017 07:01:27 +0000 Received: by mail-wm0-x244.google.com with SMTP id u63so663832wmu.2 for ; Tue, 21 Feb 2017 23:01:05 -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=UKev16tRboq5bd40RDixG6y38hYZ4Cqy9FcZxE6PlxbKq4QZIh+9aOIbV/Cq8LybyQ O8xw6/kCAPy1S9Wo0CH3FyO6tiPARXYpUOEpe0EoucntMzUACVMPOxsoyiKrhEY69Kj0 RGjtrdAyyUU6k6g3ZcOQXBn5IN2CeYjpFoRXCdOxi8c4BaHu3wxlgGPZjzGUExAbn0Bq Z70WFRykVLWbNYOxVgNWYacw9V5yRXiPRcGWLxECxWZhg9ARWrzARnr5ZT+jJPSOwCMW z8bhg8bZjwRsS9kDmcobeI1gMTSKHVokBRzVSU9xexZvviLQtbHpSSk7kxuIo063w+5m QcrA== X-Gm-Message-State: AMke39kasJq7X3fCBob7AhIUleaGzCLQGbtwSxPoNBYHIF+e1l+37DCcikbkZfszK5wVJQ== 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> 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170221_230126_027782_7C31936C X-CRM114-Status: UNSURE ( 7.14 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-clk@vger.kernel.org Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.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"; +};