Files
mkrtos-real/mkrtos_configs/ATSURFF437.dts
2024-12-27 08:25:51 +08:00

63 lines
1.2 KiB
Plaintext

/dts-v1/;
/ {
pin {
compatible = "at32f43x,pin";
regs = <
0x40020000 0x2000 /*GPIO*/
0x40013800 0x400 /*EXINT & SCFG*/
0x40013C00 0x400 /*EXINT & SCFG*/
0x40023800 0x400 /*CRM*/
>;
};
disp {
compatible = "at32f43x,lcd";
regs = <
0xA0000000 0x1000 /*XMC_REG*/
0x40023800 0x400 /*CRM*/
0x60000000 0x100000 /*XMC_MEM*/
>;
/*TODO: pca9555 set*/
/*TODO: pin set*/
};
i2c2:i2c2 {
compatible = "at32f43x,i2c2";
regs = <
0x40023800 0x400 /*CRM*/
0x40005800 0x400 /*I2C2*/
>;
/*TODO: pin set*/
};
pca9555 {
compatible = "at32f43x,pca9555";
regs = <0x40023800 0x400>; /*CRM*/
i2c_addr = <0x40>; /*i2c addr*/
// i2c = <&i2c2>;
i2c = "/i2c2";
};
eth {
compatible = "at32f43x,eth";
regs = <
0x40023800 0x400 /*CRM*/
0x40028000 0x2000 /*EMAC*/
0x40013800 0x400 /*EXINT & SCFG*/
0x40013C00 0x400 /*EXINT & SCFG*/
>;
/*TODO: pin set*/
/*TODO: pca9555 set*/
};
snd {
compatible = "at32f43x,snd";
regs = <
0x40023800 0x400 /*CRM*/
0x40003800 0x400 /*SPI2/I2S2*/
0x40000000 0x20000
/*0x40010400 0x400 TMR8*/
/*0x40017800 0x400 I2S2EXT*/
0x40026400 0x400 /*DMA1_2*/
>;
/*TODO: pin set*/
/*TODO: pca9555 set*/
/*TODO: i2c set*/
};
};