// SPDX-License-Identifier: GPL-2.0 /* * Device Tree Source for J721E Jailhouse inmate kernel * * Copyright (C) 2016-2019 Texas Instruments Incorporated - http://www.ti.com/ */ /dts-v1/; #include #include #include #include #define J721S2_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) #define PULLUDEN_SHIFT (16) #define RXACTIVE_SHIFT (18) #define PULL_DISABLE (1 << PULLUDEN_SHIFT) #define INPUT_EN (1 << RXACTIVE_SHIFT) #define INPUT_DISABLE (0 << RXACTIVE_SHIFT) #define PIN_OUTPUT (INPUT_DISABLE | PULL_DISABLE) #define PIN_INPUT (INPUT_EN | PULL_DISABLE) #define TI_SCI_PD_EXCLUSIVE 1 / { model = "Texas Instruments J721S2 Inmate Model"; compatible = "ti,j72s2-fas", "ti,j721s2"; interrupt-parent = <&gic500>; #address-cells = <2>; #size-cells = <2>; aliases { serial3 = &main_uart5; }; chosen { stdout-path = "serial3:115200n8"; bootargs = "rdinit=/init"; linux,initrd-start = <0x00000000 0x8a2a5e000>; linux,initrd-end = <0x00000000 0x8aaa5e000>; }; hypervisor { compatible = "jailhouse,cell"; }; memory@8a0000000 { device_type = "memory"; reg = <0x8 0xa0000000 0x0 0x60000000>; }; cpus { #address-cells = <1>; #size-cells = <0>; cpu-map { cluster0: cluster0 { core1 { cpu = <&cpu1>; }; }; }; cpu1: cpu@1 { compatible = "arm,cortex-a72"; reg = <0x001>; device_type = "cpu"; enable-method = "psci"; i-cache-size = <0xC000>; i-cache-line-size = <64>; i-cache-sets = <256>; d-cache-size = <0x8000>; d-cache-line-size = <64>; d-cache-sets = <128>; next-level-cache = <&L2_0>; }; }; L2_0: l2-cache0 { compatible = "cache"; cache-level = <2>; cache-size = <0x100000>; cache-line-size = <64>; cache-sets = <2048>; next-level-cache = <&msmc_l3>; }; msmc_l3: l3-cache0 { compatible = "cache"; cache-level = <3>; }; a72_timer0: timer-cl0-cpu0 { compatible = "arm,armv8-timer"; interrupts = , /* cntpsirq */ , /* cntpnsirq */ , /* cntvirq */ ; /* cnthpirq */ }; pmu: pmu { compatible = "arm,armv8-pmuv3"; /* Recommendation from GIC500 TRM Table A.3 */ interrupts = ; }; psci: psci { compatible = "arm,psci-1.0"; method = "smc"; }; cbass_main: interconnect@100000 { compatible = "simple-bus"; #address-cells = <2>; #size-cells = <2>; ranges = <0x00 0x00100000 0x00 0x00100000 0x00 0x00020000>, /* ctrl mmr */ <0x00 0x00600000 0x00 0x00600000 0x00 0x00031100>, /* GPIO */ <0x00 0x00a40000 0x00 0x00a40000 0x00 0x00000800>, /* Time Sync Router */ <0x00 0x00700000 0x00 0x00700000 0x00 0x00001000>, /* ESM */ <0x00 0x01000000 0x00 0x01000000 0x00 0x0d000000>, /* Most peripherals */ <0x00 0x0d800000 0x00 0x0d800000 0x00 0x00800000>, /* PCIe Core*/ <0x00 0x18000000 0x00 0x18000000 0x00 0x08000000>, /* PCIe1 DAT0 */ <0x00 0x64800000 0x00 0x64800000 0x00 0x0070c000>, /* C71_1 */ <0x00 0x65800000 0x00 0x65800000 0x00 0x0070c000>, /* C71_2 */ <0x00 0x6f000000 0x00 0x6f000000 0x00 0x00310000>, /* A72 PERIPHBASE */ <0x00 0x70000000 0x00 0x70000000 0x00 0x00400000>, /* MSMC RAM */ <0x00 0x30000000 0x00 0x30000000 0x00 0x0c400000>, /* MAIN NAVSS */ <0x41 0x00000000 0x41 0x00000000 0x01 0x00000000>, /* PCIe1 DAT1 */ <0x4e 0x20000000 0x4e 0x20000000 0x00 0x00080000>, /* GPU */ /* MCUSS_WKUP Range */ <0x00 0x28380000 0x00 0x28380000 0x00 0x03880000>, <0x00 0x40200000 0x00 0x40200000 0x00 0x00998400>, <0x00 0x40f00000 0x00 0x40f00000 0x00 0x00020000>, <0x00 0x41000000 0x00 0x41000000 0x00 0x00020000>, <0x00 0x41400000 0x00 0x41400000 0x00 0x00020000>, <0x00 0x41c00000 0x00 0x41c00000 0x00 0x00100000>, <0x00 0x42040000 0x00 0x42040000 0x00 0x03ac2400>, <0x00 0x45100000 0x00 0x45100000 0x00 0x00c24000>, <0x00 0x46000000 0x00 0x46000000 0x00 0x00200000>, <0x00 0x47000000 0x00 0x47000000 0x00 0x00068400>, <0x00 0x50000000 0x00 0x50000000 0x00 0x10000000>, <0x05 0x00000000 0x05 0x00000000 0x01 0x00000000>, <0x07 0x00000000 0x07 0x00000000 0x01 0x00000000>; cbass_mcu_wakeup: bus@28380000 { compatible = "simple-bus"; #address-cells = <2>; #size-cells = <2>; ranges = <0x00 0x28380000 0x00 0x28380000 0x00 0x03880000>, /* MCU NAVSS*/ <0x00 0x40200000 0x00 0x40200000 0x00 0x00998400>, /* First peripheral window */ <0x00 0x40f00000 0x00 0x40f00000 0x00 0x00020000>, /* CTRL_MMR0 */ <0x00 0x41000000 0x00 0x41000000 0x00 0x00020000>, /* MCU R5F Core0 */ <0x00 0x41400000 0x00 0x41400000 0x00 0x00020000>, /* MCU R5F Core1 */ <0x00 0x41c00000 0x00 0x41c00000 0x00 0x00100000>, /* MCU SRAM */ <0x00 0x42040000 0x00 0x42040000 0x00 0x03ac2400>, /* WKUP peripheral window */ <0x00 0x45100000 0x00 0x45100000 0x00 0x00c24000>, /* MMRs, remaining NAVSS */ <0x00 0x46000000 0x00 0x46000000 0x00 0x00200000>, /* CPSW */ <0x00 0x47000000 0x00 0x47000000 0x00 0x00068400>, /* OSPI register space */ <0x00 0x50000000 0x00 0x50000000 0x00 0x10000000>, /* FSS OSPI0/1 data region 0 */ <0x05 0x00000000 0x05 0x00000000 0x01 0x00000000>, /* FSS OSPI0 data region 3 */ <0x07 0x00000000 0x07 0x00000000 0x01 0x00000000>; /* FSS OSPI1 data region 3*/ }; }; }; &cbass_main { gic500: interrupt-controller@1800000 { compatible = "arm,gic-v3"; #address-cells = <2>; #size-cells = <2>; ranges; #interrupt-cells = <3>; interrupt-controller; reg = <0x00 0x01800000 0x00 0x10000>, /* GICD */ <0x00 0x01900000 0x00 0x100000>; /* GICR */ /* vcpumntirq: virtual CPU interface maintenance interrupt */ interrupts = ; }; main_gpio_intr: interrupt-controller0 { compatible = "ti,sci-intr"; ti,intr-trigger-type = <1>; interrupt-controller; interrupt-parent = <&gic500>; #interrupt-cells = <2>; ti,sci = <&dmsc>; ti,sci-dst-id = <14>; ti,sci-rm-range-girq = <0x1>; }; cbass_main_navss: interconnect0 { compatible = "simple-bus"; #address-cells = <2>; #size-cells = <2>; ranges; main_navss_intr: interrupt-controller1 { compatible = "ti,sci-intr"; ti,intr-trigger-type = <4>; interrupt-controller; interrupt-parent = <&gic500>; #interrupt-cells = <2>; ti,sci = <&dmsc>; ti,sci-dst-id = <14>; ti,sci-rm-range-girq = <4>; }; main_udmass_inta: interrupt-controller@33d00000 { compatible = "ti,sci-inta"; reg = <0x0 0x33d00000 0x0 0x100000>; interrupt-controller; interrupt-parent = <&main_navss_intr>; msi-controller; ti,sci = <&dmsc>; ti,sci-dev-id = <209>; ti,sci-rm-range-vint = <0xa>; ti,sci-rm-range-global-event = <0xd>; }; }; secure_proxy_main: mailbox@32c00000 { compatible = "ti,am654-secure-proxy"; #mbox-cells = <1>; reg-names = "target_data", "rt", "scfg"; reg = <0x00 0x32c00000 0x00 0x100000>, <0x00 0x32400000 0x00 0x100000>, <0x00 0x32800000 0x00 0x100000>; interrupt-names = "rx_016"; interrupts = ; }; main_pmx0: pinmux@11c000 { compatible = "pinctrl-single"; /* Proxy 0 addressing */ reg = <0x0 0x11c000 0x0 0x2b4>; #pinctrl-cells = <1>; pinctrl-single,register-width = <32>; pinctrl-single,function-mask = <0xffffffff>; }; main_uart5: serial@2850000 { compatible = "ti,j721e-uart", "ti,am654-uart"; reg = <0x00 0x02850000 0x00 0x100>; reg-shift = <2>; reg-io-width = <4>; interrupts = ; clock-frequency = <48000000>; current-speed = <115200>; clocks = <&k3_clks 354 3>; clock-names = "fclk"; }; main_gpio2: gpio@610000 { compatible = "ti,j721e-gpio", "ti,keystone-gpio"; reg = <0x0 0x00610000 0x0 0x100>; gpio-controller; #gpio-cells = <2>; interrupt-parent = <&main_gpio_intr>; interrupts = <107 0>, <107 1>, <107 2>, <107 3>, <107 4>, <107 5>, <107 6>, <107 7>; interrupt-controller; #interrupt-cells = <2>; ti,ngpio = <128>; ti,davinci-gpio-unbanked = <0>; power-domains = <&k3_pds 107 TI_SCI_PD_EXCLUSIVE>; clocks = <&k3_clks 107 0>; clock-names = "gpio"; }; main_gpio3: gpio@611000 { compatible = "ti,j721e-gpio", "ti,keystone-gpio"; reg = <0x0 0x00611000 0x0 0x100>; gpio-controller; #gpio-cells = <2>; interrupt-parent = <&main_gpio_intr>; interrupts = <108 0>, <108 1>, <108 2>; interrupt-controller; #interrupt-cells = <2>; ti,ngpio = <36>; ti,davinci-gpio-unbanked = <0>; power-domains = <&k3_pds 108 TI_SCI_PD_EXCLUSIVE>; clocks = <&k3_clks 108 0>; clock-names = "gpio"; }; }; &cbass_mcu_wakeup { dmsc: dmsc@44083000 { compatible = "ti,k2g-sci"; ti,host-id = <13>; mbox-names = "rx", "tx"; mboxes= <&secure_proxy_main 16>, <&secure_proxy_main 18>; reg-names = "debug_messages"; reg = <0x00 0x44083000 0x0 0x1000>; k3_pds: power-controller { compatible = "ti,sci-pm-domain"; #power-domain-cells = <2>; }; k3_clks: clocks { compatible = "ti,k2g-sci-clk"; #clock-cells = <2>; }; k3_reset: reset-controller { compatible = "ti,sci-reset"; #reset-cells = <2>; }; }; wkup_pmx0: pinmux@4301c000 { compatible = "pinctrl-single"; /* Proxy 0 addressing */ reg = <0x00 0x4301c000 0x00 0x178>; #pinctrl-cells = <1>; pinctrl-single,register-width = <32>; pinctrl-single,function-mask = <0xffffffff>; }; }; /* Board specific device tree entries */ / { }; &main_pmx0 { main_uart5_pins_default: main-uart5-default-pins { pinctrl-single,pins = < J721S2_IOPAD(0x008, PIN_INPUT, 11) /* (AC24) MCAN12_RX.UART5_RXD */ J721S2_IOPAD(0x004, PIN_OUTPUT, 11) /* (W25) MCAN12_TX.UART5_TXD */ >; }; }; &main_uart5 { status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&main_uart5_pins_default>; };