1// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
2/*
3 * IPQ6018 CP01 board device tree source
4 *
5 * Copyright (c) 2019, The Linux Foundation. All rights reserved.
6 */
7
8/dts-v1/;
9
10#include "ipq6018.dtsi"
11
12/ {
13	model = "Qualcomm Technologies, Inc. IPQ6018/AP-CP01-C1";
14	compatible = "qcom,ipq6018-cp01", "qcom,ipq6018";
15
16	aliases {
17		serial0 = &blsp1_uart3;
18	};
19
20	chosen {
21		stdout-path = "serial0:115200n8";
22	};
23};
24
25&blsp1_uart3 {
26	pinctrl-0 = <&serial_3_pins>;
27	pinctrl-names = "default";
28	status = "okay";
29};
30
31&blsp1_i2c3 {
32	pinctrl-0 = <&i2c_1_pins>;
33	pinctrl-names = "default";
34	status = "okay";
35};
36
37&blsp1_spi1 {
38	cs-select = <0>;
39	pinctrl-0 = <&spi_0_pins>;
40	pinctrl-names = "default";
41	status = "okay";
42
43	flash@0 {
44		#address-cells = <1>;
45		#size-cells = <1>;
46		reg = <0>;
47		compatible = "micron,n25q128a11", "jedec,spi-nor";
48		spi-max-frequency = <50000000>;
49	};
50};
51
52&tlmm {
53	i2c_1_pins: i2c-1-state {
54		pins = "gpio42", "gpio43";
55		function = "blsp2_i2c";
56		drive-strength = <8>;
57	};
58
59	spi_0_pins: spi-0-state {
60		pins = "gpio38", "gpio39", "gpio40", "gpio41";
61		function = "blsp0_spi";
62		drive-strength = <8>;
63		bias-pull-down;
64	};
65};
66
67&qpic_bam {
68	status = "okay";
69};
70
71&qpic_nand {
72	status = "okay";
73
74	nand@0 {
75		reg = <0>;
76
77		nand-ecc-strength = <4>;
78		nand-ecc-step-size = <512>;
79		nand-bus-width = <8>;
80	};
81};
82
83&qusb_phy_1 {
84	status = "okay";
85};
86
87&usb2 {
88	status = "okay";
89};
90