summaryrefslogtreecommitdiffstats
path: root/arch/arm/dts/rk3588-rock-5b.dts
blob: ddff76028eb1a3002044fd9f953fdc92e8c7745a (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)

/dts-v1/;

#include <arm64/rockchip/rk3588-rock-5b.dts>
#include "rk3588.dtsi"
#include <dt-bindings/pinctrl/rockchip.h>
#include <dt-bindings/gpio/gpio.h>

/ {
	aliases {
		mmc1 = &sdmmc;
	};

	chosen: chosen {
		environment-emmc {
			compatible = "barebox,environment";
			device-path = &environment_emmc;
			status = "disabled";
		};

		environment-sd {
			compatible = "barebox,environment";
			device-path = &environment_sd;
			status = "disabled";
		};
	};
};

&sdhci {
	partitions {
		compatible = "fixed-partitions";
		#address-cells = <2>;
		#size-cells = <2>;

		environment_emmc: partition@408000 {
			label = "barebox-environment";
			reg = <0x0 0x408000 0x0 0x8000>;
		};
	};
};

&sdmmc {
	partitions {
		compatible = "fixed-partitions";
		#address-cells = <2>;
		#size-cells = <2>;

		environment_sd: partition@408000 {
			label = "barebox-environment";
			reg = <0x0 0x408000 0x0 0x8000>;
		};
	};
};

&pcie3x4 {
	/* Does not work in barebox (missing phy driver) */
	status = "disabled";
};

&pcie30phy {
	status = "disabled";
};

&pcie2x1l2 {
	/*
	 * Originally in upstream dts this is:
	 * ranges = <0x01000000 0x0 0xf4100000 0x0 0xf4100000 0x0 0x00100000>,
	 *          <0x02000000 0x0 0xf4200000 0x0 0xf4200000 0x0 0x00e00000>,
	 *          <0x03000000 0x0 0x40000000 0xa 0x00000000 0x0 0x40000000>;
	 *
	 * Overwriting this shouldn't be necessary, but without it PCI doesn't
	 * work. We have some deficiency in the PCI driver that causes this.
	 */
	ranges = <0x01000000 0x0 0xf4100000 0x0 0xf4100000 0x0 0x00100000>,
		 <0x02000000 0x0 0xf4200000 0x0 0xf4200000 0x0 0x00e00000>,
		 <0x03000000 0xa 0x00000000 0xa 0x00000000 0x0 0x40000000>;
};

&pcie2x1l0 {
	/* Does not work in barebox */
	status = "disabled";
};

&usb_host0_ehci {
	/* Does not work in barebox (missing phy driver) */
	status = "disabled";
};

&usb_host1_ehci {
	/* Does not work in barebox (missing phy driver) */
	status = "disabled";
};