Lines Matching +full:orientation +full:- +full:gpios
1 // SPDX-License-Identifier: GPL-2.0-only
3 * Device Tree nodes common for all GS101-based Pixel
5 * Copyright 2021-2023 Google LLC
6 * Copyright 2023 Linaro Ltd - <peter.griffin@linaro.org>
9 /dts-v1/;
11 #include <dt-bindings/gpio/gpio.h>
12 #include <dt-bindings/input/input.h>
13 #include <dt-bindings/usb/pd.h>
14 #include "gs101-pinctrl.h"
25 stdout-path = &serial_0;
28 framebuffer0: framebuffer-0 {
29 compatible = "simple-framebuffer";
30 memory-region = <&cont_splash_mem>;
36 gpio-keys {
37 compatible = "gpio-keys";
38 pinctrl-0 = <&key_voldown>, <&key_volup>, <&key_power>;
39 pinctrl-names = "default";
41 button-vol-down {
44 gpios = <&gpa7 3 GPIO_ACTIVE_LOW>;
45 wakeup-source;
48 button-vol-up {
51 gpios = <&gpa8 1 GPIO_ACTIVE_LOW>;
52 wakeup-source;
55 button-power {
58 gpios = <&gpa10 1 GPIO_ACTIVE_LOW>;
59 wakeup-source;
63 reboot-mode {
64 compatible = "nvmem-reboot-mode";
65 nvmem-cells = <&nvmem_reboot_mode>;
66 nvmem-cell-names = "reboot-mode";
67 mode-bootloader = <0x800000fc>;
68 mode-charge = <0x8000000a>;
69 mode-dm-verity-device-corrupted = <0x80000050>;
70 mode-fastboot = <0x800000fa>;
71 mode-reboot-ab-update = <0x80000052>;
72 mode-recovery = <0x800000ff>;
73 mode-rescue = <0x800000f9>;
74 mode-shutdown-thermal = <0x80000051>;
75 mode-shutdown-thermal-battery = <0x80000051>;
79 reg_placeholder: regulator-0 {
80 compatible = "regulator-fixed";
81 regulator-name = "placeholder_reg";
85 ufs_0_fixed_vcc_reg: regulator-1 {
86 compatible = "regulator-fixed";
87 regulator-name = "ufs-vcc";
89 regulator-boot-on;
90 enable-active-high;
93 reserved-memory {
97 no-map;
105 compatible = "samsung,s2mpg10-pmic";
106 interrupts-extended = <&gpa0 6 IRQ_TYPE_LEVEL_LOW>;
107 pinctrl-names = "default";
108 pinctrl-0 = <&pmic_int>;
109 system-power-controller;
110 wakeup-source;
118 clock-frequency = <24576000>;
122 clock-frequency = <200000000>;
138 usb-typec@25 {
139 compatible = "maxim,max77759-tcpci", "maxim,max33359";
141 interrupts-extended = <&gpa8 2 IRQ_TYPE_LEVEL_LOW>;
142 pinctrl-0 = <&typec_int>;
143 pinctrl-names = "default";
146 compatible = "usb-c-connector";
147 label = "USB-C";
148 data-role = "dual";
149 power-role = "dual";
150 self-powered;
151 try-power-role = "sink";
152 op-sink-microwatt = <2600000>;
153 slow-charger-loop;
159 source-pdos = <PDO_FIXED(5000, 900,
164 sink-pdos = <PDO_FIXED(5000, 3000,
171 sink-vdos = <VDO_IDH(1, 1, IDH_PTYPE_PERIPH, 0,
187 sink-vdos-v1 = <VDO_IDH(1, 1, IDH_PTYPE_PERIPH, 0,
195 pd-disable;
196 typec-power-opmode = "default";
199 #address-cells = <1>;
200 #size-cells = <0>;
206 remote-endpoint = <&usbdrd31_phy_orien_switch>;
214 remote-endpoint = <&usbdrd31_dwc3_role_switch>;
225 pinctrl-0 = <&if_pmic_int>;
226 pinctrl-names = "default";
227 interrupts-extended = <&gpa8 3 IRQ_TYPE_LEVEL_LOW>;
229 interrupt-controller;
230 #interrupt-cells = <2>;
233 compatible = "maxim,max77759-gpio";
235 gpio-controller;
236 #gpio-cells = <2>;
238 * "Human-readable name [SIGNAL_LABEL]" where the
241 gpio-line-names = "OTG boost [OTG_BOOST_EN]",
244 interrupt-controller;
245 #interrupt-cells = <2>;
248 nvmem-0 {
249 compatible = "maxim,max77759-nvmem";
251 nvmem-layout {
252 compatible = "fixed-layout";
253 #address-cells = <1>;
254 #size-cells = <1>;
256 nvmem_reboot_mode: reboot-mode@0 {
260 boot-reason@4 {
264 shutdown-user-flag@8 {
277 key_voldown: key-voldown-pins {
278 samsung,pins = "gpa7-3";
279 samsung,pin-function = <GS101_PIN_FUNC_EINT>;
280 samsung,pin-pud = <GS101_PIN_PULL_NONE>;
281 samsung,pin-drv = <GS101_PIN_DRV_2_5_MA>;
284 key_volup: key-volup-pins {
285 samsung,pins = "gpa8-1";
286 samsung,pin-function = <GS101_PIN_FUNC_EINT>;
287 samsung,pin-pud = <GS101_PIN_PULL_NONE>;
288 samsung,pin-drv = <GS101_PIN_DRV_2_5_MA>;
291 typec_int: typec-int-pins {
292 samsung,pins = "gpa8-2";
293 samsung,pin-function = <GS101_PIN_FUNC_EINT>;
294 samsung,pin-pud = <GS101_PIN_PULL_UP>;
295 samsung,pin-drv = <GS101_PIN_DRV_2_5_MA>;
298 if_pmic_int: if-pmic-int-pins {
299 samsung,pins = "gpa8-3";
300 samsung,pin-function = <GS101_PIN_FUNC_EINT>;
301 samsung,pin-pud = <GS101_PIN_PULL_UP>;
302 samsung,pin-drv = <GS101_PIN_DRV_2_5_MA>;
307 pmic_int: pmic-int-pins {
308 samsung,pins = "gpa0-6";
309 samsung,pin-function = <GS101_PIN_FUNC_EINT>;
310 samsung,pin-pud = <GS101_PIN_PULL_NONE>;
313 key_power: key-power-pins {
314 samsung,pins = "gpa10-1";
315 samsung,pin-function = <GS101_PIN_FUNC_EINT>;
316 samsung,pin-pud = <GS101_PIN_PULL_NONE>;
317 samsung,pin-drv = <GS101_PIN_DRV_2_5_MA>;
327 vcc-supply = <&ufs_0_fixed_vcc_reg>;
335 vdd10-supply = <®_placeholder>;
336 vdd33-supply = <®_placeholder>;
342 usb-role-switch;
343 role-switch-default-mode = "peripheral";
344 maximum-speed = "super-speed-plus";
349 remote-endpoint = <&usbc0_role_sw>;
355 orientation-switch;
357 pll-supply = <®_placeholder>;
358 dvdd-usb20-supply = <®_placeholder>;
359 vddh-usb20-supply = <®_placeholder>;
360 vdd33-usb20-supply = <®_placeholder>;
361 vdda-usbdp-supply = <®_placeholder>;
362 vddh-usbdp-supply = <®_placeholder>;
367 remote-endpoint = <&usbc0_orien_sw>;
373 samsung,clkreq-on; /* needed for UART mode */
388 timeout-sec = <30>;