1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-or-later OR MIT 2f126890aSEmmanuel Vadot 3f126890aSEmmanuel Vadot#include "qcom-ipq4019.dtsi" 4f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h> 5f126890aSEmmanuel Vadot#include <dt-bindings/input/input.h> 6f126890aSEmmanuel Vadot 7f126890aSEmmanuel Vadot/ { 8f126890aSEmmanuel Vadot model = "ALFA Network AP120C-AC"; 9f126890aSEmmanuel Vadot compatible = "alfa-network,ap120c-ac", "qcom,ipq4018"; 10f126890aSEmmanuel Vadot 11f126890aSEmmanuel Vadot aliases { 12f126890aSEmmanuel Vadot serial0 = &blsp1_uart1; 13f126890aSEmmanuel Vadot }; 14f126890aSEmmanuel Vadot 15f126890aSEmmanuel Vadot chosen { 16f126890aSEmmanuel Vadot stdout-path = "serial0:115200n8"; 17f126890aSEmmanuel Vadot }; 18f126890aSEmmanuel Vadot 19f126890aSEmmanuel Vadot keys { 20f126890aSEmmanuel Vadot compatible = "gpio-keys"; 21f126890aSEmmanuel Vadot 22f126890aSEmmanuel Vadot key-reset { 23f126890aSEmmanuel Vadot label = "reset"; 24f126890aSEmmanuel Vadot gpios = <&tlmm 63 GPIO_ACTIVE_LOW>; 25f126890aSEmmanuel Vadot linux,code = <KEY_RESTART>; 26f126890aSEmmanuel Vadot }; 27f126890aSEmmanuel Vadot }; 28f126890aSEmmanuel Vadot}; 29f126890aSEmmanuel Vadot 30f126890aSEmmanuel Vadot&tlmm { 31*b2d2a78aSEmmanuel Vadot i2c0_pins: i2c0-state { 32f126890aSEmmanuel Vadot function = "blsp_i2c0"; 33f126890aSEmmanuel Vadot pins = "gpio58", "gpio59"; 34f126890aSEmmanuel Vadot drive-strength = <16>; 35f126890aSEmmanuel Vadot bias-disable; 36f126890aSEmmanuel Vadot }; 37f126890aSEmmanuel Vadot 38*b2d2a78aSEmmanuel Vadot mdio_pins: mdio-state { 39*b2d2a78aSEmmanuel Vadot mdio-pins { 40f126890aSEmmanuel Vadot pins = "gpio53"; 41f126890aSEmmanuel Vadot function = "mdio"; 42f126890aSEmmanuel Vadot bias-pull-up; 43f126890aSEmmanuel Vadot }; 44f126890aSEmmanuel Vadot 45*b2d2a78aSEmmanuel Vadot mdc-pins { 46f126890aSEmmanuel Vadot pins = "gpio52"; 47f126890aSEmmanuel Vadot function = "mdc"; 48f126890aSEmmanuel Vadot bias-pull-up; 49f126890aSEmmanuel Vadot }; 50f126890aSEmmanuel Vadot }; 51f126890aSEmmanuel Vadot 52*b2d2a78aSEmmanuel Vadot serial0_pins: serial0-state { 53f126890aSEmmanuel Vadot pins = "gpio60", "gpio61"; 54f126890aSEmmanuel Vadot function = "blsp_uart0"; 55f126890aSEmmanuel Vadot bias-disable; 56f126890aSEmmanuel Vadot }; 57f126890aSEmmanuel Vadot 58*b2d2a78aSEmmanuel Vadot spi0_pins: spi0-state { 59*b2d2a78aSEmmanuel Vadot spi0-pins { 60f126890aSEmmanuel Vadot function = "blsp_spi0"; 61f126890aSEmmanuel Vadot pins = "gpio55", "gpio56", "gpio57"; 62f126890aSEmmanuel Vadot drive-strength = <12>; 63f126890aSEmmanuel Vadot bias-disable; 64f126890aSEmmanuel Vadot }; 65f126890aSEmmanuel Vadot 66*b2d2a78aSEmmanuel Vadot spi0-cs-pins { 67f126890aSEmmanuel Vadot function = "gpio"; 68f126890aSEmmanuel Vadot pins = "gpio54", "gpio4"; 69f126890aSEmmanuel Vadot drive-strength = <2>; 70f126890aSEmmanuel Vadot bias-disable; 71f126890aSEmmanuel Vadot output-high; 72f126890aSEmmanuel Vadot }; 73f126890aSEmmanuel Vadot }; 74f126890aSEmmanuel Vadot 75f126890aSEmmanuel Vadot usb-power-hog { 76f126890aSEmmanuel Vadot line-name = "USB-power"; 77f126890aSEmmanuel Vadot gpios = <1 GPIO_ACTIVE_HIGH>; 78f126890aSEmmanuel Vadot gpio-hog; 79f126890aSEmmanuel Vadot output-high; 80f126890aSEmmanuel Vadot }; 81f126890aSEmmanuel Vadot}; 82f126890aSEmmanuel Vadot 83f126890aSEmmanuel Vadot&watchdog { 84f126890aSEmmanuel Vadot status = "okay"; 85f126890aSEmmanuel Vadot}; 86f126890aSEmmanuel Vadot 87f126890aSEmmanuel Vadot&prng { 88f126890aSEmmanuel Vadot status = "okay"; 89f126890aSEmmanuel Vadot}; 90f126890aSEmmanuel Vadot 91f126890aSEmmanuel Vadot&blsp_dma { 92f126890aSEmmanuel Vadot status = "okay"; 93f126890aSEmmanuel Vadot}; 94f126890aSEmmanuel Vadot 95f126890aSEmmanuel Vadot&blsp1_i2c3 { 96f126890aSEmmanuel Vadot status = "okay"; 97f126890aSEmmanuel Vadot 98f126890aSEmmanuel Vadot pinctrl-0 = <&i2c0_pins>; 99f126890aSEmmanuel Vadot pinctrl-names = "default"; 100f126890aSEmmanuel Vadot 101f126890aSEmmanuel Vadot tpm@29 { 102f126890aSEmmanuel Vadot compatible = "atmel,at97sc3204t"; 103f126890aSEmmanuel Vadot reg = <0x29>; 104f126890aSEmmanuel Vadot }; 105f126890aSEmmanuel Vadot}; 106f126890aSEmmanuel Vadot 107f126890aSEmmanuel Vadot&blsp1_spi1 { 108f126890aSEmmanuel Vadot status = "okay"; 109f126890aSEmmanuel Vadot 110f126890aSEmmanuel Vadot pinctrl-0 = <&spi0_pins>; 111f126890aSEmmanuel Vadot pinctrl-names = "default"; 112f126890aSEmmanuel Vadot cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>, <&tlmm 4 GPIO_ACTIVE_HIGH>; 113f126890aSEmmanuel Vadot 114f126890aSEmmanuel Vadot flash@0 { 115f126890aSEmmanuel Vadot compatible = "jedec,spi-nor"; 116f126890aSEmmanuel Vadot reg = <0>; 117f126890aSEmmanuel Vadot spi-max-frequency = <24000000>; 118f126890aSEmmanuel Vadot 119f126890aSEmmanuel Vadot partitions { 120f126890aSEmmanuel Vadot compatible = "fixed-partitions"; 121f126890aSEmmanuel Vadot #address-cells = <1>; 122f126890aSEmmanuel Vadot #size-cells = <1>; 123f126890aSEmmanuel Vadot 124f126890aSEmmanuel Vadot partition@0 { 125f126890aSEmmanuel Vadot label = "SBL1"; 126f126890aSEmmanuel Vadot reg = <0x00000000 0x00040000>; 127f126890aSEmmanuel Vadot read-only; 128f126890aSEmmanuel Vadot }; 129f126890aSEmmanuel Vadot 130f126890aSEmmanuel Vadot partition@40000 { 131f126890aSEmmanuel Vadot label = "MIBIB"; 132f126890aSEmmanuel Vadot reg = <0x00040000 0x00020000>; 133f126890aSEmmanuel Vadot read-only; 134f126890aSEmmanuel Vadot }; 135f126890aSEmmanuel Vadot 136f126890aSEmmanuel Vadot partition@60000 { 137f126890aSEmmanuel Vadot label = "QSEE"; 138f126890aSEmmanuel Vadot reg = <0x00060000 0x00060000>; 139f126890aSEmmanuel Vadot read-only; 140f126890aSEmmanuel Vadot }; 141f126890aSEmmanuel Vadot 142f126890aSEmmanuel Vadot partition@c0000 { 143f126890aSEmmanuel Vadot label = "CDT"; 144f126890aSEmmanuel Vadot reg = <0x000c0000 0x00010000>; 145f126890aSEmmanuel Vadot read-only; 146f126890aSEmmanuel Vadot }; 147f126890aSEmmanuel Vadot 148f126890aSEmmanuel Vadot partition@d0000 { 149f126890aSEmmanuel Vadot label = "DDRPARAMS"; 150f126890aSEmmanuel Vadot reg = <0x000d0000 0x00010000>; 151f126890aSEmmanuel Vadot read-only; 152f126890aSEmmanuel Vadot }; 153f126890aSEmmanuel Vadot 154f126890aSEmmanuel Vadot partition@e0000 { 155f126890aSEmmanuel Vadot label = "u-boot-env"; 156f126890aSEmmanuel Vadot reg = <0x000e0000 0x00010000>; 157f126890aSEmmanuel Vadot }; 158f126890aSEmmanuel Vadot 159f126890aSEmmanuel Vadot partition@f0000 { 160f126890aSEmmanuel Vadot label = "u-boot"; 161f126890aSEmmanuel Vadot reg = <0x000f0000 0x00080000>; 162f126890aSEmmanuel Vadot read-only; 163f126890aSEmmanuel Vadot }; 164f126890aSEmmanuel Vadot 165f126890aSEmmanuel Vadot partition@170000 { 166f126890aSEmmanuel Vadot label = "ART"; 167f126890aSEmmanuel Vadot reg = <0x00170000 0x00010000>; 168f126890aSEmmanuel Vadot read-only; 169f126890aSEmmanuel Vadot compatible = "nvmem-cells"; 170f126890aSEmmanuel Vadot #address-cells = <1>; 171f126890aSEmmanuel Vadot #size-cells = <1>; 172f126890aSEmmanuel Vadot 173f126890aSEmmanuel Vadot precal_art_1000: precal@1000 { 174f126890aSEmmanuel Vadot reg = <0x1000 0x2f20>; 175f126890aSEmmanuel Vadot }; 176f126890aSEmmanuel Vadot 177f126890aSEmmanuel Vadot precal_art_5000: precal@5000 { 178f126890aSEmmanuel Vadot reg = <0x5000 0x2f20>; 179f126890aSEmmanuel Vadot }; 180f126890aSEmmanuel Vadot }; 181f126890aSEmmanuel Vadot 182f126890aSEmmanuel Vadot partition@180000 { 183f126890aSEmmanuel Vadot label = "priv_data1"; 184f126890aSEmmanuel Vadot reg = <0x00180000 0x00010000>; 185f126890aSEmmanuel Vadot read-only; 186f126890aSEmmanuel Vadot }; 187f126890aSEmmanuel Vadot 188f126890aSEmmanuel Vadot partition@190000 { 189f126890aSEmmanuel Vadot label = "priv_data2"; 190f126890aSEmmanuel Vadot reg = <0x00190000 0x00010000>; 191f126890aSEmmanuel Vadot read-only; 192f126890aSEmmanuel Vadot }; 193f126890aSEmmanuel Vadot }; 194f126890aSEmmanuel Vadot }; 195f126890aSEmmanuel Vadot 196f126890aSEmmanuel Vadot flash@1 { 197f126890aSEmmanuel Vadot compatible = "spi-nand"; 198f126890aSEmmanuel Vadot reg = <1>; 199f126890aSEmmanuel Vadot spi-max-frequency = <40000000>; 200f126890aSEmmanuel Vadot 201f126890aSEmmanuel Vadot partitions { 202f126890aSEmmanuel Vadot compatible = "fixed-partitions"; 203f126890aSEmmanuel Vadot #address-cells = <1>; 204f126890aSEmmanuel Vadot #size-cells = <1>; 205f126890aSEmmanuel Vadot 206f126890aSEmmanuel Vadot partition@0 { 207f126890aSEmmanuel Vadot label = "ubi1"; 208f126890aSEmmanuel Vadot reg = <0x00000000 0x04000000>; 209f126890aSEmmanuel Vadot }; 210f126890aSEmmanuel Vadot 211f126890aSEmmanuel Vadot partition@4000000 { 212f126890aSEmmanuel Vadot label = "ubi2"; 213f126890aSEmmanuel Vadot reg = <0x04000000 0x04000000>; 214f126890aSEmmanuel Vadot }; 215f126890aSEmmanuel Vadot }; 216f126890aSEmmanuel Vadot }; 217f126890aSEmmanuel Vadot}; 218f126890aSEmmanuel Vadot 219f126890aSEmmanuel Vadot&blsp1_uart1 { 220f126890aSEmmanuel Vadot status = "okay"; 221f126890aSEmmanuel Vadot 222f126890aSEmmanuel Vadot pinctrl-0 = <&serial0_pins>; 223f126890aSEmmanuel Vadot pinctrl-names = "default"; 224f126890aSEmmanuel Vadot}; 225f126890aSEmmanuel Vadot 226f126890aSEmmanuel Vadot&cryptobam { 227f126890aSEmmanuel Vadot status = "okay"; 228f126890aSEmmanuel Vadot}; 229f126890aSEmmanuel Vadot 230f126890aSEmmanuel Vadot&crypto { 231f126890aSEmmanuel Vadot status = "okay"; 232f126890aSEmmanuel Vadot}; 233f126890aSEmmanuel Vadot 234f126890aSEmmanuel Vadot&mdio { 235f126890aSEmmanuel Vadot status = "okay"; 236f126890aSEmmanuel Vadot 237f126890aSEmmanuel Vadot pinctrl-0 = <&mdio_pins>; 238f126890aSEmmanuel Vadot pinctrl-names = "default"; 239f126890aSEmmanuel Vadot}; 240f126890aSEmmanuel Vadot 241f126890aSEmmanuel Vadot&wifi0 { 242f126890aSEmmanuel Vadot status = "okay"; 243f126890aSEmmanuel Vadot nvmem-cell-names = "pre-calibration"; 244f126890aSEmmanuel Vadot nvmem-cells = <&precal_art_1000>; 245f126890aSEmmanuel Vadot}; 246f126890aSEmmanuel Vadot 247f126890aSEmmanuel Vadot&wifi1 { 248f126890aSEmmanuel Vadot status = "okay"; 249f126890aSEmmanuel Vadot nvmem-cell-names = "pre-calibration"; 250f126890aSEmmanuel Vadot nvmem-cells = <&precal_art_5000>; 251f126890aSEmmanuel Vadot qcom,ath10k-calibration-variant = "ALFA-Network-AP120C-AC"; 252f126890aSEmmanuel Vadot}; 253f126890aSEmmanuel Vadot 254f126890aSEmmanuel Vadot&usb3_hs_phy { 255f126890aSEmmanuel Vadot status = "okay"; 256f126890aSEmmanuel Vadot}; 257f126890aSEmmanuel Vadot 258f126890aSEmmanuel Vadot&usb3 { 259f126890aSEmmanuel Vadot status = "okay"; 260f126890aSEmmanuel Vadot 261aa1a8ff2SEmmanuel Vadot }; 262aa1a8ff2SEmmanuel Vadot 263aa1a8ff2SEmmanuel Vadot&usb3_dwc { 264f126890aSEmmanuel Vadot phys = <&usb3_hs_phy>; 265f126890aSEmmanuel Vadot phy-names = "usb2-phy"; 266f126890aSEmmanuel Vadot}; 267f126890aSEmmanuel Vadot 268f126890aSEmmanuel Vadot&usb2_hs_phy { 269f126890aSEmmanuel Vadot status = "okay"; 270f126890aSEmmanuel Vadot}; 271f126890aSEmmanuel Vadot 272f126890aSEmmanuel Vadot&usb2 { 273f126890aSEmmanuel Vadot status = "okay"; 274f126890aSEmmanuel Vadot}; 275