1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * Google Pazquel board device tree source 4 * 5 * Copyright 2021 Google LLC. 6 */ 7 8/* This file must be included after sc7180-trogdor.dtsi */ 9#include "sc7180-trogdor-pazquel.dtsi" 10 11&alc5682 { 12 compatible = "realtek,rt5682s"; 13 realtek,dmic1-clk-pin = <2>; 14 realtek,dmic-clk-rate-hz = <2048000>; 15}; 16 17ap_ts_pen_1v8: &i2c4 { 18 clock-frequency = <400000>; 19 status = "okay"; 20 21 ap_ts: touchscreen@10 { 22 compatible = "elan,ekth3915", "elan,ekth3500"; 23 reg = <0x10>; 24 pinctrl-names = "default"; 25 pinctrl-0 = <&ts_int_l>, <&ts_reset_l>; 26 27 interrupt-parent = <&tlmm>; 28 interrupts = <9 IRQ_TYPE_LEVEL_LOW>; 29 30 vcc33-supply = <&pp3300_ts>; 31 vccio-supply = <&pp1800_l10a>; 32 reset-gpios = <&tlmm 8 GPIO_ACTIVE_LOW>; 33 }; 34}; 35 36&keyboard_controller { 37 function-row-physmap = < 38 MATRIX_KEY(0x00, 0x02, 0) /* T1 */ 39 MATRIX_KEY(0x03, 0x02, 0) /* T2 */ 40 MATRIX_KEY(0x02, 0x02, 0) /* T3 */ 41 MATRIX_KEY(0x01, 0x02, 0) /* T4 */ 42 MATRIX_KEY(0x03, 0x04, 0) /* T5 */ 43 MATRIX_KEY(0x02, 0x04, 0) /* T6 */ 44 MATRIX_KEY(0x01, 0x04, 0) /* T7 */ 45 MATRIX_KEY(0x02, 0x09, 0) /* T8 */ 46 MATRIX_KEY(0x01, 0x09, 0) /* T9 */ 47 MATRIX_KEY(0x00, 0x04, 0) /* T10 */ 48 MATRIX_KEY(0x03, 0x09, 0) /* T11 */ 49 >; 50 linux,keymap = < 51 MATRIX_KEY(0x00, 0x02, KEY_BACK) 52 MATRIX_KEY(0x03, 0x02, KEY_REFRESH) 53 MATRIX_KEY(0x02, 0x02, KEY_ZOOM) 54 MATRIX_KEY(0x01, 0x02, KEY_SCALE) 55 MATRIX_KEY(0x03, 0x04, KEY_SYSRQ) 56 MATRIX_KEY(0x02, 0x04, KEY_BRIGHTNESSDOWN) 57 MATRIX_KEY(0x01, 0x04, KEY_BRIGHTNESSUP) 58 MATRIX_KEY(0x02, 0x09, KEY_MUTE) 59 MATRIX_KEY(0x01, 0x09, KEY_VOLUMEDOWN) 60 MATRIX_KEY(0x00, 0x04, KEY_VOLUMEUP) 61 MATRIX_KEY(0x03, 0x09, KEY_SLEEP) 62 CROS_STD_MAIN_KEYMAP 63 >; 64}; 65 66&sound { 67 compatible = "google,sc7180-trogdor"; 68 model = "sc7180-rt5682s-max98357a-1mic"; 69}; 70