From nobody Sun Feb 8 11:45:13 2026 Received: from mail-io1-f66.google.com (mail-io1-f66.google.com [209.85.166.66]) (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 3D750260565 for ; Mon, 27 Oct 2025 12:55:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.66 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761569714; cv=none; b=LxNHkfRM3aTYG9/FrJjSycHpWbd1yb5d9vjpgqvTxbinYL4RhYInDMexbXz8pV7wnT8LLUulSrl0aFlSsVBuuCDvApPsxMVbPgIqXa52YAnpxcc9pz4oMfa0d4xJCtQw8GRRyXwA18npeihYe3cGCezg06Q6p/2jXyIzlo7Xl6c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761569714; c=relaxed/simple; bh=Kb8uM3f8qILwL0GDllY38o85KB9kJ69KatRC0T8EZTs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Rh4/gavD5iF8CNtQ/aHqcEJHzLb66ppMtS0+hHvZt4WkpLakTRQJRgszl1/bcVD/SMXYtxRBwovxu3QMKQ+R8+kSYMZUAeYvDUTW83uuK0ts6NEBarrLv3TUjBvsUAzf2bIN3g16VvYLE6W/FdnQmbO/W3pKFH0/FGhDP13gVz4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=riscstar.com; spf=pass smtp.mailfrom=riscstar.com; dkim=pass (2048-bit key) header.d=riscstar-com.20230601.gappssmtp.com header.i=@riscstar-com.20230601.gappssmtp.com header.b=exODC324; arc=none smtp.client-ip=209.85.166.66 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=riscstar.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=riscstar.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=riscstar-com.20230601.gappssmtp.com header.i=@riscstar-com.20230601.gappssmtp.com header.b="exODC324" Received: by mail-io1-f66.google.com with SMTP id ca18e2360f4ac-93e8834d80aso187484439f.1 for ; Mon, 27 Oct 2025 05:55:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=riscstar-com.20230601.gappssmtp.com; s=20230601; t=1761569711; x=1762174511; 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=GhpKl/nn+BHTlTr14XOcXWGwJsMuOmqiPlR2ItDHNmo=; b=exODC3241u8WAzsD21msZI35CFcZKgWnLu50wEWERIdbCFC7h74xHfmx+uKH9ocuWF BTn1om1WijRmWF3diGHOp2TLBrKk0iaGE5L2swD9V9XAItH2JwRdAOg4bhx2cDkuvYYp +yluNoDEFYhuY3mHtt79nvrW5sFviBwFKvr9sX5C8dryAcpiR/VZ9PY76twPiHBtpoI9 QGLSeRwmTjaUDGgIdmvNXxW8klmDry8DjdyhmWJ0UyqTQ8B3hZKG4+M5oCkDbBnhOfh6 Gce/qZV1KBuhj5tICzRbP4cUHPOg4u8m3Usk1IULkgiUUnzJfqKg0Phkd24ID9729LiP fR5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761569711; x=1762174511; 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=GhpKl/nn+BHTlTr14XOcXWGwJsMuOmqiPlR2ItDHNmo=; b=Zy5aoEkv0+MyBIaMJ1hP1/iDFjyA3sDtYGeq9ku9Px1VGE82c6BxtNrOYIBo1vkGRX 7OLdEFfqzG2N5cYIEYFG+KYgUBuHK5/mv+IbLYKcqsrpuS2WffV1oFfoxfSJw4cgAGNB GqQWsSYs2sOmJlwEqENqP5MN0ETnx618Q5hJYJ3G07PJvuChRbPHccCIg7CnK7K16FpH y0vefkL4HW02UcFEvUVDTY3mnJw3BOjOVcARbOcyvjjhBU8M7jzytCqpw33bo4Z2Zw1k yfmEzzYFlxnxxtxcZpbdPGGqsyQb33qkgMDYadsk/XfAiJLCQQFO0Y/FIVqp6WizsBHo 1q/w== X-Forwarded-Encrypted: i=1; AJvYcCXkIng0KPtocBSbx0Z0IV7bh/MZW2FjZjAEzY2UW5SQgLm/86jJvujJqiCwQdPkV/mvSfrJO7fTM4F4yyU=@vger.kernel.org X-Gm-Message-State: AOJu0YxXJTabe/BuJcSr4zDGYdUS6ei/lA4EX/rUmcHE3YEl9seSuBD7 4oTs1sjYO7nwC6zvwpLz1a37j2W84wTWdgBUsr2otJ5ZYPBTbvjlh5rQyOo3A/4QxDQ= X-Gm-Gg: ASbGncvgfq+tvkLS7HX9a96Wn2K3JV4Df0evn8sQrm6/fWSiDXSMNB19zlaszx4WwG9 tV0qaebfZXq617sYVcvbzTpPDevGdDsQjHT7NoKZSpKkRnPGM8/BtA0wqrLYBxk1JWzFma/MbVX cctPJ8LJNmbZ+5Cu2qPcYvkrgmzgKM11uTii0QX2qwpljNT5nTHedM4VdfauMQgv4GXTYecDFDd iLlOODS4yPm+9+SIExL0zu+6KseDiHqw1HQBsfv5Xfzm9MllKzO8RBR2ilSGtemgo+Zc7hrB+tu VDRqcuR+azVgxragjIrj0nMjHyEzv0784iMzUOuuofvyrCX8KGJW+EOVPuiGSzNrKYW+Z1Zkfbo wXWtcu9FgGQbrgh+gUHRA98zrHuY+SpJNVtuctox9bjYK7rESVVFVFLCVhONgmo1CoMoxYeOyVH yC0nG+GLPd2HnosdKckh32D0V2J3n2HTM4WP4ag8LC8xz8vDtshEZ2nw== X-Google-Smtp-Source: AGHT+IEZEkJbHyJsLtQ9RwbUNNRM89do/GpofJnj3gjkHzKLnBs02AOz2LkYBC9YjYewuyvy3xtdnw== X-Received: by 2002:a05:6602:c85:b0:945:a198:7726 with SMTP id ca18e2360f4ac-945a1988c63mr751875839f.5.1761569710940; Mon, 27 Oct 2025 05:55:10 -0700 (PDT) Received: from zippy.localdomain (c-75-72-117-212.hsd1.mn.comcast.net. [75.72.117.212]) by smtp.gmail.com with ESMTPSA id ca18e2360f4ac-94359e742efsm249121639f.7.2025.10.27.05.55.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Oct 2025 05:55:10 -0700 (PDT) From: Alex Elder To: broonie@kernel.org, dlan@gentoo.org Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org, linux-spi@vger.kernel.org, spacemit@lists.linux.dev, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Conor Dooley Subject: [PATCH v6 1/3] dt-bindings: spi: add SpacemiT K1 SPI support Date: Mon, 27 Oct 2025 07:55:01 -0500 Message-ID: <20251027125504.297033-2-elder@riscstar.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20251027125504.297033-1-elder@riscstar.com> References: <20251027125504.297033-1-elder@riscstar.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 support for the SPI controller implemented by the SpacemiT K1 SoC. Acked-by: Conor Dooley Reviewed-by: Rob Herring (Arm) Signed-off-by: Alex Elder Acked-by: Troy Mitchell --- .../bindings/spi/spacemit,k1-spi.yaml | 84 +++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spacemit,k1-spi.y= aml diff --git a/Documentation/devicetree/bindings/spi/spacemit,k1-spi.yaml b/D= ocumentation/devicetree/bindings/spi/spacemit,k1-spi.yaml new file mode 100644 index 0000000000000..e82c7f8d0b981 --- /dev/null +++ b/Documentation/devicetree/bindings/spi/spacemit,k1-spi.yaml @@ -0,0 +1,84 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/spacemit,k1-spi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: SpacemiT K1 SoC Serial Peripheral Interface (SPI) + +maintainers: + - Alex Elder + +description: + The SpacemiT K1 SoC implements a SPI controller that has two 32-entry + FIFOs, for transmit and receive. Details are currently available in + section 18.2.1 of the K1 User Manual, found in the SpacemiT Keystone + K1 Documentation[1]. The controller transfers words using PIO. DMA + transfers are supported as well, if both TX and RX DMA channels are + specified, + + [1] https://developer.spacemit.com/documentation + +allOf: + - $ref: /schemas/spi/spi-controller.yaml# + +properties: + compatible: + const: spacemit,k1-spi + + reg: + maxItems: 1 + + clocks: + items: + - description: Core clock + - description: Bus clock + + clock-names: + items: + - const: core + - const: bus + + resets: + maxItems: 1 + + interrupts: + maxItems: 1 + + dmas: + items: + - description: RX DMA channel + - description: TX DMA channel + + dma-names: + items: + - const: rx + - const: tx + +required: + - compatible + - reg + - clocks + - clock-names + - resets + - interrupts + +unevaluatedProperties: false + +examples: + - | + + #include + spi@d401c000 { + compatible =3D "spacemit,k1-spi"; + reg =3D <0xd401c000 0x30>; + #address-cells =3D <1>; + #size-cells =3D <0>; + clocks =3D <&syscon_apbc CLK_SSP3>, + <&syscon_apbc CLK_SSP3_BUS>; + clock-names =3D "core", "bus"; + resets =3D <&syscon_apbc RESET_SSP3>; + interrupts =3D <55>; + dmas =3D <&pdma 20>, <&pdma 19>; + dma-names =3D "rx", "tx"; + }; --=20 2.48.1