board: librem5: tps65982: Clear the dead battery flag
- Mar 16, 2022
-
-
Sebastian Krzyszkowiak authored
When TPS65982 boots in a dead battery condition, it expects the host to send a command to clear the dead battery flag once the system is able to provide power from the battery. In dead battery mode, TPS65982 turns off several features like power role switching and operates solely on external power to ensure that the system can stay operational on USB power only. On the Librem 5, the userspace is configured to trigger BQ25895's shipping mode after powering the system off. This means that every time a user connects a charger while the phone is off, TPS65982 detects a dead battery condition. This results in TPS65982 rebooting itself into regular mode once the charger is unplugged. To prevent that, check whether battery voltage is present and gracefully clear the dead battery flag if that's the case. Signed-off-by:
Sebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm>
Verified49f43e18
-
- Feb 14, 2022
-
-
Angus Ainslie authored
Map the older MXC_CSPI_CLK to the newer ESCPI define Signed-off-by:
Angus Ainslie <angus@akkea.ca>
cf03130d
-
- Feb 07, 2022
-
-
Angus Ainslie authored
Signed-off-by:
Angus Ainslie <angus@akkea.ca>
bcc8e244 -
Angus Ainslie authored
The deb should be correctly generated now Signed-off-by:
Angus Ainslie <angus@akkea.ca>
4b6ddc24 -
Angus Ainslie authored
Signed-off-by:
Angus Ainslie <angus@akkea.ca>
fa309d7c
-
- Feb 06, 2022
-
-
Angus Ainslie authored
Save the flash.bin that is produced Signed-off-by:
Angus Ainslie <angus@akkea.ca>
85fa170e
-
- Feb 05, 2022
-
-
Angus Ainslie authored
Check vol down button on boot and change the boot order 1) usb0 2) dhcp 3) mmc1 4) mmc0 <- this is the default boot device Signed-off-by:
Angus Ainslie <angus@akkea.ca>
8fc0d5bd -
Angus Ainslie authored
flash.bin should be used as u-boot.imx Signed-off-by:
Angus Ainslie <angus@akkea.ca>
b81fb819 -
Angus Ainslie authored
Initial commit of Librem5 u-boot and SPL Signed-off-by:
Angus Ainslie <angus@akkea.ca> Co-developed-by:
Sebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm> Signed-off-by:
Sebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm>
90004e62
-
- Feb 03, 2022
-
-
Angus Ainslie authored
The port/hub leaf nodes don't contain the phy definitions in some dts files so check the parents. Signed-off-by:
Angus Ainslie <angus@akkea.ca>
cb5c519e -
Angus Ainslie authored
Put guards around the devres code so that it isn't compiled during the SPL. Signed-off-by:
Angus Ainslie <angus@akkea.ca>
96e75d07 -
Angus Ainslie authored
If u-boot doesn't stop the core when it's finished with it then linux can't find it. Signed-off-by:
Angus Ainslie <angus@akkea.ca>
ea141e77 -
Angus Ainslie authored
The kernel devicetree has definitions for port and hub nodes as subnodes to the USB devices. These subnodes don't contain all of the data required to properly configure the dwc3. Check the parent nodes if the data is not in the port/hub node. Here's an example from the librem5 kernel dts file &usb_dwc3_0 { #address-cells = <1>; #size-cells = <0>; dr_mode = "otg"; snps,dis_u3_susphy_quirk; status = "okay"; port@0 { reg = <0>; typec_hs: endpoint { remote-endpoint = <&usb_con_hs>; }; }; port@1 { reg = <1>; typec_ss: endpoint { remote-endpoint = <&usb_con_ss>; }; }; }; &usb_dwc3_1 { dr_mode = "host"; status = "okay"; #address-cells = <1>; #size-cells = <0>; /* Microchip USB2642 */ hub@1 { compatible = "usb424,2640"; reg = <1>; #address-cells = <1>; #size-cells = <0>; mass-storage@1 { compatible = "usb424,4041"; reg = <1>; }; }; }; Signed-off-by:
Angus Ainslie <angus@akkea.ca>
ba93541c -
Angus Ainslie authored
SION (Software Input On Field) - force the select mode input path Signed-off-by:
Angus Ainslie <angus@akkea.ca>
50ad904b -
Angus Ainslie authored
Update to the 5.16 imx8mq dts files and dt bindings Signed-off-by:
Angus Ainslie <angus@akkea.ca>
45803976 -
Angus Ainslie authored
NXP's mfgtool queies the mmc blocksize and splits a sparse image into blocksize size pieces for the upload. Signed-off-by:
Angus Ainslie <angus@akkea.ca>
fee64857 -
Angus Ainslie authored
When CONFIG_DM_USB is not defined then usb_gadget_initialize is just a call to board_usb_init. Calling board_usb_init twice causes the USB to fail so make sure the second invocation is not compiled in when CONFIG_DM_USB is not defined. Signed-off-by:
Angus Ainslie <angus@akkea.ca>
11bccca8 -
Angus Ainslie authored
Enable turning on USB power for SDP mode Signed-off-by:
Angus Ainslie <angus@akkea.ca>
e14b47c6 -
Angus Ainslie authored
Enable the clocks for spi buses 1 through 3 Signed-off-by:
Angus Ainslie <angus@akkea.ca>
04f13973 -
Angus Ainslie (Purism) authored
With the fuse values in memory we can use some of the other u-boot shell conditonal operators to do tests. Signed-off-by:
Angus Ainslie (Purism) <angus@akkea.ca>
794b63ed -
Angus Ainslie (Purism) authored
Compare a hexval to the fuse value and return pass or fail. Signed-off-by:
Angus Ainslie (Purism) <angus@akkea.ca>
68444501 -
Angus Ainslie authored
Add a JEDEC id for the Winbond W25Q16JV 16M-BIT serial flash memory with DUAL/QUAD SPI Signed-off-by:
Angus Ainslie <angus@akkea.ca>
de8c7f7b -
Angus Ainslie authored
Signed-off-by:
Angus Ainslie <angus@akkea.ca>
ccb1ad0b -
Angus Ainslie authored
Dropped some binaries that don't seem to be in mainline update the version to mainline u-boot 2021.07 + librem5 changes Signed-off-by:
Angus Ainslie <angus@akkea.ca>
4bbc81a1
-