Skip to content

Commit 6a5713f

Browse files
petegriffinkrzk
authored andcommitted
arm64: dts: exynos: google: Add initial Oriole/pixel 6 board support
Add initial board support for the Pixel 6 phone code named Oriole. This has been tested with a minimal busybox initramfs and boots to a shell. Tested-by: Will McVicker <willmcvicker@google.com> Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org> Signed-off-by: Peter Griffin <peter.griffin@linaro.org> Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com> Link: https://lore.kernel.org/r/20231211162331.435900-16-peter.griffin@linaro.org Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
1 parent ea89fdf commit 6a5713f

3 files changed

Lines changed: 111 additions & 0 deletions

File tree

arch/arm64/boot/dts/exynos/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# SPDX-License-Identifier: GPL-2.0
2+
subdir-y += google
3+
24
dtb-$(CONFIG_ARCH_EXYNOS) += \
35
exynos5433-tm2.dtb \
46
exynos5433-tm2e.dtb \
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
3+
dtb-$(CONFIG_ARCH_EXYNOS) += \
4+
gs101-oriole.dtb \
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
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+
};

0 commit comments

Comments
 (0)