1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Samsung S9 SM-G9600 (starqltechn) board device tree source
4 *
5 * (C) Copyright 2021 Dzmitry Sankouski <dsankouski@gmail.com>
6 *
7 */
8
9/dts-v1/;
10
11#include "sdm845.dtsi"
12#include <dt-bindings/gpio/gpio.h>
13#include <dt-bindings/input/input.h>
14
15/ {
16	model = "Samsung S9 (SM-G9600)";
17	compatible = "qcom,sdm845-mtp", "qcom,sdm845", "qcom,mtp";
18	#address-cells = <2>;
19	#size-cells = <2>;
20
21	chosen {
22		stdout-path = "serial0:921600n8";
23	};
24
25	aliases {
26		serial0 = &uart9;
27	};
28
29	memory {
30		device_type = "memory";
31		reg = <0 0x80000000 0 0xfe1bffff>;
32	};
33
34	psci {
35		compatible = "arm,psci-1.0";
36		method = "smc";
37	};
38
39	framebuffer: framebuffer@9D400000 {
40		compatible = "simple-framebuffer";
41		reg = <0 0x9D400000 0 (2960 * 1440 * 4)>;//2400000
42		width = <1440>;
43		height = <2960>;
44		stride = <(1440 * 4)>;
45		format = "a8r8g8b8";
46	};
47
48	gpio-keys {
49		compatible = "gpio-keys";
50
51		key-pwr {
52			label = "Power";
53			linux,code = <KEY_ENTER>;
54			gpios = <&pm8998_pon 0 GPIO_ACTIVE_LOW>;
55		};
56
57		key-vol-down {
58			label = "Volume Down";
59			linux,code = <KEY_DOWN>;
60			gpios = <&pm8998_pon 1 GPIO_ACTIVE_LOW>;
61		};
62	};
63
64	soc: soc {
65		serial@a84000 {
66			status = "okay";
67		};
68
69		pinctrl_north@3900000 {
70			muic_i2c: muic_i2c {
71				pins = "GPIO_33", "GPIO_34";
72				drive-strength = <0x2>;
73				function = "gpio";
74				bias-disable;
75			};
76		};
77	};
78};
79
80#include "starqltechn-uboot.dtsi"
81