Skip to content

Commit

Permalink
sw: Differentiate device trees
Browse files Browse the repository at this point in the history
  • Loading branch information
paulsc96 committed Mar 14, 2024
1 parent a1f470a commit ff950c1
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 7 deletions.
13 changes: 6 additions & 7 deletions sw/boot/cheshire.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@
/dts-v1/;

/ {

#address-cells = <2>;
#size-cells = <2>;
compatible = "eth,cheshire-dev";
model = "eth,cheshire";

chosen {
chosen: chosen {
#address-cells = <2>;
#size-cells = <2>;
ranges;
Expand All @@ -30,10 +31,12 @@
status = "okay";
};
};

memory@80000000 {
device_type = "memory";
reg = <0x0 0x80000000 0x0 0x40000000>;
};

cpus {
#address-cells = <1>;
#size-cells = <0>;
Expand All @@ -55,6 +58,7 @@
};
};
};

soc: soc {
#address-cells = <2>;
#size-cells = <2>;
Expand Down Expand Up @@ -100,12 +104,6 @@
#address-cells = <1>;
#size-cells = <0>;
};
usb@3008000 {
compatible = "generic-ohci";
reg = <0x0 0x3008000 0x0 0x1000>;
interrupt-parent = <&PLIC0>;
interrupts = <19>;
};
vga@3007000 {
compatible = "eth,axi-vga";
reg = <0x0 0x3007000 0x0 0x1000>;
Expand All @@ -127,4 +125,5 @@
reg = <0x0 0x4000000 0x0 0x4000000>;
};
};

};
25 changes: 25 additions & 0 deletions sw/boot/cheshire.genesys2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,28 @@
disable-wp;
};
};

&soc {
usb@3008000 {
compatible = "generic-ohci";
reg = <0x0 0x3008000 0x0 0x1000>;
interrupt-parent = <&PLIC0>;
interrupts = <19>;
};
};

&chosen {
#address-cells = <2>;
#size-cells = <2>;
ranges;
bootargs = "console=ttyS0,115200 console=tty0";
framebuffer0: framebuffer@A0000000 {
compatible = "simple-framebuffer";
reg = <0x0 0xA0000000 0x0 (640 * 480 * 2)>;
width = <640>;
height = <480>;
stride = <(640 * 2)>;
format = "r5g6b5";
status = "okay";
};
};

0 comments on commit ff950c1

Please sign in to comment.