Changeset View
Changeset View
Standalone View
Standalone View
head/sys/boot/fdt/dts/mips/fbsd-mt7621.dtsi
/* $FreeBSD$ */ | /* $FreeBSD$ */ | ||||
/ { | / { | ||||
/* Specify alias for serial0 so we have a working console */ | |||||
/* | aliases { | ||||
* FreeBSD's stdin and stdout, so we can have a console | serial0 = "/palmbus@1E000000/uartlite@c00"; | ||||
*/ | |||||
chosen { | |||||
stdin = &uartlite; | |||||
stdout = &uartlite; | |||||
}; | }; | ||||
/* | /* | ||||
* OpenWRT doesn't define a clock controller, but we currently need one | * OpenWRT doesn't define a clock controller, but we currently need one | ||||
*/ | */ | ||||
clkctrl: cltctrl { | clkctrl: cltctrl { | ||||
compatible = "ralink,rt2880-clock"; | compatible = "ralink,rt2880-clock"; | ||||
#clock-cells = <1>; | #clock-cells = <1>; | ||||
}; | }; | ||||
gic: interrupt-controller@1fbc0000 { | |||||
/* | |||||
* OpenWRT does not define the GIC interrupt, but we need it | |||||
* for now, at least until we re-work our GIC driver | |||||
*/ | |||||
interrupt-parent = <&cpuintc>; | |||||
interrupts = <2>; | |||||
}; | |||||
palmbus@1E000000 { | palmbus@1E000000 { | ||||
/* | uartlite@c00 { clock-frequency = <50000000>; }; | ||||
* Make palmbus compatible to our simplebus | |||||
*/ | |||||
compatible = "simple-bus"; | |||||
/* | |||||
* Reference uartlite@c00 as uartlite, so we can address it | |||||
* within the chosen node above | |||||
*/ | |||||
uartlite: uartlite@c00 { | |||||
/* | |||||
* Mark uartlite as compatible to mtk,ns16550a instead | |||||
* of simply ns16550a so we can autodetect the UART | |||||
* clock | |||||
*/ | |||||
compatible = "mtk,ns16550a"; | |||||
}; | |||||
gpio@600 { | gpio@600 { | ||||
/* | /* | ||||
* Mark gpio as compatible to simple-bus and override | * Mark gpio as compatible to simple-bus and override | ||||
* its #size-cells and provide a default ranges property | * its #size-cells and provide a default ranges property | ||||
* so we can attach instances of our mtk_gpio_v2 driver | * so we can attach instances of our mtk_gpio_v2 driver | ||||
* to it for now. Provide exactly the same resources to | * to it for now. Provide exactly the same resources to | ||||
* the instances of mtk_gpio_v2. | * the instances of mtk_gpio_v2. | ||||
*/ | */ | ||||
compatible = "simple-bus"; | compatible = "simple-bus"; | ||||
ranges = <0x0 0x600 0x100>; | ranges = <0x0 0x600 0x100>; | ||||
#size-cells = <1>; | #size-cells = <1>; | ||||
interrupt-parent = <&gic>; | interrupt-parent = <&gic>; | ||||
gpio0: bank@0 { | gpio0: bank@0 { | ||||
reg = <0x0 0x100>; | reg = <0x0 0x100>; | ||||
interrupts = <GIC_SHARED 6 IRQ_TYPE_LEVEL_HIGH>; | interrupts = <0 6 4>; | ||||
}; | }; | ||||
gpio1: bank@1 { | gpio1: bank@1 { | ||||
reg = <0x0 0x100>; | reg = <0x0 0x100>; | ||||
interrupts = <GIC_SHARED 6 IRQ_TYPE_LEVEL_HIGH>; | interrupts = <0 6 4>; | ||||
}; | }; | ||||
gpio2: bank@2 { | gpio2: bank@2 { | ||||
reg = <0x0 0x100>; | reg = <0x0 0x100>; | ||||
interrupts = <GIC_SHARED 6 IRQ_TYPE_LEVEL_HIGH>; | interrupts = <0 6 4>; | ||||
}; | }; | ||||
}; | }; | ||||
}; | }; | ||||
xhci@1E1C0000 { | xhci@1E1C0000 { | ||||
/* | /* | ||||
* A slightly different value for reg size is needed by our | * A slightly different value for reg size is needed by our | ||||
* driver for the moment | * driver for the moment | ||||
Show All 19 Lines |