xref: /freebsd/sys/contrib/device-tree/src/arm64/hisilicon/hip05-d02.dts (revision b97ee269eae3cbaf35c18f51a459aea581c2a7dc)
1// SPDX-License-Identifier: GPL-2.0-only
2/**
3 * dts file for Hisilicon D02 Development Board
4 *
5 * Copyright (C) 2014,2015 HiSilicon Ltd.
6 */
7
8/dts-v1/;
9
10#include <dt-bindings/gpio/gpio.h>
11#include "hip05.dtsi"
12
13/ {
14	model = "Hisilicon Hip05 D02 Development Board";
15	compatible = "hisilicon,hip05-d02";
16
17	memory@0 {
18		device_type = "memory";
19		reg = <0x0 0x00000000 0x0 0x80000000>;
20	};
21
22	aliases {
23		serial0 = &uart0;
24	};
25
26	chosen {
27		stdout-path = "serial0:115200n8";
28	};
29
30	gpio-keys {
31		compatible = "gpio-keys";
32
33		pwr-button {
34			label = "Power Button";
35			gpios = <&porta 8 GPIO_ACTIVE_LOW>;
36			linux,code = <116>;
37			debounce-interval = <0>;
38		};
39	};
40};
41
42&uart0 {
43	status = "okay";
44};
45
46&peri_gpio0 {
47	status = "okay";
48};
49
50&lbc {
51	status = "okay";
52	#address-cells = <2>;
53	#size-cells = <1>;
54	ranges = <0 0 0x0 0x90000000 0x08000000>,
55		 <1 0 0x0 0x98000000 0x08000000>;
56
57	nor-flash@0,0 {
58		#address-cells = <1>;
59		#size-cells = <1>;
60		compatible = "numonyx,js28f00a", "cfi-flash";
61		reg = <0 0x0 0x08000000>;
62		bank-width = <2>;
63		/* The three parts may not used */
64		partition@0 {
65			label = "BIOS";
66			reg = <0x0 0x300000>;
67		};
68		partition@300000 {
69			label = "Linux";
70			reg = <0x300000 0xa00000>;
71		};
72		partition@1000000 {
73			label = "Rootfs";
74			reg = <0x01000000 0x02000000>;
75		};
76	};
77
78	cpld@1,0 {
79		compatible = "hisilicon,hip05-cpld";
80		reg = <1 0x0 0x100>;
81	};
82};
83