#include #include #include #include /dts-v1/; /memreserve/ 0x80000000 0x0000000000080000; // ATF BL31 + BL32 / { compatible = "linux,dummy-virt"; #size-cells = <0x2>; #address-cells = <0x2>; interrupt-parent = <&gic>; rst: reset-controller { #reset-cells = <1>; compatible = "cvitek,reset"; reg = <0x0 0x03003000 0x0 0x10>; }; gic: interrupt-controller { compatible = "arm,cortex-a15-gic"; ranges; #size-cells = <0x2>; #address-cells = <0x2>; interrupt-controller; #interrupt-cells = <0x3>; reg = <0x0 0x01F01000 0x0 0x1000>, <0x0 0x01F02000 0x0 0x2000>; }; psci { migrate = <0xc4000005>; cpu_on = <0xc4000003>; cpu_off = <0x84000002>; cpu_suspend = <0xc4000001>; sys_poweroff = <0x84000008>; sys_reset = <0x84000009>; method = "smc"; compatible = "arm,psci-0.2", "arm,psci"; }; cpus { #size-cells = <0x0>; #address-cells = <0x1>; A53_0: cpu@0 { reg = <0x0>; enable-method = "psci"; compatible = "arm,cortex-a53"; device_type = "cpu"; }; }; tpu { compatible = "cvitek,tpu"; reg-names = "tdma", "tiu"; reg = <0x0 0x0C100000 0x0 0x1000>, <0x0 0x0C101000 0x0 0x1000>; interrupts = , ; }; cvitek-ion { compatible = "cvitek,cvitek-ion"; heap_carveout@0 { compatible = "cvitek,carveout"; memory-region = <&ion_reserved>; }; }; reserved-memory { #address-cells = <0x2>; #size-cells = <0x2>; ranges; cma_reserved: linux,cma { compatible = "shared-dma-pool"; reusable; size = <0x0 0x1000000>; // 16MB alignment = <0x0 0x2000>; // 8KB linux,cma-default; }; ion_reserved: ion { compatible = "ion-region"; size = <0x0 0x08000000>; // 96MB + vip 32MB }; vcodec_reserved: vcodec { /* pair * and restrict to 4G address range */ alloc-ranges = <0x0 0x80000000 0 0xC0000000>; size = <0x0 0x06000000>; // 96MB alignment = <0x0 0x1000>; // 4KB no-map; }; jpu_reserved: jpu { /* pair * and restrict to 4G address range */ alloc-ranges = <0x0 0x80000000 0 0xC0000000>; size = <0x0 0x01000000>; // 16MB alignment = <0x0 0x1000>; // 4KB no-map; }; }; timer { interrupts = , , , ; always-on; clock-frequency = <25000000>; compatible = "arm,armv8-timer"; }; watchdog0: cv-wd@0x3010000 { compatible = "snps,dw-wdt"; reg = <0x0 0x03010000 0x0 0x1000>; interrupts = ; resets = <&rst RST_WDT>; clocks = <&pclk>; }; pclk: pclk { #clock-cells = <0>; compatible = "fixed-clock"; clock-frequency = <25000000>; }; uart0: serial@04140000 { compatible = "snps,dw-apb-uart"; reg = <0x0 0x04140000 0x0 0x1000>; clock-frequency = <25000000>; interrupts = ; reg-shift = <2>; reg-io-width = <4>; }; usb: usb@04340000 { compatible = "cvitek,cv1822-usb"; reg = <0x0 0x04340000 0x0 0x10000>; interrupts = ; dr_mode = "otg"; g-use-dma; g-rx-fifo-size = <512>; g-np-tx-fifo-size = <64>; g-tx-fifo-size = <512 128 128 0 0 0>; status = "okay"; }; memory { reg = <0x0 0x80000000 0x0 0x80000000>; device_type = "memory"; }; eth_csrclk: eth_csrclk { clock-output-names = "eth_csrclk"; clock-frequency = <25000000>; #clock-cells = <0x0>; compatible = "fixed-clock"; }; eth_ptpclk: eth_ptpclk { clock-output-names = "eth_ptpclk"; clock-frequency = <50000000>; #clock-cells = <0x0>; compatible = "fixed-clock"; }; stmmac_axi_setup: stmmac-axi-config { snps,wr_osr_lmt = <1>; snps,rd_osr_lmt = <2>; snps,blen = <4 8 16 0 0 0 0>; }; mtl_rx_setup: rx-queues-config { snps,rx-queues-to-use = <1>; queue0 {}; }; mtl_tx_setup: tx-queues-config { snps,tx-queues-to-use = <1>; queue0 {}; }; ethernet0: ethernet@4070000 { compatible = "cvitek,ethernet"; reg = <0x0 0x04070000 0x0 0x10000>; interrupt-names = "macirq"; interrupts = ; clock-names = "stmmaceth", "ptp_ref"; clocks = <ð_csrclk>, <ð_ptpclk>; //phy-reset-gpios = <&porta 26 0>; /* no hash filter and perfect filter support */ snps,multicast-filter-bins = <0>; snps,perfect-filter-entries = <1>; snps,txpbl = <8>; snps,rxpbl = <8>; snps,aal; snps,axi-config = <&stmmac_axi_setup>; snps,mtl-rx-config = <&mtl_rx_setup>; snps,mtl-tx-config = <&mtl_tx_setup>; }; gpio0: gpio@03020000 { compatible = "snps,dw-apb-gpio"; reg = <0x0 0x03020000 0x0 0x1000>; #address-cells = <1>; #size-cells = <0>; porta: gpio-controller@0 { compatible = "snps,dw-apb-gpio-port"; bank-name = "porta"; gpio-controller; #gpio-cells = <2>; snps,nr-gpios = <32>; reg = <0>; interrupt-controller; interrupts = ; }; }; gpio3: gpio@03023000 { compatible = "snps,dw-apb-gpio"; reg = <0x0 0x03023000 0x0 0x1000>; #address-cells = <1>; #size-cells = <0>; portd: gpio-controller@2 { compatible = "snps,dw-apb-gpio-port"; bank-name = "portd"; gpio-controller; #gpio-cells = <2>; snps,nr-gpios = <12>; reg = <0>; interrupt-controller; interrupts = ; }; }; i2c_srcclk: clk25mhz { clock-output-names = "clk25mhz"; clock-frequency = <25000000>; #clock-cells = <0x0>; compatible = "fixed-clock"; }; audio_clock: audio_clock { compatible = "fixed-clock"; #clock-cells = <0>; #if 0 clock-frequency = <12288000>; #else clock-frequency = <24576000>; #endif }; i2c0: i2c@04000000 { compatible = "snps,designware-i2c"; clocks = <&i2c_srcclk>; reg = <0x0 0x04000000 0x0 0x1000>; interrupts = ; clock-frequency = <100000>; #size-cells = <0x0>; #address-cells = <0x1>; resets = <&rst RST_I2C0>; reset-names = "i2c0"; adau1372_1: adau1372@3c { compatible = "adi,adau1372"; reg = <0x3c>; clocks = <&audio_clock>; clock-names = "mclk"; }; }; i2c3: i2c@04030000 { compatible = "snps,designware-i2c"; clocks = <&i2c_srcclk>; reg = <0x0 0x04030000 0x0 0x1000>; interrupts = ; clock-frequency = <100000>; #size-cells = <0x0>; #address-cells = <0x1>; resets = <&rst RST_I2C3>; reset-names = "i2c3"; }; mipi_rx: cif { compatible = "cvitek,cif"; reg = <0x0 0x0a0c2000 0x0 0x2000>, <0x0 0x0a0d0000 0x0 0x1000>, <0x0 0x0a0c4000 0x0 0x2000>; reg-names = "csi_mac0", "csi_wrap0", "csi_mac1"; interrupts = , ; interrupt-names = "csi0", "csi1"; snsr-reset = <&porta 2 GPIO_ACTIVE_LOW>; resets = <&rst RST_CSIPHY0>, <&rst RST_CSIPHY1>, <&rst RST_CSIPHY0RST_APB>, <&rst RST_CSIPHY1RST_APB>; reset-names = "phy0", "phy1", "phy-apb0", "phy-apb1"; }; mipi_tx { compatible = "cvitek,mipi_tx"; }; base { compatible = "cvitek,base"; }; vip { compatible = "cvitek,vip"; reg = <0x0 0x0a080000 0x0 0x10000>,<0x0 0x0a0c0000 0x0 0x1000>, <0x0 0x0a0c8000 0x0 0x20>,<0x0 0x0a000000 0x0 0x80000>, <0x0 0x0a0d1000 0x0 0x100>; reg-names = "sc","dwa","vip_sys","isp","dphy"; interrupts = , , ; interrupt-names = "sc","dwa","isp"; cvitek,cif-modules = <&mipi_rx>; snsr-num = <1>; clock-freq-vip-sys1 = <300000000>; }; vcodec { compatible = "cvitek,cv1822-fpga-vcodec"; memory-region = <&vcodec_reserved>; reg = <0x0 0x0B020000 0x0 0x10000>,<0x0 0x0B010000 0x0 0x10000>,<0x0 0x0B030000 0x0 0x100>; reg-names = "h265", "h264","vc_ctrl"; interrupts = , ; interrupt-names = "h265","h264"; }; jpu { compatible = "cvitek,cv1822-fpga-jpeg"; memory-region = <&jpu_reserved>; reg = <0x0 0x0B000000 0x0 0x300>; reg-names = "jpeg"; interrupts = ; interrupt-names = "jpeg"; reset = <&rst RST_JPEG>; reset-names = "jpeg"; }; aliases { serial0 = &uart0; ethernet0 = ðernet0; }; chosen { stdout-path = "serial0"; // "serial0:115200n8", no arguments means no re-initialization }; pmu_a53 { compatible = "arm,cortex-a53-pmu"; interrupts = , ; interrupt-affinity = <&A53_0>; }; };