From patchwork Mon Jan 11 11:40:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 8002661 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 73166BEEE5 for ; Mon, 11 Jan 2016 11:43:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A5B002028D for ; Mon, 11 Jan 2016 11:43:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D5DB82022A for ; Mon, 11 Jan 2016 11:43:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759506AbcAKLnZ (ORCPT ); Mon, 11 Jan 2016 06:43:25 -0500 Received: from mail-pf0-f176.google.com ([209.85.192.176]:34780 "EHLO mail-pf0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758999AbcAKLnZ (ORCPT ); Mon, 11 Jan 2016 06:43:25 -0500 Received: by mail-pf0-f176.google.com with SMTP id q63so45080693pfb.1; Mon, 11 Jan 2016 03:43:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=UnvHmsveAKNQZTlKsnqsY9XUe1uLLUVjaZwmOKdf/jo=; b=Gn/tFhp9hCG3Stz/Wb45OpxIGCzTlZEGaSYEgW3UJTNu4U5z3edaIhuDroKpL5W6vQ u8z2Vci2ZUlXYh/aGA0yH2X/kFh4hQVC29iOIJFRXj3LRawAlqx1+L3BEf2Uy5kjdI3m Iojft5HTa2fkDnKuZxGZv25e3Xhjedg1ESu/sRhf7pRvG8KaA6KOrAoWN3the8ztLDnJ kHhBip0ja4q0uuadBKYQO2DVa+VVKSpQYYEBjOni5Y6qUFGFF2T1YAqI7GUDLAiKzZev VRe81m2haDdQWNk1g125iJofymkr6K6ShxIXSZ8dwOU0E8dcRqIIW1z83gtyr5gDpxu7 JxDw== X-Received: by 10.98.9.220 with SMTP id 89mr25601937pfj.17.1452512604602; Mon, 11 Jan 2016 03:43:24 -0800 (PST) Received: from localhost.localdomain ([210.57.242.180]) by smtp.gmail.com with ESMTPSA id e82sm22790377pfb.76.2016.01.11.03.43.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 11 Jan 2016 03:43:23 -0800 (PST) From: Krzysztof Kozlowski To: Kukjin Kim , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH] ARM: dts: Allow simultaneous usage exynos-rng and s5p-sss drivers on exynos5 Date: Mon, 11 Jan 2016 20:40:28 +0900 Message-Id: <1452512428-3916-1-git-send-email-k.kozlowski.k@gmail.com> X-Mailer: git-send-email 2.1.4 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The s5p-sss crypto HW acceleration driver supports only AES algorithms thus it accesses only registers from feeder (offset 0x0, length 0x100) and AES (offset 0x200, length 0x100) blocks Security SubSystem (SSS). The exynos-rng Pseudo Random Number Generator driver accesses only PRNG block at offset 0x400 (length 0x100). Narrow the size of memory mapped by s5p-sss driver so both drivers can be loaded at the same time. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos5250.dtsi | 2 +- arch/arm/boot/dts/exynos5420.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi index 33e2d5f7315b..234403422c6f 100644 --- a/arch/arm/boot/dts/exynos5250.dtsi +++ b/arch/arm/boot/dts/exynos5250.dtsi @@ -807,7 +807,7 @@ sss@10830000 { compatible = "samsung,exynos4210-secss"; - reg = <0x10830000 0x10000>; + reg = <0x10830000 0x300>; interrupts = <0 112 0>; clocks = <&clock CLK_SSS>; clock-names = "secss"; diff --git a/arch/arm/boot/dts/exynos5420.dtsi b/arch/arm/boot/dts/exynos5420.dtsi index 48a0a55314f5..7c8a606d65aa 100644 --- a/arch/arm/boot/dts/exynos5420.dtsi +++ b/arch/arm/boot/dts/exynos5420.dtsi @@ -859,7 +859,7 @@ sss: sss@10830000 { compatible = "samsung,exynos4210-secss"; - reg = <0x10830000 0x10000>; + reg = <0x10830000 0x300>; interrupts = <0 112 0>; clocks = <&clock CLK_SSS>; clock-names = "secss";