1 // SPDX-License-Identifier: GPL-2.0-only OR MIT
3 #include "qcom-ipq4019.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8 #include <dt-bindings/soc/qcom,tcsr.h>
11 model = "Sony NCP-HG100/Cellular";
12 compatible = "sony,ncp-hg100-cellular";
15 led-boot = &led_cloud_green;
16 led-failsafe = &led_cloud_red;
17 led-running = &led_cloud_green;
18 led-upgrade = &led_cloud_green;
19 label-mac-device = &gmac0;
23 bootargs = "console=ttyMSM0,115200n8 root=/dev/mmcblk0p15 rootfstype=squashfs,ext4";
27 device_type = "memory";
28 reg = <0x80000000 0x20000000>;
34 compatible = "qcom,tcsr";
35 reg = <0x1949000 0x100>;
36 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
41 compatible = "qcom,tcsr";
42 reg = <0x194b000 0x100>;
43 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
48 compatible = "qcom,tcsr";
49 reg = <0x1953000 0x1000>;
50 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
55 compatible = "qcom,tcsr";
56 reg = <0x1957000 0x100>;
57 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
70 switch_mac_mode = <0x0>; /* mac mode for RGMII RMII */
71 switch_initvlas = <0x0007c 0x54>; /* PORT0_STATUS */
80 compatible = "gpio-keys";
81 pinctrl-0 = <&keys_pins>;
82 pinctrl-names = "default";
87 linux,code = <KEY_VOLUMEUP>;
88 gpios = <&tlmm 39 GPIO_ACTIVE_HIGH>;
89 linux,input-type = <EV_KEY>;
93 label = "volume down";
94 linux,code = <KEY_VOLUMEDOWN>;
95 gpios = <&tlmm 40 GPIO_ACTIVE_HIGH>;
96 linux,input-type = <EV_KEY>;
100 label = "alexa trigger";
101 linux,code = <BTN_0>;
102 gpios = <&tlmm 42 GPIO_ACTIVE_HIGH>;
103 linux,input-type = <EV_KEY>;
108 linux,code = <BTN_1>;
109 gpios = <&tlmm 47 GPIO_ACTIVE_LOW>;
110 linux,input-type = <EV_SW>;
115 compatible = "gpio-keys";
119 gpios = <&tlmm 2 GPIO_ACTIVE_LOW>;
120 linux,code = <KEY_RESTART>;
125 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
126 linux,code = <KEY_WPS_BUTTON>;
132 pinctrl-0 = <&bt_pins>, <&aud_pins>, <&mcu_pins>;
133 pinctrl-names = "default";
136 * uart0 is shared for debug console and Z-Wave,
137 * use only for debug console in OpenWrt.
142 uart0_ctrl_pins: uart0_ctrl_pinmux {
150 serial_pins: serial_pinmux {
152 pins = "gpio16", "gpio17";
153 function = "blsp_uart0";
159 * reset pin for Z-Wave
160 * active-low, >= 20ns
162 zwave_pins: zwave_pinmux {
170 serial_1_pins: serial1_pinmux {
172 pins = "gpio8", "gpio9",
174 function = "blsp_uart1";
193 mdio_pins: mdio_pinmux {
207 i2c_1_pins: i2c_1_pinmux {
209 pins = "gpio12", "gpio13";
210 function = "blsp_i2c1";
215 keys_pins: keys_pinmux {
217 pins = "gpio39", "gpio40", "gpio42", "gpio47";
232 pins = "gpio23", "gpio24", "gpio25", "gpio26",
233 "gpio28", "gpio29", "gpio30", "gpio31";
234 drive-strength = <4>;
240 drive-strength = <16>;
246 drive-strength = <4>;
251 aud_pins: aud_pinmux {
253 pins = "gpio48", "gpio49", "gpio50", "gpio51";
254 function = "aud_pin";
258 alc1304_pins: alc1304_pinmux {
272 cx2902x_reset: cx2902x_pinmux {
286 lte_pins: lte_pinmux {
300 usb3_pins: usb3_pinmux {
314 mcu_pins: mcu_pinmux {
335 * There is no driver for the following devices:
336 * - CY8C4014LQI@14 : Touch-Sensor for buttons on top
337 * - MINI54FDE@15 : MCU for Fan/RGB LED/Thermal control
338 * - ALC5629@18 : I2S/PCM Audio DAC
339 * - CX20924@41 : Voice Input Processor
341 pinctrl-0 = <&i2c_1_pins>;
342 pinctrl-names = "default";
346 compatible = "ti,lp55231";
348 clock-mode = /bits/ 8 <0>;
349 enable-gpio = <&tlmm 1 GPIO_ACTIVE_HIGH>;
350 #address-cells = <1>;
354 chan-name = "green:wan";
355 led-cur = /bits/ 8 <50>;
356 max-cur = /bits/ 8 <100>;
358 color = <LED_COLOR_ID_GREEN>;
359 function = LED_FUNCTION_WAN;
363 chan-name = "blue:wan";
364 led-cur = /bits/ 8 <50>;
365 max-cur = /bits/ 8 <100>;
367 color = <LED_COLOR_ID_BLUE>;
368 function = LED_FUNCTION_WAN;
372 chan-name = "green:lan";
373 led-cur = /bits/ 8 <50>;
374 max-cur = /bits/ 8 <100>;
376 color = <LED_COLOR_ID_GREEN>;
377 function = LED_FUNCTION_LAN;
381 chan-name = "blue:lan";
382 led-cur = /bits/ 8 <50>;
383 max-cur = /bits/ 8 <100>;
385 color = <LED_COLOR_ID_BLUE>;
386 function = LED_FUNCTION_LAN;
390 chan-name = "green:wlan-2";
391 led-cur = /bits/ 8 <50>;
392 max-cur = /bits/ 8 <100>;
394 color = <LED_COLOR_ID_GREEN>;
395 function = LED_FUNCTION_WLAN;
396 function-enumerator = <2>;
397 linux,default-trigger = "phy0tpt";
401 chan-name = "blue:wlan-2";
402 led-cur = /bits/ 8 <50>;
403 max-cur = /bits/ 8 <100>;
405 color = <LED_COLOR_ID_BLUE>;
406 function = LED_FUNCTION_WLAN;
407 function-enumerator = <2>;
411 chan-name = "red:wan";
412 led-cur = /bits/ 8 <50>;
413 max-cur = /bits/ 8 <100>;
415 color = <LED_COLOR_ID_RED>;
416 function = LED_FUNCTION_WAN;
420 chan-name = "red:lan";
421 led-cur = /bits/ 8 <50>;
422 max-cur = /bits/ 8 <100>;
424 color = <LED_COLOR_ID_RED>;
425 function = LED_FUNCTION_LAN;
429 chan-name = "red:wlan-2";
430 led-cur = /bits/ 8 <50>;
431 max-cur = /bits/ 8 <100>;
433 color = <LED_COLOR_ID_RED>;
434 function = LED_FUNCTION_WLAN;
435 function-enumerator = <2>;
440 compatible = "ti,lp55231";
442 clock-mode = /bits/ 8 <0>;
443 #address-cells = <1>;
447 chan-name = "green:wlan-5";
448 led-cur = /bits/ 8 <50>;
449 max-cur = /bits/ 8 <100>;
451 color = <LED_COLOR_ID_GREEN>;
452 function = LED_FUNCTION_WLAN;
453 linux,default-trigger = "phy1tpt";
454 function-enumerator = <5>;
458 chan-name = "blue:wlan-5";
459 led-cur = /bits/ 8 <50>;
460 max-cur = /bits/ 8 <100>;
462 color = <LED_COLOR_ID_BLUE>;
463 function = LED_FUNCTION_WLAN;
464 function-enumerator = <5>;
468 chan-name = "green:wan-4";
469 led-cur = /bits/ 8 <50>;
470 max-cur = /bits/ 8 <100>;
472 color = <LED_COLOR_ID_GREEN>;
473 function = LED_FUNCTION_WAN; /* WWAN/LTE/4G */
474 function-enumerator = <4>; /* WWAN/LTE/4G */
478 chan-name = "blue:wan-4";
479 led-cur = /bits/ 8 <50>;
480 max-cur = /bits/ 8 <100>;
482 color = <LED_COLOR_ID_BLUE>;
483 function = LED_FUNCTION_WAN; /* WWAN/LTE/4G */
484 function-enumerator = <4>; /* WWAN/LTE/4G */
487 led_cloud_green: led@4 {
488 chan-name = "green:power";
489 led-cur = /bits/ 8 <50>;
490 max-cur = /bits/ 8 <100>;
492 color = <LED_COLOR_ID_GREEN>;
493 function = LED_FUNCTION_POWER;
497 chan-name = "blue:power";
498 led-cur = /bits/ 8 <50>;
499 max-cur = /bits/ 8 <100>;
501 color = <LED_COLOR_ID_BLUE>;
502 function = LED_FUNCTION_POWER;
506 chan-name = "red:wlan-5";
507 led-cur = /bits/ 8 <50>;
508 max-cur = /bits/ 8 <100>;
510 color = <LED_COLOR_ID_RED>;
511 function = LED_FUNCTION_WLAN;
512 function-enumerator = <5>;
516 chan-name = "red:wan-4";
517 led-cur = /bits/ 8 <50>;
518 max-cur = /bits/ 8 <100>;
520 color = <LED_COLOR_ID_RED>;
521 function = LED_FUNCTION_WAN; /* WWAN/LTE/4G */
522 function-enumerator = <4>; /* WWAN/LTE/4G */
525 led_cloud_red: led@8 {
526 chan-name = "red:power";
527 led-cur = /bits/ 8 <50>;
528 max-cur = /bits/ 8 <100>;
530 color = <LED_COLOR_ID_RED>;
531 function = LED_FUNCTION_POWER;
537 pinctrl-0 = <&serial_pins>, <&uart0_ctrl_pins>;
538 pinctrl-names = "default";
543 pinctrl-0 = <&serial_1_pins>;
544 pinctrl-names = "default";
558 pinctrl-0 = <&mdio_pins>;
559 pinctrl-names = "default";
560 reset-gpios = <&tlmm 41 GPIO_ACTIVE_LOW>;
573 pinctrl-0 = <&sd_pins>;
574 pinctrl-names = "default";
575 vqmmc-supply = <&vqmmc>;
577 #address-cells = <1>;
581 compatible = "mmc-card";
597 pinctrl-0 = <&usb3_pins>, <<e_pins>;
598 pinctrl-names = "default";
601 #address-cells = <1>;
605 compatible = "usb1bc7,1900";
621 qcom,ath10k-calibration-variant = "Sony-NCP-HG100-Cellular";
626 qcom,ath10k-calibration-variant = "Sony-NCP-HG100-Cellular";