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 = &gmac;
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>;
62 compatible = "gpio-keys";
63 pinctrl-0 = <&keys_pins>;
64 pinctrl-names = "default";
69 linux,code = <KEY_VOLUMEUP>;
70 gpios = <&tlmm 39 GPIO_ACTIVE_HIGH>;
71 linux,input-type = <EV_KEY>;
75 label = "volume down";
76 linux,code = <KEY_VOLUMEDOWN>;
77 gpios = <&tlmm 40 GPIO_ACTIVE_HIGH>;
78 linux,input-type = <EV_KEY>;
82 label = "alexa trigger";
84 gpios = <&tlmm 42 GPIO_ACTIVE_HIGH>;
85 linux,input-type = <EV_KEY>;
91 gpios = <&tlmm 47 GPIO_ACTIVE_LOW>;
92 linux,input-type = <EV_SW>;
97 compatible = "gpio-keys";
101 gpios = <&tlmm 2 GPIO_ACTIVE_LOW>;
102 linux,code = <KEY_RESTART>;
107 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
108 linux,code = <KEY_WPS_BUTTON>;
114 pinctrl-0 = <&bt_pins>, <&aud_pins>, <&mcu_pins>;
115 pinctrl-names = "default";
118 * uart0 is shared for debug console and Z-Wave,
119 * use only for debug console in OpenWrt.
124 uart0_ctrl_pins: uart0_ctrl_pinmux {
132 serial_pins: serial_pinmux {
134 pins = "gpio16", "gpio17";
135 function = "blsp_uart0";
141 * reset pin for Z-Wave
142 * active-low, >= 20ns
144 zwave_pins: zwave_pinmux {
152 serial_1_pins: serial1_pinmux {
154 pins = "gpio8", "gpio9",
156 function = "blsp_uart1";
175 mdio_pins: mdio_pinmux {
189 i2c_1_pins: i2c_1_pinmux {
191 pins = "gpio12", "gpio13";
192 function = "blsp_i2c1";
197 keys_pins: keys_pinmux {
199 pins = "gpio39", "gpio40", "gpio42", "gpio47";
214 pins = "gpio23", "gpio24", "gpio25", "gpio26",
215 "gpio28", "gpio29", "gpio30", "gpio31";
216 drive-strength = <4>;
222 drive-strength = <16>;
228 drive-strength = <4>;
233 aud_pins: aud_pinmux {
235 pins = "gpio48", "gpio49", "gpio50", "gpio51";
236 function = "aud_pin";
240 alc1304_pins: alc1304_pinmux {
254 cx2902x_reset: cx2902x_pinmux {
268 lte_pins: lte_pinmux {
282 usb3_pins: usb3_pinmux {
296 mcu_pins: mcu_pinmux {
317 * There is no driver for the following devices:
318 * - CY8C4014LQI@14 : Touch-Sensor for buttons on top
319 * - MINI54FDE@15 : MCU for Fan/RGB LED/Thermal control
320 * - ALC5629@18 : I2S/PCM Audio DAC
321 * - CX20924@41 : Voice Input Processor
323 pinctrl-0 = <&i2c_1_pins>;
324 pinctrl-names = "default";
328 compatible = "ti,lp55231";
330 clock-mode = /bits/ 8 <0>;
331 enable-gpio = <&tlmm 1 GPIO_ACTIVE_HIGH>;
332 #address-cells = <1>;
336 chan-name = "green:wan";
337 led-cur = /bits/ 8 <50>;
338 max-cur = /bits/ 8 <100>;
340 color = <LED_COLOR_ID_GREEN>;
341 function = LED_FUNCTION_WAN;
345 chan-name = "blue:wan";
346 led-cur = /bits/ 8 <50>;
347 max-cur = /bits/ 8 <100>;
349 color = <LED_COLOR_ID_BLUE>;
350 function = LED_FUNCTION_WAN;
354 chan-name = "green:lan";
355 led-cur = /bits/ 8 <50>;
356 max-cur = /bits/ 8 <100>;
358 color = <LED_COLOR_ID_GREEN>;
359 function = LED_FUNCTION_LAN;
363 chan-name = "blue:lan";
364 led-cur = /bits/ 8 <50>;
365 max-cur = /bits/ 8 <100>;
367 color = <LED_COLOR_ID_BLUE>;
368 function = LED_FUNCTION_LAN;
372 chan-name = "green:wlan-2";
373 led-cur = /bits/ 8 <50>;
374 max-cur = /bits/ 8 <100>;
376 color = <LED_COLOR_ID_GREEN>;
377 function = LED_FUNCTION_WLAN;
378 function-enumerator = <2>;
379 linux,default-trigger = "phy0tpt";
383 chan-name = "blue:wlan-2";
384 led-cur = /bits/ 8 <50>;
385 max-cur = /bits/ 8 <100>;
387 color = <LED_COLOR_ID_BLUE>;
388 function = LED_FUNCTION_WLAN;
389 function-enumerator = <2>;
393 chan-name = "red:wan";
394 led-cur = /bits/ 8 <50>;
395 max-cur = /bits/ 8 <100>;
397 color = <LED_COLOR_ID_RED>;
398 function = LED_FUNCTION_WAN;
402 chan-name = "red:lan";
403 led-cur = /bits/ 8 <50>;
404 max-cur = /bits/ 8 <100>;
406 color = <LED_COLOR_ID_RED>;
407 function = LED_FUNCTION_LAN;
411 chan-name = "red:wlan-2";
412 led-cur = /bits/ 8 <50>;
413 max-cur = /bits/ 8 <100>;
415 color = <LED_COLOR_ID_RED>;
416 function = LED_FUNCTION_WLAN;
417 function-enumerator = <2>;
422 compatible = "ti,lp55231";
424 clock-mode = /bits/ 8 <0>;
425 #address-cells = <1>;
429 chan-name = "green:wlan-5";
430 led-cur = /bits/ 8 <50>;
431 max-cur = /bits/ 8 <100>;
433 color = <LED_COLOR_ID_GREEN>;
434 function = LED_FUNCTION_WLAN;
435 linux,default-trigger = "phy1tpt";
436 function-enumerator = <5>;
440 chan-name = "blue:wlan-5";
441 led-cur = /bits/ 8 <50>;
442 max-cur = /bits/ 8 <100>;
444 color = <LED_COLOR_ID_BLUE>;
445 function = LED_FUNCTION_WLAN;
446 function-enumerator = <5>;
450 chan-name = "green:wan-4";
451 led-cur = /bits/ 8 <50>;
452 max-cur = /bits/ 8 <100>;
454 color = <LED_COLOR_ID_GREEN>;
455 function = LED_FUNCTION_WAN; /* WWAN/LTE/4G */
456 function-enumerator = <4>; /* WWAN/LTE/4G */
460 chan-name = "blue:wan-4";
461 led-cur = /bits/ 8 <50>;
462 max-cur = /bits/ 8 <100>;
464 color = <LED_COLOR_ID_BLUE>;
465 function = LED_FUNCTION_WAN; /* WWAN/LTE/4G */
466 function-enumerator = <4>; /* WWAN/LTE/4G */
469 led_cloud_green: led@4 {
470 chan-name = "green:power";
471 led-cur = /bits/ 8 <50>;
472 max-cur = /bits/ 8 <100>;
474 color = <LED_COLOR_ID_GREEN>;
475 function = LED_FUNCTION_POWER;
479 chan-name = "blue:power";
480 led-cur = /bits/ 8 <50>;
481 max-cur = /bits/ 8 <100>;
483 color = <LED_COLOR_ID_BLUE>;
484 function = LED_FUNCTION_POWER;
488 chan-name = "red:wlan-5";
489 led-cur = /bits/ 8 <50>;
490 max-cur = /bits/ 8 <100>;
492 color = <LED_COLOR_ID_RED>;
493 function = LED_FUNCTION_WLAN;
494 function-enumerator = <5>;
498 chan-name = "red:wan-4";
499 led-cur = /bits/ 8 <50>;
500 max-cur = /bits/ 8 <100>;
502 color = <LED_COLOR_ID_RED>;
503 function = LED_FUNCTION_WAN; /* WWAN/LTE/4G */
504 function-enumerator = <4>; /* WWAN/LTE/4G */
507 led_cloud_red: led@8 {
508 chan-name = "red:power";
509 led-cur = /bits/ 8 <50>;
510 max-cur = /bits/ 8 <100>;
512 color = <LED_COLOR_ID_RED>;
513 function = LED_FUNCTION_POWER;
519 pinctrl-0 = <&serial_pins>, <&uart0_ctrl_pins>;
520 pinctrl-names = "default";
525 pinctrl-0 = <&serial_1_pins>;
526 pinctrl-names = "default";
540 pinctrl-0 = <&mdio_pins>;
541 pinctrl-names = "default";
542 reset-gpios = <&tlmm 41 GPIO_ACTIVE_LOW>;
555 pinctrl-0 = <&sd_pins>;
556 pinctrl-names = "default";
557 vqmmc-supply = <&vqmmc>;
559 #address-cells = <1>;
563 compatible = "mmc-card";
579 pinctrl-0 = <&usb3_pins>, <<e_pins>;
580 pinctrl-names = "default";
584 #address-cells = <1>;
588 compatible = "usb1bc7,1900";
621 qcom,ath10k-calibration-variant = "Sony-NCP-HG100-Cellular";
626 qcom,ath10k-calibration-variant = "Sony-NCP-HG100-Cellular";