Debian Codegraph @

scripts/dtc/include-prefixes/arm64/exynos/exynos990-c1s.dts

raw
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 <[email protected]>
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 /* TODO: Remove this once PMIC is implemented */
48 reg_dummy: regulator-0 {
49 compatible = "regulator-fixed";
50 regulator-name = "dummy_reg";
51 };
52
53 reserved-memory {
54 #address-cells = <2>;
55 #size-cells = <2>;
56 ranges;
57
58 cont_splash_mem: framebuffer@f1000000 {
59 reg = <0 0xf1000000 0 0x13c6800>;
60 no-map;
61 };
62
63 abox_reserved: audio@f7fb0000 {
64 reg = <0 0xf7fb0000 0 0x2a50000>;
65 no-map;
66 };
67 };
68
69 gpio-keys {
70 compatible = "gpio-keys";
71
72 pinctrl-0 = <&key_power &key_voldown &key_volup>;
73 pinctrl-names = "default";
74
75 power-key {
76 label = "Power";
77 linux,code = <KEY_POWER>;
78 gpios = <&gpa2 4 GPIO_ACTIVE_LOW>;
79 wakeup-source;
80 };
81
82 voldown-key {
83 label = "Volume Down";
84 linux,code = <KEY_VOLUMEDOWN>;
85 gpios = <&gpa0 4 GPIO_ACTIVE_LOW>;
86 };
87
88 volup-key {
89 label = "Volume Up";
90 linux,code = <KEY_VOLUMEUP>;
91 gpios = <&gpa0 3 GPIO_ACTIVE_LOW>;
92 };
93 };
94 };
95
96 &oscclk {
97 clock-frequency = <26000000>;
98 };
99
100 &pinctrl_alive {
101 key_power: key-power-pins {
102 samsung,pins = "gpa2-4";
103 samsung,pin-function = <EXYNOS_PIN_FUNC_EINT>;
104 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
105 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
106 };
107
108 key_voldown: key-voldown-pins {
109 samsung,pins = "gpa0-4";
110 samsung,pin-function = <EXYNOS_PIN_FUNC_EINT>;
111 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
112 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
113 };
114
115 key_volup: key-volup-pins {
116 samsung,pins = "gpa0-3";
117 samsung,pin-function = <EXYNOS_PIN_FUNC_EINT>;
118 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
119 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
120 };
121 };
122
123 &usbdrd {
124 status = "okay";
125 vdd10-supply = <&reg_dummy>;
126 vdd33-supply = <&reg_dummy>;
127 };
128
129 &usbdrd_phy {
130 status = "okay";
131 };