/* * Copyright (C) 2015 Imagination Technologies Ltd. * Copyright (C) 2015 Google, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #include #include #include #include #include / { compatible = "img,pistachio"; #address-cells = <1>; #size-cells = <1>; interrupt-parent = <&gic>; reserved-memory { #address-cells = <1>; #size-cells = <1>; ranges; linux,cma { compatible = "shared-dma-pool"; reusable; size = <0x400000>; alignment = <0x1000>; alloc-ranges = <0x00000000 0x4000000>; linux,cma-default; }; }; cpus { #address-cells = <1>; #size-cells = <0>; cpu0: cpu@0 { device_type = "cpu"; compatible = "mti,interaptiv"; reg = <0>; clocks = <&clk_core CLK_MIPS_PLL>; clock-names = "cpu"; clock-latency = <1000>; operating-points = < /* kHz uV(dummy) */ 546000 1150000 520000 1100000 494000 1000000 468000 950000 442000 900000 416000 800000 >; }; }; uccpsystem: uccp-system@0 { compatible = "img,pistachio-uccp-system"; status = "disabled"; /* * RPU-only clock signals: * CLK_RPU_CORE, CLK_RPU_CORE_DIV * BT-only: * CLK_BT, CLK_BT_DIV4, CLK_BT_DIV8 * WIFI-only: * the rest */ clocks-number = <13>; clocks = <&clk_core CLK_RPU_CORE>, <&clk_core CLK_BT>, <&clk_core CLK_BT_DIV4>, <&clk_core CLK_BT_DIV8>, <&clk_core CLK_RPU_V>, <&clk_core CLK_RPU_L>, <&clk_core CLK_RPU_SLEEP>, <&clk_core CLK_WIFI_ADC>, <&clk_core CLK_WIFI_DAC>, <&clk_core CLK_EVENT_TIMER>, <&cr_periph SYS_CLK_EVENT_TIMER>, <&clk_core CLK_AUX_ADC>, <&clk_core CLK_AUX_ADC_INTERNAL>; clock-names = "rpu_core", "bt", "bt_div4", "bt_div8", "rpu_v", "rpu_l", "rpu_sleep", "wifi_adc", "wifi_dac", "event_timer", "sys_event_timer", "aux_adc", "aux_adc_internal"; assigned-clocks = <&clk_core CLK_BT_PLL_MUX>, <&clk_core CLK_RPU_L_MUX>, <&clk_core CLK_RPU_L_PLL_MUX>, <&clk_core CLK_RPU_V_PLL_MUX>, <&clk_core CLK_WIFI_PLL_MUX>, <&clk_core CLK_WIFI_DIV4_MUX>, <&clk_core CLK_WIFI_DIV8_MUX>, <&clk_core CLK_RPU_SLEEP_DIV>, <&clk_core CLK_BT_DIV>, <&clk_core CLK_BT_DIV4_DIV>, <&clk_core CLK_BT_DIV8_DIV>, <&clk_core CLK_BT_PLL>, <&clk_core CLK_RPU_L_DIV>, <&clk_core CLK_RPU_V_DIV>, <&clk_core CLK_WIFI_PLL>, <&clk_core CLK_RPU_CORE_DIV>; assigned-clock-parents = <&clk_core CLK_BT_PLL>, <&clk_core CLK_RPU_L_PLL_MUX>, <&clk_core CLK_RPU_L_PLL>, <&clk_core CLK_RPU_V_PLL>, <&clk_core CLK_WIFI_PLL>, <&clk_core CLK_WIFI_DIV4>, <&clk_core CLK_WIFI_DIV8>; assigned-clock-rates = <0>, <0>, <0>, <0>, <0>, <0>, <0>, <52000>, <104000000>, <26000000>, <13000000>, <0>, <559000000>, <598000000>, <320000000>, <320000000>; reg = <0x18480000 0x40000>, <0x1a000000 0x00066cc0>; reg-names = "UCCP system bus", "UCCP packed GRAM"; }; uccphostport: uccp-hostport@0 { compatible = "img,pistachio-uccp-hostport"; /* Hostport block Meta IRQ enable */ reg = <0x18480400 4>, <0x18480430 0x10>, <0x18480444 4>; reg-names = "Hostport mtx_irq enable", "Hostport control block", "Hostport mtx_int enable"; status = "disabled"; interrupts = ; #address-cells = <1>; #size-cells = <1>; }; uccpbthp: uccp-bt-hostport@0 { compatible = "img,pistachio-uccp-bt"; reg = <0x1A000000 0x1000>; status = "disabled"; #address-cells = <1>; #size-cells = <1>; }; uccpdummyhp: uccp-dummy-hostport@0 { compatible = "img,pistachio-uccp-dummy"; status = "disabled"; }; i2c0: i2c@18100000 { compatible = "img,scb-i2c"; reg = <0x18100000 0x200>; interrupts = ; clocks = <&clk_periph PERIPH_CLK_I2C0>, <&cr_periph SYS_CLK_I2C0>; clock-names = "scb", "sys"; assigned-clocks = <&clk_periph PERIPH_CLK_I2C0_PRE_DIV>, <&clk_periph PERIPH_CLK_I2C0_DIV>; assigned-clock-rates = <100000000>, <33333334>; status = "disabled"; pinctrl-names = "default"; pinctrl-0 = <&i2c0_pins>; #address-cells = <1>; #size-cells = <0>; }; i2c1: i2c@18100200 { compatible = "img,scb-i2c"; reg = <0x18100200 0x200>; interrupts = ; clocks = <&clk_periph PERIPH_CLK_I2C1>, <&cr_periph SYS_CLK_I2C1>; clock-names = "scb", "sys"; assigned-clocks = <&clk_periph PERIPH_CLK_I2C1_PRE_DIV>, <&clk_periph PERIPH_CLK_I2C1_DIV>; assigned-clock-rates = <100000000>, <33333334>; status = "disabled"; pinctrl-names = "default"; pinctrl-0 = <&i2c1_pins>; #address-cells = <1>; #size-cells = <0>; }; i2c2: i2c@18100400 { compatible = "img,scb-i2c"; reg = <0x18100400 0x200>; interrupts = ; clocks = <&clk_periph PERIPH_CLK_I2C2>, <&cr_periph SYS_CLK_I2C2>; clock-names = "scb", "sys"; assigned-clocks = <&clk_periph PERIPH_CLK_I2C2_PRE_DIV>, <&clk_periph PERIPH_CLK_I2C2_DIV>; assigned-clock-rates = <100000000>, <33333334>; status = "disabled"; pinctrl-names = "default"; pinctrl-0 = <&i2c2_pins>; #address-cells = <1>; #size-cells = <0>; }; i2c3: i2c@18100600 { compatible = "img,scb-i2c"; reg = <0x18100600 0x200>; interrupts = ; clocks = <&clk_periph PERIPH_CLK_I2C3>, <&cr_periph SYS_CLK_I2C3>; clock-names = "scb", "sys"; assigned-clocks = <&clk_periph PERIPH_CLK_I2C3_PRE_DIV>, <&clk_periph PERIPH_CLK_I2C3_DIV>; assigned-clock-rates = <100000000>, <33333334>; status = "disabled"; pinctrl-names = "default"; pinctrl-0 = <&i2c3_pins>; #address-cells = <1>; #size-cells = <0>; }; i2s_in: i2s-in@18100800 { compatible = "img,i2s-in"; reg = <0x18100800 0x200>; interrupts = ; dmas = <&mdc 30 0xffffffff 0>; dma-names = "rx"; clocks = <&cr_periph SYS_CLK_I2S_IN>; clock-names = "sys"; img,i2s-channels = <6>; pinctrl-names = "default"; pinctrl-0 = <&i2s_in_pins>; status = "disabled"; #sound-dai-cells = <0>; }; i2s_out: i2s-out@18100a00 { compatible = "img,i2s-out"; reg = <0x18100a00 0x200>; interrupts = ; dmas = <&mdc 23 0xffffffff 0>; dma-names = "tx"; clocks = <&cr_periph SYS_CLK_I2S_OUT>, <&clk_core CLK_I2S>; clock-names = "sys", "ref"; assigned-clocks = <&clk_core CLK_I2S_DIV>; assigned-clock-rates = <12288000>; img,i2s-channels = <6>; pinctrl-names = "default"; pinctrl-0 = <&i2s_out_pins>; status = "disabled"; resets = <&pistachio_reset PISTACHIO_RESET_I2S_OUT>; reset-names = "rst"; #sound-dai-cells = <0>; }; parallel_out: parallel-audio-out@18100c00 { compatible = "img,parallel-out"; reg = <0x18100c00 0x100>; interrupts = ; dmas = <&mdc 16 0xffffffff 0>; dma-names = "tx"; clocks = <&cr_periph SYS_CLK_PAUD_OUT>, <&clk_core CLK_AUDIO_DAC>; clock-names = "sys", "ref"; assigned-clocks = <&clk_core CLK_AUDIO_DAC_DIV>; assigned-clock-rates = <12288000>; status = "disabled"; resets = <&pistachio_reset PISTACHIO_RESET_PRL_OUT>; reset-names = "rst"; #sound-dai-cells = <0>; }; spdif_out: spdif-out@18100d00 { compatible = "img,spdif-out"; reg = <0x18100d00 0x100>; interrupts = ; dmas = <&mdc 14 0xffffffff 0>; dma-names = "tx"; clocks = <&cr_periph SYS_CLK_SPDIF_OUT>, <&clk_core CLK_SPDIF>; clock-names = "sys", "ref"; assigned-clocks = <&clk_core CLK_SPDIF_DIV>; assigned-clock-rates = <12288000>; pinctrl-names = "default"; pinctrl-0 = <&spdif_out_pin>; status = "disabled"; resets = <&pistachio_reset PISTACHIO_RESET_SPDIF_OUT>; reset-names = "rst"; #sound-dai-cells = <0>; }; spdif_in: spdif-in@18100e00 { compatible = "img,spdif-in"; reg = <0x18100e00 0x100>; interrupts = ; dmas = <&mdc 15 0xffffffff 0>; dma-names = "rx"; clocks = <&cr_periph SYS_CLK_SPDIF_IN>; clock-names = "sys"; pinctrl-names = "default"; pinctrl-0 = <&spdif_in_pin>; status = "disabled"; #sound-dai-cells = <0>; }; internal_dac: internal-dac { compatible = "img,pistachio-internal-dac"; img,cr-top = <&cr_top>; img,voltage-select = <1>; #sound-dai-cells = <0>; }; event_timer: event_timer@18102300 { compatible = "img,pistachio-event-timer"; reg = <0x18102300 0x400>; assigned-clocks = <&clk_core CLK_AUDIO_PLL>, <&clk_core CLK_AUDIO_PLL_MUX>, <&clk_core CLK_EVENT_TIMER_MUX>; assigned-clock-parents = <0>, <&clk_core CLK_AUDIO_PLL>, <&clk_core CLK_AUDIO_PLL_MUX>; assigned-clock-rates = <147456000>, <147456000>, <12288000>; interrupts = , , , , ; #clock-cells = <0>; clocks = <&cr_periph SYS_CLK_EVENT_TIMER>, <&clk_core CLK_AUDIO>, <&clk_core CLK_EVENT_TIMER>, <&clk_core CLK_AUDIO_PLL>; clock-names = "sys","ref0","ref1","pll"; img,clk-select = <1>; img,clk-rate = <147456000>; img,cr-periph = <&cr_periph>; img,ext-src-bank = <4>; }; spfi0: spi@18100f00 { compatible = "img,spfi"; reg = <0x18100f00 0x100>; interrupts = ; clocks = <&clk_core CLK_SPI0>, <&cr_periph SYS_CLK_SPI0_MASTER>; clock-names = "sys", "spfi"; dmas = <&mdc 9 0xffffffff 0>, <&mdc 10 0xffffffff 0>; dma-names = "rx", "tx"; spfi-max-frequency = <50000000>; status = "disabled"; #address-cells = <1>; #size-cells = <0>; }; spfi1: spi@18101000 { compatible = "img,spfi"; reg = <0x18101000 0x100>; interrupts = ; clocks = <&clk_core CLK_SPI1>, <&cr_periph SYS_CLK_SPI1>; clock-names = "sys", "spfi"; dmas = <&mdc 1 0xffffffff 0>, <&mdc 2 0xffffffff 0>; dma-names = "rx", "tx"; img,supports-quad-mode; spfi-max-frequency = <50000000>; status = "disabled"; #address-cells = <1>; #size-cells = <0>; }; pwm: pwm@18101300 { compatible = "img,pistachio-pwm"; reg = <0x18101300 0x100>; clocks = <&clk_periph PERIPH_CLK_PWM>, <&cr_periph SYS_CLK_PWM>; clock-names = "pwm", "sys"; img,cr-periph = <&cr_periph>; status = "disabled"; }; uart0: uart@18101400 { compatible = "snps,dw-apb-uart"; reg = <0x18101400 0x100>; interrupts = ; clocks = <&clk_core CLK_UART0>, <&cr_periph SYS_CLK_UART0>; clock-names = "baudclk", "apb_pclk"; assigned-clocks = <&clk_core CLK_UART0_INTERNAL_DIV>, <&clk_core CLK_UART0_DIV>; reg-shift = <2>; reg-io-width = <4>; pinctrl-0 = <&uart0_pins>, <&uart0_rts_cts_pins>; pinctrl-names = "default"; status = "disabled"; }; uart1: uart@18101500 { compatible = "snps,dw-apb-uart"; reg = <0x18101500 0x100>; interrupts = ; clocks = <&clk_core CLK_UART1>, <&cr_periph SYS_CLK_UART1>; clock-names = "baudclk", "apb_pclk"; assigned-clocks = <&clk_core CLK_UART1_INTERNAL_DIV>, <&clk_core CLK_UART1_DIV>; assigned-clock-rates = <114278400>, <1843200>; reg-shift = <2>; reg-io-width = <4>; pinctrl-0 = <&uart1_pins>; pinctrl-names = "default"; status = "disabled"; }; adc: adc@18101600 { compatible = "cosmic,10001-adc"; reg = <0x18101600 0x24>; adc-reserved-channels = <0x30>; clocks = <&clk_core CLK_AUX_ADC>; clock-names = "adc"; assigned-clocks = <&clk_core CLK_AUX_ADC_INTERNAL_DIV>, <&clk_core CLK_AUX_ADC_DIV>; assigned-clock-rates = <100000000>, <1000000>; status = "disabled"; #io-channel-cells = <1>; }; pinctrl: pinctrl@18101c00 { compatible = "img,pistachio-system-pinctrl"; reg = <0x18101c00 0x400>; gpio0: gpio0 { interrupts = ; gpio-controller; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; }; gpio1: gpio1 { interrupts = ; gpio-controller; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; }; gpio2: gpio2 { interrupts = ; gpio-controller; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; }; gpio3: gpio3 { interrupts = ; gpio-controller; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; }; gpio4: gpio4 { interrupts = ; gpio-controller; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; }; gpio5: gpio5 { interrupts = ; gpio-controller; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; }; i2c0_pins: i2c0-pins { i2c0 { pins = "mfio28", "mfio29"; function = "i2c0"; }; }; i2c1_pins: i2c1-pins { i2c1 { pins = "mfio30", "mfio31"; function = "i2c1"; }; }; i2c2_pins: i2c2-pins { i2c2 { pins = "mfio32", "mfio33"; function = "i2c2"; }; }; i2c3_pins: i2c3-pins { i2c3 { pins = "mfio34", "mfio35"; function = "i2c3"; }; }; spim0_pins: spim0-pins { spim0 { pins = "mfio9", "mfio10"; function = "spim0"; }; spim0_clk: spim0-clk { pins = "mfio8"; function = "spim0"; }; }; spim0_cs0_pin: spim0-cs0-pin { spim0-cs0 { pins = "mfio2"; function = "spim0"; }; }; spim0_cs1_pin: spim0-cs1-pin { spim0-cs1 { pins = "mfio1"; function = "spim0"; }; }; spim0_cs2_pin: spim0-cs2-pin { spim0-cs2 { pins = "mfio55"; function = "spim0"; }; }; spim0_cs2_alt_pin: spim0-cs2-alt-pin { spim0-cs2 { pins = "mfio28"; function = "spim0"; }; }; spim0_cs3_pin: spim0-cs3-pin { spim0-cs3 { pins = "mfio56"; function = "spim0"; }; }; spim0_cs3_alt_pin: spim0-cs3-alt-pin { spim0-cs3 { pins = "mfio29"; function = "spim0"; }; }; spim0_cs4_pin: spim0-cs4-pin { spim0-cs4 { pins = "mfio57"; function = "spim0"; }; }; spim0_cs4_alt_pin: spim0-cs4-alt-pin { spim0-cs4 { pins = "mfio30"; function = "spim0"; }; }; spim1_pins: spim1-pins { spim1 { pins = "mfio3", "mfio4", "mfio5"; function = "spim1"; }; }; spim1_quad_pins: spim1-quad-pins { spim1-quad { pins = "mfio6", "mfio7"; function = "spim1"; }; }; spim1_cs0_pin: spim1-cs0-pins { spim1-cs0 { pins = "mfio0"; function = "spim1"; }; }; spim1_cs1_pin: spim1-cs1-pin { spim1-cs1 { pins = "mfio1"; function = "spim1"; }; }; spim1_cs1_alt_pin: spim1-cs1-alt-pin { spim1-cs1 { pins = "mfio58"; function = "spim1"; }; }; spim1_cs2_pin: spim1-cs2-pin { spim1-cs2 { pins = "mfio2"; function = "spim1"; }; }; spim1_cs2_alt0_pin: spim1-cs2-alt0-pin { spim1-cs2 { pins = "mfio31"; function = "spim1"; }; }; spim1_cs2_alt1_pin: spim1-cs2-alt1-pin { spim1-cs2 { pins = "mfio55"; function = "spim1"; }; }; spim1_cs3_pin: spim1-cs3-pin { spim1-cs3 { pins = "mfio56"; function = "spim1"; }; }; spim1_cs4_pin: spim1-cs4-pin { spim1-cs4 { pins = "mfio57"; function = "spim1"; }; }; uart0_pins: uart0-pins { uart0 { pins = "mfio55", "mfio56"; function = "uart0"; }; }; uart0_rts_cts_pins: uart0-rts-cts-pins { uart0-rts-cts { pins = "mfio57", "mfio58"; function = "uart0"; }; }; uart1_pins: uart1-pins { uart1 { pins = "mfio59", "mfio60"; function = "uart1"; }; }; uart1_rts_cts_pins: uart1-rts-cts-pins { uart1-rts-cts { pins = "mfio1", "mfio2"; function = "uart1"; }; }; enet_pins: enet-pins { enet { pins = "mfio63", "mfio64", "mfio65", "mfio66", "mfio67", "mfio68", "mfio69", "mfio70"; function = "eth"; slew-rate = <1>; drive-strength = <4>; }; pin_enet_phy_clk: enet-phy-clk { pins = "mfio71"; function = "eth"; slew-rate = <1>; drive-strength = <8>; }; }; sdhost_pins: sdhost-pins { sdhost-clk { pins = "mfio15"; function = "sdhost"; slew-rate = <1>; drive-strength = <2>; }; sdhost-cmd { pins = "mfio16"; function = "sdhost"; slew-rate = <1>; drive-strength = <4>; }; sdhost-data { pins = "mfio17", "mfio18", "mfio19", "mfio20", "mfio21", "mfio22", "mfio23", "mfio24"; function = "sdhost"; slew-rate = <1>; drive-strength = <4>; }; sdhost-power-select { pins = "mfio25"; function = "sdhost"; slew-rate = <1>; drive-strength = <4>; }; sdhost-card-detect { pins = "mfio26"; function = "sdhost"; }; sdhost-write-protect { pins = "mfio27"; function = "sdhost"; }; }; ir_pin: ir-pin { ir-data { pins = "mfio72"; function = "ir"; }; }; pwmpdm0_pin: pwmpdm0-pin { pwmpdm0 { pins = "mfio73"; function = "pwmpdm"; }; }; pwmpdm1_pin: pwmpdm1-pin { pwmpdm1 { pins = "mfio74"; function = "pwmpdm"; }; }; pwmpdm2_pin: pwmpdm2-pin { pwmpdm2 { pins = "mfio75"; function = "pwmpdm"; }; }; pwmpdm3_pin: pwmpdm3-pin { pwmpdm3 { pins = "mfio76"; function = "pwmpdm"; }; }; dac_clk_pin: dac-clk-pin { pin_dac_clk: dac-clk { pins = "mfio45"; function = "i2s_dac_clk"; }; }; i2s_mclk_pin: i2s-mclk-pin { pin_i2s_mclk: i2s-mclk { pins = "mfio36"; function = "i2s_out"; }; }; spdif_out_pin: spdif-out-pin { spdif-out { pins = "mfio61"; function = "spdif_out"; slew-rate = <1>; }; }; spdif_in_pin: spdif-in-pin { spdif-in { pins = "mfio62"; function = "spdif_in"; }; }; i2s_out_pins: i2s-out-pins { pins_i2s_out: i2s-out { pins = "mfio37", "mfio38", "mfio39", "mfio40", "mfio41", "mfio42", "mfio43", "mfio44"; function = "i2s_out"; }; }; i2s_in_pins: i2s-in-pins { i2s-in { pins = "mfio47", "mfio48", "mfio49", "mfio50", "mfio51", "mfio52", "mfio53", "mfio54"; function = "i2s_in"; }; }; usb_pwr_on_pins: usb-pwr-on-pins { usb-pwr-on { pins = "mfio86"; function = "rpu_l_pll_lock"; }; }; }; timer: timer@18102000 { compatible = "img,pistachio-gptimer"; reg = <0x18102000 0x100>; interrupts = ; clocks = <&clk_periph PERIPH_CLK_COUNTER_FAST>, <&cr_periph SYS_CLK_TIMER>; clock-names = "fast", "sys"; img,cr-periph = <&cr_periph>; }; rtc: timer-counter { compatible = "img,rtc-pistachio"; reg = <0x18102000 0x100>; interrupts = , ; clocks = <&clk_periph PERIPH_CLK_COUNTER_SLOW>, <&cr_periph SYS_CLK_TIMER>; clock-names = "slow", "sys"; assigned-clocks = <&clk_periph PERIPH_CLK_COUNTER_SLOW_PRE_DIV>, <&clk_periph PERIPH_CLK_COUNTER_SLOW_DIV>; assigned-clock-rates = <3125000>, <31250>; img,cr-periph = <&cr_periph>; }; wdt: watchdog@18102100 { compatible = "img,pdc-wdt"; reg = <0x18102100 0x20>; interrupts = ; clocks = <&clk_periph PERIPH_CLK_WD>, <&cr_periph SYS_CLK_WD>; clock-names = "wdt", "sys"; assigned-clocks = <&clk_periph PERIPH_CLK_WD_PRE_DIV>, <&clk_periph PERIPH_CLK_WD_DIV>; assigned-clock-rates = <4000000>, <32768>; }; ir: ir@18102200 { compatible = "img,ir-rev1"; reg = <0x18102200 0x100>; interrupts = ; clocks = <&clk_periph PERIPH_CLK_IR>, <&cr_periph SYS_CLK_IR>; clock-names = "core", "sys"; assigned-clocks = <&clk_periph PERIPH_CLK_IR_PRE_DIV>, <&clk_periph PERIPH_CLK_IR_DIV>; assigned-clock-rates = <4000000>, <32768>; pinctrl-0 = <&ir_pin>; pinctrl-names = "default"; status = "disabled"; }; usb: usb@18120000 { compatible = "snps,dwc2"; reg = <0x18120000 0x1c000>; interrupts = ; phys = <&usb_phy>; phy-names = "usb2-phy"; g-tx-fifo-size = <256 256 256 256>; status = "disabled"; }; enet: ethernet@18140000 { compatible = "img,pistachio-dwmac", "snps,dwmac"; reg = <0x18140000 0x2000>; interrupts = ; interrupt-names = "macirq"; clocks = <&clk_core CLK_ENET>, <&cr_periph SYS_CLK_ENET>; clock-names = "stmmaceth", "pclk"; assigned-clocks = <&clk_core CLK_ENET_MUX>, <&clk_core CLK_ENET_DIV>; assigned-clock-parents = <&clk_core CLK_SYS_INTERNAL_DIV>; assigned-clock-rates = <0>, <50000000>; pinctrl-0 = <&enet_pins>; pinctrl-names = "default"; phy-mode = "rmii"; status = "disabled"; }; sdhost: mmc@18142000 { compatible = "img,pistachio-dw-mshc"; reg = <0x18142000 0x400>; interrupts = ; clocks = <&clk_core CLK_SD_HOST>, <&cr_periph SYS_CLK_SD_HOST>; clock-names = "ciu", "biu"; pinctrl-0 = <&sdhost_pins>; pinctrl-names = "default"; fifo-depth = <0x20>; num-slots = <1>; clock-frequency = <50000000>; bus-width = <8>; cap-mmc-highspeed; cap-sd-highspeed; status = "disabled"; }; sram: sram@1b000000 { compatible = "mmio-sram"; reg = <0x1b000000 0x10000>; }; mdc: dma-controller@18143000 { compatible = "img,pistachio-mdc-dma"; reg = <0x18143000 0x1000>; interrupts = , , , , , , , , , , , ; clocks = <&cr_periph SYS_CLK_MDC>; clock-names = "sys"; img,max-burst-multiplier = <16>; img,cr-periph = <&cr_periph>; #dma-cells = <3>; }; clk_core: clk@18144000 { compatible = "img,pistachio-clk", "syscon"; clocks = <&xtal>, <&cr_top EXT_CLK_AUDIO_IN>, <&cr_top EXT_CLK_ENET_IN>; clock-names = "xtal", "audio_refclk_ext_gate", "ext_enet_in_gate"; reg = <0x18144000 0x800>; #clock-cells = <1>; }; clk_periph: clk@18144800 { compatible = "img,pistachio-clk-periph"; reg = <0x18144800 0x1000>; clocks = <&clk_core CLK_PERIPH_SYS>; clock-names = "periph_sys_core"; #clock-cells = <1>; }; cr_periph: clk@18148000 { compatible = "img,pistachio-cr-periph", "syscon"; reg = <0x18148000 0x1000>; clocks = <&clk_periph PERIPH_CLK_SYS>; clock-names = "sys"; #clock-cells = <1>; }; cr_top: clk@18149000 { compatible = "img,pistachio-cr-top", "syscon"; reg = <0x18149000 0x200>; #clock-cells = <1>; }; pistachio_reset: reset-controller { compatible = "img,pistachio-reset"; img,cr-periph = <&cr_periph>; #reset-cells = <1>; }; fuse@18149200 { compatible = "img,pistachio-efuse"; reg = <0x18149200 0x200>; }; pistachio_irqwake: irq-wake { compatible = "pistachio,irq-wake"; irq-start = <2>; irq-end = <95>; img,clk_core = <&clk_core>; }; hash: hash@18149600 { compatible = "img,hash-accelerator"; reg = <0x18149600 0x100>, <0x18101100 0x4>; interrupts = ; dmas = <&mdc 8 0xffffffff 0>; dma-names = "tx"; clocks = <&cr_periph SYS_CLK_HASH>, <&clk_periph PERIPH_CLK_ROM>; clock-names = "sys", "hash"; }; gic: interrupt-controller@1bdc0000 { compatible = "mti,gic"; reg = <0x1bdc0000 0x20000>; interrupt-controller; #interrupt-cells = <3>; timer { compatible = "mti,gic-timer"; interrupts = ; clocks = <&clk_core CLK_MIPS>; }; }; usb_phy: usb-phy { compatible = "img,pistachio-usb-phy"; clocks = <&clk_core CLK_USB_PHY>; clock-names = "usb_phy"; assigned-clocks = <&clk_core CLK_USB_PHY_DIV>; assigned-clock-rates = <50000000>; img,refclk = <0x2>; img,cr-top = <&cr_top>; #phy-cells = <0>; }; xtal: xtal { compatible = "fixed-clock"; #clock-cells = <0>; clock-frequency = <52000000>; clock-output-names = "xtal"; }; wifi: uccp@18480000 { status = "disabled"; compatible = "img,pistachio-uccp"; reg = <0x18480000 0x38000>, <0x184BC000 0x2800>, <0x1a000000 0x00066cc0>; reg-names = "uccp_core_base", "uccp_slave_base" , "uccp_pkd_gram_base"; interrupts = ; interrupt-names = "uccpirq"; clocks = <&clk_core CLK_RPU_CORE>, <&clk_core CLK_RPU_V>, <&clk_core CLK_RPU_L>, <&clk_core CLK_RPU_SLEEP>, <&clk_core CLK_WIFI_ADC>, <&clk_core CLK_WIFI_DAC>, <&clk_core CLK_EVENT_TIMER>, <&cr_periph SYS_CLK_EVENT_TIMER>, <&clk_core CLK_AUX_ADC>, <&clk_core CLK_AUX_ADC_INTERNAL>; clock-names = "rpu_core", "rpu_v", "rpu_l", "rpu_sleep", "wifi_adc", "wifi_dac", "event_timer", "sys_event_timer", "aux_adc", "aux_adc_internal"; assigned-clocks = <&clk_core CLK_RPU_L_DIV>, <&clk_core CLK_RPU_L_MUX>, <&clk_core CLK_RPU_L_PLL_MUX>, <&clk_core CLK_RPU_V_DIV>, <&clk_core CLK_RPU_V_PLL_MUX>, <&clk_core CLK_WIFI_PLL_MUX>, <&clk_core CLK_WIFI_DIV4_MUX>, <&clk_core CLK_WIFI_DIV8_MUX>, <&clk_core CLK_RPU_SLEEP_DIV>, <&clk_core CLK_WIFI_PLL>, <&clk_core CLK_RPU_CORE_DIV>; assigned-clock-parents = <0>, <&clk_core CLK_RPU_L_PLL_MUX>, <&clk_core CLK_RPU_L_PLL>, <0>, <&clk_core CLK_RPU_V_PLL>, <&clk_core CLK_WIFI_PLL>, <&clk_core CLK_WIFI_DIV4>, <&clk_core CLK_WIFI_DIV8>, <0>, <0>, <0>; assigned-clock-rates = <559000000>, <0>, <0>, <598000000>, <0>, <0>, <0>, <0>, <52000>, <320000000>, <320000000>; io-channels = <&adc 4>; }; };