blob: 246dec5846a4d47e4e42a447e9830cf6f76f650f [file] [log] [blame]
Samuel Holland8d6fe612022-04-27 15:31:24 -05001// SPDX-License-Identifier: GPL-2.0 OR X11
2/* Copyright (c) 2016 FUKAUMI Naoki <naobsd@gmail.com> */
3
4/dts-v1/;
5#include "sun8i-a33.dtsi"
6#include "sunxi-common-regulators.dtsi"
7
8/ {
9 model = "Nintendo NES Classic Edition";
10 compatible = "nintendo,nes-classic", "allwinner,sun8i-r16",
11 "allwinner,sun8i-a33";
12
13 aliases {
14 serial0 = &uart0;
15 };
16
17 chosen {
18 stdout-path = "serial0:115200n8";
19 };
20};
21
22&uart0 {
23 /*
24 * UART0 is available on two ports: PB and PF, both are accessible.
25 * PF can also be used for the SD card so PB is preferred.
26 */
27 pinctrl-names = "default";
28 pinctrl-0 = <&uart0_pf_pins>;
29 status = "okay";
30};
31
32&nfc {
33 status = "okay";
34
35 /* 2Gb Macronix MX30LF2G18AC (3V) */
36 nand@0 {
37 reg = <0>;
38 allwinner,rb = <0>;
39 nand-ecc-mode = "hw";
40 nand-ecc-strength = <16>;
41 nand-ecc-step-size = <1024>;
42 };
43};
44
45&usb_otg {
46 status = "okay";
47 dr_mode = "otg";
48};
49
50&usbphy {
51 /* VBUS is always on because it is wired to the power supply */
52 usb1_vbus-supply = <&reg_vcc5v0>;
53 status = "okay";
54};