-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[Question] Clock ID (mailbox property interface) of EMMC2 #1179
Comments
Looks like it doesn't currently. Let me see if it can be added. |
See: raspberrypi/firmware#1167 firmware: arm_loader: Support CLOCK_EMMC2 from GET_CLOCK_RATE See: raspberrypi/firmware#1179 firmware: arm_loader: Force word alignment for the DTB See: raspberrypi/firmware#1175 firmware: clock_2711: don't set reserved values for KA in PLL KAIP registers firmware: Assorted minor fixes for tvservice -o
Latest rpi-update firmware has support for this. Use clock id=12 for emmc2. |
That is definitely a good point @lategoodbye . Also in my case the dts was incorrectly using the old address for the SD card interface. |
@lategoodbye there is also another bit that might be missing. The kernel uses a 1.8 regulator for the emmc2 interface. |
I'm not sure what you meant with old address of the SD card interface. The emmc2 is an additional interface (3rd), so we need to extend the driver with an additional compatible for the emmc2 interface. Yes, the 1.8 regulator new but not essential for booting. |
@mbgg might be interested |
@lategoodbye that's basically what I meant. I'll make the changes, test and push to the same branch. |
@popcornmix , can you also confirm the power device id? |
There is no separate power domain for emmc2. It will be powered as long as arm is running. |
Thanks @popcornmix . I asked because I thought my current issue is somehow related to that. What happens is that the arm hangs as soon as I reset sdhci (0x2F). I've checked the ioaddr and it is |
This clock has a different mbox ID[1] so have this included in the relevant header file. [1] raspberrypi/firmware#1179 Signed-off-by: Andrei Gherzan <[email protected]>
This clock has a different mbox ID[1] so have this included in the relevant header file. [1] raspberrypi/firmware#1179 Signed-off-by: Andrei Gherzan <[email protected]>
I've just added EMMC2 to https://github.com/raspberrypi/firmware/wiki/Mailbox-property-interface#clocks P.S. Hello @agherzan 👋 |
@lurch Nice. Thanks. |
With some help from @mbgg https://github.com/agherzan/u-boot/tree/ag/rpi4 now contains support for both 32 and 64bit Raspberry Pi 4. |
Nice work - congratulations! |
This clock has a different mbox ID[1] so have this included in the relevant header file. [1] raspberrypi/firmware#1179 Signed-off-by: Andrei Gherzan <[email protected]>
This clock has a different mbox ID[1] so have this included in the relevant header file. [1] raspberrypi/firmware#1179 Signed-off-by: Andrei Gherzan <[email protected]>
This clock has a different mbox ID[1] so have this included in the relevant header file. [1] raspberrypi/firmware#1179 Signed-off-by: Andrei Gherzan <[email protected]>
This clock has a different mbox ID[1] so have this included in the relevant header file. [1] raspberrypi/firmware#1179 Signed-off-by: Andrei Gherzan <[email protected]>
This clock has a different mbox ID[1] so have this included in the relevant header file. [1] raspberrypi/firmware#1179 Signed-off-by: Andrei Gherzan <[email protected]>
This clock has a different mbox ID[1] so have this included in the relevant header file. [1] raspberrypi/firmware#1179 Signed-off-by: Andrei Gherzan <[email protected]>
Closing this issue as questions answered/issue resolved. |
Firmware versions starting from 2019-07-08 feature an additional clock ID. See raspberrypi/firmware#1179 Version 0.11. Tagged as 'BCMSupport-0_11'
Firmware versions starting from 2019-07-08 feature an additional clock ID. See raspberrypi/firmware#1179 Version 0.11. Tagged as 'BCMSupport-0_11'
Firmware versions starting from 2019-07-08 feature an additional clock ID. See raspberrypi/firmware#1179 Version 0.11. Tagged as 'BCMSupport-0_11'
Firmware versions starting from 2019-07-08 feature an additional clock ID. See raspberrypi/firmware#1179 Version 0.11. Tagged as 'BCMSupport-0_11'
Firmware versions starting from 2019-07-08 feature an additional clock ID. See raspberrypi/firmware#1179 Version 0.11. Tagged as 'BCMSupport-0_11'
Firmware versions starting from 2019-07-08 feature an additional clock ID. See raspberrypi/firmware#1179 Version 0.11. Tagged as 'BCMSupport-0_11'
Is the the clock of the EMMC2 interface on the Pi 4 accessible via mailbox property interface (at least "Get clock rate" 0x00030002)?
Which ID does the clock have?
The text was updated successfully, but these errors were encountered: