UART3 returns a stream of garbage

This commit is contained in:
Lee Lup Yuen 2023-04-22 14:33:41 +08:00
parent a03d3bf66c
commit f5fc5028d7

View file

@ -1239,41 +1239,41 @@ Why???
- Check PinePhone Device Tree for UART3. What is `pinctrl-0`? PD0 and PD1
```text
serial@1c28c00 {
compatible = "snps,dw-apb-uart";
reg = <0x1c28c00 0x400>;
interrupts = <0x00 0x03 0x04>;
reg-shift = <0x02>;
reg-io-width = <0x04>;
clocks = <0x02 0x46>;
resets = <0x02 0x31>;
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <0x40>;
};
...
pinctrl@1c20800 {
...
uart3-pins {
pins = "PD0\0PD1";
function = "uart3";
phandle = <0x40>;
};
serial@1c28c00 {
compatible = "snps,dw-apb-uart";
reg = <0x1c28c00 0x400>;
interrupts = <0x00 0x03 0x04>;
reg-shift = <0x02>;
reg-io-width = <0x04>;
clocks = <0x02 0x46>;
resets = <0x02 0x31>;
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <0x40>;
};
...
pinctrl@1c20800 {
...
uart3-pins {
pins = "PD0\0PD1";
function = "uart3";
phandle = <0x40>;
};
```
- What does this say about `vbat-bb`? VBAT on PL7
```text
vbat-bb {
compatible = "regulator-fixed";
regulator-always-on;
regulator-name = "vbat-bb";
regulator-min-microvolt = <0x3567e0>;
regulator-max-microvolt = <0x3567e0>;
gpio = <0x3f 0x00 0x07 0x00>;
enable-active-high;
};
```
```text
vbat-bb {
compatible = "regulator-fixed";
regulator-always-on;
regulator-name = "vbat-bb";
regulator-min-microvolt = <0x3567e0>;
regulator-max-microvolt = <0x3567e0>;
gpio = <0x3f 0x00 0x07 0x00>;
enable-active-high;
};
```
- Do we need to program PMIC to enable VBAT? No