~funderscore blog cgit wiki get in touch
aboutsummaryrefslogtreecommitdiff
blob: eec51d165f98def58c192c270e2e8fc778aef8f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
// SPDX-License-Identifier: GPL-2.0+
/*
 * Samsung S9 SM-G9600 (starqltechn) board device tree source
 *
 * (C) Copyright 2021 Dzmitry Sankouski <dsankouski@gmail.com>
 *
 */

/dts-v1/;

#include "sdm845.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>

/ {
	model = "Samsung S9 (SM-G9600)";
	compatible = "qcom,sdm845-mtp", "qcom,sdm845", "qcom,mtp";
	#address-cells = <2>;
	#size-cells = <2>;

	chosen {
		stdout-path = "serial0:921600n8";
	};

	aliases {
		serial0 = &uart9;
	};

	memory {
		device_type = "memory";
		reg = <0 0x80000000 0 0xfe1bffff>;
	};

	psci {
		compatible = "arm,psci-1.0";
		method = "smc";
	};

	framebuffer: framebuffer@9D400000 {
		compatible = "simple-framebuffer";
		reg = <0 0x9D400000 0 (2960 * 1440 * 4)>;//2400000
		width = <1440>;
		height = <2960>;
		stride = <(1440 * 4)>;
		format = "a8r8g8b8";
	};

	gpio-keys {
		compatible = "gpio-keys";

		key-pwr {
			label = "Power";
			linux,code = <KEY_ENTER>;
			gpios = <&pm8998_pon 0 GPIO_ACTIVE_LOW>;
		};

		key-vol-down {
			label = "Volume Down";
			linux,code = <KEY_DOWN>;
			gpios = <&pm8998_pon 1 GPIO_ACTIVE_LOW>;
		};
	};

	soc: soc {
		serial@a84000 {
			status = "okay";
		};

		pinctrl_north@3900000 {
			muic_i2c: muic_i2c {
				pins = "GPIO_33", "GPIO_34";
				drive-strength = <0x2>;
				function = "gpio";
				bias-disable;
			};
		};
	};
};

#include "starqltechn-uboot.dtsi"