166e9ba51SLin, Meng-Bo// SPDX-License-Identifier: GPL-2.0-only 266e9ba51SLin, Meng-Bo 366e9ba51SLin, Meng-Bo#include "msm8916-pm8916.dtsi" 466e9ba51SLin, Meng-Bo#include <dt-bindings/gpio/gpio.h> 5027523b7SLin, Meng-Bo#include <dt-bindings/input/input.h> 683a54e61SMarkuss Broks#include <dt-bindings/interrupt-controller/irq.h> 766e9ba51SLin, Meng-Bo 866e9ba51SLin, Meng-Bo/ { 966e9ba51SLin, Meng-Bo aliases { 10154f23a8SStephan Gerhold mmc0 = &sdhc_1; /* eMMC */ 11154f23a8SStephan Gerhold mmc1 = &sdhc_2; /* SD card */ 12c310ca82SStephan Gerhold serial0 = &blsp_uart2; 1366e9ba51SLin, Meng-Bo }; 1466e9ba51SLin, Meng-Bo 1566e9ba51SLin, Meng-Bo chosen { 1666e9ba51SLin, Meng-Bo stdout-path = "serial0"; 1766e9ba51SLin, Meng-Bo }; 1866e9ba51SLin, Meng-Bo 1966e9ba51SLin, Meng-Bo reserved-memory { 2066e9ba51SLin, Meng-Bo /* Additional memory used by Samsung firmware modifications */ 2166e9ba51SLin, Meng-Bo tz-apps@85500000 { 2266e9ba51SLin, Meng-Bo reg = <0x0 0x85500000 0x0 0xb00000>; 2366e9ba51SLin, Meng-Bo no-map; 2466e9ba51SLin, Meng-Bo }; 2566e9ba51SLin, Meng-Bo }; 2666e9ba51SLin, Meng-Bo 27027523b7SLin, Meng-Bo gpio_hall_sensor: gpio-hall-sensor { 28027523b7SLin, Meng-Bo compatible = "gpio-keys"; 29027523b7SLin, Meng-Bo 30027523b7SLin, Meng-Bo pinctrl-names = "default"; 31027523b7SLin, Meng-Bo pinctrl-0 = <&gpio_hall_sensor_default>; 32027523b7SLin, Meng-Bo 33027523b7SLin, Meng-Bo label = "GPIO Hall Effect Sensor"; 34027523b7SLin, Meng-Bo 35027523b7SLin, Meng-Bo event-hall-sensor { 36027523b7SLin, Meng-Bo label = "Hall Effect Sensor"; 3741e22c2fSStephan Gerhold gpios = <&tlmm 52 GPIO_ACTIVE_LOW>; 38027523b7SLin, Meng-Bo linux,input-type = <EV_SW>; 39027523b7SLin, Meng-Bo linux,code = <SW_LID>; 40027523b7SLin, Meng-Bo linux,can-disable; 41027523b7SLin, Meng-Bo }; 42027523b7SLin, Meng-Bo }; 43027523b7SLin, Meng-Bo 4466e9ba51SLin, Meng-Bo gpio-keys { 4566e9ba51SLin, Meng-Bo compatible = "gpio-keys"; 4666e9ba51SLin, Meng-Bo 4766e9ba51SLin, Meng-Bo pinctrl-names = "default"; 4866e9ba51SLin, Meng-Bo pinctrl-0 = <&gpio_keys_default>; 4966e9ba51SLin, Meng-Bo 5066e9ba51SLin, Meng-Bo label = "GPIO Buttons"; 5166e9ba51SLin, Meng-Bo 5266e9ba51SLin, Meng-Bo button-volume-up { 5366e9ba51SLin, Meng-Bo label = "Volume Up"; 5441e22c2fSStephan Gerhold gpios = <&tlmm 107 GPIO_ACTIVE_LOW>; 5566e9ba51SLin, Meng-Bo linux,code = <KEY_VOLUMEUP>; 5666e9ba51SLin, Meng-Bo }; 5766e9ba51SLin, Meng-Bo 5866e9ba51SLin, Meng-Bo button-home { 5966e9ba51SLin, Meng-Bo label = "Home Key"; 6041e22c2fSStephan Gerhold gpios = <&tlmm 109 GPIO_ACTIVE_LOW>; 6166e9ba51SLin, Meng-Bo linux,code = <KEY_HOMEPAGE>; 6266e9ba51SLin, Meng-Bo }; 6366e9ba51SLin, Meng-Bo }; 6483a54e61SMarkuss Broks 6583a54e61SMarkuss Broks i2c_muic: i2c-muic { 6683a54e61SMarkuss Broks compatible = "i2c-gpio"; 6741e22c2fSStephan Gerhold sda-gpios = <&tlmm 105 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; 6841e22c2fSStephan Gerhold scl-gpios = <&tlmm 106 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; 6983a54e61SMarkuss Broks 7083a54e61SMarkuss Broks pinctrl-names = "default"; 7183a54e61SMarkuss Broks pinctrl-0 = <&muic_i2c_default>; 7283a54e61SMarkuss Broks 7383a54e61SMarkuss Broks #address-cells = <1>; 7483a54e61SMarkuss Broks #size-cells = <0>; 7583a54e61SMarkuss Broks 7683a54e61SMarkuss Broks muic: extcon@25 { 7783a54e61SMarkuss Broks compatible = "siliconmitus,sm5703-muic"; 7883a54e61SMarkuss Broks reg = <0x25>; 7983a54e61SMarkuss Broks 8041e22c2fSStephan Gerhold interrupt-parent = <&tlmm>; 8183a54e61SMarkuss Broks interrupts = <12 IRQ_TYPE_EDGE_FALLING>; 8283a54e61SMarkuss Broks 8383a54e61SMarkuss Broks pinctrl-names = "default"; 8483a54e61SMarkuss Broks pinctrl-0 = <&muic_int_default>; 8583a54e61SMarkuss Broks }; 8683a54e61SMarkuss Broks }; 8766e9ba51SLin, Meng-Bo}; 8866e9ba51SLin, Meng-Bo 89*63c7fe55SLin, Meng-Bo&blsp_i2c5 { 90*63c7fe55SLin, Meng-Bo status = "okay"; 91*63c7fe55SLin, Meng-Bo 92*63c7fe55SLin, Meng-Bo touchscreen: touchscreen@50 { 93*63c7fe55SLin, Meng-Bo compatible = "imagis,ist3038c"; 94*63c7fe55SLin, Meng-Bo reg = <0x50>; 95*63c7fe55SLin, Meng-Bo 96*63c7fe55SLin, Meng-Bo interrupt-parent = <&tlmm>; 97*63c7fe55SLin, Meng-Bo interrupts = <13 IRQ_TYPE_EDGE_FALLING>; 98*63c7fe55SLin, Meng-Bo 99*63c7fe55SLin, Meng-Bo touchscreen-size-x = <720>; 100*63c7fe55SLin, Meng-Bo touchscreen-size-y = <1280>; 101*63c7fe55SLin, Meng-Bo 102*63c7fe55SLin, Meng-Bo vddio-supply = <&pm8916_l6>; 103*63c7fe55SLin, Meng-Bo 104*63c7fe55SLin, Meng-Bo pinctrl-0 = <&tsp_int_default>; 105*63c7fe55SLin, Meng-Bo pinctrl-names = "default"; 106*63c7fe55SLin, Meng-Bo }; 107*63c7fe55SLin, Meng-Bo}; 108*63c7fe55SLin, Meng-Bo 109c310ca82SStephan Gerhold&blsp_uart2 { 11066e9ba51SLin, Meng-Bo status = "okay"; 11166e9ba51SLin, Meng-Bo}; 11266e9ba51SLin, Meng-Bo 11366e9ba51SLin, Meng-Bo&pm8916_resin { 11466e9ba51SLin, Meng-Bo status = "okay"; 11566e9ba51SLin, Meng-Bo linux,code = <KEY_VOLUMEDOWN>; 11666e9ba51SLin, Meng-Bo}; 11766e9ba51SLin, Meng-Bo 11866e9ba51SLin, Meng-Bo&sdhc_1 { 11966e9ba51SLin, Meng-Bo status = "okay"; 12066e9ba51SLin, Meng-Bo}; 12166e9ba51SLin, Meng-Bo 12266e9ba51SLin, Meng-Bo&sdhc_2 { 12366e9ba51SLin, Meng-Bo status = "okay"; 12466e9ba51SLin, Meng-Bo 12566e9ba51SLin, Meng-Bo pinctrl-names = "default", "sleep"; 126c943e4c5SStephan Gerhold pinctrl-0 = <&sdc2_default &sdc2_cd_default>; 127c943e4c5SStephan Gerhold pinctrl-1 = <&sdc2_sleep &sdc2_cd_default>; 12866e9ba51SLin, Meng-Bo 12941e22c2fSStephan Gerhold cd-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>; 13066e9ba51SLin, Meng-Bo}; 13166e9ba51SLin, Meng-Bo 13266e9ba51SLin, Meng-Bo&usb { 13383a54e61SMarkuss Broks extcon = <&muic>, <&muic>; 13466e9ba51SLin, Meng-Bo status = "okay"; 13566e9ba51SLin, Meng-Bo}; 13666e9ba51SLin, Meng-Bo 13766e9ba51SLin, Meng-Bo&usb_hs_phy { 13883a54e61SMarkuss Broks extcon = <&muic>; 13966e9ba51SLin, Meng-Bo}; 14066e9ba51SLin, Meng-Bo 14132444424SStephan Gerhold&wcnss { 14232444424SStephan Gerhold status = "okay"; 14332444424SStephan Gerhold}; 14432444424SStephan Gerhold 14532444424SStephan Gerhold&wcnss_iris { 14632444424SStephan Gerhold compatible = "qcom,wcn3620"; 14732444424SStephan Gerhold}; 14832444424SStephan Gerhold 14941e22c2fSStephan Gerhold&tlmm { 150027523b7SLin, Meng-Bo gpio_hall_sensor_default: gpio-hall-sensor-default-state { 151027523b7SLin, Meng-Bo pins = "gpio52"; 152027523b7SLin, Meng-Bo function = "gpio"; 153027523b7SLin, Meng-Bo 154027523b7SLin, Meng-Bo drive-strength = <2>; 155027523b7SLin, Meng-Bo bias-disable; 156027523b7SLin, Meng-Bo }; 157027523b7SLin, Meng-Bo 15866e9ba51SLin, Meng-Bo gpio_keys_default: gpio-keys-default-state { 15966e9ba51SLin, Meng-Bo pins = "gpio107", "gpio109"; 16066e9ba51SLin, Meng-Bo function = "gpio"; 16166e9ba51SLin, Meng-Bo 16266e9ba51SLin, Meng-Bo drive-strength = <2>; 16366e9ba51SLin, Meng-Bo bias-pull-up; 16466e9ba51SLin, Meng-Bo }; 16583a54e61SMarkuss Broks 16683a54e61SMarkuss Broks muic_i2c_default: muic-i2c-default-state { 16783a54e61SMarkuss Broks pins = "gpio105", "gpio106"; 16883a54e61SMarkuss Broks function = "gpio"; 16983a54e61SMarkuss Broks 17083a54e61SMarkuss Broks drive-strength = <2>; 17183a54e61SMarkuss Broks bias-disable; 17283a54e61SMarkuss Broks }; 17383a54e61SMarkuss Broks 17483a54e61SMarkuss Broks muic_int_default: muic-int-default-state { 17583a54e61SMarkuss Broks pins = "gpio12"; 17683a54e61SMarkuss Broks function = "gpio"; 17783a54e61SMarkuss Broks 17883a54e61SMarkuss Broks drive-strength = <2>; 17983a54e61SMarkuss Broks bias-disable; 18083a54e61SMarkuss Broks }; 181dfbda20dSStephan Gerhold 182dfbda20dSStephan Gerhold sdc2_cd_default: sdc2-cd-default-state { 183dfbda20dSStephan Gerhold pins = "gpio38"; 184dfbda20dSStephan Gerhold function = "gpio"; 185*63c7fe55SLin, Meng-Bo 186*63c7fe55SLin, Meng-Bo drive-strength = <2>; 187*63c7fe55SLin, Meng-Bo bias-disable; 188*63c7fe55SLin, Meng-Bo }; 189*63c7fe55SLin, Meng-Bo 190*63c7fe55SLin, Meng-Bo tsp_int_default: tsp-int-default-state { 191*63c7fe55SLin, Meng-Bo pins = "gpio13"; 192*63c7fe55SLin, Meng-Bo function = "gpio"; 193*63c7fe55SLin, Meng-Bo 194dfbda20dSStephan Gerhold drive-strength = <2>; 195dfbda20dSStephan Gerhold bias-disable; 196dfbda20dSStephan Gerhold }; 19766e9ba51SLin, Meng-Bo}; 198