123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206 |
- // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
- // Copyright (c) 2017 Icenowy Zheng <[email protected]>
- // Based on sun50i-a64-pine64.dts, which is:
- // Copyright (c) 2016 ARM Ltd.
- /dts-v1/;
- #include "sun50i-a64-sopine.dtsi"
- / {
- model = "SoPine with baseboard";
- compatible = "pine64,sopine-baseboard", "pine64,sopine",
- "allwinner,sun50i-a64";
- aliases {
- ethernet0 = &emac;
- serial0 = &uart0;
- serial1 = &uart1;
- serial2 = &uart2;
- serial3 = &uart3;
- serial4 = &uart4;
- };
- chosen {
- stdout-path = "serial0:115200n8";
- };
- hdmi-connector {
- compatible = "hdmi-connector";
- type = "a";
- port {
- hdmi_con_in: endpoint {
- remote-endpoint = <&hdmi_out_con>;
- };
- };
- };
- reg_vcc1v8: vcc1v8 {
- compatible = "regulator-fixed";
- regulator-name = "vcc1v8";
- regulator-min-microvolt = <1800000>;
- regulator-max-microvolt = <1800000>;
- };
- };
- &ac_power_supply {
- status = "okay";
- };
- &battery_power_supply {
- status = "okay";
- };
- &codec {
- status = "okay";
- };
- &codec_analog {
- status = "okay";
- };
- &dai {
- status = "okay";
- };
- &de {
- status = "okay";
- };
- &ehci0 {
- status = "okay";
- };
- &ehci1 {
- status = "okay";
- };
- &emac {
- pinctrl-names = "default";
- pinctrl-0 = <&rgmii_pins>;
- phy-mode = "rgmii-txid";
- phy-handle = <&ext_rgmii_phy>;
- phy-supply = <®_dc1sw>;
- status = "okay";
- };
- &hdmi {
- hvcc-supply = <®_dldo1>;
- status = "okay";
- };
- &hdmi_out {
- hdmi_out_con: endpoint {
- remote-endpoint = <&hdmi_con_in>;
- };
- };
- &mdio {
- ext_rgmii_phy: ethernet-phy@1 {
- compatible = "ethernet-phy-ieee802.3-c22";
- reg = <1>;
- };
- };
- &mmc2 {
- pinctrl-names = "default";
- pinctrl-0 = <&mmc2_pins>;
- vmmc-supply = <®_dcdc1>;
- vqmmc-supply = <®_vcc1v8>;
- bus-width = <8>;
- non-removable;
- cap-mmc-hw-reset;
- mmc-hs200-1_8v;
- status = "okay";
- };
- &ohci0 {
- status = "okay";
- };
- &ohci1 {
- status = "okay";
- };
- ®_dc1sw {
- /*
- * Ethernet PHY needs 30ms to properly power up and some more
- * to initialize. 100ms should be plenty of time to finish
- * whole process.
- */
- regulator-enable-ramp-delay = <100000>;
- regulator-name = "vcc-phy";
- };
- ®_dldo1 {
- regulator-min-microvolt = <3300000>;
- regulator-max-microvolt = <3300000>;
- regulator-name = "vcc-hdmi";
- };
- ®_dldo2 {
- regulator-min-microvolt = <3300000>;
- regulator-max-microvolt = <3300000>;
- regulator-name = "vcc-mipi";
- };
- ®_dldo4 {
- regulator-min-microvolt = <3300000>;
- regulator-max-microvolt = <3300000>;
- regulator-name = "vcc-wifi";
- };
- &simplefb_hdmi {
- vcc-hdmi-supply = <®_dldo1>;
- };
- &sound {
- simple-audio-card,aux-devs = <&codec_analog>;
- simple-audio-card,widgets = "Microphone", "Microphone Jack",
- "Headphone", "Headphone Jack";
- simple-audio-card,routing =
- "Left DAC", "DACL",
- "Right DAC", "DACR",
- "Headphone Jack", "HP",
- "ADCL", "Left ADC",
- "ADCR", "Right ADC",
- "MIC2", "Microphone Jack";
- status = "okay";
- };
- &uart0 {
- pinctrl-names = "default";
- pinctrl-0 = <&uart0_pb_pins>;
- status = "okay";
- };
- /* On Pi-2 connector */
- &uart2 {
- pinctrl-names = "default";
- pinctrl-0 = <&uart2_pins>;
- status = "disabled";
- };
- /* On Euler connector */
- &uart3 {
- pinctrl-names = "default";
- pinctrl-0 = <&uart3_pins>;
- status = "disabled";
- };
- /* On Euler connector, RTS/CTS optional */
- &uart4 {
- pinctrl-names = "default";
- pinctrl-0 = <&uart4_pins>;
- status = "disabled";
- };
- &usb_otg {
- dr_mode = "host";
- status = "okay";
- };
- &usbphy {
- status = "okay";
- };
|