From nobody Mon Feb 9 19:37:54 2026 Received: from mail-pg1-f175.google.com (mail-pg1-f175.google.com [209.85.215.175]) (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 3DA1814885B for ; Mon, 2 Jun 2025 05:34:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748842501; cv=none; b=HpWD0/6l5yMZjf7sVUYOnZweaHjscaUTZI00lobvVdb0B9u/E6iXzzpiJ7jzWoUnTXzXgZQOB6lEP/CIEm5XDBS9NHlIJdF+Yqj6//Ujqn+jnfMWvLYvPxK3vfkzzgfunyr+C7nN5EJBU58I1Il0238KNLVbdaLtA3FA63u34mE= 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.175 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-f175.google.com with SMTP id 41be03b00d2f7-af5085f7861so2299822a12.3 for ; Sun, 01 Jun 2025 22:34:59 -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=TGEA43iEUyiF0zuFN88umrtQd7kebmVAsA+jr27TE8rMEGABCA7Hr8LC/NjHs0v40E SqTdQGgNA7dyOgnrdbeWoUahGDTiM+BdL5XCnQLrP8hetH4TfykUo582fZYN37k6Q/4r YKeqj1O02pB84ztIleTWaYBQjd8TIRZve/gqC6hukO1ytpLvg6G55HemGOLSE2JWAlU8 rkCsmTwlJmsLwNr4dmeENcZPWUK6onhFG2CnJEQCK9sLJbYp5WgaixwkrBSB3w1JQOC3 LPoc2Khl2YLW2OSDZbMgIq893DM5MK4NsX+oW/T/QN9rGPEGqkW86DDDEYsN0/cZgWeA lf8Q== X-Forwarded-Encrypted: i=1; AJvYcCW8RYZDhbOPegcb7e69FiWhyP82spv4WfdWu/X0iiihnQo4Ok40znGMECXAcwE2S1aHRUD7jOGh8oyMUwQ=@vger.kernel.org X-Gm-Message-State: AOJu0Ywum1X8utNBxGqdtznjn2fwioWis9qNAl370XuZejk/jtQk/Xes CZjrHn6H2QI3qzHiXQlfKzewrOx6YfKZpivns/7wlMYfpcCG8CNISyVQOqzt4gUEHLU= X-Gm-Gg: ASbGnctXIAulwl2ytysctZIhwbLu5uZVyfbGZdboNMXBXHzEkCTmI+xhmpbtVroQHgN alSTjLgcw/gx3Poom3oprGg7fr8jh2I0HtlPv4GN6ECPyPMQddMAu++x8tF724vc/iWpfBWiaQI l037MBcsq0nJ2C0rR8rO+xM4gf7CSuSBcaBmRZc7zayuDeqdnkRxw7ZD7ygN6VRzXy+/igCvLPO 3s5Um2cfuoLJ8HThXxKHc12daoSGla8lCDhhr4ONF+dirmTnSG6bJ1aR/4xWN6xjzwfIc44xDZI FDtbZAF3rXG0MtxzCnruNP5uXjKKIQDLQ7UZ0EjOU1ASw7O6AS/t31jz2ix4n/LWGSUB7DyE+dc bm/HQSaJUue+BQA== 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-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 Eng= ine + +maintainers: + - Ruud Derwig + +description: | + This binding describes the Synopsys DWC Security Protocol Accelerator (S= PAcc), + 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-map= ped + 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 ident= ify + 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 =3D "snps,nsimosci-hs-spacc"; + reg =3D <0x40000000 0x3FFFF>; + interrupts =3D <28>; + clocks =3D <&clock>; + snps,spacc-internal-counter =3D <0x20000>; + snps,vspacc-id =3D <0>; + }; --=20 2.25.1