xref: /freebsd/sys/contrib/device-tree/src/arm64/exynos/google/gs101-oriole.dts (revision 7ab1a32cd43cbae61ad4dd435d6a482bbf61cb52)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Oriole Device Tree
4 *
5 * Copyright 2021-2023 Google LLC
6 * Copyright 2023 Linaro Ltd - <peter.griffin@linaro.org>
7 */
8
9/dts-v1/;
10
11#include <dt-bindings/gpio/gpio.h>
12#include <dt-bindings/input/input.h>
13#include "gs101-pinctrl.h"
14#include "gs101.dtsi"
15
16/ {
17	model = "Oriole";
18	compatible = "google,gs101-oriole", "google,gs101";
19
20	aliases {
21		serial0 = &serial_0;
22	};
23
24	chosen {
25		/* Bootloader expects bootargs specified otherwise it crashes */
26		bootargs = "";
27		stdout-path = &serial_0;
28	};
29
30	gpio-keys {
31		compatible = "gpio-keys";
32		pinctrl-names = "default";
33		pinctrl-0 = <&key_voldown>, <&key_volup>, <&key_power>;
34
35		button-vol-down {
36			label = "KEY_VOLUMEDOWN";
37			linux,code = <KEY_VOLUMEDOWN>;
38			gpios = <&gpa7 3 GPIO_ACTIVE_LOW>;
39			wakeup-source;
40		};
41
42		button-vol-up {
43			label = "KEY_VOLUMEUP";
44			linux,code = <KEY_VOLUMEUP>;
45			gpios = <&gpa8 1 GPIO_ACTIVE_LOW>;
46			wakeup-source;
47		};
48
49		button-power {
50			label = "KEY_POWER";
51			linux,code = <KEY_POWER>;
52			gpios = <&gpa10 1 GPIO_ACTIVE_LOW>;
53			wakeup-source;
54		};
55	};
56};
57
58&ext_24_5m {
59	clock-frequency = <24576000>;
60};
61
62&ext_200m {
63	clock-frequency = <200000000>;
64};
65
66&pinctrl_far_alive {
67	key_voldown: key-voldown-pins {
68		samsung,pins = "gpa7-3";
69		samsung,pin-function = <GS101_PIN_FUNC_EINT>;
70		samsung,pin-pud = <GS101_PIN_PULL_NONE>;
71		samsung,pin-drv = <GS101_PIN_DRV_2_5_MA>;
72	};
73
74	key_volup: key-volup-pins {
75		samsung,pins = "gpa8-1";
76		samsung,pin-function = <GS101_PIN_FUNC_EINT>;
77		samsung,pin-pud = <GS101_PIN_PULL_NONE>;
78		samsung,pin-drv = <GS101_PIN_DRV_2_5_MA>;
79	};
80};
81
82&pinctrl_gpio_alive {
83	key_power: key-power-pins {
84		samsung,pins = "gpa10-1";
85		samsung,pin-function = <GS101_PIN_FUNC_EINT>;
86		samsung,pin-pud = <GS101_PIN_PULL_NONE>;
87		samsung,pin-drv = <GS101_PIN_DRV_2_5_MA>;
88	};
89};
90
91&serial_0 {
92	pinctrl-names = "default";
93	pinctrl-0 = <&uart0_bus>;
94	status = "okay";
95};
96
97&usi_uart {
98	samsung,clkreq-on; /* needed for UART mode */
99	status = "okay";
100};
101
102&watchdog_cl0 {
103	timeout-sec = <30>;
104	status = "okay";
105};
106