blob: 1185b712169719872a7246a890997bba2831ff2c [file] [log] [blame]
Dzmitry Sankouski2826cbd2021-10-17 13:44:31 +03001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Qualcomm SDM845 chip device tree source
4 *
5 * (C) Copyright 2021 Dzmitry Sankouski <dsankouski@gmail.com>
6 *
7 */
8
9/dts-v1/;
10
11#include "skeleton64.dtsi"
12
13/ {
14 soc: soc {
15 #address-cells = <1>;
16 #size-cells = <1>;
17 ranges = <0 0 0 0xffffffff>;
18 compatible = "simple-bus";
19
20 gcc: clock-controller@100000 {
21 u-boot,dm-pre-reloc;
22 compatible = "qcom,gcc-sdm845";
23 reg = <0x100000 0x1f0000>;
24 #clock-cells = <1>;
25 #reset-cells = <1>;
26 #power-domain-cells = <1>;
27 };
28
29 gpio_north: gpio_north@3900000 {
30 u-boot,dm-pre-reloc;
31 #gpio-cells = <2>;
32 compatible = "qcom,sdm845-pinctrl";
33 reg = <0x3900000 0x400000>;
34 gpio-count = <150>;
35 gpio-controller;
36 gpio-ranges = <&gpio_north 0 0 150>;
37 gpio-bank-name = "soc_north.";
38 };
39
40 tlmm_north: pinctrl_north@3900000 {
41 u-boot,dm-pre-reloc;
42 compatible = "qcom,tlmm-sdm845";
43 reg = <0x3900000 0x400000>;
44 gpio-count = <150>;
45 gpio-controller;
46 #gpio-cells = <2>;
47 gpio-ranges = <&tlmm_north 0 0 150>;
48
49 /* DEBUG UART */
50 qup_uart9: qup-uart9-default {
51 pinmux {
52 pins = "GPIO_4", "GPIO_5";
53 function = "qup9";
54 };
55 };
56 };
57
58 debug_uart: serial@a84000 {
59 compatible = "qcom,msm-geni-uart";
60 reg = <0xa84000 0x4000>;
61 reg-names = "se_phys";
62 clock-names = "se-clk";
63 clocks = <&gcc 0x58>;
64 pinctrl-names = "default";
65 pinctrl-0 = <&qup_uart9>;
66 qcom,wrapper-core = <0x8a>;
67 status = "disabled";
68 };
69
70 spmi@c440000 {
71 compatible = "qcom,spmi-pmic-arb";
72 reg = <0xc440000 0x1100>,
73 <0xc600000 0x2000000>,
74 <0xe600000 0x100000>;
75 reg-names = "cnfg", "core", "obsrvr";
76 #address-cells = <0x1>;
77 #size-cells = <0x1>;
78
79 qcom,revid@100 {
80 compatible = "qcom,qpnp-revid";
81 reg = <0x100 0x100>;
82 };
83
84 pmic0: pm8998@0 {
85 compatible = "qcom,spmi-pmic";
86 reg = <0x0 0x1>;
87 #address-cells = <0x1>;
88 #size-cells = <0x1>;
89
90 pm8998_pon: pm8998_pon@800 {
91 compatible = "qcom,pm8998-pwrkey";
92 reg = <0x800 0x100>;
93 #gpio-cells = <2>;
94 gpio-controller;
95 gpio-bank-name = "pm8998_key.";
96 };
97
98 pm8998_gpios: pm8998_gpios@c000 {
99 compatible = "qcom,pm8998-gpio";
100 reg = <0xc000 0x1a00>;
101 gpio-controller;
102 gpio-count = <21>;
103 #gpio-cells = <2>;
104 gpio-bank-name = "pm8998.";
105 };
106 };
107
108 pmic1: pm8998@1 {
109 compatible = "qcom,spmi-pmic";
110 reg = <0x1 0x0>;
111 #address-cells = <0x2>;
112 #size-cells = <0x0>;
113 };
114 };
115 };
116};