mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-12-06 07:53:30 +01:00
71 lines
1.3 KiB
Diff
71 lines
1.3 KiB
Diff
From: liberodark <liberodark@gmail.com>
|
|
Subject: [PATCH] riscv: dts: spacemit: k3: describe the CoM260 boot NOR flash
|
|
|
|
Same QSPI NOR and partition layout as the Pico-ITX, so the firmware
|
|
partitions show up as MTD devices and can be updated from Linux.
|
|
|
|
Signed-off-by: liberodark <liberodark@gmail.com>
|
|
---
|
|
--- a/arch/riscv/boot/dts/spacemit/k3-com260.dtsi
|
|
+++ b/arch/riscv/boot/dts/spacemit/k3-com260.dtsi
|
|
@@ -277,3 +277,59 @@
|
|
};
|
|
};
|
|
};
|
|
+
|
|
+&qspi_cfg {
|
|
+ qspi-pins {
|
|
+ power-source = <1800>;
|
|
+ };
|
|
+
|
|
+ qspi-cs0-pins {
|
|
+ power-source = <1800>;
|
|
+ };
|
|
+};
|
|
+
|
|
+&qspi {
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&qspi_cfg>;
|
|
+ status = "okay";
|
|
+
|
|
+ flash@0 {
|
|
+ compatible = "jedec,spi-nor";
|
|
+ reg = <0>;
|
|
+ spi-max-frequency = <26500000>;
|
|
+ spi-rx-bus-width = <4>;
|
|
+ spi-tx-bus-width = <4>;
|
|
+ vcc-supply = <&aldo2>; /* PMIC_VCC1V8_QSPI */
|
|
+ m25p,fast-read;
|
|
+
|
|
+ partitions {
|
|
+ compatible = "fixed-partitions";
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <1>;
|
|
+
|
|
+ bootinfo@0 {
|
|
+ reg = <0x0 0x20000>;
|
|
+ };
|
|
+
|
|
+ fsbl@20000 {
|
|
+ reg = <0x20000 0x80000>;
|
|
+ };
|
|
+
|
|
+ env@a0000 {
|
|
+ reg = <0xa0000 0x10000>;
|
|
+ };
|
|
+
|
|
+ esos@b0000 {
|
|
+ reg = <0xb0000 0x100000>;
|
|
+ };
|
|
+
|
|
+ opensbi@1b0000 {
|
|
+ reg = <0x1b0000 0x60000>;
|
|
+ };
|
|
+
|
|
+ uboot@210000 {
|
|
+ reg = <0x210000 0x5f0000>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+};
|