From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f171.google.com (mail-pg1-f171.google.com [209.85.215.171]) (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 200D2411663 for ; Tue, 9 Jun 2026 19:47:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781034449; cv=none; b=C+N6FZo5lniPL9SuJ/dWVSDeSlWFWP4Ox0Ez9TWHJSNvFxkUcT9f43gf0WRcX+RpKu7u1P9l4qOCP3fFMuF7vFsoobDdX8eyIK9ymRJ3PQRszuqAOS4Nstce9H6sh2FunUnEqKqoBADazOJff6P/1vgO/jJQehdV4wlIPo5E5/M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781034449; c=relaxed/simple; bh=+Pdfi70LkinVFTovJkzCSbIOzEBbKyNKWMr5FgCeZf0=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=B5PCYpRj4eCBzede8QH23CXyyYMMKioAiJJezxqvQwS2zR0k1plNRN7vMKWy22ZVDxxc6rF7FCzSapekBx8iB/xl+3xr9nIfaTsj2YV7XsgHwiR4NqgE15GbNwPEtbH2ha9kGTzrQqg/fRrwaxVJXxBN/9I0jEazwhzXeUNhYB0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=beXv5qU4; arc=none smtp.client-ip=209.85.215.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="beXv5qU4" Received: by mail-pg1-f171.google.com with SMTP id 41be03b00d2f7-c8584e80bd9so2301094a12.3 for ; Tue, 09 Jun 2026 12:47:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1781034443; x=1781639243; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=epRH3P+p1WTs0Qf73mC3lJ/lEpqA5BdU7cFqo7ivRaM=; b=beXv5qU4LCe6B6rTdzOSgY1VfjzFSawZ7cGiLDnnxqI90T9Ctq1dxLA7BE7bhG9lBO arviP8iLneTa6aGeaZ6rWZpP81kpiVLTE5vKUnNfA4CeppSn3/0zZYVGooS9hyNGwpnt UZtClFZKPo1vQexn2W3rLB4TGLfkatlup79hnEyug7ZGQa+nOWPNYhpTKEoK0O7FORor sNpPD3FMb9Zw9uLUXJl59c0315T58Ezh9gX0O2JIAuTqq/CUYkI/gLgonu6uqwjFtzFD 7cF7H8NJm1tvQGYXF4gpEou2REpnQddmWzmaCqem/k0t5YZ3wS+1ysOaWyb4IHzgnVH+ 53VA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781034443; x=1781639243; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=epRH3P+p1WTs0Qf73mC3lJ/lEpqA5BdU7cFqo7ivRaM=; b=Dobhslm+i3RD9Rt+m3v+wiPaLzAZkhfXLLHjNDz9qEHvped4xa8C50PK1A/FpC4BH9 gnDFXCatX/ciY5AnXJj98IdT21Axy7uloYS+4M78HqvlOg90fwUNSVqLHefKALxxbAap 7bHmrHQiatTd1MHf8QWhmulL3cK45butVv8Nun7Wuoy4bPMdQXU6wBKCngDIAUwxkOiz sxTnvq72cANDJm4WCeL3bhwV1QhBcO8x/eBIn6nUVGvNJrE2T3F2Ax1hli1UxzmTjUeZ dIBiCp+naC1W+tW1RFC+IrGXprhkcCmDaIWQ8ltphLiETBIwECrKT8nmLB7WCOdopGBw kgng== X-Gm-Message-State: AOJu0YxbyVTKXmJU7BIjRECxjibl7YmzDU5SxomLHl6uDIQvhFgl/oLO Fy+oyJeTcO2trvhRIreGYT+ZelrM9Ma78stExBWxLaEk5sd40gyfB6/N X-Gm-Gg: Acq92OEqZTJ9lXksxK630QK8lXSvtVW4CdbcSf5M7dOpIp0d0ehHrlwQHN1Lm/LctFA JB+9hoKzm/CVfMVjQgjkdCbv4Qm2Yst+rGcX+BJz2lJb1lLCH5YOyg7PlY12/Dgc8sNk3p8MtF6 UeIJHkJAGKJiWFWGNi4kZkZyW1CDodl19HwJEomms7EP6Pj4dutNmILlQ4O7ol9EA2U/HpFvol3 wjV/7twJPPj/EUcKY7M235afMmp2IdN1ZfeI4dfzVf9AeIrrUo7FsDxxQ6fLzELIXzIvERfiNlT ER6OsNPPPexFvflndV2O+u0xtln3zoepY8IRntQtrtvlKjhB8H3qNSZy8Tx1uQ31CvYGXob1VKS cazvH8SshzijD5RlMQxhJGf346eomhA/S81oa9DEyCvE+BLn8d59RUgnDD53AX35ayjjeg/+3To 5XKdXgu5zZ X-Received: by 2002:a05:6a21:3949:b0:3b4:6026:6c5d with SMTP id adf61e73a8af0-3b4cccfde39mr26226941637.5.1781034442949; Tue, 09 Jun 2026 12:47:22 -0700 (PDT) Received: from [127.0.1.1] ([2a12:a305:4::3060]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-c85df04ff24sm19517121a12.14.2026.06.09.12.47.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jun 2026 12:47:22 -0700 (PDT) From: Guodong Xu Subject: [PATCH v2 0/2] dt-bindings: Add SpacemiT K1 PDMA request-number header and use it in DT Date: Tue, 09 Jun 2026 15:46:37 -0400 Message-Id: <20260609-b4-k1-pdma-req-macros-v2-0-5d5d7b997b54@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAJ1tKGoC/4WNQQ6CMBBFr2K6dsy0SlFX3sOwKO0Ao5Zii0RDu LuAB3D5kvffH0WiyJTEeTOKSAMnDu0MarsRtjFtTcBuZqFQadSYQ3mAu4TOeQORnuCNjSHB0al cO5RKu0rM2y5Sxe+1ey1+nF7ljWy/xBaj4dSH+FmPB7l4/z4GCQhZqcz+lGWIub3U3vBjZ4MXx TRNX5UPZW/MAAAA X-Change-ID: 20260607-b4-k1-pdma-req-macros-8d276d0126df To: Vinod Koul , Frank Li , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Yixun Lan , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti Cc: linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, spacemit@lists.linux.dev, Guodong Xu X-Mailer: b4 0.15.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1594; i=docular.xu@gmail.com; h=from:subject:message-id; bh=+Pdfi70LkinVFTovJkzCSbIOzEBbKyNKWMr5FgCeZf0=; b=owGbwMvMwCXWtEl1Z3CGpCDjabUkhiyN3J0ap2uYnpxhcd+dxnzdfc6yC21LvXott9jc57uh8 GCWkHhiRykLgxgXg6yYIsvhoy3ZW1/5RPs+5/wBM4eVCWQIAxenAEzk30VGhrkzE6YfOzR7l5tW xJPnr3+V1+iWFc9dtzx9/et51/skT4oy/GT8+HZOVUWLybYvGa+5Tme+6Et9eufM0tpDvUn7xM1 dG7kB X-Developer-Key: i=docular.xu@gmail.com; a=openpgp; fpr=90B1DC3DF0BD10FD1227BD6344F254AF42F143EE Currently, K1 device trees specify PDMA peripheral requests as raw numbers. Add a dt-bindings header naming those request lines and convert the current user (the K1 SPI3 node) to the new K1_PDMA_* macros. Patch 1 adds include/dt-bindings/dma/spacemit,k1-pdma.h with the K1_PDMA_* request-number macros. Patch 2 updates the current pdma user (currently spi3) in k1.dtsi to use these request number macros. This patchset is based on dt-for-next of spacemit linux tree. The request number defined in Patch 1 comes from SpacemiT K1 User Manual [1], Chapter 9.4.3 DMA Connectivity & Assignments. [1]: https://www.spacemit.com/community/document/info?lang=en&nodepath=hardware/key_stone/k1/k1_docs/k1_usermanual/9.Top_System.md Changes in v2: - Drop the #dma-cells description change in spacemit,k1-pdma.yaml; the request numbers are hardware-fixed and unused by the driver (Conor) - Link to v1: https://patch.msgid.link/20260607-b4-k1-pdma-req-macros-v1-0-5b2a3955007c@gmail.com BR, Guodong Xu Signed-off-by: Guodong Xu --- Guodong Xu (2): dt-bindings: dmaengine: Add SpacemiT K1 PDMA request numbers riscv: dts: spacemit: Use symbolic PDMA request numbers on K1 arch/riscv/boot/dts/spacemit/k1.dtsi | 3 +- include/dt-bindings/dma/spacemit,k1-pdma.h | 56 ++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+), 1 deletion(-) --- base-commit: 793cc54475b49b5b558902b5c13e4bfe66530a50 change-id: 20260607-b4-k1-pdma-req-macros-8d276d0126df Best regards, -- Guodong Xu