1/*
2 * Copyright (c) 2018 Linaro Limited
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/ {
8	soc {
9		i2c@f0004000 {
10			interrupts = <25 1>;
11		};
12
13		i2c@f0005000 {
14			interrupts = <26 1>;
15		};
16
17		uart@f0008000 {
18			interrupts = <29 1>;
19		};
20
21		uart@f0009000 {
22			interrupts = <30 1>;
23		};
24
25		uart@f000a000 {
26			interrupts = <31 1>;
27		};
28
29		gpio@f0002000 {
30			interrupts = <24 1>;
31		};
32
33		creg_gpio: creg_gpio@f0000014 {
34			compatible = "snps,creg-gpio";
35			reg = <0xf0000014 0x4>;
36			ngpios = <6>;
37			bit_per_gpio = <1>;
38			off_val = <0>;
39			on_val = <1>;
40
41			gpio-controller;
42			#gpio-cells = <2>;
43
44			status = "okay";
45		};
46
47		spi@f0006000 {
48			interrupts = <27 1>;
49			cs-gpios = <&creg_gpio 0 GPIO_ACTIVE_HIGH>,
50					   <&creg_gpio 1 GPIO_ACTIVE_HIGH>,
51					   <&creg_gpio 2 GPIO_ACTIVE_HIGH>,
52					   <&creg_gpio 3 GPIO_ACTIVE_HIGH>,
53					   <&creg_gpio 4 GPIO_ACTIVE_HIGH>,
54					   <&creg_gpio 5 GPIO_ACTIVE_HIGH>;
55			w25q128bv: w25q128bv@0 {
56				compatible ="jedec,spi-nor";
57				size = <0x8000000>;
58				reg = <0>;
59				spi-max-frequency = <20000000>;
60				status = "okay";
61				jedec-id = [ef 40 18];
62			};
63		};
64
65		spi@f0007000 {
66			interrupts = <28 1>;
67		};
68	};
69};
70