// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (c) 2019 MediaTek Inc. * */ #include #include #include #include #include /dts-v1/; /plugin/; /* chosen */ &chosen { /* fpga may has no lk, we need to specify display info here */ /* fb buffer is reserved using this dts by memory node above */ atag,videolfb-fb_base_h = <0x0>; atag,videolfb-fb_base_l = <0x5e605000>; atag,videolfb-islcmfound = <1>; /* because no lk, so lcm is not inited */ atag,videolfb-islcm_inited = <0>; atag,videolfb-fps= <6000>; atag,videolfb-vramSize= <0x017bb000>; atag,videolfb-lcmname= "nt35521_hd_dsi_vdo_truly_rt5081_drv"; }; &odm { led0:led@0 { compatible = "mediatek,red"; led_mode = <0>; data = <1>; pwm_config = <0 0 0 0 0>; }; led1:led@1 { compatible = "mediatek,green"; led_mode = <0>; data = <1>; pwm_config = <0 0 0 0 0>; }; led2:led@2 { compatible = "mediatek,blue"; led_mode = <0>; data = <1>; pwm_config = <0 0 0 0 0>; }; led3:led@3 { compatible = "mediatek,jogball-backlight"; led_mode = <0>; data = <1>; pwm_config = <0 0 0 0 0>; }; led4:led@4 { compatible = "mediatek,keyboard-backlight"; led_mode = <0>; data = <1>; pwm_config = <0 0 0 0 0>; }; led5:led@5 { compatible = "mediatek,button-backlight"; led_mode = <0>; data = <1>; pwm_config = <0 0 0 0 0>; }; led6:led@6 { compatible = "mediatek,lcd-backlight"; led_mode = <5>; data = <1>; pwm_config = <0 3 0 0 0>; }; vibrator0:vibrator@0 { compatible = "mediatek,vibrator"; vib_timer = <25>; vib_limit = <9>; vib_vol= <9>; }; }; &i2c2 { #address-cells = <1>; #size-cells = <0>; clock-frequency = <400000>; mtk-usb@60 { compatible = "mediatek,mtk-usb"; reg = <0x60>; status = "okay"; }; }; &i2c3 { ext_buck_lp4@57 { regulator-name ="ext_buck_vdd2"; regulator-min-microvolt = <300000>; regulator-max-microvolt = <1300000>; vsel_pin = <0>; }; ext_buck_lp4x@50 { regulator-name ="ext_buck_vddq"; regulator-min-microvolt = <300000>; regulator-max-microvolt = <1300000>; vsel_pin = <1>; }; }; &i2c6 { ext_buck_vgpu@55 { regulator-name ="ext_buck_vgpu"; regulator-min-microvolt = <300000>; regulator-max-microvolt = <1300000>; vsel_pin = <2>; }; }; &keypad { pinctrl-names = "default"; pinctrl-0 = <&kpd_pins_default>; }; &pio { kpd_pins_default: kpdgpiodefault { pins_cmd_dat { pinmux = ; bias-pull-up = ; output-low; input-schmitt-enable; }; }; }; &accdet { accdet-mic-vol = <6>; headset-mode-setting = <0x500 0x500 1 0x1f0 0x800 0x800 0x20 0x44>; accdet-plugout-debounce = <1>; accdet-mic-mode = <1>; headset-eint-level-pol = <8>; headset-three-key-threshold = <0 80 220 400>; headset-three-key-threshold-CDD = <0 121 192 600>; headset-four-key-threshold = <0 58 121 192 400>; pinctrl-names = "default", "state_eint_as_int"; pinctrl-0 = <&accdet_pins_default>; pinctrl-1 = <&accdet_pins_eint_as_int>; status = "okay"; }; &pio { accdet_pins_default: accdetdefault { }; accdet_pins_eint_as_int: accdeteint@0 { pins_cmd_dat { pinmux = ; slew-rate = <0>; bias-disable; }; }; }; &mt6370_pmu { mt6370,intr_gpio_num = <11>; /* direct defined GPIO num */ mt6370,intr_gpio = <&pio 11 0x0>; }; &mt6370_chg { bc12_sel = <1>; }; &i2c3 { rt9465@4b { compatible = "richtek,rt9465"; reg = <0x4b>; status = "okay"; rt,en_gpio_num = <176>; rt,en_gpio = <&pio 176 0x0>; rt,intr_gpio_num = <23>; /* direct defined GPIO num */ rt,intr_gpio = <&pio 23 0x0>; interrupt-names = "wdtmri"; charger_name = "secondary_chg"; ichg = <1500000>; /* uA */ mivr = <4500000>; /* uV */ cv = <4550000>; /* uV */ ieoc = <700000>; /* uA */ safety_timer = <12>; /* hour */ en_st; /* safety timer */ /* en_te; */ en_wdt; }; }; &mt6370_typec { mt6370pd,intr_gpio_num = <41>; /* direct defined GPIO num */ mt6370pd,intr_gpio = <&pio 41 0x0>; }; /* CONSYS GPIO standardization */ &pio { consys_pins_default: consys_default { }; gpslna_pins_init: gpslna@0 { pins_cmd_dat { pinmux = ; slew-rate = <0>; bias-disable; output-low; }; }; gpslna_pins_oh: gpslna@1 { pins_cmd_dat { pinmux = ; slew-rate = <1>; output-high; }; }; gpslna_pins_ol: gpslna@2 { pins_cmd_dat { pinmux = ; slew-rate = <1>; 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 */ /* AUDIO GPIO standardization */ &audgpio { pinctrl-names = "aud_clk_mosi_off", "aud_clk_mosi_on", "aud_clk_miso_off", "aud_clk_miso_on", "aud_dat_mosi_off", "aud_dat_mosi_on", "aud_dat_miso_off", "aud_dat_miso_on", "aud_smartpa_off", "aud_smartpa_on"; pinctrl-0 = <&aud_clk_mosi_off>; pinctrl-1 = <&aud_clk_mosi_on>; pinctrl-2 = <&aud_clk_miso_off>; pinctrl-3 = <&aud_clk_miso_on>; pinctrl-4 = <&aud_dat_mosi_off>; pinctrl-5 = <&aud_dat_mosi_on>; pinctrl-6 = <&aud_dat_miso_off>; pinctrl-7 = <&aud_dat_miso_on>; pinctrl-8 = <&aud_pins_smartpa_off>; pinctrl-9 = <&aud_pins_smartpa_on>; status = "okay"; }; &pio { aud_clk_mosi_off: aud_clk_mosi_off { pins_cmd0_dat { pinmux = ; }; }; aud_clk_mosi_on: aud_clk_mosi_on { pins_cmd0_dat { pinmux = ; }; }; aud_clk_miso_off: aud_clk_miso_off { pins_cmd0_dat { pinmux = ; }; }; aud_clk_miso_on: aud_clk_miso_on { pins_cmd0_dat { pinmux = ; }; }; aud_dat_mosi_off: aud_dat_mosi_off { pins_cmd1_dat { pinmux = ; input-enable; slew-rate = <0>; bias-disable; }; pins_cmd2_dat { pinmux = ; input-enable; slew-rate = <0>; bias-disable; }; }; aud_dat_mosi_on: aud_dat_mosi_on { pins_cmd1_dat { pinmux = ; }; pins_cmd2_dat { pinmux = ; }; }; aud_dat_miso_off: aud_dat_miso_off { pins_cmd1_dat { pinmux = ; input-enable; slew-rate = <0>; bias-disable; }; pins_cmd2_dat { pinmux = ; input-enable; slew-rate = <0>; bias-disable; }; }; aud_dat_miso_on: aud_dat_miso_on { pins_cmd1_dat { pinmux = ; }; pins_cmd2_dat { pinmux = ; }; }; aud_pins_smartpa_off: aud_pins_smartpa_off { pins_cmd0_dat { pinmux = ; }; pins_cmd1_dat { pinmux = ; }; pins_cmd2_dat { pinmux = ; }; pins_cmd3_dat { pinmux = ; }; }; aud_pins_smartpa_on: aud_pins_smartpa_on { pins_cmd0_dat { pinmux = ; }; pins_cmd1_dat { pinmux = ; }; pins_cmd2_dat { pinmux = ; }; pins_cmd3_dat { pinmux = ; }; }; }; /* AUDIO end */ #include #include "cust_mt6761_camera.dtsi" #include "cust_mt6761_touch_720x1280.dtsi" /*End of this file, DO NOT ADD ANYTHING HERE*/