179 lines
2.6 KiB
Plaintext
179 lines
2.6 KiB
Plaintext
/dts-v1/;
|
|
|
|
#include "dm644x.dtsi"
|
|
|
|
/ {
|
|
model = "sysmobts";
|
|
compatible = "sysmocom,sysmobts";
|
|
|
|
chosen {
|
|
stdout-path = &serial0;
|
|
environment@0 {
|
|
compatible = "barebox,environment";
|
|
device-path = &env;
|
|
};
|
|
};
|
|
|
|
memory {
|
|
reg = <0x80000000 0x10000000>;
|
|
};
|
|
|
|
soc {
|
|
serial0: serial@1c20000 {
|
|
status = "okay";
|
|
};
|
|
|
|
wdt: wdt@1c21000 {
|
|
status = "okay";
|
|
};
|
|
|
|
gpio: gpio@1c67000 {
|
|
status = "okay";
|
|
};
|
|
};
|
|
|
|
nand@0x02000000 {
|
|
status = "okay";
|
|
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
env: partition@0 {
|
|
label = "env";
|
|
reg = <0x0 0x20000>;
|
|
};
|
|
|
|
partition@1 {
|
|
label = "ubl";
|
|
reg = <0x20000 0xa0000>;
|
|
};
|
|
|
|
partition@2 {
|
|
label = "bootloader";
|
|
reg = <0xc0000 0x340000>;
|
|
};
|
|
|
|
partition@3 {
|
|
label = "root";
|
|
reg = <0x400000 0x0>;
|
|
};
|
|
};
|
|
|
|
i2c: i2c {
|
|
compatible = "i2c-gpio";
|
|
gpios = <
|
|
&gpio 44 0 /* sda */
|
|
&gpio 43 0 /* scl */
|
|
>;
|
|
i2c-gpio,sda-open-drain;
|
|
i2c-gpio,scl-open-drain;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
status = "okay";
|
|
|
|
eeprom: eeprom@50 {
|
|
compatible = "24c02";
|
|
reg = <0x50>;
|
|
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
partition@0 {
|
|
label = "state";
|
|
reg = <0x25 0x54>; /* _pad1 in struct sysmobts_eeprom */
|
|
};
|
|
};
|
|
};
|
|
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
|
|
status {
|
|
gpios = <&gpio 29 0>;
|
|
linux,default-trigger = "heartbeat";
|
|
default-state = "off";
|
|
};
|
|
};
|
|
|
|
state: state {
|
|
compatible = "barebox,state";
|
|
magic = <0xaabe52dc>;
|
|
backend-type = "raw";
|
|
backend = &eeprom, "partname:state";
|
|
|
|
bootstate {
|
|
system0 {
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
remaining_attempts {
|
|
reg = <0x0 0x1>;
|
|
type = "uint8";
|
|
};
|
|
priority {
|
|
reg = <0x1 0x1>;
|
|
type = "uint8";
|
|
};
|
|
ok {
|
|
reg = <0x2 0x1>;
|
|
type = "uint8";
|
|
};
|
|
};
|
|
|
|
system1 {
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
remaining_attempts {
|
|
reg = <0x3 0x1>;
|
|
type = "uint8";
|
|
};
|
|
priority {
|
|
reg = <0x4 0x1>;
|
|
type = "uint8";
|
|
};
|
|
ok {
|
|
reg = <0x5 0x1>;
|
|
type = "uint8";
|
|
};
|
|
};
|
|
|
|
rescue {
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
remaining_attempts {
|
|
reg = <0x6 0x1>;
|
|
type = "uint8";
|
|
};
|
|
priority {
|
|
reg = <0x7 0x1>;
|
|
type = "uint8";
|
|
};
|
|
ok {
|
|
reg = <0x8 0x1>;
|
|
type = "uint8";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
bootstate: bootstate {
|
|
compatible = "barebox,bootstate";
|
|
backend-type = "state";
|
|
backend = <&state>;
|
|
|
|
system0 {
|
|
default_attempts = <3>;
|
|
};
|
|
|
|
system1 {
|
|
default_attempts = <3>;
|
|
};
|
|
|
|
rescue {
|
|
default_attempts = <3>;
|
|
};
|
|
};
|
|
};
|