0001 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
0002
0003 #include "qcom-ipq4019.dtsi"
0004 #include <dt-bindings/gpio/gpio.h>
0005 #include <dt-bindings/input/input.h>
0006
0007 / {
0008 model = "ALFA Network AP120C-AC";
0009 compatible = "alfa-network,ap120c-ac";
0010
0011 keys {
0012 compatible = "gpio-keys";
0013
0014 key-reset {
0015 label = "reset";
0016 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
0017 linux,code = <KEY_RESTART>;
0018 };
0019 };
0020 };
0021
0022 &tlmm {
0023 i2c0_pins: i2c0_pinmux {
0024 mux_i2c {
0025 function = "blsp_i2c0";
0026 pins = "gpio58", "gpio59";
0027 drive-strength = <16>;
0028 bias-disable;
0029 };
0030 };
0031
0032 mdio_pins: mdio_pinmux {
0033 mux_mdio {
0034 pins = "gpio53";
0035 function = "mdio";
0036 bias-pull-up;
0037 };
0038
0039 mux_mdc {
0040 pins = "gpio52";
0041 function = "mdc";
0042 bias-pull-up;
0043 };
0044 };
0045
0046 serial0_pins: serial0_pinmux {
0047 mux_uart {
0048 pins = "gpio60", "gpio61";
0049 function = "blsp_uart0";
0050 bias-disable;
0051 };
0052 };
0053
0054 spi0_pins: spi0_pinmux {
0055 mux_spi {
0056 function = "blsp_spi0";
0057 pins = "gpio55", "gpio56", "gpio57";
0058 drive-strength = <12>;
0059 bias-disable;
0060 };
0061
0062 mux_cs {
0063 function = "gpio";
0064 pins = "gpio54", "gpio4";
0065 drive-strength = <2>;
0066 bias-disable;
0067 output-high;
0068 };
0069 };
0070
0071 usb-power {
0072 line-name = "USB-power";
0073 gpios = <1 GPIO_ACTIVE_HIGH>;
0074 gpio-hog;
0075 output-high;
0076 };
0077 };
0078
0079 &watchdog {
0080 status = "okay";
0081 };
0082
0083 &prng {
0084 status = "okay";
0085 };
0086
0087 &blsp_dma {
0088 status = "okay";
0089 };
0090
0091 &blsp1_i2c3 {
0092 status = "okay";
0093
0094 pinctrl-0 = <&i2c0_pins>;
0095 pinctrl-names = "default";
0096
0097 tpm@29 {
0098 compatible = "atmel,at97sc3204t";
0099 reg = <0x29>;
0100 };
0101 };
0102
0103 &blsp1_spi1 {
0104 status = "okay";
0105
0106 pinctrl-0 = <&spi0_pins>;
0107 pinctrl-names = "default";
0108 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>, <&tlmm 4 GPIO_ACTIVE_HIGH>;
0109
0110 flash@0 {
0111 compatible = "jedec,spi-nor";
0112 reg = <0>;
0113 spi-max-frequency = <24000000>;
0114
0115 partitions {
0116 compatible = "fixed-partitions";
0117 #address-cells = <1>;
0118 #size-cells = <1>;
0119
0120 partition@0 {
0121 label = "SBL1";
0122 reg = <0x00000000 0x00040000>;
0123 read-only;
0124 };
0125
0126 partition@40000 {
0127 label = "MIBIB";
0128 reg = <0x00040000 0x00020000>;
0129 read-only;
0130 };
0131
0132 partition@60000 {
0133 label = "QSEE";
0134 reg = <0x00060000 0x00060000>;
0135 read-only;
0136 };
0137
0138 partition@c0000 {
0139 label = "CDT";
0140 reg = <0x000c0000 0x00010000>;
0141 read-only;
0142 };
0143
0144 partition@d0000 {
0145 label = "DDRPARAMS";
0146 reg = <0x000d0000 0x00010000>;
0147 read-only;
0148 };
0149
0150 partition@e0000 {
0151 label = "u-boot-env";
0152 reg = <0x000e0000 0x00010000>;
0153 };
0154
0155 partition@f0000 {
0156 label = "u-boot";
0157 reg = <0x000f0000 0x00080000>;
0158 read-only;
0159 };
0160
0161 partition@170000 {
0162 label = "ART";
0163 reg = <0x00170000 0x00010000>;
0164 read-only;
0165 };
0166
0167 partition@180000 {
0168 label = "priv_data1";
0169 reg = <0x00180000 0x00010000>;
0170 read-only;
0171 };
0172
0173 partition@190000 {
0174 label = "priv_data2";
0175 reg = <0x00190000 0x00010000>;
0176 read-only;
0177 };
0178 };
0179 };
0180
0181 nand@1 {
0182 compatible = "spi-nand";
0183 reg = <1>;
0184 spi-max-frequency = <40000000>;
0185
0186 partitions {
0187 compatible = "fixed-partitions";
0188 #address-cells = <1>;
0189 #size-cells = <1>;
0190
0191 partition@0 {
0192 label = "ubi1";
0193 reg = <0x00000000 0x04000000>;
0194 };
0195
0196 partition@4000000 {
0197 label = "ubi2";
0198 reg = <0x04000000 0x04000000>;
0199 };
0200 };
0201 };
0202 };
0203
0204 &blsp1_uart1 {
0205 status = "okay";
0206
0207 pinctrl-0 = <&serial0_pins>;
0208 pinctrl-names = "default";
0209 };
0210
0211 &cryptobam {
0212 status = "okay";
0213 };
0214
0215 &crypto {
0216 status = "okay";
0217 };
0218
0219 &mdio {
0220 status = "okay";
0221
0222 pinctrl-0 = <&mdio_pins>;
0223 pinctrl-names = "default";
0224 };
0225
0226 &wifi0 {
0227 status = "okay";
0228 };
0229
0230 &wifi1 {
0231 status = "okay";
0232 qcom,ath10k-calibration-variant = "ALFA-Network-AP120C-AC";
0233 };
0234
0235 &usb3_hs_phy {
0236 status = "okay";
0237 };
0238
0239 &usb3 {
0240 status = "okay";
0241
0242 dwc3@8a00000 {
0243 phys = <&usb3_hs_phy>;
0244 phy-names = "usb2-phy";
0245 };
0246 };
0247
0248 &usb2_hs_phy {
0249 status = "okay";
0250 };
0251
0252 &usb2 {
0253 status = "okay";
0254 };