2014-04-03 13:48:22 -06:00
|
|
|
#include "qcom-apq8064-v2.0.dtsi"
|
2014-10-20 23:53:19 -06:00
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
2015-09-18 06:31:59 -06:00
|
|
|
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
|
2014-04-03 13:48:22 -06:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "Qualcomm APQ8064/IFC6410";
|
|
|
|
compatible = "qcom,apq8064-ifc6410", "qcom,apq8064";
|
|
|
|
|
2015-04-10 14:44:31 -06:00
|
|
|
aliases {
|
|
|
|
serial0 = &gsbi7_serial;
|
2015-07-27 07:52:10 -06:00
|
|
|
serial1 = &gsbi6_serial;
|
2016-02-23 07:15:08 -07:00
|
|
|
i2c0 = &gsbi1_i2c;
|
|
|
|
i2c1 = &gsbi2_i2c;
|
|
|
|
i2c2 = &gsbi3_i2c;
|
|
|
|
i2c3 = &gsbi4_i2c;
|
|
|
|
spi0 = &gsbi5_spi;
|
2015-04-10 14:44:31 -06:00
|
|
|
};
|
|
|
|
|
2015-06-16 15:31:46 -06:00
|
|
|
chosen {
|
|
|
|
stdout-path = "serial0:115200n8";
|
|
|
|
};
|
|
|
|
|
2015-09-18 06:31:59 -06:00
|
|
|
pwrseq {
|
|
|
|
compatible = "simple-bus";
|
|
|
|
|
|
|
|
sdcc4_pwrseq: sdcc4_pwrseq {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&wlan_default_gpios>;
|
|
|
|
compatible = "mmc-pwrseq-simple";
|
|
|
|
reset-gpios = <&pm8921_gpio 43 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-09-18 06:32:11 -06:00
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <¬ify_led>;
|
|
|
|
|
|
|
|
led@1 {
|
|
|
|
label = "apq8064:green:user1";
|
|
|
|
gpios = <&pm8921_gpio 18 GPIO_ACTIVE_HIGH>;
|
|
|
|
default-state = "on";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-09-23 00:33:07 -06:00
|
|
|
hdmi-out {
|
|
|
|
compatible = "hdmi-connector";
|
|
|
|
type = "d";
|
|
|
|
|
|
|
|
port {
|
|
|
|
hdmi_con: endpoint {
|
|
|
|
remote-endpoint = <&hdmi_out>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2014-04-03 13:48:22 -06:00
|
|
|
soc {
|
2014-09-17 04:30:25 -06:00
|
|
|
pinctrl@800000 {
|
2014-10-20 23:53:19 -06:00
|
|
|
card_detect: card_detect {
|
|
|
|
mux {
|
|
|
|
pins = "gpio26";
|
|
|
|
function = "gpio";
|
|
|
|
bias-disable;
|
|
|
|
};
|
|
|
|
};
|
2016-01-05 14:38:25 -07:00
|
|
|
|
|
|
|
pcie_pins: pcie_pinmux {
|
|
|
|
mux {
|
|
|
|
pins = "gpio27";
|
|
|
|
function = "gpio";
|
|
|
|
};
|
|
|
|
conf {
|
|
|
|
pins = "gpio27";
|
|
|
|
drive-strength = <12>;
|
|
|
|
bias-disable;
|
|
|
|
};
|
|
|
|
};
|
2014-09-17 04:30:25 -06:00
|
|
|
};
|
|
|
|
|
2015-04-10 14:43:14 -06:00
|
|
|
rpm@108000 {
|
|
|
|
regulators {
|
|
|
|
vin_lvs1_3_6-supply = <&pm8921_s4>;
|
|
|
|
vin_lvs2-supply = <&pm8921_s1>;
|
|
|
|
vin_lvs4_5_7-supply = <&pm8921_s4>;
|
|
|
|
|
|
|
|
vdd_l1_l2_l12_l18-supply = <&pm8921_s4>;
|
|
|
|
vdd_l24-supply = <&pm8921_s1>;
|
|
|
|
vdd_l25-supply = <&pm8921_s1>;
|
|
|
|
vdd_l26-supply = <&pm8921_s7>;
|
|
|
|
vdd_l27-supply = <&pm8921_s7>;
|
|
|
|
vdd_l28-supply = <&pm8921_s7>;
|
|
|
|
|
|
|
|
|
|
|
|
/* Buck SMPS */
|
2015-10-22 12:13:49 -06:00
|
|
|
s1 {
|
2015-04-10 14:43:14 -06:00
|
|
|
regulator-always-on;
|
|
|
|
regulator-min-microvolt = <1225000>;
|
|
|
|
regulator-max-microvolt = <1225000>;
|
|
|
|
qcom,switch-mode-frequency = <3200000>;
|
|
|
|
bias-pull-down;
|
|
|
|
};
|
|
|
|
|
2015-10-22 12:13:49 -06:00
|
|
|
s3 {
|
2015-04-10 14:43:14 -06:00
|
|
|
regulator-min-microvolt = <1000000>;
|
|
|
|
regulator-max-microvolt = <1400000>;
|
|
|
|
qcom,switch-mode-frequency = <4800000>;
|
|
|
|
};
|
|
|
|
|
2015-10-22 12:13:49 -06:00
|
|
|
s4 {
|
2015-04-10 14:43:14 -06:00
|
|
|
regulator-min-microvolt = <1800000>;
|
|
|
|
regulator-max-microvolt = <1800000>;
|
|
|
|
qcom,switch-mode-frequency = <3200000>;
|
|
|
|
};
|
|
|
|
|
2015-10-22 12:13:49 -06:00
|
|
|
s7 {
|
2015-04-10 14:43:14 -06:00
|
|
|
regulator-min-microvolt = <1300000>;
|
|
|
|
regulator-max-microvolt = <1300000>;
|
|
|
|
qcom,switch-mode-frequency = <3200000>;
|
|
|
|
};
|
|
|
|
|
2015-10-22 12:13:49 -06:00
|
|
|
l3 {
|
2015-04-10 14:43:14 -06:00
|
|
|
regulator-min-microvolt = <3050000>;
|
|
|
|
regulator-max-microvolt = <3300000>;
|
|
|
|
bias-pull-down;
|
|
|
|
};
|
|
|
|
|
2015-10-22 12:13:49 -06:00
|
|
|
l4 {
|
2015-04-10 14:43:14 -06:00
|
|
|
regulator-min-microvolt = <1000000>;
|
|
|
|
regulator-max-microvolt = <1800000>;
|
|
|
|
bias-pull-down;
|
|
|
|
};
|
|
|
|
|
2015-10-22 12:13:49 -06:00
|
|
|
l5 {
|
2015-07-28 02:12:58 -06:00
|
|
|
regulator-min-microvolt = <2750000>;
|
|
|
|
regulator-max-microvolt = <3000000>;
|
|
|
|
bias-pull-down;
|
|
|
|
};
|
|
|
|
|
2015-10-22 12:13:49 -06:00
|
|
|
l6 {
|
2015-04-10 14:43:14 -06:00
|
|
|
regulator-min-microvolt = <2950000>;
|
|
|
|
regulator-max-microvolt = <2950000>;
|
|
|
|
bias-pull-down;
|
|
|
|
};
|
|
|
|
|
2015-10-22 12:13:49 -06:00
|
|
|
l23 {
|
2015-04-10 14:43:14 -06:00
|
|
|
regulator-min-microvolt = <1700000>;
|
|
|
|
regulator-max-microvolt = <1900000>;
|
|
|
|
bias-pull-down;
|
|
|
|
};
|
2015-07-28 02:12:58 -06:00
|
|
|
|
2015-10-22 12:13:49 -06:00
|
|
|
lvs1 {
|
2015-07-28 02:12:58 -06:00
|
|
|
bias-pull-down;
|
|
|
|
};
|
2016-01-05 14:38:25 -07:00
|
|
|
|
|
|
|
lvs6 {
|
|
|
|
bias-pull-down;
|
|
|
|
};
|
2015-04-10 14:43:14 -06:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-07-28 02:12:58 -06:00
|
|
|
ext_3p3v: regulator-fixed@1 {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-min-microvolt = <3300000>;
|
|
|
|
regulator-max-microvolt = <3300000>;
|
|
|
|
regulator-name = "ext_3p3v";
|
|
|
|
regulator-type = "voltage";
|
|
|
|
startup-delay-us = <0>;
|
|
|
|
gpio = <&tlmm_pinmux 77 GPIO_ACTIVE_HIGH>;
|
|
|
|
enable-active-high;
|
|
|
|
regulator-boot-on;
|
|
|
|
};
|
|
|
|
|
2015-04-10 14:44:48 -06:00
|
|
|
gsbi3: gsbi@16200000 {
|
|
|
|
status = "okay";
|
|
|
|
qcom,mode = <GSBI_PROT_I2C>;
|
2016-02-23 07:11:10 -07:00
|
|
|
i2c@16280000 {
|
2015-04-10 14:44:48 -06:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-02-23 07:14:56 -07:00
|
|
|
gsbi@16300000 {
|
|
|
|
status = "okay";
|
|
|
|
qcom,mode = <GSBI_PROT_I2C>;
|
|
|
|
/* CAM I2C MIPI-CSI connector */
|
|
|
|
i2c@16380000 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2014-09-17 04:30:25 -06:00
|
|
|
gsbi@12440000 {
|
|
|
|
status = "okay";
|
|
|
|
qcom,mode = <GSBI_PROT_I2C>;
|
|
|
|
|
|
|
|
i2c@12460000 {
|
|
|
|
status = "okay";
|
|
|
|
clock-frequency = <200000>;
|
|
|
|
|
2015-09-18 06:30:38 -06:00
|
|
|
eeprom@52 {
|
2014-09-17 04:30:25 -06:00
|
|
|
compatible = "atmel,24c128";
|
|
|
|
reg = <0x52>;
|
|
|
|
pagesize = <32>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-02-23 07:14:39 -07:00
|
|
|
gsbi@1a200000 {
|
|
|
|
qcom,mode = <GSBI_PROT_SPI>;
|
|
|
|
status = "okay";
|
|
|
|
spi4: spi@1a280000 {
|
|
|
|
status = "okay";
|
|
|
|
num-cs = <1>;
|
|
|
|
cs-gpios = <&tlmm_pinmux 53 0>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-07-27 07:52:10 -06:00
|
|
|
gsbi@16500000 {
|
|
|
|
status = "ok";
|
2015-12-11 11:29:58 -07:00
|
|
|
qcom,mode = <GSBI_PROT_UART_W_FC>;
|
2015-07-27 07:52:10 -06:00
|
|
|
|
|
|
|
serial@16540000 {
|
|
|
|
status = "ok";
|
|
|
|
pinctrl-names = "default";
|
2015-09-18 06:31:34 -06:00
|
|
|
pinctrl-0 = <&gsbi6_uart_4pins>;
|
2015-07-27 07:52:10 -06:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2014-04-03 13:48:22 -06:00
|
|
|
gsbi@16600000 {
|
|
|
|
status = "ok";
|
|
|
|
qcom,mode = <GSBI_PROT_I2C_UART>;
|
|
|
|
serial@16640000 {
|
|
|
|
status = "ok";
|
2015-09-18 06:31:47 -06:00
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&gsbi7_uart_2pins>;
|
2014-04-03 13:48:22 -06:00
|
|
|
};
|
|
|
|
};
|
2014-04-29 01:33:52 -06:00
|
|
|
|
2015-04-10 14:43:56 -06:00
|
|
|
sata_phy0: phy@1b400000 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
sata0: sata@29000000 {
|
|
|
|
status = "okay";
|
|
|
|
target-supply = <&pm8921_s4>;
|
|
|
|
};
|
|
|
|
|
2015-04-10 14:43:42 -06:00
|
|
|
/* OTG */
|
|
|
|
usb1_phy: phy@12500000 {
|
|
|
|
status = "okay";
|
|
|
|
vddcx-supply = <&pm8921_s3>;
|
|
|
|
v3p3-supply = <&pm8921_l3>;
|
|
|
|
v1p8-supply = <&pm8921_l4>;
|
|
|
|
};
|
|
|
|
|
2015-04-10 14:43:30 -06:00
|
|
|
usb3_phy: phy@12520000 {
|
|
|
|
status = "okay";
|
|
|
|
vddcx-supply = <&pm8921_s3>;
|
|
|
|
v3p3-supply = <&pm8921_l3>;
|
|
|
|
v1p8-supply = <&pm8921_l23>;
|
|
|
|
};
|
|
|
|
|
|
|
|
usb4_phy: phy@12530000 {
|
|
|
|
status = "okay";
|
|
|
|
vddcx-supply = <&pm8921_s3>;
|
|
|
|
v3p3-supply = <&pm8921_l3>;
|
|
|
|
v1p8-supply = <&pm8921_l23>;
|
|
|
|
};
|
|
|
|
|
2015-04-10 14:43:42 -06:00
|
|
|
gadget1: gadget@12500000 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
/* OTG */
|
|
|
|
usb1: usb@12500000 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2015-04-10 14:43:30 -06:00
|
|
|
usb3: usb@12520000 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
usb4: usb@12530000 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2016-01-05 14:38:25 -07:00
|
|
|
pci@1b500000 {
|
|
|
|
status = "ok";
|
|
|
|
vdda-supply = <&pm8921_s3>;
|
|
|
|
vdda_phy-supply = <&pm8921_lvs6>;
|
|
|
|
vdda_refclk-supply = <&ext_3p3v>;
|
|
|
|
pinctrl-0 = <&pcie_pins>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
perst-gpio = <&tlmm_pinmux 27 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
2015-09-18 06:31:59 -06:00
|
|
|
qcom,ssbi@500000 {
|
|
|
|
pmic@0 {
|
|
|
|
gpio@150 {
|
|
|
|
wlan_default_gpios: wlan-gpios {
|
|
|
|
pios {
|
|
|
|
pins = "gpio43";
|
|
|
|
function = "normal";
|
|
|
|
bias-disable;
|
|
|
|
power-source = <PM8921_GPIO_S4>;
|
|
|
|
};
|
|
|
|
};
|
2015-09-18 06:32:11 -06:00
|
|
|
|
|
|
|
notify_led: nled {
|
|
|
|
pios {
|
|
|
|
pins = "gpio18";
|
|
|
|
function = "normal";
|
|
|
|
bias-disable;
|
|
|
|
power-source = <PM8921_GPIO_S4>;
|
|
|
|
};
|
|
|
|
};
|
2015-09-18 06:31:59 -06:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2014-04-29 01:33:52 -06:00
|
|
|
amba {
|
|
|
|
/* eMMC */
|
|
|
|
sdcc1: sdcc@12400000 {
|
|
|
|
status = "okay";
|
2015-07-28 02:12:58 -06:00
|
|
|
vmmc-supply = <&pm8921_l5>;
|
|
|
|
vqmmc-supply = <&pm8921_s4>;
|
2014-04-29 01:33:52 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
/* External micro SD card */
|
|
|
|
sdcc3: sdcc@12180000 {
|
|
|
|
status = "okay";
|
2015-07-28 02:12:58 -06:00
|
|
|
vmmc-supply = <&pm8921_l6>;
|
2014-10-20 23:53:19 -06:00
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&card_detect>;
|
|
|
|
cd-gpios = <&tlmm_pinmux 26 GPIO_ACTIVE_LOW>;
|
2014-04-29 01:33:52 -06:00
|
|
|
};
|
2014-09-16 23:39:35 -06:00
|
|
|
/* WLAN */
|
|
|
|
sdcc4: sdcc@121c0000 {
|
|
|
|
status = "okay";
|
2015-07-28 02:12:58 -06:00
|
|
|
vmmc-supply = <&ext_3p3v>;
|
|
|
|
vqmmc-supply = <&pm8921_lvs1>;
|
2015-09-18 06:31:59 -06:00
|
|
|
mmc-pwrseq = <&sdcc4_pwrseq>;
|
2014-09-16 23:39:35 -06:00
|
|
|
};
|
2014-04-29 01:33:52 -06:00
|
|
|
};
|
2016-09-23 00:33:07 -06:00
|
|
|
|
|
|
|
hdmi-tx@4a00000 {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
core-vdda-supply = <&pm8921_hdmi_switch>;
|
|
|
|
hdmi-mux-supply = <&ext_3p3v>;
|
|
|
|
|
|
|
|
hpd-gpios = <&tlmm_pinmux 72 GPIO_ACTIVE_HIGH>;
|
|
|
|
|
|
|
|
ports {
|
|
|
|
port@0 {
|
|
|
|
endpoint {
|
|
|
|
remote-endpoint = <&mdp_dtv_out>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
port@1 {
|
|
|
|
endpoint {
|
|
|
|
remote-endpoint = <&hdmi_con>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
hdmi-phy@4a00400 {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
core-vdda-supply = <&pm8921_hdmi_switch>;
|
|
|
|
};
|
|
|
|
|
|
|
|
mdp@5100000 {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
ports {
|
|
|
|
port@3 {
|
|
|
|
endpoint {
|
|
|
|
remote-endpoint = <&hdmi_in>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2014-04-03 13:48:22 -06:00
|
|
|
};
|
|
|
|
};
|