#include #include #include #include #include /dts-v1/; #include "en7552.dtsi" / { compatible = "econet,en7523", "airoha,en7523"; #address-cells = <1>; #size-cells = <1>; gpio0: gpio@1fbf0200 { compatible = "airoha,airoha-gpio"; gpio_base = <0>; reg = <0x1fbf0204 0x4>, <0x1fbf0200 0x4>, <0x1fbf0220 0x4>, <0x1fbf0214 0x4>; gpio-controller; #gpio-cells = <2>; }; gpio1: gpio@1fbf0270 { compatible = "airoha,airoha-gpio"; gpio_base = <32>; reg = <0x1fbf0270 0x4>, <0x1fbf0260 0x4>, <0x1fbf0264 0x4>, <0x1fbf0278 0x4>; gpio-controller; #gpio-cells = <2>; }; pwm: pwm@1fbf0234{ compatible = "airoha,airoha-pwm"; reg = <0x1fbf0234 0x20>, <0x1fbf0268 0x4>, <0x1fbf0298 0x24>; }; leds { compatible = "gpio-leds"; internet { label = "internet"; gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>; linux,default-trigger = "timer"; }; phy_tx_power_disable { label = "phy_tx_power_disable"; gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; linux,default-trigger = "dsldev"; default-state = "on"; }; /*power { label = "power"; gpios = <&gpio0 27 GPIO_ACTIVE_LOW>; linux,default-trigger = "timer"; };*/ usb2 { label = "usb2"; gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; trigger-sources = <&xhci_hcd>; linux,default-trigger = "usbport"; }; led_sys { label = "led_sys"; gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; /*linux,default-trigger = "timer";*/ default-state = "on"; }; voip_hook { label = "voip_hook"; gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; linux,default-trigger = "timer"; }; /*voip_hook2 { label = "voip_hook2"; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; linux,default-trigger = "timer"; };*/ led_wlan { label = "led_wlan"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; /*linux,default-trigger = "timer";*/ default-state = "on"; }; led_status { label = "led_status"; gpios = <&gpio0 27 GPIO_ACTIVE_LOW>; /*linux,default-trigger = "timer";*/ default-state = "on"; }; led_onekey { label = "led_onekey"; gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>; /*linux,default-trigger = "timer";*/ default-state = "on"; }; xponLos { label = "xponLos"; gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; linux,default-trigger = "timer"; }; hwwatchdog { label = "hwwatchdog"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; linux,default-trigger = "timer"; }; }; gpio-keys-polled { compatible = "gpio-keys-polled"; poll-interval = <100>; reset_ { label = "reset_"; linux,code = ; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; }; wps { label = "wps"; linux,code = ; gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; }; }; partitions { compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; bootloader@0 { label = "bootloader"; reg = <0x00000000 0x00080000>; }; u-boot-env@80000 { label = "u-boot-env"; reg = <0x00080000 0x00080000>; }; factory@100000 { label = "Factory"; reg = <0x00100000 0x00400000>; }; tclinux@500000 { label = "tclinux"; reg = <0x00500000 0x02800000>; }; tclinux_slave@2D00000 { label = "tclinux_slave"; reg = <0x02D00000 0x02800000>; }; rootfs_data@5500000 { label = "rootfs_data"; reg = <0x05500000 0x00800000>; }; art@de80000 { label = "art"; //art is located in flash end. if reg offset != ffffffff, it represents the actual offset //else offset = flash_logic_size-reg_size(drivers/mtd/maps/tc3162-flash.c) reg = <0xffffffff 0x00380000>; }; }; i2c@1fbf8000 { compatible = "airoha,airoha-i2c"; reg = <0x1fbf8000 0x65>; clock-frequency = <100000>; }; /*gpio@1fbf0200 { compatible = "econet,ecnt-gpio"; interrupts = ; // gpio int INT 10+16 reg = <0x1fbf0200 0x80>; status = "disabled"; // default disable };*/ airoha-trng@1faa1000 { compatible = "airoha,airoha-trng"; reg = <0x1faa1000 0xc04>; interrupts = ; }; thermal-zones { cpu_thermal: cpu-thermal { polling-delay-passive = <200>; polling-delay = <1000>; thermal-sensors = <&thermal_phy 0>; trips { cpu_passive: cpu-passive { temperature = <125000>; hysteresis = <0>; type = "passive"; }; }; cooling-maps { map0 { trip = <&cpu_passive>; cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; }; }; }; thermal_phy: thermal_phy@1efbd000 { #thermal-sensor-cells = <0>; compatible = "airoha,en7552-thermal_phy"; reg = <0x1efbd000 0x0fff>; //ptp_thermal_ctrl int_name = "ptp_therm"; }; uart1: serial@1fbf0000 { compatible = "ns8250"; reg = <0x1fbf0000 0x30>; reg-io-width = <4>; reg-shift = <2>; interrupts = ; clock-frequency = <1843200>; status = "okay"; }; crypto_eip93@1fb70000 { compatible = "airoha,airoha-eip93"; reg = <0x1fb70000 0x804>; interrupts = ; }; };