ixp4xx: upgrade to 5.15
[openwrt/staging/hauke.git] / target / linux / ixp4xx / patches-5.15 / 101-ARM-dts-add-tw2662.patch
1 diff -ruN a/arch/arm/boot/dts/intel-ixp42x-titanwireless-tw2662.dts b/arch/arm/boot/dts/intel-ixp42x-titanwireless-tw2662.dts
2 --- a/arch/arm/boot/dts/intel-ixp42x-titanwireless-tw2662.dts 1970-01-01 01:00:00.000000000 +0100
3 +++ b/arch/arm/boot/dts/intel-ixp42x-titanwireless-tw2662.dts 2021-05-20 23:48:13.602479932 +0200
4 @@ -0,0 +1,101 @@
5 +// SPDX-License-Identifier: ISC
6 +/*
7 + * Device Tree file for Titan Wireless TW266-2
8 + * Copyright (c) 2021 Zoltan HERPAI <wigyori@uid0.hu>
9 + */
10 +
11 +/dts-v1/;
12 +
13 +#include "intel-ixp42x.dtsi"
14 +#include <dt-bindings/input/input.h>
15 +
16 +/ {
17 + model = "Titan Wireless 266-2";
18 + compatible = "titanwireless,tw266", "intel,ixp42x";
19 + #address-cells = <1>;
20 + #size-cells = <1>;
21 +
22 + memory@0 {
23 + /* 64 MB SDRAM */
24 + device_type = "memory";
25 + reg = <0x00000000 0x4000000>;
26 + };
27 +
28 + chosen {
29 + /* mem=64M taken from the tw2662-setup.c boardfile */
30 + bootargs = "console=ttyS0,115200n8";
31 + stdout-path = "uart0:115200n8";
32 + };
33 +
34 +/* i2c {
35 + compatible = "i2c-gpio";
36 + sda-gpios = <&gpio0 7 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
37 + scl-gpios = <&gpio0 6 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
38 + #address-cells = <1>;
39 + #size-cells = <0>;
40 + };
41 +*/
42 + aliases {
43 + serial0 = &uart0;
44 + };
45 +
46 + soc {
47 + bus@50000000 {
48 + /* The first 16MB region at CS0 on the expansion bus */
49 + flash@0 {
50 + compatible = "intel,ixp4xx-flash", "cfi-flash";
51 + bank-width = <2>;
52 + /*
53 + * 16 MB of Flash in 0x20000 byte blocks
54 + * mapped in at CS0.
55 + */
56 + reg = <0x00000000 0x1000000>;
57 +
58 + partitions {
59 + compatible = "redboot-fis";
60 + /* Eraseblock at 0x7e0000 */
61 + fis-index-block = <0x7f>;
62 + };
63 + };
64 + };
65 +
66 + pci@c0000000 {
67 + status = "ok";
68 +
69 + interrupt-map =
70 + /* IDSEL 1 */
71 + <0x0800 0 0 1 &gpio0 11 3>, /* INT A on slot 1 is irq 11 */
72 + /* IDSEL 3 */
73 + <0x1800 0 0 1 &gpio0 9 3>; /* INT A on slot 3 is irq 9 */
74 + };
75 +
76 + ethernet@c8009000 {
77 + status = "ok";
78 + queue-rx = <&qmgr 3>;
79 + queue-txready = <&qmgr 20>;
80 + phy-mode = "rgmii";
81 + phy-handle = <&phy3>;
82 +
83 + mdio {
84 + #address-cells = <1>;
85 + #size-cells = <0>;
86 +
87 + phy1: ethernet-phy@1 {
88 + reg = <1>;
89 + };
90 +
91 + phy3: ethernet-phy@3 {
92 + reg = <3>;
93 + };
94 + };
95 + };
96 +
97 + ethernet@c800a000 {
98 + status = "ok";
99 + queue-rx = <&qmgr 4>;
100 + queue-txready = <&qmgr 21>;
101 + phy-mode = "rgmii";
102 + phy-handle = <&phy1>;
103 + };
104 + };
105 +};
106 diff -ruN a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
107 --- a/arch/arm/boot/dts/Makefile 2021-05-19 17:41:15.911243339 +0200
108 +++ b/arch/arm/boot/dts/Makefile 2021-05-20 17:27:15.111961454 +0200
109 @@ -247,6 +247,7 @@
110 intel-ixp42x-adi-pronghorn-metro.dtb \
111 intel-ixp42x-gateway-7001.dtb \
112 intel-ixp42x-linksys-nslu2.dtb \
113 + intel-ixp42x-titanwireless-tw2662.dtb \
114 intel-ixp42x-linksys-wrv54g.dtb \
115 intel-ixp42x-freecom-fsg-3.dtb \
116 intel-ixp42x-welltech-epbx100.dtb \