kernel-brax3-ubuntu-touch/arch/arm64/boot/dts/mediatek/k6853v1_64_gki.dts
erascape f319b992b1 kernel-5.15: Initial import brax3 UT kernel
* halium configs enabled

Signed-off-by: erascape <erascape@proton.me>
2025-09-23 15:17:10 +00:00

514 lines
10 KiB
Text

// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/*
* Copyright (C) 2020 MediaTek Inc.
* Author: Chun-Hung Wu <chun-hung.wu@mediatek.com>
*/
/dts-v1/;
/plugin/;
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/pinctrl/mt6853-pinfunc.h>
#include <dt-bindings/clock/mt8192-clk.h>
&gpio_usage_mapping {
GPIO_FDD_BAND_SUPPORT_DETECT_1ST_PIN = <&pio 37 0>;
GPIO_FDD_BAND_SUPPORT_DETECT_2ND_PIN = <&pio 38 0>;
GPIO_FDD_BAND_SUPPORT_DETECT_3RD_PIN = <&pio 39 0>;
GPIO_SIM1_HOT_PLUG = <&pio 77 0>;
GPIO_SIM2_SCLK = <&pio 119 0>;
GPIO_SIM2_SRST = <&pio 120 0>;
GPIO_SIM2_SIO = <&pio 121 0>;
GPIO_SIM1_SIO = <&pio 122 0>;
GPIO_SIM1_SRST = <&pio 123 0>;
GPIO_SIM1_SCLK = <&pio 124 0>;
GPIO_RF_PWREN_RST_PIN = <&pio 171 0>;
};
&gpio{
gpio_init_default = <0 0 0 0 1 0 1>,
<1 0 0 0 1 1 1>,
<2 0 0 0 1 1 1>,
<3 0 0 0 1 0 1>,
<4 0 0 0 1 1 1>,
<5 0 0 0 1 0 1>,
<6 0 1 0 1 0 1>,
<7 0 1 0 1 0 1>,
<8 7 0 0 1 0 1>,
<9 0 0 0 1 1 1>,
<10 0 0 0 1 1 1>,
<11 0 1 0 1 0 1>,
<12 2 0 0 1 0 1>,
<13 2 0 0 1 0 1>,
<14 0 0 0 1 1 1>,
<15 0 1 0 1 0 1>,
<16 7 0 0 1 0 1>,
<17 7 0 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0 1>,
<90 1 1 0 0 0 1>,
<91 0 0 0 1 0 1>,
<92 0 1 0 1 0 1>,
<93 0 1 0 1 0 1>,
<94 0 1 0 1 0 1>,
<95 1 0 0 1 0 1>,
<96 1 0 0 1 0 1>,
<97 1 0 0 1 1 1>,
<98 1 0 0 1 1 1>,
<99 2 0 0 1 1 1>,
<100 2 0 0 1 1 1>,
<101 1 0 0 1 1 1>,
<102 1 0 0 1 1 1>,
<103 1 0 0 1 1 1>,
<104 1 0 0 1 1 1>,
<105 1 0 0 1 1 1>,
<106 1 0 0 1 1 1>,
<107 0 0 0 1 0 1>,
<108 0 0 0 1 0 1>,
<109 1 0 0 1 1 1>,
<110 1 0 0 1 1 1>,
<111 7 0 0 1 0 1>,
<112 7 0 0 1 0 1>,
<113 1 0 0 1 1 1>,
<114 1 0 0 1 1 1>,
<115 1 0 0 0 0 1>,
<116 1 0 0 0 0 1>,
<117 1 0 0 0 0 1>,
<118 1 0 0 0 0 1>,
<119 1 0 0 0 0 1>,
<120 1 0 0 0 0 1>,
<121 1 0 0 1 1 1>,
<122 1 0 0 1 1 1>,
<123 1 0 0 0 0 1>,
<124 1 0 0 0 0 1>,
<125 1 0 0 0 0 1>,
<126 1 0 0 1 1 1>,
<127 1 0 0 1 1 1>,
<128 1 0 0 1 1 1>,
<129 1 0 0 1 1 1>,
<130 1 0 0 1 1 1>,
<131 0 1 0 1 0 1>,
<132 0 1 0 1 0 1>,
<133 0 1 0 1 0 1>,
<134 0 1 0 1 0 1>,
<135 0 1 0 1 0 1>,
<136 0 1 1 1 0 1>,
<137 0 1 0 1 0 1>,
<138 0 1 0 1 0 1>,
<139 0 1 0 1 0 1>,
<140 0 1 0 1 0 1>,
<141 2 0 0 1 0 1>,
<142 2 0 0 1 0 1>,
<143 1 0 0 0 0 1>,
<144 1 0 0 0 0 1>,
<145 1 0 0 0 0 1>,
<146 1 0 0 0 0 1>,
<147 1 0 0 0 0 1>,
<148 1 0 0 0 0 1>,
<149 1 0 0 1 0 1>,
<150 1 0 0 1 0 1>,
<151 1 0 0 1 0 1>,
<152 1 0 0 0 0 1>,
<153 1 0 0 0 0 1>,
<154 1 0 0 0 0 1>,
<155 1 0 0 0 0 1>,
<156 1 0 0 0 0 1>,
<157 1 0 0 0 0 1>,
<158 1 0 0 0 0 1>,
<159 1 0 0 1 0 1>,
<160 1 0 0 1 0 1>,
<161 1 0 0 1 0 1>,
<162 1 0 0 0 0 0>,
<163 1 0 0 1 0 0>,
<164 1 0 0 1 0 1>,
<165 1 0 0 1 0 1>,
<166 1 0 0 0 0 1>,
<167 1 0 0 0 0 1>,
<168 1 0 0 0 0 1>,
<169 1 0 0 0 0 1>,
<170 1 0 0 0 0 1>,
<171 0 1 1 0 0 1>,
<172 1 0 0 0 0 1>,
<173 1 0 0 0 0 1>,
<174 1 0 0 0 0 1>,
<175 1 0 0 0 0 1>,
<176 1 0 0 0 0 1>,
<177 1 0 0 0 0 1>,
<178 1 0 0 0 0 1>,
<179 1 0 0 0 0 1>,
<180 1 0 0 0 0 1>,
<181 1 0 0 0 0 1>,
<182 1 0 0 0 0 1>,
<183 1 0 0 0 0 1>,
<184 1 0 0 0 0 1>,
<185 1 0 0 0 0 1>,
<186 1 0 0 0 0 1>,
<187 1 0 0 0 0 1>,
<188 1 0 0 0 0 0>,
<189 1 0 0 1 0 0>,
<190 1 0 0 0 0 0>,
<191 1 0 0 1 0 0>,
<192 0 0 0 1 0 1>,
<193 0 0 0 1 0 1>,
<194 0 0 0 1 0 1>,
<195 0 0 0 1 0 1>,
<196 0 0 0 1 0 1>,
<197 0 0 0 1 0 1>,
<198 0 0 0 1 0 1>,
<199 0 0 0 1 0 1>,
<200 0 0 0 1 0 1>,
<201 0 0 0 1 0 1>,
<202 0 0 0 1 0 1>,
<203 0 0 0 1 0 0>,
<204 0 0 0 1 0 0>,
<205 0 0 0 1 0 0>,
<206 0 0 0 1 0 0>,
<207 0 0 0 1 0 0>,
<208 0 0 0 1 0 0>,
<209 0 0 0 1 0 0>,
<210 0 0 0 1 0 0>,
<211 0 0 0 1 0 0>;
};
&chosen {
atag,videolfb-fb_base_l = <0x7e605000>;
atag,videolfb-fb_base_h = <0x0>;
atag,videolfb-islcmfound = <1>;
atag,videolfb-islcm_inited = <0>;
atag,videolfb-fps= <6000>;
atag,videolfb-vramSize= <0x1be0000>;
atag,videolfb-lcmname=
"td4330_fhdp_dsi_vdo_auo_rt5081_drv";
};
&pio {
mtkfb_pins_lcd_bias_enp1: lcd_bias_enp1_gpio {
pins_cmd_dat {
pinmux = <PINMUX_GPIO137__FUNC_GPIO137>;
slew-rate = <1>;
output-high;
};
};
mtkfb_pins_lcd_bias_enp0: lcd_bias_enp0_gpio {
pins_cmd_dat {
pinmux = <PINMUX_GPIO137__FUNC_GPIO137>;
slew-rate = <1>;
output-low;
};
};
mtkfb_pins_lcd_bias_enn1: lcd_bias_enn1_gpio {
pins_cmd_dat {
pinmux = <PINMUX_GPIO138__FUNC_GPIO138>;
slew-rate = <1>;
output-high;
};
};
mtkfb_pins_lcd_bias_enn0: lcd_bias_enn0_gpio {
pins_cmd_dat {
pinmux = <PINMUX_GPIO138__FUNC_GPIO138>;
slew-rate = <1>;
output-low;
};
};
mtkfb_pins_lcm_rst_out1_gpio: lcm_rst_out1_gpio {
pins_cmd_dat {
pinmux = <PINMUX_GPIO86__FUNC_GPIO86>;
slew-rate = <1>;
output-high;
};
};
mtkfb_pins_lcm_rst_out0_gpio: lcm_rst_out0_gpio {
pins_cmd_dat {
pinmux = <PINMUX_GPIO86__FUNC_GPIO86>;
slew-rate = <1>;
output-low;
};
};
mtkfb_pins_lcm_dsi_te: lcm_dsi_te {
pins_cmd_dat {
pinmux = <PINMUX_GPIO84__FUNC_DSI_TE>;
};
};
};
&mtkfb {
pinctrl-names = "lcd_bias_enp1_gpio", "lcd_bias_enp0_gpio",
"lcd_bias_enn1_gpio", "lcd_bias_enn0_gpio",
"lcm_rst_out1_gpio", "lcm_rst_out0_gpio",
"mode_te_te";
pinctrl-0 = <&mtkfb_pins_lcd_bias_enp1>;
pinctrl-1 = <&mtkfb_pins_lcd_bias_enp0>;
pinctrl-2 = <&mtkfb_pins_lcd_bias_enn1>;
pinctrl-3 = <&mtkfb_pins_lcd_bias_enn0>;
pinctrl-4 = <&mtkfb_pins_lcm_rst_out1_gpio>;
pinctrl-5 = <&mtkfb_pins_lcm_rst_out0_gpio>;
pinctrl-6 = <&mtkfb_pins_lcm_dsi_te>;
status = "okay";
};
&dispsys_config {
pinctrl-names =
"lcm_rst_out1_gpio", "lcm_rst_out0_gpio",
"mode_te_te";
pinctrl-0 = <&mtkfb_pins_lcm_rst_out1_gpio>;
pinctrl-1 = <&mtkfb_pins_lcm_rst_out0_gpio>;
pinctrl-2 = <&mtkfb_pins_lcm_dsi_te>;
status = "okay";
};
&dsi0 {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
panel1@0 {
compatible = "nt35695b,auo,vdo";
reg = <0>;
pm-enable-gpios = <&pio 84 0>;
reset-gpios = <&pio 86 0>;
bias-gpios = <&pio 137 0>,
<&pio 138 0>;
pinctrl-names = "default";
port {
panel_in1: endpoint {
remote-endpoint = <&dsi_out>;
};
};
};
panel2@0 {
compatible = "nt36672a,rt4801,vdo";
reg = <1>;
pm-enable-gpios = <&pio 84 0>;
reset-gpios = <&pio 86 0>;
bias-gpios = <&pio 137 0>,
<&pio 138 0>;
pinctrl-names = "default";
port {
panel_in2: endpoint {
remote-endpoint = <&dsi_out>;
};
};
};
panel3@0 {
compatible = "truly,td4330,vdo";
reg = <2>;
pm-enable-gpios = <&pio 84 0>;
reset-gpios = <&pio 86 0>;
bias-gpios = <&pio 137 0>,
<&pio 138 0>;
pinctrl-names = "default";
port {
panel_in3: endpoint {
remote-endpoint = <&dsi_out>;
};
};
};
ports {
port {
dsi_out: endpoint {
remote-endpoint = <&panel_in1>;
};
};
};
};
&dsi_te {
interrupt-parent = <&pio>;
interrupts = <84 1 84 1>;
status = "okay";
};
&i2c6 {
mt6660: mt6660@34 {
compatible = "mediatek,mt6660";
#sound-dai-cells = <0>;
reg = <0x34>;
status = "okay";
};
};
&sound {
mediatek,speaker-codec {
sound-dai = <&mt6660>;
};
};
#include "mediatek/cust_mt6853_camera.dtsi"
/* CONSYS GPIO standardization */
&pio {
consys_pins_default: consys_default {
};
gpslna_pins_init: gpslna@0 {
pins_cmd_dat {
pinmux = <PINMUX_GPIO87__FUNC_GPIO87>;
output-low;
};
};
gpslna_pins_oh: gpslna@1 {
pins_cmd_dat {
pinmux = <PINMUX_GPIO87__FUNC_GPS_L1_ELNA_EN>;
};
};
gpslna_pins_ol: gpslna@2 {
pins_cmd_dat {
pinmux = <PINMUX_GPIO87__FUNC_GPIO87>;
output-low;
};
};
};
&consys {
pinctrl-names = "default", "gps_lna_state_init",
"gps_lna_state_oh", "gps_lna_state_ol";
pinctrl-0 = <&consys_pins_default>;
pinctrl-1 = <&gpslna_pins_init>;
pinctrl-2 = <&gpslna_pins_oh>;
pinctrl-3 = <&gpslna_pins_ol>;
status = "okay";
};
/* CONSYS end */
&pdc {
pd_vbus_upper_bound = <12000000>;
};
/* usb typec mux */
&pio {
c1_active: c1_high {
pins_cmd_dat {
pinmux = <PINMUX_GPIO41__FUNC_GPIO41>;
output-high;
};
};
c2_active: c2_highz {
pins_cmd_dat {
pinmux = <PINMUX_GPIO40__FUNC_GPIO40>;
input-enable;
bias-disable;
};
};
c1_sleep: c1_low {
pins_cmd_dat {
pinmux = <PINMUX_GPIO41__FUNC_GPIO41>;
output-low;
};
};
c2_sleep: c2_low {
pins_cmd_dat {
pinmux = <PINMUX_GPIO40__FUNC_GPIO40>;
output-low;
};
};
sel_up: sel_high {
pins_cmd_dat {
pinmux = <PINMUX_GPIO11__FUNC_GPIO11>;
output-high;
};
};
sel_down: sel_low {
pins_cmd_dat {
pinmux = <PINMUX_GPIO11__FUNC_GPIO11>;
output-low;
};
};
sw_enable: sw_enable {
pins_cmd_dat {
pinmux = <PINMUX_GPIO132__FUNC_GPIO132>;
output-low;
};
};
sw_disable: sw_disable {
pins_cmd_dat {
pinmux = <PINMUX_GPIO132__FUNC_GPIO132>;
output-low;
};
};
};
&ptn36241g {
pinctrl-names = "c1_active", "c1_sleep",
"c2_active", "c2_sleep";
pinctrl-0 = <&c1_active>;
pinctrl-1 = <&c1_sleep>;
pinctrl-2 = <&c2_active>;
pinctrl-3 = <&c2_sleep>;
status = "okay";
};
&fusb304 {
pinctrl-names = "sel_up", "sel_down",
"enable", "disable";
pinctrl-0 = <&sel_up>;
pinctrl-1 = <&sel_down>;
pinctrl-2 = <&sw_enable>;
pinctrl-3 = <&sw_disable>;
status = "okay";
};
#include "mediatek/cust_mt6853_touch_1080x1920.dtsi"
/*End of this file, DO NOT ADD ANYTHING HERE*/