From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f170.google.com (mail-pg1-f170.google.com [209.85.215.170]) (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 CBB881E0B9C for ; Mon, 11 May 2026 06:38:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778481525; cv=none; b=sYPSQw+V4s9B9L0qucRSpqZcAyvPptCBJVb3aurngLoQ1zYmUi4TOsoLIn5Wq3qd3RmLm/G+LTYdBkrw75DAQ9ZoUwN/Vpn+q70oUBJ3n6oUxtUMWJq2fxNq5MTfvldJfmiAoaJWJ2MhUVHZxd5XOGTw/cxMaThRcu8Spl8otj0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778481525; c=relaxed/simple; bh=yvzklUqCUgxletwdYULmVQM5JhvPwFFqwslMNk2qNBI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Y9HaCmzq2D/aMNwHl7KrEMcEBTi15SKGbYOOMOrl6khqgWbNSJZe6h6u30gy37GZm6rpv/s4zXbETSCV0zHGTGDdBkAbV+2M36zKHWE4kWoINZ6kv/dWCF59laUSSf38AvaJxuTcAyqNciTq7glCnAibM5EHf+WjgrbmQtLhSM0= 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=DQvh9Mr1; arc=none smtp.client-ip=209.85.215.170 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="DQvh9Mr1" Received: by mail-pg1-f170.google.com with SMTP id 41be03b00d2f7-c8027e876fcso1486967a12.1 for ; Sun, 10 May 2026 23:38:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778481523; x=1779086323; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=VrHfqxO5zQWaRSbwjGtMUupsuspxAHrjR7FaYDhyfhQ=; b=DQvh9Mr11ioBD7Qh5Zv/GsK30h3KOBPLIjDm6eDBoFfBJHd8RoxHB0qF7JOX/aGl9n t+clAais7K91HagNelKRmt0Qmhn5U7YT8wJ4rpLAKzTZ+np4npTmyDjAgx2+lm4vSTRg YQen+ekmDeutAcXVzfGMMevESBIclHx4hKeHuzBWSa0rBEy65FmQ0d/XdiFXGyU33+w+ mE3TEvw6+1DacUX5gq4Q0un4YAwXGTJMHh73E7OqZh1Po45MQXkf7GrhUMrO/FRPx11p R8j14n7yXvN2iBhNBI8+4/X7z85MdH4iS6ke9XXvYtrWT3c9qRQak+WHf2rDEu86qXKO 4vlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778481523; x=1779086323; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=VrHfqxO5zQWaRSbwjGtMUupsuspxAHrjR7FaYDhyfhQ=; b=KWoSqLVJ4PmzNTLLJHDlmd3J1H0/jP0MPVIETCDS1Xsi9T0JYqmOti7h0KaVDtp9Ft woMR9ErvIr5mN0ZRvyakdp0XLoMhz4GfzpNd7TcjCncXd3vx/V4aR+qPkXtUykEbrYM4 aIe/XmQCfb7etRe/jzpd6YONUtQws4WqnmwACYfaVHZRs4v373GSFr4nvYDZYnPdc04c qR1+KZ6IlT+632GYT+c9MSsTMrTvzwLx8fbffET6a9Gq0Km7zv3AukqDRWVbmy6oN0lw ZrEnXdOGVrvfPrGVWnsRtI6W3RKf8MJlVNFIx+1vUwFVpCmnQ0ptNFyr6fvN5zWOBLej J3hw== X-Forwarded-Encrypted: i=1; AFNElJ8FEHaJ3Hv+NdGhowssUsXjCFqR5ZYwKEf7l2wSYCQjuV5JAC25nGcJtJ7vsfxDQ2ZIgLWNpGlpejs2@vger.kernel.org X-Gm-Message-State: AOJu0YzZFoEhfCdYVW3C6tKyMy4TyBs77nhjcYab7Z9KBuv1xiLkdOZg gHa3go4X6yzskYRwtKWa7ouXUxIfN3uPfr78gTQNjJDVZLLVVymIm8Us X-Gm-Gg: Acq92OHXiBp6e7GAEtwKY1AAwPw2QHjIq/4AG6fv6eUJcZOFWlZ1fjEMpCPRJBLQv3O 9bk3tT2g6ypmOYudWVhqycrAB4nRQJPgLv9KtPmVb4NoRbg0h/Ypvso4AbMebE1njkZX/kK/6mC w2aEQEgdN0WXg/2EoyN4KrTG9Spn1Ld1pzoQovzenlqDNSwXLzK4jCvqPRy+Q33rfOGnx4X0vFA 4eM1wJMpJUibTGpPxREIgXKz1rC+rMF7EurKqip+m40sFKVPD/L7VeE+KY8fdHaSFYvySEvEih/ ocxt+M1ZVImqHqciph9PQ5VzyY88SdJ1QOrU3ItKi0GJ45GpgwqPCfFhUo3c1nMmjMVxqoZkb1x BIzT3KEis/VGazmSdqjkOP43vGYMsiUCRk/ivM+t3OrEzD4hfm3i3yWHMy3X7c1Hp6rhaLpNmQG TcDUVKZttUbYFJEcVMR/Bgog8= X-Received: by 2002:a05:6a21:9983:b0:3a2:7ef4:81df with SMTP id adf61e73a8af0-3aa5ab71a24mr24213272637.26.1778481523036; Sun, 10 May 2026 23:38:43 -0700 (PDT) Received: from localhost ([2001:19f0:8001:1b2d:5400:5ff:fefa:a95d]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-c826767be0csm8409174a12.2.2026.05.10.23.38.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 May 2026 23:38:42 -0700 (PDT) From: Inochi Amaoto To: Eugeniy Paltsev , Vinod Koul , Frank Li , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen Wang , Inochi Amaoto , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Alexander Sverdlin , Longbin Li , Yixun Lan , "Anton D. Stavinskii" Cc: dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, sophgo@lists.linux.dev, linux-riscv@lists.infradead.org, Yixun Lan Subject: [PATCH v6 0/2] riscv: sophgo: allow DMA multiplexer set channel number for DMA controller Date: Mon, 11 May 2026 14:38:15 +0800 Message-ID: <20260511063818.463877-1-inochiama@gmail.com> X-Mailer: git-send-email 2.54.0 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit As the DMA controller on Sophgo CV1800 series SoC only has 8 channels, the SoC provides a dma multiplexer to reuse the DMA channel. However, the dma multiplexer also controlls the DMA interrupt multiplexer, which means that the dma multiplexer needs to know the channel number. Change the DMA phandle args parsing logic so it can use handshake number as channel number if necessary. This patch series add fallback compatiable according to the disscussion. Link: https://lore.kernel.org/all/MA5PR01MB1250079A8884D4F6245B955B9FE51A@MA5PR01MB12500.INDPRD01.PROD.OUTLOOK.COM Change from v5: - https://lore.kernel.org/all/20260426012921.673953-1-inochiama@gmail.com 1. Add dt-bindings patch for fallback compatiable 2. patch 2: Adapt the binding change. Change from v4: - https://lore.kernel.org/all/20260225104042.1138901-1-inochiama@gmail.com/ 1. drop patch 1 and patch 2 as they are merged 2. Add ABI break statement and clarification for this patch. Change from v3: - https://lore.kernel.org/all/20260120013706.436742-1-inochiama@gmail.com/ 1. rebase to v7.0-rc1 2. patch 1: Apply Conor's tag 3. patch 2: Apply Frank's tag Change from v2: - https://lore.kernel.org/all/20251214224601.598358-1-inochiama@gmail.com/ 1. patch 2: rename "AXI_DMA_FLAG_HANDSHAKE_AS_CHAN" to "ARG0_AS_CHAN" Change from v1: - https://lore.kernel.org/all/20251212020504.915616-1-inochiama@gmail.com/ 1. rebase to v6.19-rc1 2. patch 1: remove a comment placed in wrong place. 3. patch 2: fix typo in comments. 4. patch 2: initialize chan as NULL in dw_axi_dma_of_xlate. Inochi Amaoto (2): dt-bindings: dma: snps,dw-axi-dmac: Add fallback compatible for CV1800B riscv: dts: sophgo: cv180x: Allow the DMA multiplexer to set channel number for DMA controller Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml | 5 +++-- arch/riscv/boot/dts/sophgo/cv180x.dtsi | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) -- 2.54.0