From patchwork Mon Jun 2 05:32:26 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavitrakumar Managutte X-Patchwork-Id: 894064 Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5C96A156F5D for ; Mon, 2 Jun 2025 05:35:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748842501; cv=none; b=flcUWeROqMSwBvIRGmMdpS3GTk7BZePkCQUJ/FunCxsDCq1ieF5z06Ct+5a3B6we2rJPoavpcvx1jIlab1e+DSfxg+XYAC3Uhk4I3xobp+7/wZ2JRkXX4AtZWr79FvIecGmw1DByUZMnaiB1rNulaedcqAqTF/pICaDFCrMj6w0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748842501; c=relaxed/simple; bh=CitsjnGMT2tpHAOqWQTJepEfFEsmNNIOj2PFTQGHKmU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Trv4ETowOMlDy1+I44fMYvxKRoXzL/1/bBpxumzIVWJ3JXt51x2B5hhbj3F2q8ND8dOpUknIcbkAlpi/H2d5UXewfIcLNEY+GGbpNghjpNtmcQ1xvFSOHt6lNViQSGuN12A5MCSttuIDxtPrDnyNSoyFHdGoQPk9nJL8DWLrxYA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=vayavyalabs.com; spf=pass smtp.mailfrom=vayavyalabs.com; dkim=pass (1024-bit key) header.d=vayavyalabs.com header.i=@vayavyalabs.com header.b=o8jmx6JK; arc=none smtp.client-ip=209.85.215.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=vayavyalabs.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=vayavyalabs.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=vayavyalabs.com header.i=@vayavyalabs.com header.b="o8jmx6JK" Received: by mail-pg1-f177.google.com with SMTP id 41be03b00d2f7-b26f5f47ba1so2335179a12.1 for ; Sun, 01 Jun 2025 22:35:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vayavyalabs.com; s=google; t=1748842499; x=1749447299; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=vcQsINFfHCo0hVwMqVIxbmVwPSe7ekqyAfXyvWsPPeE=; b=o8jmx6JKtsAS8Qu915LTTLicXjVEQmAU3OES1phJmgBpXVDO2/cRClaHFWFhqaMfAx +7zb6Vf5aAHCo6L2xLVd5oNXdEpGKp489E8SvGGYcYAaVg83OuICTrqxUBeeX1ei3zK3 EmrC4WyE+YCw39htanp5768dQTnvZ6cg7SKBw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748842499; x=1749447299; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vcQsINFfHCo0hVwMqVIxbmVwPSe7ekqyAfXyvWsPPeE=; b=gMdd/y/UzOa/gzGIiaYDY2OSsXXC7os96wDjiCMvFOOBCkmvHlLnKObXnvc6y5sEbp vvu/ie/IfpWANiTr1ukEgZhsJU0cmlSSh8GsTmbqMW0XzcpGe+qDlwbRkPwSOtLOyYj4 zgxLJNTsaWMyeBro33hGg3MthgtJvQr2Jau7aavw7odgOh8FCBt4mPibhHrtff0dMWaf dJyxd/C3xD/0hdy0HczP6O2w4G2fZnQdenxnKafrsFBMuM3QoZYkcX5XXd5qTZWrpy/S 8RMYdTxknEoOaqtT3x4Ym77F5+6dIF7+xAhGDvlzDTQpTzlx9rS1GenKUrgOqEb0sSVb IQIw== X-Gm-Message-State: AOJu0YydXpRtZbmhtYTD19HnZy/c3zP6puhMrPrezeLLY6IsYh//ihWk fq6Ke4iht8ayg5gp3fiERT7UDPHorjfdD+PwELZredf4SCsXS3e9fcGNoeSKxfzKFxewQh/yDSB jdniBWx8= X-Gm-Gg: ASbGnctUMke49QwIrz0HCjwZtWciXp9efhWHJl3CUotm7B3UfrCbEoJYEnyFQsnMrqa YjGWPNE4TJc7orBZYL9lg4+AK9yEcWdHRoCcRt8Rz4k8uaOpr7BgN5mvAR34qxfQ2qyWLLOHGJv yyN93lSd9bsCRzL8Cgft0dPMQ5EqJ/pit1wCij83/DNtI7521CaTwLkMFyewV5elk9AfKR9Q7t5 0oJ6UMtSLSC8AtX7Rd6uB+1RMgDBQwnrsIgEPUAFU3dhedJrBnLGRgbujuG9MpgG9EHZWwTVoqg rMZ8xRriApyoBKaT9T29IUtqQNO1oob2ucI4lwqpIHCjFnQJIEwAnCg/yr3TwGJcSOrgS6npuNE m0dh79Y9zzR5+Uw== X-Google-Smtp-Source: AGHT+IHlUCRblKWGlQN7n7wByy1NApB39s/TRoiv/q2p047yt9Q2knvFW5nqj8ETq2xDhak0tIJA6w== X-Received: by 2002:a17:90a:d450:b0:311:b0d3:855 with SMTP id 98e67ed59e1d1-3125034c7fbmr17082259a91.2.1748842499355; Sun, 01 Jun 2025 22:34:59 -0700 (PDT) Received: from localhost.localdomain ([117.251.222.160]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3124e30cbe6sm4836986a91.39.2025.06.01.22.34.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Jun 2025 22:34:59 -0700 (PDT) From: Pavitrakumar Managutte To: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, herbert@gondor.apana.org.au, robh@kernel.org Cc: krzk+dt@kernel.org, conor+dt@kernel.org, Ruud.Derwig@synopsys.com, manjunath.hadli@vayavyalabs.com, adityak@vayavyalabs.com, Pavitrakumar Managutte , Bhoomika Kadabi Subject: [PATCH v3 1/6] dt-bindings: crypto: Document support for SPAcc Date: Mon, 2 Jun 2025 11:02:26 +0530 Message-Id: <20250602053231.403143-2-pavitrakumarm@vayavyalabs.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20250602053231.403143-1-pavitrakumarm@vayavyalabs.com> References: <20250602053231.403143-1-pavitrakumarm@vayavyalabs.com> Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add DT bindings related to the SPAcc driver for Documentation. DWC Synopsys Security Protocol Accelerator(SPAcc) Hardware Crypto Engine is a crypto IP designed by Synopsys. Co-developed-by: Bhoomika Kadabi Signed-off-by: Bhoomika Kadabi Signed-off-by: Pavitrakumar Managutte Acked-by: Ruud Derwig --- .../bindings/crypto/snps,dwc-spacc.yaml | 77 +++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 Documentation/devicetree/bindings/crypto/snps,dwc-spacc.yaml diff --git a/Documentation/devicetree/bindings/crypto/snps,dwc-spacc.yaml b/Documentation/devicetree/bindings/crypto/snps,dwc-spacc.yaml new file mode 100644 index 000000000000..2780b3db2182 --- /dev/null +++ b/Documentation/devicetree/bindings/crypto/snps,dwc-spacc.yaml @@ -0,0 +1,77 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/crypto/snps,dwc-spacc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Synopsys DesignWare Security Protocol Accelerator(SPAcc) Crypto Engine + +maintainers: + - Ruud Derwig + +description: | + This binding describes the Synopsys DWC Security Protocol Accelerator (SPAcc), + which is a hardware IP designed to accelerate cryptographic operations, such + as encryption, decryption, and hashing. + + The SPAcc supports virtualization where a single physical SPAcc can be + accessed as multiple virtual SPAcc instances, each with its own register set. + These virtual instances can be assigned different priorities. + + In this configuration, the SPAcc IP is instantiated within the Synopsys + NSIMOSCI virtual SoC platform, a SystemC simulation environment used for + software development and testing. The device is accessed as a memory-mapped + peripheral and generates interrupts to the ARC interrupt controller. + +properties: + compatible: + items: + - const: snps,nsimosci-hs-spacc + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + snps,vspacc-id: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Virtual SPAcc instance identifier. + The SPAcc hardware supports multiple virtual instances (determined by + ELP_SPACC_CONFIG_VSPACC_CNT parameter), and this ID is used to identify + which virtual instance this node represents. + minimum: 0 + maximum: 7 + + snps,spacc-internal-counter: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Hardware counter that generates an interrupt based on a count value. + This counter starts ticking when there is a completed job sitting on + the status fifo to be serviced. This makes sure that no jobs are + starved of processing. + minimum: 0x19000 + maximum: 0xFFFFF + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + + crypto@40000000 { + compatible = "snps,nsimosci-hs-spacc"; + reg = <0x40000000 0x3FFFF>; + interrupts = <28>; + clocks = <&clock>; + snps,spacc-internal-counter = <0x20000>; + snps,vspacc-id = <0>; + };