Icenowy Zheng | ce2b6c4 | 2022-01-29 10:23:08 -0500 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR X11) |
| 2 | /* |
| 3 | * Copyright 2018 Icenowy Zheng <icenowy@aosc.io> |
| 4 | */ |
| 5 | |
| 6 | /dts-v1/; |
| 7 | #include "suniv-f1c100s.dtsi" |
| 8 | |
Andre Przywara | 5728573 | 2023-04-02 01:17:07 +0100 | [diff] [blame] | 9 | #include <dt-bindings/gpio/gpio.h> |
| 10 | |
Icenowy Zheng | ce2b6c4 | 2022-01-29 10:23:08 -0500 | [diff] [blame] | 11 | / { |
| 12 | model = "Lichee Pi Nano"; |
| 13 | compatible = "licheepi,licheepi-nano", "allwinner,suniv-f1c100s"; |
| 14 | |
| 15 | aliases { |
Andre Przywara | d037e79 | 2022-04-26 01:15:25 +0100 | [diff] [blame] | 16 | mmc0 = &mmc0; |
Icenowy Zheng | ce2b6c4 | 2022-01-29 10:23:08 -0500 | [diff] [blame] | 17 | serial0 = &uart0; |
Andre Przywara | d037e79 | 2022-04-26 01:15:25 +0100 | [diff] [blame] | 18 | spi0 = &spi0; |
Icenowy Zheng | ce2b6c4 | 2022-01-29 10:23:08 -0500 | [diff] [blame] | 19 | }; |
| 20 | |
| 21 | chosen { |
| 22 | stdout-path = "serial0:115200n8"; |
| 23 | }; |
Andre Przywara | d037e79 | 2022-04-26 01:15:25 +0100 | [diff] [blame] | 24 | |
| 25 | reg_vcc3v3: vcc3v3 { |
| 26 | compatible = "regulator-fixed"; |
| 27 | regulator-name = "vcc3v3"; |
| 28 | regulator-min-microvolt = <3300000>; |
| 29 | regulator-max-microvolt = <3300000>; |
| 30 | }; |
| 31 | }; |
| 32 | |
| 33 | &mmc0 { |
| 34 | broken-cd; |
| 35 | bus-width = <4>; |
| 36 | disable-wp; |
| 37 | status = "okay"; |
| 38 | vmmc-supply = <®_vcc3v3>; |
| 39 | }; |
| 40 | |
| 41 | &spi0 { |
| 42 | pinctrl-names = "default"; |
| 43 | pinctrl-0 = <&spi0_pc_pins>; |
| 44 | status = "okay"; |
| 45 | |
| 46 | flash@0 { |
| 47 | #address-cells = <1>; |
| 48 | #size-cells = <1>; |
| 49 | compatible = "winbond,w25q128", "jedec,spi-nor"; |
| 50 | reg = <0>; |
| 51 | spi-max-frequency = <40000000>; |
| 52 | }; |
Icenowy Zheng | ce2b6c4 | 2022-01-29 10:23:08 -0500 | [diff] [blame] | 53 | }; |
| 54 | |
Andre Przywara | 5728573 | 2023-04-02 01:17:07 +0100 | [diff] [blame] | 55 | &otg_sram { |
| 56 | status = "okay"; |
| 57 | }; |
| 58 | |
Icenowy Zheng | ce2b6c4 | 2022-01-29 10:23:08 -0500 | [diff] [blame] | 59 | &uart0 { |
| 60 | pinctrl-names = "default"; |
| 61 | pinctrl-0 = <&uart0_pe_pins>; |
| 62 | status = "okay"; |
| 63 | }; |
Andre Przywara | 5728573 | 2023-04-02 01:17:07 +0100 | [diff] [blame] | 64 | |
| 65 | &usb_otg { |
| 66 | dr_mode = "otg"; |
| 67 | status = "okay"; |
| 68 | }; |
| 69 | |
| 70 | &usbphy { |
| 71 | usb0_id_det-gpios = <&pio 4 2 GPIO_ACTIVE_HIGH>; /* PE2 */ |
| 72 | status = "okay"; |
| 73 | }; |