Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3388457ybi; Mon, 10 Jun 2019 09:23:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqxvR4lFxVp260QRXJ+4zWB8NTcVb3X4jLq37Y9xpLSVB+f9xCmz5PFMuNAAO09H0AVFwjaZ X-Received: by 2002:a63:6142:: with SMTP id v63mr16576095pgb.309.1560183810059; Mon, 10 Jun 2019 09:23:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560183810; cv=none; d=google.com; s=arc-20160816; b=w9uI6uSrrtF5Uu7HWXbZ+3XksaYOk5EgeJfm8JqPIkBPAHywXHYnTCDrHFWLmAu5Xk UF3MjSKQXtdX+VW+EeK4WJoUeoYL19RpEb8MvD2fR2oasgftNGTcRnWdrWXt2ScUruhQ 9DRRQOhMMD4P2pqR7z70/qeKaB7PDw0K3Pb0zek09H88u08wgjSoGCEUqiKXilQRoMVh YST/lsHRkcQ8qW6zu+dfpfEGJwzgzEOANbLSDTBz3XyppTmHicNHUs69hAKgaLq8X1KE jFxzzBJrlX65H6VlWngQFAntomn1qMXW5Lw/aY/OfGtKqcT50s6MPfyB8AbCJ5T0yIEi 9Hzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=BROa+q5D6QfkU2X+zIUneFYNzvCxcyk42cXB3gkBdAE=; b=RXgATMQ9m9PnpBRkKuJqLQWhNACso9ONFJgbuLEav0zwWfRMCC1kf4caafhATO2Cp9 AUUIR71q7IbAJYPHIOoRKV7esAvAN0vuVoWKfu9dbUumDAdM6HhaB0ppP/5Dzv2bbxtb 5MWgjQ+Z4lS5hVRggs8URpx3cQP2ZSHvMPlaFjL1juGmxL6PNjNH6u25+rEgpefHwyMk yES745YDDU+n/9kXh+E5kOSwlf4XJvxqlms8VT0k3gkRRjLNoEzJic6YfVoRvyRCUEmD d81SDovLQzL1lUYoBguRgWKOFivVVQ6G1jyfc2iooWC7+qtRmbOJASqbnEzMZEPgtRrJ /hQQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w8si8161941pgr.258.2019.06.10.09.23.15; Mon, 10 Jun 2019 09:23:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391185AbfFJPXo (ORCPT + 99 others); Mon, 10 Jun 2019 11:23:44 -0400 Received: from inva021.nxp.com ([92.121.34.21]:43726 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390494AbfFJPXo (ORCPT ); Mon, 10 Jun 2019 11:23:44 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 71E802007F9; Mon, 10 Jun 2019 17:23:41 +0200 (CEST) Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 64A762007F0; Mon, 10 Jun 2019 17:23:41 +0200 (CEST) Received: from fsr-ub1864-014.ea.freescale.net (fsr-ub1864-014.ea.freescale.net [10.171.95.219]) by inva024.eu-rdc02.nxp.com (Postfix) with ESMTP id 07A29205E4; Mon, 10 Jun 2019 17:23:40 +0200 (CEST) From: =?UTF-8?q?Horia=20Geant=C4=83?= To: Shawn Guo , Li Yang , Rob Herring , Mark Rutland Cc: Laurentiu Tudor , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: dts: ls1028a: add crypto node Date: Mon, 10 Jun 2019 18:23:31 +0300 Message-Id: <20190610152331.10057-1-horia.geanta@nxp.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org LS1028A has a SEC v5.0 compatible security engine. Signed-off-by: Horia Geantă --- Tested with "arm-smmu.disable_bypass=0" kernel boot parameter, since ICID (Isolation Context ID, out of which ARM SMMU stream ID is derived) programming and DT fix-up support hasn't been added yet in U-boot. .../boot/dts/freescale/fsl-ls1028a-qds.dts | 1 + .../boot/dts/freescale/fsl-ls1028a-rdb.dts | 1 + .../arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 39 +++++++++++++++++++ 3 files changed, 41 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts b/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts index 4ed18287e077..c9765bb4bd7f 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts @@ -17,6 +17,7 @@ compatible = "fsl,ls1028a-qds", "fsl,ls1028a"; aliases { + crypto = &crypto; gpio0 = &gpio1; gpio1 = &gpio2; gpio2 = &gpio3; diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts b/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts index 4a203f7da598..745ec462bfae 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts @@ -16,6 +16,7 @@ compatible = "fsl,ls1028a-rdb", "fsl,ls1028a"; aliases { + crypto = &crypto; serial0 = &duart0; serial1 = &duart1; }; diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi index bb386dd1d1b1..0048c2610a09 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi @@ -388,6 +388,45 @@ , ; }; + crypto: crypto@8000000 { + compatible = "fsl,sec-v5.0", "fsl,sec-v4.0"; + fsl,sec-era = <10>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x00 0x8000000 0x100000>; + reg = <0x00 0x8000000 0x0 0x100000>; + interrupts = ; + dma-coherent; + + sec_jr0: jr@10000 { + compatible = "fsl,sec-v5.0-job-ring", + "fsl,sec-v4.0-job-ring"; + reg = <0x10000 0x10000>; + interrupts = ; + }; + + sec_jr1: jr@20000 { + compatible = "fsl,sec-v5.0-job-ring", + "fsl,sec-v4.0-job-ring"; + reg = <0x20000 0x10000>; + interrupts = ; + }; + + sec_jr2: jr@30000 { + compatible = "fsl,sec-v5.0-job-ring", + "fsl,sec-v4.0-job-ring"; + reg = <0x30000 0x10000>; + interrupts = ; + }; + + sec_jr3: jr@40000 { + compatible = "fsl,sec-v5.0-job-ring", + "fsl,sec-v4.0-job-ring"; + reg = <0x40000 0x10000>; + interrupts = ; + }; + }; + cluster1_core0_watchdog: watchdog@c000000 { compatible = "arm,sp805", "arm,primecell"; reg = <0x0 0xc000000 0x0 0x1000>; -- 2.17.1