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>;
66 compatible = "gpio-keys";
67 pinctrl-0 = <&keys_pins>;
68 pinctrl-names = "default";
73 linux,code = <KEY_VOLUMEUP>;
74 gpios = <&tlmm 39 GPIO_ACTIVE_HIGH>;
75 linux,input-type = <EV_KEY>;
79 label = "volume down";
80 linux,code = <KEY_VOLUMEDOWN>;
81 gpios = <&tlmm 40 GPIO_ACTIVE_HIGH>;
82 linux,input-type = <EV_KEY>;
86 label = "alexa trigger";
88 gpios = <&tlmm 42 GPIO_ACTIVE_HIGH>;
89 linux,input-type = <EV_KEY>;
95 gpios = <&tlmm 47 GPIO_ACTIVE_LOW>;
96 linux,input-type = <EV_SW>;
101 compatible = "gpio-keys";
105 gpios = <&tlmm 2 GPIO_ACTIVE_LOW>;
106 linux,code = <KEY_RESTART>;
111 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
112 linux,code = <KEY_WPS_BUTTON>;
118 pinctrl-0 = <&bt_pins>, <&aud_pins>, <&mcu_pins>;
119 pinctrl-names = "default";
122 * uart0 is shared for debug console and Z-Wave,
123 * use only for debug console in OpenWrt.
128 uart0_ctrl_pins: uart0_ctrl_pinmux {
136 serial_pins: serial_pinmux {
138 pins = "gpio16", "gpio17";
139 function = "blsp_uart0";
145 * reset pin for Z-Wave
146 * active-low, >= 20ns
148 zwave_pins: zwave_pinmux {
156 serial_1_pins: serial1_pinmux {
158 pins = "gpio8", "gpio9",
160 function = "blsp_uart1";
179 mdio_pins: mdio_pinmux {
193 i2c_1_pins: i2c_1_pinmux {
195 pins = "gpio12", "gpio13";
196 function = "blsp_i2c1";
201 keys_pins: keys_pinmux {
203 pins = "gpio39", "gpio40", "gpio42", "gpio47";
218 pins = "gpio23", "gpio24", "gpio25", "gpio26",
219 "gpio28", "gpio29", "gpio30", "gpio31";
220 drive-strength = <4>;
226 drive-strength = <16>;
232 drive-strength = <4>;
237 aud_pins: aud_pinmux {
239 pins = "gpio48", "gpio49", "gpio50", "gpio51";
240 function = "aud_pin";
244 alc1304_pins: alc1304_pinmux {
258 cx2902x_reset: cx2902x_pinmux {
272 lte_pins: lte_pinmux {
286 usb3_pins: usb3_pinmux {
300 mcu_pins: mcu_pinmux {
321 * There is no driver for the following devices:
322 * - CY8C4014LQI@14 : Touch-Sensor for buttons on top
323 * - MINI54FDE@15 : MCU for Fan/RGB LED/Thermal control
324 * - ALC5629@18 : I2S/PCM Audio DAC
325 * - CX20924@41 : Voice Input Processor
327 pinctrl-0 = <&i2c_1_pins>;
328 pinctrl-names = "default";
332 compatible = "ti,lp55231";
334 clock-mode = /bits/ 8 <0>;
335 enable-gpio = <&tlmm 1 GPIO_ACTIVE_HIGH>;
336 #address-cells = <1>;
340 chan-name = "green:wan";
341 led-cur = /bits/ 8 <50>;
342 max-cur = /bits/ 8 <100>;
344 color = <LED_COLOR_ID_GREEN>;
345 function = LED_FUNCTION_WAN;
349 chan-name = "blue:wan";
350 led-cur = /bits/ 8 <50>;
351 max-cur = /bits/ 8 <100>;
353 color = <LED_COLOR_ID_BLUE>;
354 function = LED_FUNCTION_WAN;
358 chan-name = "green:lan";
359 led-cur = /bits/ 8 <50>;
360 max-cur = /bits/ 8 <100>;
362 color = <LED_COLOR_ID_GREEN>;
363 function = LED_FUNCTION_LAN;
367 chan-name = "blue:lan";
368 led-cur = /bits/ 8 <50>;
369 max-cur = /bits/ 8 <100>;
371 color = <LED_COLOR_ID_BLUE>;
372 function = LED_FUNCTION_LAN;
376 chan-name = "green:wlan-2";
377 led-cur = /bits/ 8 <50>;
378 max-cur = /bits/ 8 <100>;
380 color = <LED_COLOR_ID_GREEN>;
381 function = LED_FUNCTION_WLAN;
382 function-enumerator = <2>;
383 linux,default-trigger = "phy0tpt";
387 chan-name = "blue:wlan-2";
388 led-cur = /bits/ 8 <50>;
389 max-cur = /bits/ 8 <100>;
391 color = <LED_COLOR_ID_BLUE>;
392 function = LED_FUNCTION_WLAN;
393 function-enumerator = <2>;
397 chan-name = "red:wan";
398 led-cur = /bits/ 8 <50>;
399 max-cur = /bits/ 8 <100>;
401 color = <LED_COLOR_ID_RED>;
402 function = LED_FUNCTION_WAN;
406 chan-name = "red:lan";
407 led-cur = /bits/ 8 <50>;
408 max-cur = /bits/ 8 <100>;
410 color = <LED_COLOR_ID_RED>;
411 function = LED_FUNCTION_LAN;
415 chan-name = "red:wlan-2";
416 led-cur = /bits/ 8 <50>;
417 max-cur = /bits/ 8 <100>;
419 color = <LED_COLOR_ID_RED>;
420 function = LED_FUNCTION_WLAN;
421 function-enumerator = <2>;
426 compatible = "ti,lp55231";
428 clock-mode = /bits/ 8 <0>;
429 #address-cells = <1>;
433 chan-name = "green:wlan-5";
434 led-cur = /bits/ 8 <50>;
435 max-cur = /bits/ 8 <100>;
437 color = <LED_COLOR_ID_GREEN>;
438 function = LED_FUNCTION_WLAN;
439 linux,default-trigger = "phy1tpt";
440 function-enumerator = <5>;
444 chan-name = "blue:wlan-5";
445 led-cur = /bits/ 8 <50>;
446 max-cur = /bits/ 8 <100>;
448 color = <LED_COLOR_ID_BLUE>;
449 function = LED_FUNCTION_WLAN;
450 function-enumerator = <5>;
454 chan-name = "green:wan-4";
455 led-cur = /bits/ 8 <50>;
456 max-cur = /bits/ 8 <100>;
458 color = <LED_COLOR_ID_GREEN>;
459 function = LED_FUNCTION_WAN; /* WWAN/LTE/4G */
460 function-enumerator = <4>; /* WWAN/LTE/4G */
464 chan-name = "blue:wan-4";
465 led-cur = /bits/ 8 <50>;
466 max-cur = /bits/ 8 <100>;
468 color = <LED_COLOR_ID_BLUE>;
469 function = LED_FUNCTION_WAN; /* WWAN/LTE/4G */
470 function-enumerator = <4>; /* WWAN/LTE/4G */
473 led_cloud_green: led@4 {
474 chan-name = "green:power";
475 led-cur = /bits/ 8 <50>;
476 max-cur = /bits/ 8 <100>;
478 color = <LED_COLOR_ID_GREEN>;
479 function = LED_FUNCTION_POWER;
483 chan-name = "blue:power";
484 led-cur = /bits/ 8 <50>;
485 max-cur = /bits/ 8 <100>;
487 color = <LED_COLOR_ID_BLUE>;
488 function = LED_FUNCTION_POWER;
492 chan-name = "red:wlan-5";
493 led-cur = /bits/ 8 <50>;
494 max-cur = /bits/ 8 <100>;
496 color = <LED_COLOR_ID_RED>;
497 function = LED_FUNCTION_WLAN;
498 function-enumerator = <5>;
502 chan-name = "red:wan-4";
503 led-cur = /bits/ 8 <50>;
504 max-cur = /bits/ 8 <100>;
506 color = <LED_COLOR_ID_RED>;
507 function = LED_FUNCTION_WAN; /* WWAN/LTE/4G */
508 function-enumerator = <4>; /* WWAN/LTE/4G */
511 led_cloud_red: led@8 {
512 chan-name = "red:power";
513 led-cur = /bits/ 8 <50>;
514 max-cur = /bits/ 8 <100>;
516 color = <LED_COLOR_ID_RED>;
517 function = LED_FUNCTION_POWER;
523 pinctrl-0 = <&serial_pins>, <&uart0_ctrl_pins>;
524 pinctrl-names = "default";
529 pinctrl-0 = <&serial_1_pins>;
530 pinctrl-names = "default";
544 pinctrl-0 = <&mdio_pins>;
545 pinctrl-names = "default";
546 reset-gpios = <&tlmm 41 GPIO_ACTIVE_LOW>;
559 pinctrl-0 = <&sd_pins>;
560 pinctrl-names = "default";
561 vqmmc-supply = <&vqmmc>;
563 #address-cells = <1>;
567 compatible = "mmc-card";
583 pinctrl-0 = <&usb3_pins>, <<e_pins>;
584 pinctrl-names = "default";
587 #address-cells = <1>;
591 compatible = "usb1bc7,1900";
625 qcom,ath10k-calibration-variant = "Sony-NCP-HG100-Cellular";
630 qcom,ath10k-calibration-variant = "Sony-NCP-HG100-Cellular";