2022-01-29 15:23:08 +00:00
|
|
|
// SPDX-License-Identifier: (GPL-2.0+ OR X11)
|
|
|
|
/*
|
|
|
|
* Copyright 2018 Icenowy Zheng <icenowy@aosc.io>
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
|
|
|
#include "suniv-f1c100s.dtsi"
|
|
|
|
|
2023-04-02 00:17:07 +00:00
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
|
2022-01-29 15:23:08 +00:00
|
|
|
/ {
|
|
|
|
model = "Lichee Pi Nano";
|
|
|
|
compatible = "licheepi,licheepi-nano", "allwinner,suniv-f1c100s";
|
|
|
|
|
|
|
|
aliases {
|
2022-04-26 00:15:25 +00:00
|
|
|
mmc0 = &mmc0;
|
2022-01-29 15:23:08 +00:00
|
|
|
serial0 = &uart0;
|
2022-04-26 00:15:25 +00:00
|
|
|
spi0 = &spi0;
|
2022-01-29 15:23:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
chosen {
|
|
|
|
stdout-path = "serial0:115200n8";
|
|
|
|
};
|
2022-04-26 00:15:25 +00:00
|
|
|
|
|
|
|
reg_vcc3v3: vcc3v3 {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-name = "vcc3v3";
|
|
|
|
regulator-min-microvolt = <3300000>;
|
|
|
|
regulator-max-microvolt = <3300000>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&mmc0 {
|
|
|
|
broken-cd;
|
|
|
|
bus-width = <4>;
|
|
|
|
disable-wp;
|
|
|
|
status = "okay";
|
|
|
|
vmmc-supply = <®_vcc3v3>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&spi0 {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&spi0_pc_pins>;
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
flash@0 {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
compatible = "winbond,w25q128", "jedec,spi-nor";
|
|
|
|
reg = <0>;
|
|
|
|
spi-max-frequency = <40000000>;
|
|
|
|
};
|
2022-01-29 15:23:08 +00:00
|
|
|
};
|
|
|
|
|
2023-04-02 00:17:07 +00:00
|
|
|
&otg_sram {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2022-01-29 15:23:08 +00:00
|
|
|
&uart0 {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&uart0_pe_pins>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
2023-04-02 00:17:07 +00:00
|
|
|
|
|
|
|
&usb_otg {
|
|
|
|
dr_mode = "otg";
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&usbphy {
|
|
|
|
usb0_id_det-gpios = <&pio 4 2 GPIO_ACTIVE_HIGH>; /* PE2 */
|
|
|
|
status = "okay";
|
|
|
|
};
|