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 17&keyboard_controller { 18 function-row-physmap = < 19 MATRIX_KEY(0x00, 0x02, 0) /* T1 */ 20 MATRIX_KEY(0x03, 0x02, 0) /* T2 */ 21 MATRIX_KEY(0x02, 0x02, 0) /* T3 */ 22 MATRIX_KEY(0x01, 0x02, 0) /* T4 */ 23 MATRIX_KEY(0x03, 0x04, 0) /* T5 */ 24 MATRIX_KEY(0x02, 0x04, 0) /* T6 */ 25 MATRIX_KEY(0x01, 0x04, 0) /* T7 */ 26 MATRIX_KEY(0x02, 0x09, 0) /* T8 */ 27 MATRIX_KEY(0x01, 0x09, 0) /* T9 */ 28 MATRIX_KEY(0x00, 0x04, 0) /* T10 */ 29 MATRIX_KEY(0x03, 0x09, 0) /* T11 */ 30 >; 31 linux,keymap = < 32 MATRIX_KEY(0x00, 0x02, KEY_BACK) 33 MATRIX_KEY(0x03, 0x02, KEY_REFRESH) 34 MATRIX_KEY(0x02, 0x02, KEY_ZOOM) 35 MATRIX_KEY(0x01, 0x02, KEY_SCALE) 36 MATRIX_KEY(0x03, 0x04, KEY_SYSRQ) 37 MATRIX_KEY(0x02, 0x04, KEY_BRIGHTNESSDOWN) 38 MATRIX_KEY(0x01, 0x04, KEY_BRIGHTNESSUP) 39 MATRIX_KEY(0x02, 0x09, KEY_MUTE) 40 MATRIX_KEY(0x01, 0x09, KEY_VOLUMEDOWN) 41 MATRIX_KEY(0x00, 0x04, KEY_VOLUMEUP) 42 MATRIX_KEY(0x03, 0x09, KEY_SLEEP) 43 CROS_STD_MAIN_KEYMAP 44 >; 45}; 46 47&sound { 48 compatible = "google,sc7180-trogdor"; 49 model = "sc7180-rt5682s-max98357a-1mic"; 50}; 51