From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (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 6FE8626462E; Tue, 10 Jun 2025 20:12:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749586359; cv=none; b=BrYvoxpQN+yGRzqzEoLilIfTytaQH7Rja/Tc8R2S0gfrvrN+XJyEaVdDxjhiLcn3x8+2imzwxIhNbn86RKqXlA6SWFWv6glgnShfEYVESyk1FHrMFNxbbcZreG+DHHRnqs0mKYPkRspCSHKa6gVHp824Ix2hb0HMkat1ADzNU4E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749586359; c=relaxed/simple; bh=dRGYA29R0nHCfdeul2TQ9F7JoFvBPbdmzyiO2CDhfcc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=FDGzlKXvHx8dAc5gBHKovgA+ZdqHIkWPO97RD5EpFIxXSEHQcsJCO0VQZ/dTQP9TxPotT8URgIazbYR4fjfhg6iIr8JKvjwrCvvWPE3afaFnsq8kqHVHmLgIC2u+EThKM1WkqmKfC5bK7tbrkrXRCn6dsv7YiWFXGSvVbE6Mmuc= 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=gG7PtFiW; arc=none smtp.client-ip=209.85.221.53 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="gG7PtFiW" Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-3a35c894313so5202731f8f.2; Tue, 10 Jun 2025 13:12:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1749586356; x=1750191156; 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=6wXuQ0VlRw4xeAGCSUgQnm/1pPPb1xh3dx2heNqSZYs=; b=gG7PtFiWc5ED+LNrXRgsZaNjOyCnndoNuf2QXgsWNE+hJnecOqVV4hU89pXgktckRo C/RShL2xRqeuQ74VV/jYwHrKTCIykiHk0eBel+NDZL19vYz5d8iSsjWg45i/brlbWz78 Q1eS7GYwPdAVYjS19zc8hoccl+nF729/5HBYKS2VRmE29qUc0RPOS3LZ8SdUtx5KNyQt VdrPb/dsdDITEyOvFsJrqYusZwCO0nm0R+C2thApbKOKaPedJehRBk/9FNyN/3hBwBJW HSdEnwHjCZ32Jjrhp/CpMcMmtAMAMIW1kQB7z2skP7FbQgQEFdYq0dAX2o9b5wLIi81V vpmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749586356; x=1750191156; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6wXuQ0VlRw4xeAGCSUgQnm/1pPPb1xh3dx2heNqSZYs=; b=jAuahuFsPKLbeBeduVrd9gfOj8zGLbJSLswtl1uvMp29yItxsxlIQBoc+PMclCrkgL dDNV4nXk7helNIeYW/9w1XV2Oxc5qTHuzdZy5+lD1pGh70fV2yAAgkU9/77zHCf9fxAh ofelQwULBrSIgZAk+0WPnRwKs9PxisrfRhDesbe8FX4vru6d05dzXf8ppSIk7qOQwiLg cManQsvm+2XZjnN8sqUs99mLdbcoR1icRCyHSOyIDc1fZLPH++6TkigAiQaBVOiFv7zX xbbqF2rhT2SNWMv03u6/3CzMjpqobsMY9X7hy7Savs3nPi1pJxYlvb1Aix26flrVEKl+ iXeQ== X-Forwarded-Encrypted: i=1; AJvYcCWYi2fNfcsOm5PQwbNBnVA3w+RgIsvpBspURO3xyU/WN0x2fhgVpoU3z6kqnudEocVZPcsUIXWZXz+lDQgs@vger.kernel.org, AJvYcCXIm+Po/3ZScYjc9FhfGidtyMBPYxuwB/ebKPtN4ZmzMg7Q1zt6HtHXct0D/cr1/0n/U+tftPivK3BN@vger.kernel.org X-Gm-Message-State: AOJu0YwdnmZeMLnKwIIzY0T4+CUULh+A8lPr7JzJ9ZVjGsFqgU83eBAZ saO1MV2ADSSKNnrJjoCgwZBlcgqusTZv/54f5+VKoDrAcbahBImyh+cR X-Gm-Gg: ASbGnctD9VMeR54rQiSBm8xK2UJ90KeOLtYB49c54dihKhhg2A8ySNx4YshEi6tOkO9 DtV7oLePh/GHBeRDIS9YRni1qlkKdyu0hsB890xXWP/791k9+7BNLQS8OOdNrT0pdIOBdO2ryJx tXWER/REYWMZyD+NS1LC5F1yTaG+1DRdJuYrlX1PsECdbevObCAtM0ZVb2EV+2bJm/kkhjUJpoG dsryAUDgbz91WP2t5wLJH8B1YA2Ps8NU/LXHE6NILw+oH315e6CNyno8spG5YYRq1a1Gfgb/ZiC g/ZeEaoIF0Figtwa5ndCWe8aS6yBVd5GgT/IrOjO9bgF0Vg6dJUO2gQwWiA7WVfVOkCYHL2JcOQ = X-Google-Smtp-Source: AGHT+IF7ZtZQchjXHit9dQu+Isc3qU7RROUr0beDeSQ4CVfjUtS/qF2Z56VOPyuF7ZV8Vzq7V130lg== X-Received: by 2002:a05:6000:40d9:b0:3a5:2e84:cc7b with SMTP id ffacd0b85a97d-3a5586c30a7mr339272f8f.11.1749586355592; Tue, 10 Jun 2025 13:12:35 -0700 (PDT) Received: from giga-mm.. ([2a02:1210:8608:9200:82ee:73ff:feb8:99e3]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a532462d93sm13434970f8f.91.2025.06.10.13.12.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Jun 2025 13:12:35 -0700 (PDT) From: Alexander Sverdlin To: sophgo@lists.linux.dev, soc@lists.linux.dev Cc: Alexander Sverdlin , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen Wang , Inochi Amaoto , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Catalin Marinas , Will Deacon , Arnd Bergmann , Jisheng Zhang , Haylen Chu , Chao Wei , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v7 0/6] arm64 support for Milk-V Duo Module 01 EVB Date: Tue, 10 Jun 2025 22:12:13 +0200 Message-ID: <20250610201241.730983-1-alexander.sverdlin@gmail.com> X-Mailer: git-send-email 2.49.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This series adds very basic support for Milk-V Duo Module 01 EVB [1] in arm64 mode. The SoC (SG2000) is dual-arch, RiscV and ARM64, the latter has been chosen because the upstream toolchain can be utilized. Sophgo SG2000 seems to be a continuation of the Cvitek CV18xx series, same peripherals with an addition of ARM64 core. Therefore it would be beneficial not to copy-paste the peripherals' device-tree, but rather split the most suitable riscv DT into ARCH-specific and peripherals parts and just include the latter on the arm64 side. This series adds the device-tree for Milk-V Duo Module 01 EVB, which in turn contains Milk-V Duo Module 01 (separate .dtsi) on it, which has SG2000 SoC inside (separate .dtsi). This series has been tested with Sophgo-provided U-Boot binary [2]: it boots from SD card; pinctrl, serial, GPIO drivers are functional (same as for RiscV-based CV18xx SoCs). Partial SoC documentation is available [3]. This series lacks the support of: - USB - Audio - Ethernet - WiFi - Bluetooth - eMMC - Video Changelog: v7: - dropped all reset stuff again; it will come independently in [5] and is fully compatible; - rebase onto sophgo [6] for-next (3a8cef361be5) (almost v6.16-rc1) v6: - rebase onto sophgo/for-next (108a76779829) - dropped first patch refactoring RiscV counterpart (equivalent present in sophgo/for-next) - added cpu_on/cpu_off properties into psci node - added reset-controller node, compatible comes in [4] v5: - PSCI node in DT v4: - minimized patch 1/7 (cleanups dropped) - cv18xx-cpu-intc.dtsi instead of cv18xx-cpu.dtsi+cv18xx-intc.dtsi in patch 1/7 v3: - &cpus node has been moved into cv18xx-cpu.dtsi, &plic and &clint nodes were moved into cv18xx-intc.dtsi to reduce code duplication; v2: - dropped all patches related to the new reboot driver and corresponding DT and bindings; - grouped DT-related and config-related patches together; - added patch moving sophgo.yaml from riscv into soc (to share it with ARM); added SG2000 SoC and Milk-V Duo Module 01 EVB into it; - other changes are documented in the corresponding patches; [1] https://milkv.io/docs/duo/getting-started/duo-module-01 [2] https://github.com/milkv-duo/duo-buildroot-sdk-v2/releases/ [3] https://github.com/sophgo/sophgo-doc/releases/download/sg2000-trm-v1.01/sg2000_trm_en.pdf [4] https://lore.kernel.org/sophgo/20250609230417.620089-1-alexander.sverdlin@gmail.com/ [5] https://lore.kernel.org/all/20250608232214.771855-1-inochiama@gmail.com/ [6] https://github.com/sophgo/linux.git Alexander Sverdlin (6): dt-bindings: soc: sophgo: Move SoCs/boards from riscv into soc, add SG2000 arm64: dts: sophgo: Add initial SG2000 SoC device tree arm64: dts: sophgo: Add Duo Module 01 arm64: dts: sophgo: Add Duo Module 01 Evaluation Board arm64: Add SOPHGO SOC family Kconfig support arm64: defconfig: Enable rudimentary Sophgo SG2000 support .../{riscv => soc/sophgo}/sophgo.yaml | 7 +- arch/arm64/Kconfig.platforms | 6 ++ arch/arm64/boot/dts/Makefile | 1 + arch/arm64/boot/dts/sophgo/Makefile | 2 + .../sophgo/sg2000-milkv-duo-module-01-evb.dts | 31 +++++++ .../sophgo/sg2000-milkv-duo-module-01.dtsi | 85 ++++++++++++++++++ arch/arm64/boot/dts/sophgo/sg2000.dtsi | 86 +++++++++++++++++++ arch/arm64/configs/defconfig | 4 + 8 files changed, 221 insertions(+), 1 deletion(-) rename Documentation/devicetree/bindings/{riscv => soc/sophgo}/sophgo.yaml (81%) create mode 100644 arch/arm64/boot/dts/sophgo/Makefile create mode 100644 arch/arm64/boot/dts/sophgo/sg2000-milkv-duo-module-01-evb.dts create mode 100644 arch/arm64/boot/dts/sophgo/sg2000-milkv-duo-module-01.dtsi create mode 100644 arch/arm64/boot/dts/sophgo/sg2000.dtsi -- 2.49.0