Dzmitry Sankouski | 4e6df40 | 2021-10-17 13:44:32 +0300 | [diff] [blame] | 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" |
Dzmitry Sankouski | aaf13b9 | 2023-04-01 12:28:43 +0300 | [diff] [blame] | 12 | #include <dt-bindings/gpio/gpio.h> |
| 13 | #include <dt-bindings/input/input.h> |
Dzmitry Sankouski | 4e6df40 | 2021-10-17 13:44:32 +0300 | [diff] [blame] | 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 { |
Vladimir Zapolskiy | 5c5e8d4 | 2023-04-21 20:50:41 +0300 | [diff] [blame] | 26 | serial0 = &uart9; |
Dzmitry Sankouski | 4e6df40 | 2021-10-17 13:44:32 +0300 | [diff] [blame] | 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 | |
Dzmitry Sankouski | 8e3bdd5 | 2022-02-22 21:49:53 +0300 | [diff] [blame] | 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 | |
Dzmitry Sankouski | aaf13b9 | 2023-04-01 12:28:43 +0300 | [diff] [blame] | 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 | |
Dzmitry Sankouski | 4e6df40 | 2021-10-17 13:44:32 +0300 | [diff] [blame] | 64 | soc: soc { |
Dzmitry Sankouski | 8e3bdd5 | 2022-02-22 21:49:53 +0300 | [diff] [blame] | 65 | serial@a84000 { |
| 66 | status = "okay"; |
Dzmitry Sankouski | 4e6df40 | 2021-10-17 13:44:32 +0300 | [diff] [blame] | 67 | }; |
| 68 | |
Sumit Garg | 3068b0d | 2022-07-12 12:42:04 +0530 | [diff] [blame] | 69 | pinctrl_north@3900000 { |
Dzmitry Sankouski | 4e6df40 | 2021-10-17 13:44:32 +0300 | [diff] [blame] | 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" |