1// SPDX-License-Identifier: (GPL-2.0 OR MIT) 2/* 3 * Copyright 2022 Google LLC 4 */ 5 6#include <dt-bindings/gpio/gpio.h> 7#include <dt-bindings/spmi/spmi.h> 8 9#include "mt8186-corsola-steelix.dtsi" 10 11/ { 12 chassis-type = "laptop"; 13 14 max98360a: max98360a { 15 compatible = "maxim,max98360a"; 16 sdmode-gpios = <&pio 150 GPIO_ACTIVE_HIGH>; 17 #sound-dai-cells = <0>; 18 }; 19}; 20 21&cpu6 { 22 proc-supply = <&mt6319_buck1>; 23}; 24 25&cpu7 { 26 proc-supply = <&mt6319_buck1>; 27}; 28 29&gpio_keys { 30 status = "disabled"; 31}; 32 33&keyboard_controller { 34 linux,keymap = < 35 MATRIX_KEY(0x00, 0x02, KEY_BACK) 36 MATRIX_KEY(0x03, 0x02, KEY_REFRESH) 37 MATRIX_KEY(0x02, 0x02, KEY_ZOOM) 38 MATRIX_KEY(0x01, 0x02, KEY_SCALE) 39 MATRIX_KEY(0x03, 0x04, KEY_SYSRQ) 40 MATRIX_KEY(0x02, 0x04, KEY_BRIGHTNESSDOWN) 41 MATRIX_KEY(0x01, 0x04, KEY_BRIGHTNESSUP) 42 MATRIX_KEY(0x02, 0x09, KEY_MUTE) 43 MATRIX_KEY(0x01, 0x09, KEY_VOLUMEDOWN) 44 MATRIX_KEY(0x00, 0x04, KEY_VOLUMEUP) 45 CROS_STD_MAIN_KEYMAP 46 >; 47}; 48 49&mt6366_vproc11_reg { 50 status = "disabled"; 51}; 52 53&cluster1_opp_14 { 54 opp-hz = /bits/ 64 <2050000000>; 55 opp-microvolt = <1118750>; 56}; 57 58&cluster1_opp_15 { 59 opp-hz = /bits/ 64 <2200000000>; 60}; 61 62&rt1019p{ 63 status = "disabled"; 64}; 65 66&sound { 67 compatible = "mediatek,mt8186-mt6366-rt5682s-max98360-sound"; 68 status = "okay"; 69 70 spk-hdmi-playback-dai-link { 71 codec { 72 sound-dai = <&it6505dptx>, <&max98360a>; 73 }; 74 }; 75}; 76 77&spmi { 78 pinctrl-names = "default"; 79 pinctrl-0 = <&spmi_pins>; 80 #address-cells = <2>; 81 #size-cells = <0>; 82 status = "okay"; 83 84 pmic@6 { 85 compatible = "mediatek,mt6319-regulator", "mediatek,mt6315-regulator"; 86 reg = <0x6 SPMI_USID>; 87 88 regulators { 89 mt6319_buck1: vbuck1 { 90 regulator-name = "ppvar_dvdd_proc_bc_mt6319"; 91 regulator-min-microvolt = <600000>; 92 regulator-max-microvolt = <1193750>; 93 regulator-enable-ramp-delay = <256>; 94 regulator-allowed-modes = <0 1 2>; 95 regulator-always-on; 96 }; 97 }; 98 }; 99}; 100 101&touchscreen { 102 status = "disabled"; 103}; 104