aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErin Lo <erin.lo@mediatek.com>2019-05-27 05:04:46 -0400
committerMatthias Brugger <matthias.bgg@gmail.com>2019-06-21 11:47:56 -0400
commit8e2dd0f9249119e0084de4b75855359efe3fb5cc (patch)
tree405951bab7fb28d78a57fdc5649e94cabc2d3c5c
parenteb59b35331469f3348ef09743fd425318fd0aac5 (diff)
arm64: dts: mt8183: add spi node
Add spi DTS node to the mt8183 and mt8183-evb. Signed-off-by: Mengqi Zhang <Mengqi.Zhang@mediatek.com> Signed-off-by: Erin Lo <erin.lo@mediatek.com> Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
-rw-r--r--arch/arm64/boot/dts/mediatek/mt8183-evb.dts105
-rw-r--r--arch/arm64/boot/dts/mediatek/mt8183.dtsi78
2 files changed, 183 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/mediatek/mt8183-evb.dts b/arch/arm64/boot/dts/mediatek/mt8183-evb.dts
index 49909acc6efa..d8e555cbb5d3 100644
--- a/arch/arm64/boot/dts/mediatek/mt8183-evb.dts
+++ b/arch/arm64/boot/dts/mediatek/mt8183-evb.dts
@@ -30,6 +30,111 @@
30 status = "okay"; 30 status = "okay";
31}; 31};
32 32
33&pio {
34 spi_pins_0: spi0{
35 pins_spi{
36 pinmux = <PINMUX_GPIO85__FUNC_SPI0_MI>,
37 <PINMUX_GPIO86__FUNC_SPI0_CSB>,
38 <PINMUX_GPIO87__FUNC_SPI0_MO>,
39 <PINMUX_GPIO88__FUNC_SPI0_CLK>;
40 bias-disable;
41 };
42 };
43
44 spi_pins_1: spi1{
45 pins_spi{
46 pinmux = <PINMUX_GPIO161__FUNC_SPI1_A_MI>,
47 <PINMUX_GPIO162__FUNC_SPI1_A_CSB>,
48 <PINMUX_GPIO163__FUNC_SPI1_A_MO>,
49 <PINMUX_GPIO164__FUNC_SPI1_A_CLK>;
50 bias-disable;
51 };
52 };
53
54 spi_pins_2: spi2{
55 pins_spi{
56 pinmux = <PINMUX_GPIO0__FUNC_SPI2_CSB>,
57 <PINMUX_GPIO1__FUNC_SPI2_MO>,
58 <PINMUX_GPIO2__FUNC_SPI2_CLK>,
59 <PINMUX_GPIO94__FUNC_SPI2_MI>;
60 bias-disable;
61 };
62 };
63
64 spi_pins_3: spi3{
65 pins_spi{
66 pinmux = <PINMUX_GPIO21__FUNC_SPI3_MI>,
67 <PINMUX_GPIO22__FUNC_SPI3_CSB>,
68 <PINMUX_GPIO23__FUNC_SPI3_MO>,
69 <PINMUX_GPIO24__FUNC_SPI3_CLK>;
70 bias-disable;
71 };
72 };
73
74 spi_pins_4: spi4{
75 pins_spi{
76 pinmux = <PINMUX_GPIO17__FUNC_SPI4_MI>,
77 <PINMUX_GPIO18__FUNC_SPI4_CSB>,
78 <PINMUX_GPIO19__FUNC_SPI4_MO>,
79 <PINMUX_GPIO20__FUNC_SPI4_CLK>;
80 bias-disable;
81 };
82 };
83
84 spi_pins_5: spi5{
85 pins_spi{
86 pinmux = <PINMUX_GPIO13__FUNC_SPI5_MI>,
87 <PINMUX_GPIO14__FUNC_SPI5_CSB>,
88 <PINMUX_GPIO15__FUNC_SPI5_MO>,
89 <PINMUX_GPIO16__FUNC_SPI5_CLK>;
90 bias-disable;
91 };
92 };
93};
94
95&spi0 {
96 pinctrl-names = "default";
97 pinctrl-0 = <&spi_pins_0>;
98 mediatek,pad-select = <0>;
99 status = "okay";
100};
101
102&spi1 {
103 pinctrl-names = "default";
104 pinctrl-0 = <&spi_pins_1>;
105 mediatek,pad-select = <0>;
106 status = "okay";
107};
108
109&spi2 {
110 pinctrl-names = "default";
111 pinctrl-0 = <&spi_pins_2>;
112 mediatek,pad-select = <0>;
113 status = "okay";
114};
115
116&spi3 {
117 pinctrl-names = "default";
118 pinctrl-0 = <&spi_pins_3>;
119 mediatek,pad-select = <0>;
120 status = "okay";
121};
122
123&spi4 {
124 pinctrl-names = "default";
125 pinctrl-0 = <&spi_pins_4>;
126 mediatek,pad-select = <0>;
127 status = "okay";
128};
129
130&spi5 {
131 pinctrl-names = "default";
132 pinctrl-0 = <&spi_pins_5>;
133 mediatek,pad-select = <0>;
134 status = "okay";
135
136};
137
33&uart0 { 138&uart0 {
34 status = "okay"; 139 status = "okay";
35}; 140};
diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi
index 5672c18d5360..2e3063fb9124 100644
--- a/arch/arm64/boot/dts/mediatek/mt8183.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8183.dtsi
@@ -285,6 +285,84 @@
285 status = "disabled"; 285 status = "disabled";
286 }; 286 };
287 287
288 spi0: spi@1100a000 {
289 compatible = "mediatek,mt8183-spi";
290 #address-cells = <1>;
291 #size-cells = <0>;
292 reg = <0 0x1100a000 0 0x1000>;
293 interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_LOW>;
294 clocks = <&topckgen CLK_TOP_SYSPLL_D5_D2>,
295 <&topckgen CLK_TOP_MUX_SPI>,
296 <&infracfg CLK_INFRA_SPI0>;
297 clock-names = "parent-clk", "sel-clk", "spi-clk";
298 status = "disabled";
299 };
300
301 spi1: spi@11010000 {
302 compatible = "mediatek,mt8183-spi";
303 #address-cells = <1>;
304 #size-cells = <0>;
305 reg = <0 0x11010000 0 0x1000>;
306 interrupts = <GIC_SPI 124 IRQ_TYPE_LEVEL_LOW>;
307 clocks = <&topckgen CLK_TOP_SYSPLL_D5_D2>,
308 <&topckgen CLK_TOP_MUX_SPI>,
309 <&infracfg CLK_INFRA_SPI1>;
310 clock-names = "parent-clk", "sel-clk", "spi-clk";
311 status = "disabled";
312 };
313
314 spi2: spi@11012000 {
315 compatible = "mediatek,mt8183-spi";
316 #address-cells = <1>;
317 #size-cells = <0>;
318 reg = <0 0x11012000 0 0x1000>;
319 interrupts = <GIC_SPI 129 IRQ_TYPE_LEVEL_LOW>;
320 clocks = <&topckgen CLK_TOP_SYSPLL_D5_D2>,
321 <&topckgen CLK_TOP_MUX_SPI>,
322 <&infracfg CLK_INFRA_SPI2>;
323 clock-names = "parent-clk", "sel-clk", "spi-clk";
324 status = "disabled";
325 };
326
327 spi3: spi@11013000 {
328 compatible = "mediatek,mt8183-spi";
329 #address-cells = <1>;
330 #size-cells = <0>;
331 reg = <0 0x11013000 0 0x1000>;
332 interrupts = <GIC_SPI 130 IRQ_TYPE_LEVEL_LOW>;
333 clocks = <&topckgen CLK_TOP_SYSPLL_D5_D2>,
334 <&topckgen CLK_TOP_MUX_SPI>,
335 <&infracfg CLK_INFRA_SPI3>;
336 clock-names = "parent-clk", "sel-clk", "spi-clk";
337 status = "disabled";
338 };
339
340 spi4: spi@11018000 {
341 compatible = "mediatek,mt8183-spi";
342 #address-cells = <1>;
343 #size-cells = <0>;
344 reg = <0 0x11018000 0 0x1000>;
345 interrupts = <GIC_SPI 134 IRQ_TYPE_LEVEL_LOW>;
346 clocks = <&topckgen CLK_TOP_SYSPLL_D5_D2>,
347 <&topckgen CLK_TOP_MUX_SPI>,
348 <&infracfg CLK_INFRA_SPI4>;
349 clock-names = "parent-clk", "sel-clk", "spi-clk";
350 status = "disabled";
351 };
352
353 spi5: spi@11019000 {
354 compatible = "mediatek,mt8183-spi";
355 #address-cells = <1>;
356 #size-cells = <0>;
357 reg = <0 0x11019000 0 0x1000>;
358 interrupts = <GIC_SPI 135 IRQ_TYPE_LEVEL_LOW>;
359 clocks = <&topckgen CLK_TOP_SYSPLL_D5_D2>,
360 <&topckgen CLK_TOP_MUX_SPI>,
361 <&infracfg CLK_INFRA_SPI5>;
362 clock-names = "parent-clk", "sel-clk", "spi-clk";
363 status = "disabled";
364 };
365
288 audiosys: syscon@11220000 { 366 audiosys: syscon@11220000 {
289 compatible = "mediatek,mt8183-audiosys", "syscon"; 367 compatible = "mediatek,mt8183-audiosys", "syscon";
290 reg = <0 0x11220000 0 0x1000>; 368 reg = <0 0x11220000 0 0x1000>;