1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0 2724ba675SRob Herring// Copyright (c) 2018, The Linux Foundation. All rights reserved. 3724ba675SRob Herring 4724ba675SRob Herring#include "qcom-ipq4019.dtsi" 5724ba675SRob Herring#include <dt-bindings/input/input.h> 6724ba675SRob Herring#include <dt-bindings/gpio/gpio.h> 7724ba675SRob Herring 8724ba675SRob Herring/ { 9724ba675SRob Herring model = "Qualcomm Technologies, Inc. IPQ4019/AP-DK04.1"; 10724ba675SRob Herring 11724ba675SRob Herring aliases { 12724ba675SRob Herring serial0 = &blsp1_uart1; 13724ba675SRob Herring serial1 = &blsp1_uart2; 14724ba675SRob Herring }; 15724ba675SRob Herring 16724ba675SRob Herring chosen { 17724ba675SRob Herring stdout-path = "serial0:115200n8"; 18724ba675SRob Herring }; 19724ba675SRob Herring 20724ba675SRob Herring memory { 21724ba675SRob Herring device_type = "memory"; 22724ba675SRob Herring reg = <0x80000000 0x10000000>; /* 256MB */ 23724ba675SRob Herring }; 24724ba675SRob Herring 25724ba675SRob Herring soc { 26724ba675SRob Herring pinctrl@1000000 { 27*268a968eSRayyan Ansari serial_0_pins: serial0-state { 28724ba675SRob Herring pins = "gpio16", "gpio17"; 29724ba675SRob Herring function = "blsp_uart0"; 30724ba675SRob Herring bias-disable; 31724ba675SRob Herring }; 32724ba675SRob Herring 33*268a968eSRayyan Ansari serial_1_pins: serial1-state { 34724ba675SRob Herring pins = "gpio8", "gpio9", 35724ba675SRob Herring "gpio10", "gpio11"; 36724ba675SRob Herring function = "blsp_uart1"; 37724ba675SRob Herring bias-disable; 38724ba675SRob Herring }; 39724ba675SRob Herring 40*268a968eSRayyan Ansari spi_0_pins: spi-0-state { 41*268a968eSRayyan Ansari spi0-pins { 42724ba675SRob Herring function = "blsp_spi0"; 43724ba675SRob Herring pins = "gpio13", "gpio14", "gpio15"; 44724ba675SRob Herring bias-disable; 45724ba675SRob Herring }; 46*268a968eSRayyan Ansari spi0-cs-pins { 47724ba675SRob Herring function = "gpio"; 48724ba675SRob Herring pins = "gpio12"; 49724ba675SRob Herring bias-disable; 50724ba675SRob Herring output-high; 51724ba675SRob Herring }; 52724ba675SRob Herring }; 53724ba675SRob Herring 54*268a968eSRayyan Ansari i2c_0_pins: i2c-0-state { 55724ba675SRob Herring pins = "gpio20", "gpio21"; 56724ba675SRob Herring function = "blsp_i2c0"; 57724ba675SRob Herring bias-disable; 58724ba675SRob Herring }; 59724ba675SRob Herring 60*268a968eSRayyan Ansari nand_pins: nand-state { 61724ba675SRob Herring pins = "gpio53", "gpio55", "gpio56", 62724ba675SRob Herring "gpio57", "gpio58", "gpio59", 63724ba675SRob Herring "gpio60", "gpio62", "gpio63", 64724ba675SRob Herring "gpio64", "gpio65", "gpio66", 65724ba675SRob Herring "gpio67", "gpio68", "gpio69"; 66724ba675SRob Herring function = "qpic"; 67724ba675SRob Herring }; 68724ba675SRob Herring }; 69724ba675SRob Herring 70724ba675SRob Herring serial@78af000 { 71724ba675SRob Herring pinctrl-0 = <&serial_0_pins>; 72724ba675SRob Herring pinctrl-names = "default"; 73724ba675SRob Herring status = "okay"; 74724ba675SRob Herring }; 75724ba675SRob Herring 76724ba675SRob Herring serial@78b0000 { 77724ba675SRob Herring pinctrl-0 = <&serial_1_pins>; 78724ba675SRob Herring pinctrl-names = "default"; 79724ba675SRob Herring status = "okay"; 80724ba675SRob Herring }; 81724ba675SRob Herring 82724ba675SRob Herring dma-controller@7884000 { 83724ba675SRob Herring status = "okay"; 84724ba675SRob Herring }; 85724ba675SRob Herring 86724ba675SRob Herring spi@78b5000 { /* BLSP1 QUP1 */ 87724ba675SRob Herring pinctrl-0 = <&spi_0_pins>; 88724ba675SRob Herring pinctrl-names = "default"; 89724ba675SRob Herring status = "okay"; 90724ba675SRob Herring cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>; 91724ba675SRob Herring 92724ba675SRob Herring flash@0 { 93724ba675SRob Herring #address-cells = <1>; 94724ba675SRob Herring #size-cells = <1>; 95724ba675SRob Herring reg = <0>; 96724ba675SRob Herring compatible = "micron,n25q128a11", "jedec,spi-nor"; 97724ba675SRob Herring spi-max-frequency = <24000000>; 98724ba675SRob Herring }; 99724ba675SRob Herring }; 100724ba675SRob Herring 10107299ba2SManivannan Sadhasivam pcie@40000000 { 102724ba675SRob Herring status = "okay"; 103724ba675SRob Herring perst-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>; 104724ba675SRob Herring }; 105724ba675SRob Herring }; 106724ba675SRob Herring}; 107724ba675SRob Herring 108724ba675SRob Herring&nand { 109724ba675SRob Herring pinctrl-0 = <&nand_pins>; 110724ba675SRob Herring pinctrl-names = "default"; 111724ba675SRob Herring}; 112