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&hsi2c_8 { 67 status = "okay"; 68 69 eeprom: eeprom@50 { 70 compatible = "atmel,24c08"; 71 reg = <0x50>; 72 }; 73}; 74 75&hsi2c_12 { 76 status = "okay"; 77 /* TODO: add the devices once drivers exist */ 78}; 79 80&pinctrl_far_alive { 81 key_voldown: key-voldown-pins { 82 samsung,pins = "gpa7-3"; 83 samsung,pin-function = <GS101_PIN_FUNC_EINT>; 84 samsung,pin-pud = <GS101_PIN_PULL_NONE>; 85 samsung,pin-drv = <GS101_PIN_DRV_2_5_MA>; 86 }; 87 88 key_volup: key-volup-pins { 89 samsung,pins = "gpa8-1"; 90 samsung,pin-function = <GS101_PIN_FUNC_EINT>; 91 samsung,pin-pud = <GS101_PIN_PULL_NONE>; 92 samsung,pin-drv = <GS101_PIN_DRV_2_5_MA>; 93 }; 94}; 95 96&pinctrl_gpio_alive { 97 key_power: key-power-pins { 98 samsung,pins = "gpa10-1"; 99 samsung,pin-function = <GS101_PIN_FUNC_EINT>; 100 samsung,pin-pud = <GS101_PIN_PULL_NONE>; 101 samsung,pin-drv = <GS101_PIN_DRV_2_5_MA>; 102 }; 103}; 104 105&serial_0 { 106 pinctrl-names = "default"; 107 pinctrl-0 = <&uart0_bus>; 108 status = "okay"; 109}; 110 111&usi_uart { 112 samsung,clkreq-on; /* needed for UART mode */ 113 status = "okay"; 114}; 115 116&usi8 { 117 samsung,mode = <USI_V2_I2C>; 118 status = "okay"; 119}; 120 121&usi12 { 122 samsung,mode = <USI_V2_I2C>; 123 status = "okay"; 124}; 125 126&watchdog_cl0 { 127 timeout-sec = <30>; 128 status = "okay"; 129}; 130