2021-10-17 10:44:31 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
|
|
|
/*
|
|
|
|
* Qualcomm SDM845 chip device tree source
|
|
|
|
*
|
|
|
|
* (C) Copyright 2021 Dzmitry Sankouski <dsankouski@gmail.com>
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
|
|
|
|
2022-07-12 07:12:06 +00:00
|
|
|
#include <dt-bindings/clock/qcom,gcc-sdm845.h>
|
2021-10-17 10:44:31 +00:00
|
|
|
#include "skeleton64.dtsi"
|
|
|
|
|
|
|
|
/ {
|
|
|
|
soc: soc {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
ranges = <0 0 0 0xffffffff>;
|
|
|
|
compatible = "simple-bus";
|
|
|
|
|
|
|
|
gcc: clock-controller@100000 {
|
|
|
|
compatible = "qcom,gcc-sdm845";
|
|
|
|
reg = <0x100000 0x1f0000>;
|
|
|
|
#clock-cells = <1>;
|
|
|
|
#reset-cells = <1>;
|
|
|
|
#power-domain-cells = <1>;
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio_north: gpio_north@3900000 {
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
compatible = "qcom,sdm845-pinctrl";
|
|
|
|
reg = <0x3900000 0x400000>;
|
|
|
|
gpio-count = <150>;
|
|
|
|
gpio-controller;
|
|
|
|
gpio-ranges = <&gpio_north 0 0 150>;
|
|
|
|
gpio-bank-name = "soc_north.";
|
|
|
|
};
|
|
|
|
|
|
|
|
tlmm_north: pinctrl_north@3900000 {
|
2022-07-27 08:22:04 +00:00
|
|
|
compatible = "qcom,sdm845-pinctrl";
|
2021-10-17 10:44:31 +00:00
|
|
|
reg = <0x3900000 0x400000>;
|
|
|
|
gpio-count = <150>;
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
gpio-ranges = <&tlmm_north 0 0 150>;
|
|
|
|
|
|
|
|
/* DEBUG UART */
|
|
|
|
qup_uart9: qup-uart9-default {
|
board: starqltechn: get board usable - add bootcmd and docs
U-boot is intended to replace linux kernel in android boot image(ABL), and
it's FIT payload to replace initramfs file. The boot process is similar to
boot image with linux:
- android bootloader (ABL) unpacks android boot image
- ABL sets `linux,initrd-start property` in chosen node in unpacked FDT
- ABL sets x0 register to FDT address, and passes control to u-boot
- u-boot reads x0 register, and stores it in `prevbl_fdt_addr` env variable
- u-boot reads `linux,initrd-start` property,
and stores it in `prevbl_initrd_start_addr`
In this way, u-boot bootcmd relies on `prevbl_initrd_start_addr` env
variable, and boils down to `bootm $prevbl_initrd_start_addr`.
If more control on boot process is desired, pack a boot script in
FIT image, and put it to default configuration
What done:
- strip unneeded config options
- add FIT image support
- add framebuffer node, u-boot logo and video console
- increase LMB_MAX_REGIONS, to store all linux dtb reserved memory regions
- add linux kernel image header
Uart driver causes hang, when u-boot is used in android boot image instead
of linux. Temporary disable console driver, until investigated and fixed.
Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com>
Cc: Ramon Fried <rfried.dev@gmail.com>
2022-02-22 18:49:53 +00:00
|
|
|
pins = "GPIO_4", "GPIO_5";
|
2022-07-12 07:12:07 +00:00
|
|
|
function = "qup9";
|
2021-10-17 10:44:31 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-04-21 17:50:41 +00:00
|
|
|
qupv3_id_1: geniqup@ac0000 {
|
|
|
|
compatible = "qcom,geni-se-qup";
|
|
|
|
reg = <0x00ac0000 0x6000>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
ranges;
|
|
|
|
|
|
|
|
uart9: serial@a84000 {
|
|
|
|
compatible = "qcom,geni-debug-uart";
|
|
|
|
reg = <0xa84000 0x4000>;
|
|
|
|
clock-names = "se";
|
|
|
|
clocks = <&gcc GCC_QUPV3_WRAP1_S1_CLK>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&qup_uart9>;
|
|
|
|
};
|
2021-10-17 10:44:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
spmi@c440000 {
|
|
|
|
compatible = "qcom,spmi-pmic-arb";
|
|
|
|
reg = <0xc440000 0x1100>,
|
|
|
|
<0xc600000 0x2000000>,
|
|
|
|
<0xe600000 0x100000>;
|
|
|
|
reg-names = "cnfg", "core", "obsrvr";
|
|
|
|
#address-cells = <0x1>;
|
|
|
|
#size-cells = <0x1>;
|
|
|
|
|
|
|
|
qcom,revid@100 {
|
|
|
|
compatible = "qcom,qpnp-revid";
|
|
|
|
reg = <0x100 0x100>;
|
|
|
|
};
|
|
|
|
|
|
|
|
pmic0: pm8998@0 {
|
|
|
|
compatible = "qcom,spmi-pmic";
|
|
|
|
reg = <0x0 0x1>;
|
|
|
|
#address-cells = <0x1>;
|
|
|
|
#size-cells = <0x1>;
|
|
|
|
|
|
|
|
pm8998_pon: pm8998_pon@800 {
|
|
|
|
compatible = "qcom,pm8998-pwrkey";
|
|
|
|
reg = <0x800 0x100>;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
gpio-controller;
|
|
|
|
gpio-bank-name = "pm8998_key.";
|
|
|
|
};
|
|
|
|
|
|
|
|
pm8998_gpios: pm8998_gpios@c000 {
|
|
|
|
compatible = "qcom,pm8998-gpio";
|
|
|
|
reg = <0xc000 0x1a00>;
|
|
|
|
gpio-controller;
|
|
|
|
gpio-count = <21>;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
gpio-bank-name = "pm8998.";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
pmic1: pm8998@1 {
|
|
|
|
compatible = "qcom,spmi-pmic";
|
|
|
|
reg = <0x1 0x0>;
|
|
|
|
#address-cells = <0x2>;
|
|
|
|
#size-cells = <0x0>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|