1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0 2*724ba675SRob Herring// Copyright (c) 2018, The Linux Foundation. All rights reserved. 3*724ba675SRob Herring 4*724ba675SRob Herring#include "qcom-ipq4019.dtsi" 5*724ba675SRob Herring#include <dt-bindings/input/input.h> 6*724ba675SRob Herring#include <dt-bindings/gpio/gpio.h> 7*724ba675SRob Herring 8*724ba675SRob Herring/ { 9*724ba675SRob Herring model = "Qualcomm Technologies, Inc. IPQ4019/AP-DK04.1"; 10*724ba675SRob Herring 11*724ba675SRob Herring aliases { 12*724ba675SRob Herring serial0 = &blsp1_uart1; 13*724ba675SRob Herring serial1 = &blsp1_uart2; 14*724ba675SRob Herring }; 15*724ba675SRob Herring 16*724ba675SRob Herring chosen { 17*724ba675SRob Herring stdout-path = "serial0:115200n8"; 18*724ba675SRob Herring }; 19*724ba675SRob Herring 20*724ba675SRob Herring memory { 21*724ba675SRob Herring device_type = "memory"; 22*724ba675SRob Herring reg = <0x80000000 0x10000000>; /* 256MB */ 23*724ba675SRob Herring }; 24*724ba675SRob Herring 25*724ba675SRob Herring soc { 26*724ba675SRob Herring pinctrl@1000000 { 27*724ba675SRob Herring serial_0_pins: serial0-pinmux { 28*724ba675SRob Herring pins = "gpio16", "gpio17"; 29*724ba675SRob Herring function = "blsp_uart0"; 30*724ba675SRob Herring bias-disable; 31*724ba675SRob Herring }; 32*724ba675SRob Herring 33*724ba675SRob Herring serial_1_pins: serial1-pinmux { 34*724ba675SRob Herring pins = "gpio8", "gpio9", 35*724ba675SRob Herring "gpio10", "gpio11"; 36*724ba675SRob Herring function = "blsp_uart1"; 37*724ba675SRob Herring bias-disable; 38*724ba675SRob Herring }; 39*724ba675SRob Herring 40*724ba675SRob Herring spi_0_pins: spi-0-pinmux { 41*724ba675SRob Herring pinmux { 42*724ba675SRob Herring function = "blsp_spi0"; 43*724ba675SRob Herring pins = "gpio13", "gpio14", "gpio15"; 44*724ba675SRob Herring bias-disable; 45*724ba675SRob Herring }; 46*724ba675SRob Herring pinmux_cs { 47*724ba675SRob Herring function = "gpio"; 48*724ba675SRob Herring pins = "gpio12"; 49*724ba675SRob Herring bias-disable; 50*724ba675SRob Herring output-high; 51*724ba675SRob Herring }; 52*724ba675SRob Herring }; 53*724ba675SRob Herring 54*724ba675SRob Herring i2c_0_pins: i2c-0-pinmux { 55*724ba675SRob Herring pins = "gpio20", "gpio21"; 56*724ba675SRob Herring function = "blsp_i2c0"; 57*724ba675SRob Herring bias-disable; 58*724ba675SRob Herring }; 59*724ba675SRob Herring 60*724ba675SRob Herring nand_pins: nand-pins { 61*724ba675SRob Herring pins = "gpio53", "gpio55", "gpio56", 62*724ba675SRob Herring "gpio57", "gpio58", "gpio59", 63*724ba675SRob Herring "gpio60", "gpio62", "gpio63", 64*724ba675SRob Herring "gpio64", "gpio65", "gpio66", 65*724ba675SRob Herring "gpio67", "gpio68", "gpio69"; 66*724ba675SRob Herring function = "qpic"; 67*724ba675SRob Herring }; 68*724ba675SRob Herring }; 69*724ba675SRob Herring 70*724ba675SRob Herring serial@78af000 { 71*724ba675SRob Herring pinctrl-0 = <&serial_0_pins>; 72*724ba675SRob Herring pinctrl-names = "default"; 73*724ba675SRob Herring status = "okay"; 74*724ba675SRob Herring }; 75*724ba675SRob Herring 76*724ba675SRob Herring serial@78b0000 { 77*724ba675SRob Herring pinctrl-0 = <&serial_1_pins>; 78*724ba675SRob Herring pinctrl-names = "default"; 79*724ba675SRob Herring status = "okay"; 80*724ba675SRob Herring }; 81*724ba675SRob Herring 82*724ba675SRob Herring dma-controller@7884000 { 83*724ba675SRob Herring status = "okay"; 84*724ba675SRob Herring }; 85*724ba675SRob Herring 86*724ba675SRob Herring spi@78b5000 { /* BLSP1 QUP1 */ 87*724ba675SRob Herring pinctrl-0 = <&spi_0_pins>; 88*724ba675SRob Herring pinctrl-names = "default"; 89*724ba675SRob Herring status = "okay"; 90*724ba675SRob Herring cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>; 91*724ba675SRob Herring 92*724ba675SRob Herring flash@0 { 93*724ba675SRob Herring #address-cells = <1>; 94*724ba675SRob Herring #size-cells = <1>; 95*724ba675SRob Herring reg = <0>; 96*724ba675SRob Herring compatible = "micron,n25q128a11", "jedec,spi-nor"; 97*724ba675SRob Herring spi-max-frequency = <24000000>; 98*724ba675SRob Herring }; 99*724ba675SRob Herring }; 100*724ba675SRob Herring 101*724ba675SRob Herring pci@40000000 { 102*724ba675SRob Herring status = "okay"; 103*724ba675SRob Herring perst-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>; 104*724ba675SRob Herring }; 105*724ba675SRob Herring }; 106*724ba675SRob Herring}; 107*724ba675SRob Herring 108*724ba675SRob Herring&nand { 109*724ba675SRob Herring pinctrl-0 = <&nand_pins>; 110*724ba675SRob Herring pinctrl-names = "default"; 111*724ba675SRob Herring}; 112