Skip to content
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

ARM64:dts:aspeed Add SPI LCD to Morocco DTS #61

Open
wants to merge 1 commit into
base: integ_sp7
Choose a base branch
from
Open

Conversation

modolaty
Copy link
Collaborator

Add conditional device tree change for adding spi1 LCD device

tested: verified in Morocco platform

Add conditional device tree change for adding spi1 LCD device

tested: verified in Morocco platform

Signed-off-by: modolaty <[email protected]>
oled@0 {
reg = < 0 >; // Chip select 0
compatible = "ssd,ssd1322";
spi-max-frequency = <1000000>; // Adjust the frequency as needed
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the comment if 1MHz is the final value

@@ -188,6 +188,24 @@
};
};

#ifdef LCD_ENABLE
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't use #ifdef. Both the drivers needed to be in memory. However, spi-txrx should be bind by default. In hpm_fpga_update.sh, we need to unbind the spi-txrx and bind flash driver just before updating the hpm fpga flash. After flash is done, unbind spi-flash driver and rebind spi-txrx similar to to how set-apml.sh is being done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants