Message ID | 59c11b5e41d94b5b10e12fe5d8179adc0138a666.1699856600.git.ysato@users.sourceforge.jp (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Device Tree support for SH7751 based board | expand |
On 11/14/23 11:00 AM, Yoshinori Sato wrote: > IO DATA DEVICE Inc. USL-5P devicetree. > > Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp> > --- > arch/sh/boot/dts/usl-5p.dts | 84 +++++++++++++++++++++++++++++++++++++ > 1 file changed, 84 insertions(+) > create mode 100644 arch/sh/boot/dts/usl-5p.dts > > diff --git a/arch/sh/boot/dts/usl-5p.dts b/arch/sh/boot/dts/usl-5p.dts > new file mode 100644 > index 000000000000..fba37472ebae > --- /dev/null > +++ b/arch/sh/boot/dts/usl-5p.dts > @@ -0,0 +1,84 @@ [...] > + julianintc: sh7751irl_encoder@b0000005 { The node name should be "interrupt-controller", according to clause 2.2.2 in the DT spec. > + compatible = "renesas,sh7751-irl-ext"; > + reg = <0xb0000005 0x01>; > + interrupt-controller; > + #interrupt-cells = <1>; > + #address-cells = <0>; > + #size-cells = <0>; > + renesas,width = <8>; > + renesas,enable-bit = <5 0>, /* PCI INTA */ > + <6 1>, /* PCI INTB */ > + <7 2>, /* PCI INTC */ > + <8 3>, /* PCI INTD */ > + <9 4>, /* ATA */ > + <10 5>, /* CF */ > + <11 6>, /* Power Switch */ > + <12 7>; /* Button */ > + }; [...] MBR, Sergey
On 11/14/23 12:02 PM, Sergei Shtylyov wrote: [...] >> IO DATA DEVICE Inc. USL-5P devicetree. >> >> Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp> >> --- >> arch/sh/boot/dts/usl-5p.dts | 84 +++++++++++++++++++++++++++++++++++++ >> 1 file changed, 84 insertions(+) >> create mode 100644 arch/sh/boot/dts/usl-5p.dts >> >> diff --git a/arch/sh/boot/dts/usl-5p.dts b/arch/sh/boot/dts/usl-5p.dts >> new file mode 100644 >> index 000000000000..fba37472ebae >> --- /dev/null >> +++ b/arch/sh/boot/dts/usl-5p.dts >> @@ -0,0 +1,84 @@ > [...] >> + julianintc: sh7751irl_encoder@b0000005 { > > The node name should be "interrupt-controller", according to clause 2.2.2 > in the DT spec. Likewise for the other boards... > >> + compatible = "renesas,sh7751-irl-ext"; >> + reg = <0xb0000005 0x01>; >> + interrupt-controller; >> + #interrupt-cells = <1>; >> + #address-cells = <0>; >> + #size-cells = <0>; >> + renesas,width = <8>; >> + renesas,enable-bit = <5 0>, /* PCI INTA */ >> + <6 1>, /* PCI INTB */ >> + <7 2>, /* PCI INTC */ >> + <8 3>, /* PCI INTD */ >> + <9 4>, /* ATA */ >> + <10 5>, /* CF */ >> + <11 6>, /* Power Switch */ >> + <12 7>; /* Button */ >> + }; > [...] MBR, Sergey
diff --git a/arch/sh/boot/dts/usl-5p.dts b/arch/sh/boot/dts/usl-5p.dts new file mode 100644 index 000000000000..fba37472ebae --- /dev/null +++ b/arch/sh/boot/dts/usl-5p.dts @@ -0,0 +1,84 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Device Tree Source for the IO DATA DEVICE USL-5P + */ + +/dts-v1/; + +#include "sh7751r.dtsi" + +/ { + model = "IO-DATA Device USL-5P"; + compatible = "iodata,usl-5p", "renesas,sh7751r"; + + aliases { + serial0 = &scif1; + }; + + chosen { + stdout-path = "serial0:9600n8"; + }; + + memory@c000000 { + device_type = "memory"; + reg = <0x0c000000 0x4000000>; + }; + + julianintc: sh7751irl_encoder@b0000005 { + compatible = "renesas,sh7751-irl-ext"; + reg = <0xb0000005 0x01>; + interrupt-controller; + #interrupt-cells = <1>; + #address-cells = <0>; + #size-cells = <0>; + renesas,width = <8>; + renesas,enable-bit = <5 0>, /* PCI INTA */ + <6 1>, /* PCI INTB */ + <7 2>, /* PCI INTC */ + <8 3>, /* PCI INTD */ + <9 4>, /* ATA */ + <10 5>, /* CF */ + <11 6>, /* Power Switch */ + <12 7>; /* Button */ + }; + + compact-flash@b4000040 { + compatible = "iodata,usl-5p-ata", "ata-generic"; + reg = <0xb4000040 0x0e>, <0xb400002c 2>; + reg-shift = <1>; + interrupt-parent = <&julianintc>; + interrupts = <10>; + }; +}; + +&xtal { + clock-frequency = <22222222>; +}; + +&cpg { + renesas,mode = <5>; +}; + +&scif1 { + status = "okay"; +}; + +&pcic { + renesas,bcr1 = <0x00080000>; + renesas,config = <6 0xd0000000>; + renesas,mcrmask = <0x40000004>; + interrupt-map = <0x0000 0 0 1 &julianintc 5>, + <0x0000 0 0 2 &julianintc 6>, + <0x0000 0 0 3 &julianintc 7>, + <0x0000 0 0 4 &julianintc 8>, + <0x0800 0 0 1 &julianintc 6>, + <0x0800 0 0 2 &julianintc 7>, + <0x0800 0 0 3 &julianintc 8>, + <0x0800 0 0 4 &julianintc 5>, + <0x1000 0 0 1 &julianintc 7>, + <0x1000 0 0 2 &julianintc 8>, + <0x1000 0 0 3 &julianintc 5>, + <0x1000 0 0 4 &julianintc 6>; + interrupt-map-mask = <0x1800 0 0 7>; + status = "okay"; +};
IO DATA DEVICE Inc. USL-5P devicetree. Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp> --- arch/sh/boot/dts/usl-5p.dts | 84 +++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 arch/sh/boot/dts/usl-5p.dts