1*bc5bf7b1SAnton Bambura// SPDX-License-Identifier: GPL-2.0-only 2*bc5bf7b1SAnton Bambura 3*bc5bf7b1SAnton Bambura/dts-v1/; 4*bc5bf7b1SAnton Bambura 5*bc5bf7b1SAnton Bambura#include "msm8916-wingtech-wt865x8.dtsi" 6*bc5bf7b1SAnton Bambura 7*bc5bf7b1SAnton Bambura/ { 8*bc5bf7b1SAnton Bambura model = "Lenovo A6010 (Wingtech WT86528)"; 9*bc5bf7b1SAnton Bambura compatible = "wingtech,wt86528", "qcom,msm8916"; 10*bc5bf7b1SAnton Bambura chassis-type = "handset"; 11*bc5bf7b1SAnton Bambura 12*bc5bf7b1SAnton Bambura /* left AW8736 */ 13*bc5bf7b1SAnton Bambura speaker_amp_left: audio-amplifier-left { 14*bc5bf7b1SAnton Bambura compatible = "awinic,aw8738"; 15*bc5bf7b1SAnton Bambura 16*bc5bf7b1SAnton Bambura pinctrl-0 = <&spk_ext_pa_left_default>; 17*bc5bf7b1SAnton Bambura pinctrl-names = "default"; 18*bc5bf7b1SAnton Bambura 19*bc5bf7b1SAnton Bambura mode-gpios = <&tlmm 119 GPIO_ACTIVE_HIGH>; 20*bc5bf7b1SAnton Bambura sound-name-prefix = "Speaker Amp L"; 21*bc5bf7b1SAnton Bambura awinic,mode = <3>; 22*bc5bf7b1SAnton Bambura }; 23*bc5bf7b1SAnton Bambura 24*bc5bf7b1SAnton Bambura /* right AW8736 */ 25*bc5bf7b1SAnton Bambura speaker_amp_right: audio-amplifier-right { 26*bc5bf7b1SAnton Bambura compatible = "awinic,aw8738"; 27*bc5bf7b1SAnton Bambura 28*bc5bf7b1SAnton Bambura pinctrl-0 = <&spk_ext_pa_right_default>; 29*bc5bf7b1SAnton Bambura pinctrl-names = "default"; 30*bc5bf7b1SAnton Bambura 31*bc5bf7b1SAnton Bambura mode-gpios = <&tlmm 121 GPIO_ACTIVE_HIGH>; 32*bc5bf7b1SAnton Bambura sound-name-prefix = "Speaker Amp R"; 33*bc5bf7b1SAnton Bambura awinic,mode = <3>; 34*bc5bf7b1SAnton Bambura }; 35*bc5bf7b1SAnton Bambura 36*bc5bf7b1SAnton Bambura gpio-leds { 37*bc5bf7b1SAnton Bambura compatible = "gpio-leds"; 38*bc5bf7b1SAnton Bambura 39*bc5bf7b1SAnton Bambura pinctrl-0 = <&gpio_leds_default>; 40*bc5bf7b1SAnton Bambura pinctrl-names = "default"; 41*bc5bf7b1SAnton Bambura 42*bc5bf7b1SAnton Bambura led-0 { 43*bc5bf7b1SAnton Bambura gpios = <&tlmm 16 GPIO_ACTIVE_LOW>; 44*bc5bf7b1SAnton Bambura label = "red"; 45*bc5bf7b1SAnton Bambura default-state = "off"; 46*bc5bf7b1SAnton Bambura retain-state-suspended; 47*bc5bf7b1SAnton Bambura }; 48*bc5bf7b1SAnton Bambura 49*bc5bf7b1SAnton Bambura led-1 { 50*bc5bf7b1SAnton Bambura gpios = <&tlmm 17 GPIO_ACTIVE_HIGH>; 51*bc5bf7b1SAnton Bambura label = "green"; 52*bc5bf7b1SAnton Bambura default-state = "off"; 53*bc5bf7b1SAnton Bambura retain-state-suspended; 54*bc5bf7b1SAnton Bambura }; 55*bc5bf7b1SAnton Bambura }; 56*bc5bf7b1SAnton Bambura 57*bc5bf7b1SAnton Bambura usb_id: usb-id { 58*bc5bf7b1SAnton Bambura compatible = "linux,extcon-usb-gpio"; 59*bc5bf7b1SAnton Bambura id-gpios = <&tlmm 110 GPIO_ACTIVE_HIGH>; 60*bc5bf7b1SAnton Bambura pinctrl-0 = <&usb_id_default>; 61*bc5bf7b1SAnton Bambura pinctrl-names = "default"; 62*bc5bf7b1SAnton Bambura }; 63*bc5bf7b1SAnton Bambura}; 64*bc5bf7b1SAnton Bambura 65*bc5bf7b1SAnton Bambura&blsp_i2c2 { 66*bc5bf7b1SAnton Bambura magnetometer@c { 67*bc5bf7b1SAnton Bambura compatible = "asahi-kasei,ak09911"; 68*bc5bf7b1SAnton Bambura reg = <0x0c>; 69*bc5bf7b1SAnton Bambura 70*bc5bf7b1SAnton Bambura vdd-supply = <&pm8916_l17>; 71*bc5bf7b1SAnton Bambura vid-supply = <&pm8916_l6>; 72*bc5bf7b1SAnton Bambura }; 73*bc5bf7b1SAnton Bambura 74*bc5bf7b1SAnton Bambura imu@68 { 75*bc5bf7b1SAnton Bambura compatible = "invensense,mpu6880"; 76*bc5bf7b1SAnton Bambura reg = <0x68>; 77*bc5bf7b1SAnton Bambura 78*bc5bf7b1SAnton Bambura interrupts-extended = <&tlmm 115 IRQ_TYPE_EDGE_RISING>; 79*bc5bf7b1SAnton Bambura 80*bc5bf7b1SAnton Bambura vdd-supply = <&pm8916_l17>; 81*bc5bf7b1SAnton Bambura vddio-supply = <&pm8916_l6>; 82*bc5bf7b1SAnton Bambura 83*bc5bf7b1SAnton Bambura pinctrl-0 = <&imu_default>; 84*bc5bf7b1SAnton Bambura pinctrl-names = "default"; 85*bc5bf7b1SAnton Bambura 86*bc5bf7b1SAnton Bambura mount-matrix = "1", "0", "0", 87*bc5bf7b1SAnton Bambura "0", "-1", "0", 88*bc5bf7b1SAnton Bambura "0", "0", "1"; 89*bc5bf7b1SAnton Bambura }; 90*bc5bf7b1SAnton Bambura}; 91*bc5bf7b1SAnton Bambura 92*bc5bf7b1SAnton Bambura&pm8916_codec { 93*bc5bf7b1SAnton Bambura qcom,micbias1-ext-cap; 94*bc5bf7b1SAnton Bambura}; 95*bc5bf7b1SAnton Bambura 96*bc5bf7b1SAnton Bambura&sound { 97*bc5bf7b1SAnton Bambura model = "wt86528"; 98*bc5bf7b1SAnton Bambura widgets = "Speaker", "Speaker", 99*bc5bf7b1SAnton Bambura "Headphone", "Headphones"; 100*bc5bf7b1SAnton Bambura pin-switches = "Speaker", "Headphones"; 101*bc5bf7b1SAnton Bambura audio-routing = "Speaker", "Speaker Amp L OUT", 102*bc5bf7b1SAnton Bambura "Speaker", "Speaker Amp R OUT", 103*bc5bf7b1SAnton Bambura "Speaker Amp L IN", "HPH_L", 104*bc5bf7b1SAnton Bambura "Speaker Amp R IN", "HPH_R", 105*bc5bf7b1SAnton Bambura "Headphones", "Headphones Switch OUTL", 106*bc5bf7b1SAnton Bambura "Headphones", "Headphones Switch OUTR", 107*bc5bf7b1SAnton Bambura "Headphones Switch INL", "HPH_L", 108*bc5bf7b1SAnton Bambura "Headphones Switch INR", "HPH_R", 109*bc5bf7b1SAnton Bambura "AMIC1", "MIC BIAS External1", 110*bc5bf7b1SAnton Bambura "AMIC2", "MIC BIAS Internal2", 111*bc5bf7b1SAnton Bambura "AMIC3", "MIC BIAS External1"; 112*bc5bf7b1SAnton Bambura aux-devs = <&speaker_amp_left>, <&speaker_amp_right>, <&headphones_switch>; 113*bc5bf7b1SAnton Bambura}; 114*bc5bf7b1SAnton Bambura 115*bc5bf7b1SAnton Bambura&usb { 116*bc5bf7b1SAnton Bambura extcon = <&usb_id>, <&usb_id>; 117*bc5bf7b1SAnton Bambura}; 118*bc5bf7b1SAnton Bambura 119*bc5bf7b1SAnton Bambura&usb_hs_phy { 120*bc5bf7b1SAnton Bambura extcon = <&usb_id>; 121*bc5bf7b1SAnton Bambura}; 122*bc5bf7b1SAnton Bambura 123*bc5bf7b1SAnton Bambura&tlmm { 124*bc5bf7b1SAnton Bambura gpio_leds_default: gpio-leds-default-state { 125*bc5bf7b1SAnton Bambura pins = "gpio16", "gpio17"; 126*bc5bf7b1SAnton Bambura function = "gpio"; 127*bc5bf7b1SAnton Bambura drive-strength = <2>; 128*bc5bf7b1SAnton Bambura bias-disable; 129*bc5bf7b1SAnton Bambura }; 130*bc5bf7b1SAnton Bambura 131*bc5bf7b1SAnton Bambura imu_default: imu-default-state { 132*bc5bf7b1SAnton Bambura pins = "gpio115"; 133*bc5bf7b1SAnton Bambura function = "gpio"; 134*bc5bf7b1SAnton Bambura drive-strength = <2>; 135*bc5bf7b1SAnton Bambura bias-disable; 136*bc5bf7b1SAnton Bambura }; 137*bc5bf7b1SAnton Bambura 138*bc5bf7b1SAnton Bambura spk_ext_pa_left_default: spk-ext-pa-left-default-state { 139*bc5bf7b1SAnton Bambura pins = "gpio119"; 140*bc5bf7b1SAnton Bambura function = "gpio"; 141*bc5bf7b1SAnton Bambura drive-strength = <2>; 142*bc5bf7b1SAnton Bambura bias-disable; 143*bc5bf7b1SAnton Bambura }; 144*bc5bf7b1SAnton Bambura 145*bc5bf7b1SAnton Bambura spk_ext_pa_right_default: spk-ext-pa-right-default-state { 146*bc5bf7b1SAnton Bambura pins = "gpio121"; 147*bc5bf7b1SAnton Bambura function = "gpio"; 148*bc5bf7b1SAnton Bambura drive-strength = <2>; 149*bc5bf7b1SAnton Bambura bias-disable; 150*bc5bf7b1SAnton Bambura }; 151*bc5bf7b1SAnton Bambura 152*bc5bf7b1SAnton Bambura usb_id_default: usb-id-default-state { 153*bc5bf7b1SAnton Bambura pins = "gpio110"; 154*bc5bf7b1SAnton Bambura function = "gpio"; 155*bc5bf7b1SAnton Bambura drive-strength = <8>; 156*bc5bf7b1SAnton Bambura bias-pull-up; 157*bc5bf7b1SAnton Bambura }; 158*bc5bf7b1SAnton Bambura}; 159