Port-arm archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Banana Pi P2-zero card detect issue
Hello,
I have a Banana Pi P2-zero with the Allwinner H3 chip and "BPi P2 ZERO
V1.1" written on the board.
The SD card detect is inverted and it is exactly what is noted in the
DTS files in base and pkgsrc.
&mmc0 {
/*
* There seems to be a discrepancy between how the card-detect
* signal is wired up between the P2 Zero and the M2 Zero, on
* which the P2 Zero is based.
*
* The M2 Zero device tree file claims that early samples of
* the M2 Zero were wired active-low, but that the production
* of the board is wired active-high; as such, the M2 Zero
* device tree uses an active-high signal for card-detect.
*
* However, the P2 Zero has been observed in the wild to have
* an active-low card-detect signal. I don't know if this is
* an early-vs-late situation like the M2 Zero, but for now we
* will configure the card-detect signal to active-low to match
* known samples of the board that exist in the wild.
*/
cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
};
I removed that so the default mmc0 node is taken and compiled a custom
u-boot binary. There is also a DTB in the build directory which I
replaced the one on the boot partition with.
According to the information on this page, the board revision 1.0 is
the one with inverted polarity:
https://github.com/loblik/bananapi-p2-zero-dts
Of course I don´t know the ratio of both revisions, but should this be
changed or a second variant be introduced?
Stephan
Home |
Main Index |
Thread Index |
Old Index