xref: /linux/arch/arm64/boot/dts/exynos/exynos990-c1s.dts (revision 7f71507851fc7764b36a3221839607d3a45c2025)
1// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
2/*
3 * Samsung Galaxy Note20 5G (c1s/SM-N981B) device tree source
4 *
5 * Copyright (c) 2024, Igor Belwon <igor.belwon@mentallysanemainliners.org>
6 */
7
8/dts-v1/;
9#include "exynos990.dtsi"
10#include <dt-bindings/gpio/gpio.h>
11#include <dt-bindings/input/input.h>
12#include <dt-bindings/interrupt-controller/irq.h>
13
14/ {
15	model = "Samsung Galaxy Note20";
16	compatible = "samsung,c1s", "samsung,exynos990";
17
18	#address-cells = <2>;
19	#size-cells = <2>;
20
21	chosen {
22		#address-cells = <2>;
23		#size-cells = <2>;
24		ranges;
25
26		framebuffer0: framebuffer@f1000000 {
27			compatible = "simple-framebuffer";
28			reg = <0 0xf1000000 0 (1080 * 2400 * 4)>;
29			width = <1080>;
30			height = <2400>;
31			stride = <(1080 * 4)>;
32			format = "a8r8g8b8";
33		};
34	};
35
36	memory@80000000 {
37		device_type = "memory";
38		reg = <0x0 0x80000000 0x0 0x3ab00000>,
39		      /* Memory hole */
40		      <0x0 0xc1200000 0x0 0x1ee00000>,
41		      /* Memory hole */
42		      <0x0 0xe1900000 0x0 0x1e700000>,
43		      /* Memory hole - last block */
44		      <0x8 0x80000000 0x1 0x7ec00000>;
45	};
46
47	reserved-memory {
48		#address-cells = <2>;
49		#size-cells = <2>;
50		ranges;
51
52		cont_splash_mem: framebuffer@f1000000 {
53			reg = <0 0xf1000000 0 0x13c6800>;
54			no-map;
55		};
56
57		abox_reserved: audio@f7fb0000 {
58			reg = <0 0xf7fb0000 0 0x2a50000>;
59			no-map;
60		};
61	};
62
63	gpio-keys {
64		compatible = "gpio-keys";
65
66		pinctrl-0 = <&key_power &key_voldown &key_volup>;
67		pinctrl-names = "default";
68
69		power-key {
70			label = "Power";
71			linux,code = <KEY_POWER>;
72			gpios = <&gpa2 4 GPIO_ACTIVE_LOW>;
73			wakeup-source;
74		};
75
76		voldown-key {
77			label = "Volume Down";
78			linux,code = <KEY_VOLUMEDOWN>;
79			gpios = <&gpa0 4 GPIO_ACTIVE_LOW>;
80		};
81
82		volup-key {
83			label = "Volume Up";
84			linux,code = <KEY_VOLUMEUP>;
85			gpios = <&gpa0 3 GPIO_ACTIVE_LOW>;
86		};
87	};
88};
89
90&oscclk {
91	clock-frequency = <26000000>;
92};
93
94&pinctrl_alive {
95	key_power: key-power-pins {
96		samsung,pins = "gpa2-4";
97		samsung,pin-function = <EXYNOS_PIN_FUNC_EINT>;
98		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
99		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
100	};
101
102	key_voldown: key-voldown-pins {
103		samsung,pins = "gpa0-4";
104		samsung,pin-function = <EXYNOS_PIN_FUNC_EINT>;
105		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
106		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
107	};
108
109	key_volup: key-volup-pins {
110		samsung,pins = "gpa0-3";
111		samsung,pin-function = <EXYNOS_PIN_FUNC_EINT>;
112		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
113		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
114	};
115};
116