Skip to content

Instantly share code, notes, and snippets.

@k0d
Created March 25, 2020 16:37
Show Gist options
  • Save k0d/8eb9b396e54a6a886d0bb7f2c5103ecf to your computer and use it in GitHub Desktop.
Save k0d/8eb9b396e54a6a886d0bb7f2c5103ecf to your computer and use it in GitHub Desktop.
dts macros
gpioc: gpio@40020800 {
compatible = "st,stm32-gpio";
gpio-controller;
#gpio-cells = < 0x2 >;
reg = < 0x40020800 0x400 >;
clocks = < &rcc 0x0 0x4 >;
label = "GPIOC";
phandle = < 0x9 >;
};
fmc: stm32-fmc@a0000000 {
compatible = "st,stm32-fmc";
reg = < 0xa0000000 0x400 >;
data-gpios = < &gpiod 0xe 0x32c >, < &gpiod 0xf 0x32c >, < &gpiod 0x0 0x32c >, < &gpiod 0x1 0x32c >, < &gpioe 0x7 0x32c >, < &gpioe 0x8 0x32c >, < &gpioe 0x9 0x32c >, < &gpioe 0xa 0x32c >, < &gpioe 0xb 0x32c >, < &gpioe 0xc 0x32c >, < &gpioe 0xd 0x32c >, < &gpioe 0xe 0x32c >, < &gpioe 0xf 0x32c >, < &gpiod 0x8 0x32c >, < &gpiod 0x9 0x32c >, < &gpiod 0xa 0x32c >;
address-gpios = < &gpiof 0x0 0x32c >, < &gpiof 0x1 0x32c >, < &gpiof 0x2 0x32c >, < &gpiof 0x3 0x32c >, < &gpiof 0x4 0x32c >, < &gpiof 0x5 0x32c >, < &gpiof 0xc 0x32c >, < &gpiof 0xd 0x32c >, < &gpiof 0xe 0x32c >, < &gpiof 0xf 0x32c >, < &gpiog 0x0 0x32c >, < &gpiog 0x1 0x32c >, < &gpiog 0x4 0x32c >, < &gpiog 0x5 0x32c >;
nbl-gpios = < &gpioe 0x0 0x32c >, < &gpioe 0x1 0x32c >;
sdcke0-gpios = < &gpioc 0x3 0x32c >;
sdnras-gpios = < &gpiof 0xb 0x32c >;
sdclk-gpios = < &gpiog 0x8 0x32c >;
sdncas-gpios = < &gpiog 0xf 0x32c >;
sdne0-gpios = < &gpioh 0x3 0x32c >;
sdnwe-gpios = < &gpioh 0x5 0x32c >;
status = "okay";
label = "FMC";
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment