-
Notifications
You must be signed in to change notification settings - Fork 29
[rtl, gpio] Refactor gpio declaration #452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -61,7 +61,7 @@ | |
| size_byte: "0x00000800", | ||
| }], | ||
| }, | ||
| { name: "gpio", // General purpose input and output | ||
| { name: "gpio0", | ||
| type: "device", | ||
| clock: "clk_sys_i", | ||
| reset: "rst_sys_ni", | ||
|
|
@@ -70,7 +70,72 @@ | |
| xbar: false, | ||
| addr_range: [{ | ||
| base_addr: "0x80000000", | ||
| size_byte: "0x00001000", | ||
| size_byte: "0x40", | ||
| }], | ||
| pipeline: true, | ||
| }, | ||
| { name: "gpio1", | ||
| type: "device", | ||
| clock: "clk_sys_i", | ||
| reset: "rst_sys_ni", | ||
| req_fifo_pass: false, | ||
| rsp_fifo_pass: false, | ||
| xbar: false, | ||
| addr_range: [{ | ||
| base_addr: "0x80000040", | ||
| size_byte: "0x40", | ||
| }], | ||
| pipeline: true, | ||
| }, | ||
| { name: "gpio2", | ||
| type: "device", | ||
| clock: "clk_sys_i", | ||
| reset: "rst_sys_ni", | ||
| req_fifo_pass: false, | ||
| rsp_fifo_pass: false, | ||
| xbar: false, | ||
| addr_range: [{ | ||
| base_addr: "0x80000080", | ||
| size_byte: "0x40", | ||
| }], | ||
| pipeline: true, | ||
| }, | ||
| { name: "gpio3", | ||
| type: "device", | ||
| clock: "clk_sys_i", | ||
| reset: "rst_sys_ni", | ||
| req_fifo_pass: false, | ||
| rsp_fifo_pass: false, | ||
| xbar: false, | ||
| addr_range: [{ | ||
| base_addr: "0x800000c0", | ||
| size_byte: "0x40", | ||
| }], | ||
| pipeline: true, | ||
| }, | ||
| { name: "gpio4", | ||
| type: "device", | ||
| clock: "clk_sys_i", | ||
| reset: "rst_sys_ni", | ||
| req_fifo_pass: false, | ||
| rsp_fifo_pass: false, | ||
| xbar: false, | ||
| addr_range: [{ | ||
| base_addr: "0x80000100", | ||
| size_byte: "0x40", | ||
| }], | ||
| pipeline: true, | ||
| }, | ||
| { name: "gpio5", | ||
| type: "device", | ||
| clock: "clk_sys_i", | ||
| reset: "rst_sys_ni", | ||
| req_fifo_pass: false, | ||
| rsp_fifo_pass: false, | ||
| xbar: false, | ||
| addr_range: [{ | ||
| base_addr: "0x80000140", | ||
| size_byte: "0x40", | ||
| }], | ||
| pipeline: true, | ||
| }, | ||
|
|
@@ -313,7 +378,6 @@ | |
| "hyperram", | ||
| "rev_tag", | ||
| "dbg_dev", | ||
| "gpio", | ||
| "pinmux", | ||
| "system_info", | ||
| "rgbled_ctrl", | ||
|
|
@@ -322,6 +386,12 @@ | |
| "timer", | ||
| "spi_lcd", | ||
| "spi_ethmac", | ||
| "gpio0", | ||
| "gpio1", | ||
| "gpio2", | ||
| "gpio3", | ||
| "gpio4", | ||
| "gpio5", | ||
|
Comment on lines
+389
to
+394
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would you be able to move these back up to where the single
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was trying to make it to follow the same rules as uart, spi and i2c where every instance is listed individually.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I mean, move these many instances up to where the single instance used to be in the list
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see, that's not possible without hacking. That's because this file is autogenerated and the order is based on address offset. |
||
| "pwm0", | ||
| "uart0", | ||
| "uart1", | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this being changed? I thought only five of the six GPIOs went through the pinmux
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that this file should not only list IPs that relates to pinmux, but list all IP instances.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then why does CI fail?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it's because the manual changes that I have done in the RTL are wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With @alees24 help, the test now pass. I should also test if the bitstream is correct