~funderscore blog cgit wiki get in touch
aboutsummaryrefslogtreecommitdiff
blob: efc1b9519efc2ce554a7cc16610106e7c231e32b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// SPDX-License-Identifier: GPL-2.0
/*
 * Device Tree Source extras for U-Boot for the White Hawk board
 *
 * Copyright (C) 2021 Renesas Electronics Corp.
 */

#include "r8a779g0-white-hawk.dts"
#include "r8a779g0-u-boot.dtsi"

/ {
	aliases {
		spi0 = &rpc;
	};
};

&pfc {
	qspi0_pins: qspi0 {
		groups = "qspi0_ctrl", "qspi0_data4";
		function = "qspi0";
	};
};

&rpc {
	pinctrl-0 = <&qspi0_pins>;
	pinctrl-names = "default";

	#address-cells = <1>;
	#size-cells = <0>;
	spi-max-frequency = <40000000>;
	status = "okay";

	spi-flash@0 {
		#address-cells = <1>;
		#size-cells = <1>;
		compatible = "s25fs512s", "jedec,spi-nor";
		reg = <0>;
		spi-tx-bus-width = <1>;
		spi-rx-bus-width = <1>;
		spi-max-frequency = <40000000>;
	};
};