mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
7dfb736ec9
The LPB FIFO interrupt is a peripheral interrupt, thus its L1 cell has to be 2 instead of 3. Fix it and while at it, move the lpbfifo node to the common dtsi file. This patch fixes the irqdomain warning: ... WARNING: at kernel/irq/irqdomain.c:766 Modules linked in: NIP: c00587fc LR: c0058e0c CTR: c0014e54 REGS: c7837c10 TRAP: 0700 Tainted: G W (3.7.0-rc1-00003-g6e51414) MSR: 00029032 <EE,ME,IR,DR,RI> CR: 82cd8322 XER: 00000000 TASK = c7834000[1] 'swapper' THREAD: c7836000 GPR00: 00000001 c7837cc0 c7834000 c7806080 000000d7 c7837d20 00000003 c7837cec GPR08: c7837ce8 00000000 00000000 00000008 82cd3342 00000000 c0003f88 00000000 GPR16: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 c7850ec0 GPR24: c782b010 00000000 00000001 c7852900 00000003 c7df5be0 c7806080 000000d7 NIP [c00587fc] irq_linear_revmap+0x2c/0x4c LR [c0058e0c] irq_create_mapping+0x28/0x124 Reported-by: Stefan Roese <sr@denx.de> Signed-off-by: Anatolij Gustschin <agust@denx.de>
134 lines
2.4 KiB
Plaintext
134 lines
2.4 KiB
Plaintext
/*
|
|
* O2D base Device Tree Source
|
|
*
|
|
* Copyright (C) 2012 DENX Software Engineering
|
|
* Anatolij Gustschin <agust@denx.de>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms of the GNU General Public License as published by the
|
|
* Free Software Foundation; either version 2 of the License, or (at your
|
|
* option) any later version.
|
|
*/
|
|
|
|
/include/ "mpc5200b.dtsi"
|
|
|
|
/ {
|
|
model = "ifm,o2d";
|
|
compatible = "ifm,o2d";
|
|
|
|
memory {
|
|
reg = <0x00000000 0x04000000>; // 64MB
|
|
};
|
|
|
|
soc5200@f0000000 {
|
|
|
|
gpio_simple: gpio@b00 {
|
|
};
|
|
|
|
timer@600 { // General Purpose Timer
|
|
#gpio-cells = <2>;
|
|
gpio-controller;
|
|
fsl,has-wdt;
|
|
fsl,wdt-on-boot = <0>;
|
|
};
|
|
|
|
timer@610 {
|
|
#gpio-cells = <2>;
|
|
gpio-controller;
|
|
};
|
|
|
|
timer7: timer@670 {
|
|
};
|
|
|
|
rtc@800 {
|
|
status = "disabled";
|
|
};
|
|
|
|
psc@2000 { // PSC1
|
|
compatible = "fsl,mpc5200b-psc-spi","fsl,mpc5200-psc-spi";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
cell-index = <0>;
|
|
|
|
spidev@0 {
|
|
compatible = "spidev";
|
|
spi-max-frequency = <250000>;
|
|
reg = <0>;
|
|
};
|
|
};
|
|
|
|
psc@2200 { // PSC2
|
|
status = "disabled";
|
|
};
|
|
|
|
psc@2400 { // PSC3
|
|
status = "disabled";
|
|
};
|
|
|
|
psc@2600 { // PSC4
|
|
compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart";
|
|
};
|
|
|
|
psc@2800 { // PSC5
|
|
compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart";
|
|
};
|
|
|
|
psc@2c00 { // PSC6
|
|
status = "disabled";
|
|
};
|
|
|
|
ethernet@3000 {
|
|
phy-handle = <&phy0>;
|
|
};
|
|
|
|
mdio@3000 {
|
|
phy0: ethernet-phy@0 {
|
|
reg = <0>;
|
|
};
|
|
};
|
|
};
|
|
|
|
localbus {
|
|
ranges = <0 0 0xff000000 0x01000000
|
|
3 0 0xe3000000 0x00100000>;
|
|
|
|
// flash device at LocalPlus Bus CS0
|
|
flash@0,0 {
|
|
compatible = "cfi-flash";
|
|
reg = <0 0 0x01000000>;
|
|
bank-width = <1>;
|
|
device-width = <2>;
|
|
#size-cells = <1>;
|
|
#address-cells = <1>;
|
|
no-unaligned-direct-access;
|
|
|
|
/* common layout for all machines */
|
|
partition@0 {
|
|
label = "u-boot";
|
|
reg = <0x00000000 0x00040000>;
|
|
read-only;
|
|
};
|
|
partition@40000 {
|
|
label = "env";
|
|
reg = <0x00040000 0x00020000>;
|
|
read-only;
|
|
};
|
|
};
|
|
|
|
csi@3,0 {
|
|
compatible = "ifm,o2d-csi";
|
|
reg = <3 0 0x00100000>;
|
|
ifm,csi-clk-handle = <&timer7>;
|
|
gpios = <&gpio_simple 23 0 /* imag_capture */
|
|
&gpio_simple 26 0 /* imag_reset */
|
|
&gpio_simple 29 0>; /* imag_master_en */
|
|
|
|
interrupts = <1 1 2>; /* IRQ1, edge falling */
|
|
|
|
ifm,csi-addr-bus-width = <24>;
|
|
ifm,csi-data-bus-width = <8>;
|
|
ifm,csi-wait-cycles = <0>;
|
|
};
|
|
};
|
|
};
|