mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-23 05:00:24 +09:00
sunxi: DT: H3: update board .dts files from Linux
Update the .dts file for the various boards with an Allwinner H3 SoC. This is as of v4.18-rc3, exactly Linux commit: commit 721afaa2aeb860067decdddadc84ed16f42f2048 (HEAD) Merge: 7c00e8ae041b 87815dda5593 Author: Linus Torvalds <torvalds@linux-foundation.org> Date: Mon Jun 11 17:57:38 2018 -0700 Merge tag 'armsoc-dt' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc This also includes the OrangePi Zero .dts, which technically has an Allwinner H2+ SoC. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Acked-by: Maxime Ripard <maxime.ripard@bootlin.com> Acked-by: Jagan Teki <jagan@amarulasolutions.com>
This commit is contained in:
parent
1caeae375f
commit
2d0c3d6b16
@ -49,7 +49,6 @@
|
|||||||
|
|
||||||
#include <dt-bindings/gpio/gpio.h>
|
#include <dt-bindings/gpio/gpio.h>
|
||||||
#include <dt-bindings/input/input.h>
|
#include <dt-bindings/input/input.h>
|
||||||
#include <dt-bindings/pinctrl/sun4i-a10.h>
|
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "Xunlong Orange Pi Zero";
|
model = "Xunlong Orange Pi Zero";
|
||||||
@ -58,6 +57,7 @@
|
|||||||
aliases {
|
aliases {
|
||||||
serial0 = &uart0;
|
serial0 = &uart0;
|
||||||
/* ethernet0 is the H3 emac, defined in sun8i-h3.dtsi */
|
/* ethernet0 is the H3 emac, defined in sun8i-h3.dtsi */
|
||||||
|
ethernet0 = &emac;
|
||||||
ethernet1 = &xr819;
|
ethernet1 = &xr819;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -92,9 +92,14 @@
|
|||||||
wifi_pwrseq: wifi_pwrseq {
|
wifi_pwrseq: wifi_pwrseq {
|
||||||
compatible = "mmc-pwrseq-simple";
|
compatible = "mmc-pwrseq-simple";
|
||||||
reset-gpios = <&r_pio 0 7 GPIO_ACTIVE_LOW>;
|
reset-gpios = <&r_pio 0 7 GPIO_ACTIVE_LOW>;
|
||||||
|
post-power-on-delay-ms = <200>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&ehci0 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
&ehci1 {
|
&ehci1 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
@ -109,8 +114,7 @@
|
|||||||
&mmc0 {
|
&mmc0 {
|
||||||
vmmc-supply = <®_vcc3v3>;
|
vmmc-supply = <®_vcc3v3>;
|
||||||
bus-width = <4>;
|
bus-width = <4>;
|
||||||
cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>; /* PF6 */
|
cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
|
||||||
cd-inverted;
|
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -130,17 +134,56 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&ohci0 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
&ohci1 {
|
&ohci1 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&spi0 {
|
||||||
|
/* Disable SPI NOR by default: it optional on Orange Pi Zero boards */
|
||||||
|
status = "disabled";
|
||||||
|
|
||||||
|
flash@0 {
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <1>;
|
||||||
|
compatible = "mxicy,mx25l1606e", "winbond,w25q128";
|
||||||
|
reg = <0>;
|
||||||
|
spi-max-frequency = <40000000>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&uart0 {
|
&uart0 {
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&uart0_pins_a>;
|
pinctrl-0 = <&uart0_pins_a>;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
&usbphy {
|
&uart1 {
|
||||||
/* USB VBUS is always on */
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&uart1_pins>;
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
|
&uart2 {
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&uart2_pins>;
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
|
&usb_otg {
|
||||||
|
dr_mode = "peripheral";
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&usbphy {
|
||||||
|
/*
|
||||||
|
* USB Type-A port VBUS is always on. However, MicroUSB VBUS can only
|
||||||
|
* power up the board; when it's used as OTG port, this VBUS is
|
||||||
|
* always off even if the board is powered via GPIO pins.
|
||||||
|
*/
|
||||||
|
status = "okay";
|
||||||
|
usb0_id_det-gpios = <&pio 6 12 GPIO_ACTIVE_HIGH>; /* PG12 */
|
||||||
|
};
|
||||||
|
@ -46,13 +46,13 @@
|
|||||||
|
|
||||||
#include <dt-bindings/gpio/gpio.h>
|
#include <dt-bindings/gpio/gpio.h>
|
||||||
#include <dt-bindings/input/input.h>
|
#include <dt-bindings/input/input.h>
|
||||||
#include <dt-bindings/pinctrl/sun4i-a10.h>
|
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "Banana Pi BPI-M2-Plus";
|
model = "Banana Pi BPI-M2-Plus";
|
||||||
compatible = "sinovoip,bpi-m2-plus", "allwinner,sun8i-h3";
|
compatible = "sinovoip,bpi-m2-plus", "allwinner,sun8i-h3";
|
||||||
|
|
||||||
aliases {
|
aliases {
|
||||||
|
ethernet0 = &emac;
|
||||||
serial0 = &uart0;
|
serial0 = &uart0;
|
||||||
serial1 = &uart1;
|
serial1 = &uart1;
|
||||||
};
|
};
|
||||||
@ -61,10 +61,20 @@
|
|||||||
stdout-path = "serial0:115200n8";
|
stdout-path = "serial0:115200n8";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
connector {
|
||||||
|
compatible = "hdmi-connector";
|
||||||
|
type = "a";
|
||||||
|
|
||||||
|
port {
|
||||||
|
hdmi_con_in: endpoint {
|
||||||
|
remote-endpoint = <&hdmi_out_con>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
leds {
|
leds {
|
||||||
compatible = "gpio-leds";
|
compatible = "gpio-leds";
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&pwr_led_bpi_m2p>;
|
|
||||||
|
|
||||||
pwr_led {
|
pwr_led {
|
||||||
label = "bananapi-m2-plus:red:pwr";
|
label = "bananapi-m2-plus:red:pwr";
|
||||||
@ -76,7 +86,6 @@
|
|||||||
gpio_keys {
|
gpio_keys {
|
||||||
compatible = "gpio-keys";
|
compatible = "gpio-keys";
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&sw_r_bpi_m2p>;
|
|
||||||
|
|
||||||
sw4 {
|
sw4 {
|
||||||
label = "power";
|
label = "power";
|
||||||
@ -85,14 +94,27 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
reg_gmac_3v3: gmac-3v3 {
|
||||||
|
compatible = "regulator-fixed";
|
||||||
|
regulator-name = "gmac-3v3";
|
||||||
|
regulator-min-microvolt = <3300000>;
|
||||||
|
regulator-max-microvolt = <3300000>;
|
||||||
|
startup-delay-us = <100000>;
|
||||||
|
enable-active-high;
|
||||||
|
gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>;
|
||||||
|
};
|
||||||
|
|
||||||
wifi_pwrseq: wifi_pwrseq {
|
wifi_pwrseq: wifi_pwrseq {
|
||||||
compatible = "mmc-pwrseq-simple";
|
compatible = "mmc-pwrseq-simple";
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&wifi_en_bpi_m2p>;
|
|
||||||
reset-gpios = <&r_pio 0 7 GPIO_ACTIVE_LOW>; /* PL7 */
|
reset-gpios = <&r_pio 0 7 GPIO_ACTIVE_LOW>; /* PL7 */
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&de {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
&ehci0 {
|
&ehci0 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
@ -105,6 +127,33 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&emac {
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&emac_rgmii_pins>;
|
||||||
|
phy-supply = <®_gmac_3v3>;
|
||||||
|
phy-handle = <&ext_rgmii_phy>;
|
||||||
|
phy-mode = "rgmii";
|
||||||
|
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&external_mdio {
|
||||||
|
ext_rgmii_phy: ethernet-phy@1 {
|
||||||
|
compatible = "ethernet-phy-ieee802.3-c22";
|
||||||
|
reg = <0>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&hdmi {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&hdmi_out {
|
||||||
|
hdmi_out_con: endpoint {
|
||||||
|
remote-endpoint = <&hdmi_con_in>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&ir {
|
&ir {
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&ir_pins_a>;
|
pinctrl-0 = <&ir_pins_a>;
|
||||||
@ -114,8 +163,7 @@
|
|||||||
&mmc0 {
|
&mmc0 {
|
||||||
vmmc-supply = <®_vcc3v3>;
|
vmmc-supply = <®_vcc3v3>;
|
||||||
bus-width = <4>;
|
bus-width = <4>;
|
||||||
cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>; /* PF6 */
|
cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
|
||||||
cd-inverted;
|
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -127,7 +175,7 @@
|
|||||||
non-removable;
|
non-removable;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
brcmf: bcrmf@1 {
|
brcmf: wifi@1 {
|
||||||
reg = <1>;
|
reg = <1>;
|
||||||
compatible = "brcm,bcm4329-fmac";
|
compatible = "brcm,bcm4329-fmac";
|
||||||
interrupt-parent = <&pio>;
|
interrupt-parent = <&pio>;
|
||||||
@ -158,27 +206,9 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
&r_pio {
|
®_usb0_vbus {
|
||||||
pwr_led_bpi_m2p: led_pins@0 {
|
gpio = <&pio 3 11 GPIO_ACTIVE_HIGH>; /* PD11 */
|
||||||
allwinner,pins = "PL10";
|
status = "okay";
|
||||||
allwinner,function = "gpio_out";
|
|
||||||
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
|
|
||||||
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
|
|
||||||
};
|
|
||||||
|
|
||||||
sw_r_bpi_m2p: key_pins@0 {
|
|
||||||
allwinner,pins = "PL3";
|
|
||||||
allwinner,function = "gpio_in";
|
|
||||||
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
|
|
||||||
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
|
|
||||||
};
|
|
||||||
|
|
||||||
wifi_en_bpi_m2p: wifi_en_pin {
|
|
||||||
allwinner,pins = "PL7";
|
|
||||||
allwinner,function = "gpio_out";
|
|
||||||
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
|
|
||||||
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
&uart0 {
|
&uart0 {
|
||||||
@ -199,6 +229,8 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
&usbphy {
|
&usbphy {
|
||||||
/* USB VBUS is on as long as VCC-IO is on */
|
usb0_id_det-gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */
|
||||||
|
usb0_vbus-supply = <®_usb0_vbus>;
|
||||||
|
/* USB host VBUS is on as long as VCC-IO is on */
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2017 Chen-Yu Tsai <wens@csie.org>
|
* Copyright (C) 2017 Chen-Yu Tsai <wens@csie.org>
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/dts-v1/;
|
/dts-v1/;
|
||||||
|
@ -45,6 +45,28 @@
|
|||||||
/ {
|
/ {
|
||||||
model = "FriendlyArm NanoPi M1 Plus";
|
model = "FriendlyArm NanoPi M1 Plus";
|
||||||
compatible = "friendlyarm,nanopi-m1-plus", "allwinner,sun8i-h3";
|
compatible = "friendlyarm,nanopi-m1-plus", "allwinner,sun8i-h3";
|
||||||
|
|
||||||
|
aliases {
|
||||||
|
serial1 = &uart3;
|
||||||
|
ethernet0 = &emac;
|
||||||
|
ethernet1 = &sdio_wifi;
|
||||||
|
};
|
||||||
|
|
||||||
|
reg_gmac_3v3: gmac-3v3 {
|
||||||
|
compatible = "regulator-fixed";
|
||||||
|
regulator-name = "gmac-3v3";
|
||||||
|
regulator-min-microvolt = <3300000>;
|
||||||
|
regulator-max-microvolt = <3300000>;
|
||||||
|
startup-delay-us = <100000>;
|
||||||
|
enable-active-high;
|
||||||
|
gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>;
|
||||||
|
};
|
||||||
|
|
||||||
|
wifi_pwrseq: wifi_pwrseq {
|
||||||
|
compatible = "mmc-pwrseq-simple";
|
||||||
|
pinctrl-names = "default";
|
||||||
|
reset-gpios = <&r_pio 0 7 GPIO_ACTIVE_LOW>; /* PL7 */
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&ehci1 {
|
&ehci1 {
|
||||||
@ -55,6 +77,56 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&emac {
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&emac_rgmii_pins>;
|
||||||
|
phy-supply = <®_gmac_3v3>;
|
||||||
|
phy-handle = <&ext_rgmii_phy>;
|
||||||
|
phy-mode = "rgmii";
|
||||||
|
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&external_mdio {
|
||||||
|
ext_rgmii_phy: ethernet-phy@1 {
|
||||||
|
compatible = "ethernet-phy-ieee802.3-c22";
|
||||||
|
reg = <7>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&ir {
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&ir_pins_a>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&mmc1 {
|
||||||
|
vmmc-supply = <®_vcc3v3>;
|
||||||
|
vqmmc-supply = <®_vcc3v3>;
|
||||||
|
mmc-pwrseq = <&wifi_pwrseq>;
|
||||||
|
bus-width = <4>;
|
||||||
|
non-removable;
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
sdio_wifi: sdio_wifi@1 {
|
||||||
|
reg = <1>;
|
||||||
|
compatible = "brcm,bcm4329-fmac";
|
||||||
|
interrupt-parent = <&pio>;
|
||||||
|
interrupts = <6 10 IRQ_TYPE_LEVEL_LOW>; /* PG10 / EINT10 */
|
||||||
|
interrupt-names = "host-wake";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&mmc2 {
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&mmc2_8bit_pins>;
|
||||||
|
vmmc-supply = <®_vcc3v3>;
|
||||||
|
vqmmc-supply = <®_vcc3v3>;
|
||||||
|
bus-width = <8>;
|
||||||
|
non-removable;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
&ohci1 {
|
&ohci1 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
@ -62,3 +134,9 @@
|
|||||||
&ohci2 {
|
&ohci2 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&uart3 {
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&uart3_pins>, <&uart3_rts_cts_pins>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
@ -45,6 +45,25 @@
|
|||||||
/ {
|
/ {
|
||||||
model = "FriendlyArm NanoPi M1";
|
model = "FriendlyArm NanoPi M1";
|
||||||
compatible = "friendlyarm,nanopi-m1", "allwinner,sun8i-h3";
|
compatible = "friendlyarm,nanopi-m1", "allwinner,sun8i-h3";
|
||||||
|
|
||||||
|
aliases {
|
||||||
|
ethernet0 = &emac;
|
||||||
|
};
|
||||||
|
|
||||||
|
connector {
|
||||||
|
compatible = "hdmi-connector";
|
||||||
|
type = "a";
|
||||||
|
|
||||||
|
port {
|
||||||
|
hdmi_con_in: endpoint {
|
||||||
|
remote-endpoint = <&hdmi_out_con>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&de {
|
||||||
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
&ehci1 {
|
&ehci1 {
|
||||||
@ -55,6 +74,29 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&emac {
|
||||||
|
phy-handle = <&int_mii_phy>;
|
||||||
|
phy-mode = "mii";
|
||||||
|
allwinner,leds-active-low;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&hdmi {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&hdmi_out {
|
||||||
|
hdmi_out_con: endpoint {
|
||||||
|
remote-endpoint = <&hdmi_con_in>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&ir {
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&ir_pins_a>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
&ohci1 {
|
&ohci1 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
@ -45,7 +45,6 @@
|
|||||||
#include "sunxi-common-regulators.dtsi"
|
#include "sunxi-common-regulators.dtsi"
|
||||||
|
|
||||||
#include <dt-bindings/gpio/gpio.h>
|
#include <dt-bindings/gpio/gpio.h>
|
||||||
#include <dt-bindings/pinctrl/sun4i-a10.h>
|
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "FriendlyARM NanoPi NEO Air";
|
model = "FriendlyARM NanoPi NEO Air";
|
||||||
@ -73,16 +72,37 @@
|
|||||||
gpios = <&pio 0 10 GPIO_ACTIVE_HIGH>; /* PA10 */
|
gpios = <&pio 0 10 GPIO_ACTIVE_HIGH>; /* PA10 */
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
wifi_pwrseq: wifi_pwrseq {
|
||||||
|
compatible = "mmc-pwrseq-simple";
|
||||||
|
reset-gpios = <&r_pio 0 7 GPIO_ACTIVE_LOW>; /* PL7 */
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&mmc0 {
|
&mmc0 {
|
||||||
vmmc-supply = <®_vcc3v3>;
|
vmmc-supply = <®_vcc3v3>;
|
||||||
bus-width = <4>;
|
bus-width = <4>;
|
||||||
cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>; /* PF6 */
|
cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
|
||||||
cd-inverted;
|
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&mmc1 {
|
||||||
|
vmmc-supply = <®_vcc3v3>;
|
||||||
|
vqmmc-supply = <®_vcc3v3>;
|
||||||
|
mmc-pwrseq = <&wifi_pwrseq>;
|
||||||
|
bus-width = <4>;
|
||||||
|
non-removable;
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
brcmf: bcrmf@1 {
|
||||||
|
reg = <1>;
|
||||||
|
compatible = "brcm,bcm4329-fmac";
|
||||||
|
interrupt-parent = <&pio>;
|
||||||
|
interrupts = <6 10 IRQ_TYPE_LEVEL_LOW>; /* PG10 / EINT10 */
|
||||||
|
interrupt-names = "host-wake";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&uart0 {
|
&uart0 {
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&uart0_pins_a>;
|
pinctrl-0 = <&uart0_pins_a>;
|
||||||
|
@ -47,9 +47,26 @@
|
|||||||
compatible = "friendlyarm,nanopi-neo", "allwinner,sun8i-h3";
|
compatible = "friendlyarm,nanopi-neo", "allwinner,sun8i-h3";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&ehci0 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
&emac {
|
&emac {
|
||||||
phy-handle = <&int_mii_phy>;
|
phy-handle = <&int_mii_phy>;
|
||||||
phy-mode = "mii";
|
phy-mode = "mii";
|
||||||
allwinner,leds-active-low;
|
allwinner,leds-active-low;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&ohci0 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&usb_otg {
|
||||||
|
status = "okay";
|
||||||
|
dr_mode = "peripheral";
|
||||||
|
};
|
||||||
|
|
||||||
|
&usbphy {
|
||||||
|
usb0_id_det-gpios = <&pio 6 12 GPIO_ACTIVE_HIGH>; /* PG12 */
|
||||||
|
};
|
||||||
|
@ -81,7 +81,7 @@
|
|||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&sw_r_npi>;
|
pinctrl-0 = <&sw_r_npi>;
|
||||||
|
|
||||||
k1@0 {
|
k1 {
|
||||||
label = "k1";
|
label = "k1";
|
||||||
linux,code = <KEY_POWER>;
|
linux,code = <KEY_POWER>;
|
||||||
gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>;
|
gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>;
|
||||||
@ -95,8 +95,7 @@
|
|||||||
|
|
||||||
&mmc0 {
|
&mmc0 {
|
||||||
bus-width = <4>;
|
bus-width = <4>;
|
||||||
cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>;
|
cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
|
||||||
cd-inverted;
|
|
||||||
status = "okay";
|
status = "okay";
|
||||||
vmmc-supply = <®_vcc3v3>;
|
vmmc-supply = <®_vcc3v3>;
|
||||||
};
|
};
|
||||||
@ -106,19 +105,19 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
&pio {
|
&pio {
|
||||||
leds_npi: led_pins@0 {
|
leds_npi: led_pins {
|
||||||
pins = "PA10";
|
pins = "PA10";
|
||||||
function = "gpio_out";
|
function = "gpio_out";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&r_pio {
|
&r_pio {
|
||||||
leds_r_npi: led_pins@0 {
|
leds_r_npi: led_pins {
|
||||||
pins = "PL10";
|
pins = "PL10";
|
||||||
function = "gpio_out";
|
function = "gpio_out";
|
||||||
};
|
};
|
||||||
|
|
||||||
sw_r_npi: key_pins@0 {
|
sw_r_npi: key_pins {
|
||||||
pins = "PL3";
|
pins = "PL3";
|
||||||
function = "gpio_in";
|
function = "gpio_in";
|
||||||
};
|
};
|
||||||
|
@ -46,7 +46,6 @@
|
|||||||
|
|
||||||
#include <dt-bindings/gpio/gpio.h>
|
#include <dt-bindings/gpio/gpio.h>
|
||||||
#include <dt-bindings/input/input.h>
|
#include <dt-bindings/input/input.h>
|
||||||
#include <dt-bindings/pinctrl/sun4i-a10.h>
|
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "Xunlong Orange Pi 2";
|
model = "Xunlong Orange Pi 2";
|
||||||
@ -63,6 +62,17 @@
|
|||||||
stdout-path = "serial0:115200n8";
|
stdout-path = "serial0:115200n8";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
connector {
|
||||||
|
compatible = "hdmi-connector";
|
||||||
|
type = "a";
|
||||||
|
|
||||||
|
port {
|
||||||
|
hdmi_con_in: endpoint {
|
||||||
|
remote-endpoint = <&hdmi_out_con>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
leds {
|
leds {
|
||||||
compatible = "gpio-leds";
|
compatible = "gpio-leds";
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
@ -106,6 +116,19 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&codec {
|
||||||
|
allwinner,pa-gpios = <&pio 0 16 GPIO_ACTIVE_HIGH>; /* PA16 */
|
||||||
|
allwinner,audio-routing =
|
||||||
|
"Speaker", "LINEOUT",
|
||||||
|
"MIC1", "Mic",
|
||||||
|
"Mic", "MBIAS";
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&de {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
&ehci1 {
|
&ehci1 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
@ -117,6 +140,16 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&hdmi {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&hdmi_out {
|
||||||
|
hdmi_out_con: endpoint {
|
||||||
|
remote-endpoint = <&hdmi_con_in>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&ir {
|
&ir {
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&ir_pins_a>;
|
pinctrl-0 = <&ir_pins_a>;
|
||||||
@ -126,8 +159,7 @@
|
|||||||
&mmc0 {
|
&mmc0 {
|
||||||
vmmc-supply = <®_vcc3v3>;
|
vmmc-supply = <®_vcc3v3>;
|
||||||
bus-width = <4>;
|
bus-width = <4>;
|
||||||
cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>; /* PF6 */
|
cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
|
||||||
cd-inverted;
|
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -148,34 +180,26 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
&pio {
|
&pio {
|
||||||
leds_opc: led_pins@0 {
|
leds_opc: led_pins {
|
||||||
allwinner,pins = "PA15";
|
pins = "PA15";
|
||||||
allwinner,function = "gpio_out";
|
function = "gpio_out";
|
||||||
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
|
|
||||||
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&r_pio {
|
&r_pio {
|
||||||
leds_r_opc: led_pins@0 {
|
leds_r_opc: led_pins {
|
||||||
allwinner,pins = "PL10";
|
pins = "PL10";
|
||||||
allwinner,function = "gpio_out";
|
function = "gpio_out";
|
||||||
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
|
|
||||||
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
sw_r_opc: key_pins@0 {
|
sw_r_opc: key_pins {
|
||||||
allwinner,pins = "PL3", "PL4";
|
pins = "PL3", "PL4";
|
||||||
allwinner,function = "gpio_in";
|
function = "gpio_in";
|
||||||
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
|
|
||||||
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
wifi_pwrseq_pin_orangepi: wifi_pwrseq_pin@0 {
|
wifi_pwrseq_pin_orangepi: wifi_pwrseq_pin {
|
||||||
allwinner,pins = "PL7";
|
pins = "PL7";
|
||||||
allwinner,function = "gpio_out";
|
function = "gpio_out";
|
||||||
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
|
|
||||||
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -190,8 +214,22 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
&usb1_vbus_pin_a {
|
&uart1 {
|
||||||
allwinner,pins = "PG13";
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&uart1_pins>;
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
|
&uart2 {
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&uart2_pins>;
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
|
&uart3 {
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&uart3_pins>;
|
||||||
|
status = "disabled";
|
||||||
};
|
};
|
||||||
|
|
||||||
&usbphy {
|
&usbphy {
|
||||||
|
@ -46,7 +46,6 @@
|
|||||||
|
|
||||||
#include <dt-bindings/gpio/gpio.h>
|
#include <dt-bindings/gpio/gpio.h>
|
||||||
#include <dt-bindings/input/input.h>
|
#include <dt-bindings/input/input.h>
|
||||||
#include <dt-bindings/pinctrl/sun4i-a10.h>
|
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "Xunlong Orange Pi Lite";
|
model = "Xunlong Orange Pi Lite";
|
||||||
@ -62,6 +61,17 @@
|
|||||||
stdout-path = "serial0:115200n8";
|
stdout-path = "serial0:115200n8";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
connector {
|
||||||
|
compatible = "hdmi-connector";
|
||||||
|
type = "a";
|
||||||
|
|
||||||
|
port {
|
||||||
|
hdmi_con_in: endpoint {
|
||||||
|
remote-endpoint = <&hdmi_out_con>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
leds {
|
leds {
|
||||||
compatible = "gpio-leds";
|
compatible = "gpio-leds";
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
@ -92,6 +102,10 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&de {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
&ehci1 {
|
&ehci1 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
@ -100,6 +114,16 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&hdmi {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&hdmi_out {
|
||||||
|
hdmi_out_con: endpoint {
|
||||||
|
remote-endpoint = <&hdmi_con_in>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&ir {
|
&ir {
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&ir_pins_a>;
|
pinctrl-0 = <&ir_pins_a>;
|
||||||
@ -109,8 +133,7 @@
|
|||||||
&mmc0 {
|
&mmc0 {
|
||||||
vmmc-supply = <®_vcc3v3>;
|
vmmc-supply = <®_vcc3v3>;
|
||||||
bus-width = <4>;
|
bus-width = <4>;
|
||||||
cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>; /* PF6 */
|
cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
|
||||||
cd-inverted;
|
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -138,27 +161,21 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
&pio {
|
&pio {
|
||||||
leds_opc: led_pins@0 {
|
leds_opc: led_pins {
|
||||||
allwinner,pins = "PA15";
|
pins = "PA15";
|
||||||
allwinner,function = "gpio_out";
|
function = "gpio_out";
|
||||||
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
|
|
||||||
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&r_pio {
|
&r_pio {
|
||||||
leds_r_opc: led_pins@0 {
|
leds_r_opc: led_pins {
|
||||||
allwinner,pins = "PL10";
|
pins = "PL10";
|
||||||
allwinner,function = "gpio_out";
|
function = "gpio_out";
|
||||||
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
|
|
||||||
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
sw_r_opc: key_pins@0 {
|
sw_r_opc: key_pins {
|
||||||
allwinner,pins = "PL3";
|
pins = "PL3";
|
||||||
allwinner,function = "gpio_in";
|
function = "gpio_in";
|
||||||
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
|
|
||||||
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -46,7 +46,6 @@
|
|||||||
|
|
||||||
#include <dt-bindings/gpio/gpio.h>
|
#include <dt-bindings/gpio/gpio.h>
|
||||||
#include <dt-bindings/input/input.h>
|
#include <dt-bindings/input/input.h>
|
||||||
#include <dt-bindings/pinctrl/sun4i-a10.h>
|
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "Xunlong Orange Pi One";
|
model = "Xunlong Orange Pi One";
|
||||||
@ -61,6 +60,17 @@
|
|||||||
stdout-path = "serial0:115200n8";
|
stdout-path = "serial0:115200n8";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
connector {
|
||||||
|
compatible = "hdmi-connector";
|
||||||
|
type = "a";
|
||||||
|
|
||||||
|
port {
|
||||||
|
hdmi_con_in: endpoint {
|
||||||
|
remote-endpoint = <&hdmi_out_con>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
leds {
|
leds {
|
||||||
compatible = "gpio-leds";
|
compatible = "gpio-leds";
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
@ -89,6 +99,35 @@
|
|||||||
gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>;
|
gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
reg_vdd_cpux: vdd-cpux-regulator {
|
||||||
|
compatible = "regulator-gpio";
|
||||||
|
regulator-name = "vdd-cpux";
|
||||||
|
regulator-type = "voltage";
|
||||||
|
regulator-boot-on;
|
||||||
|
regulator-always-on;
|
||||||
|
regulator-min-microvolt = <1100000>;
|
||||||
|
regulator-max-microvolt = <1300000>;
|
||||||
|
regulator-ramp-delay = <50>; /* 4ms */
|
||||||
|
|
||||||
|
gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */
|
||||||
|
enable-active-high;
|
||||||
|
gpios-states = <0x1>;
|
||||||
|
states = <1100000 0x0
|
||||||
|
1300000 0x1>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&cpu0 {
|
||||||
|
cpu-supply = <®_vdd_cpux>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&de {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&ehci0 {
|
||||||
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
&ehci1 {
|
&ehci1 {
|
||||||
@ -102,11 +141,24 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&hdmi {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&hdmi_out {
|
||||||
|
hdmi_out_con: endpoint {
|
||||||
|
remote-endpoint = <&hdmi_con_in>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&mmc0 {
|
&mmc0 {
|
||||||
vmmc-supply = <®_vcc3v3>;
|
vmmc-supply = <®_vcc3v3>;
|
||||||
bus-width = <4>;
|
bus-width = <4>;
|
||||||
cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>; /* PF6 */
|
cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
|
||||||
cd-inverted;
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&ohci0 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -115,37 +167,61 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
&pio {
|
&pio {
|
||||||
leds_opc: led_pins@0 {
|
leds_opc: led_pins {
|
||||||
allwinner,pins = "PA15";
|
pins = "PA15";
|
||||||
allwinner,function = "gpio_out";
|
function = "gpio_out";
|
||||||
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
|
|
||||||
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&r_pio {
|
&r_pio {
|
||||||
leds_r_opc: led_pins@0 {
|
leds_r_opc: led_pins {
|
||||||
allwinner,pins = "PL10";
|
pins = "PL10";
|
||||||
allwinner,function = "gpio_out";
|
function = "gpio_out";
|
||||||
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
|
|
||||||
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
sw_r_opc: key_pins@0 {
|
sw_r_opc: key_pins {
|
||||||
allwinner,pins = "PL3";
|
pins = "PL3";
|
||||||
allwinner,function = "gpio_in";
|
function = "gpio_in";
|
||||||
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
|
|
||||||
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
®_usb0_vbus {
|
||||||
|
gpio = <&r_pio 0 2 GPIO_ACTIVE_HIGH>; /* PL2 */
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
&uart0 {
|
&uart0 {
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&uart0_pins_a>;
|
pinctrl-0 = <&uart0_pins_a>;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
&usbphy {
|
&uart1 {
|
||||||
/* USB VBUS is always on */
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&uart1_pins>;
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
|
&uart2 {
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&uart2_pins>;
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
|
&uart3 {
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&uart3_pins>;
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
|
&usb_otg {
|
||||||
|
dr_mode = "otg";
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&usbphy {
|
||||||
|
/* USB Type-A port's VBUS is always on */
|
||||||
|
usb0_id_det-gpios = <&pio 6 12 GPIO_ACTIVE_HIGH>; /* PG12 */
|
||||||
|
usb0_vbus-supply = <®_usb0_vbus>;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
@ -53,6 +53,11 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&emac {
|
||||||
|
/* LEDs changed to active high on the plus */
|
||||||
|
/delete-property/ allwinner,leds-active-low;
|
||||||
|
};
|
||||||
|
|
||||||
&mmc1 {
|
&mmc1 {
|
||||||
vmmc-supply = <®_vcc3v3>;
|
vmmc-supply = <®_vcc3v3>;
|
||||||
bus-width = <4>;
|
bus-width = <4>;
|
||||||
@ -80,7 +85,7 @@
|
|||||||
|
|
||||||
&mmc2_8bit_pins {
|
&mmc2_8bit_pins {
|
||||||
/* Increase drive strength for DDR modes */
|
/* Increase drive strength for DDR modes */
|
||||||
allwinner,drive = <SUN4I_PINCTRL_40_MA>;
|
drive-strength = <40>;
|
||||||
/* eMMC is missing pull-ups */
|
/* eMMC is missing pull-ups */
|
||||||
allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
|
bias-pull-up;
|
||||||
};
|
};
|
||||||
|
@ -46,7 +46,6 @@
|
|||||||
|
|
||||||
#include <dt-bindings/gpio/gpio.h>
|
#include <dt-bindings/gpio/gpio.h>
|
||||||
#include <dt-bindings/input/input.h>
|
#include <dt-bindings/input/input.h>
|
||||||
#include <dt-bindings/pinctrl/sun4i-a10.h>
|
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "Xunlong Orange Pi PC";
|
model = "Xunlong Orange Pi PC";
|
||||||
@ -61,6 +60,17 @@
|
|||||||
stdout-path = "serial0:115200n8";
|
stdout-path = "serial0:115200n8";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
connector {
|
||||||
|
compatible = "hdmi-connector";
|
||||||
|
type = "a";
|
||||||
|
|
||||||
|
port {
|
||||||
|
hdmi_con_in: endpoint {
|
||||||
|
remote-endpoint = <&hdmi_out_con>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
leds {
|
leds {
|
||||||
compatible = "gpio-leds";
|
compatible = "gpio-leds";
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
@ -91,6 +101,26 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&codec {
|
||||||
|
allwinner,audio-routing =
|
||||||
|
"Line Out", "LINEOUT",
|
||||||
|
"MIC1", "Mic",
|
||||||
|
"Mic", "MBIAS";
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&de {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&cpu0 {
|
||||||
|
cpu-supply = <®_vdd_cpux>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&ehci0 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
&ehci1 {
|
&ehci1 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
@ -103,6 +133,23 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&emac {
|
||||||
|
phy-handle = <&int_mii_phy>;
|
||||||
|
phy-mode = "mii";
|
||||||
|
allwinner,leds-active-low;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&hdmi {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&hdmi_out {
|
||||||
|
hdmi_out_con: endpoint {
|
||||||
|
remote-endpoint = <&hdmi_con_in>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&ir {
|
&ir {
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&ir_pins_a>;
|
pinctrl-0 = <&ir_pins_a>;
|
||||||
@ -112,8 +159,11 @@
|
|||||||
&mmc0 {
|
&mmc0 {
|
||||||
vmmc-supply = <®_vcc3v3>;
|
vmmc-supply = <®_vcc3v3>;
|
||||||
bus-width = <4>;
|
bus-width = <4>;
|
||||||
cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>; /* PF6 */
|
cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
|
||||||
cd-inverted;
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&ohci0 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -130,44 +180,85 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
&pio {
|
&pio {
|
||||||
leds_opc: led_pins@0 {
|
leds_opc: led_pins {
|
||||||
allwinner,pins = "PA15";
|
pins = "PA15";
|
||||||
allwinner,function = "gpio_out";
|
function = "gpio_out";
|
||||||
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
|
};
|
||||||
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
|
};
|
||||||
|
|
||||||
|
&r_i2c {
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
reg_vdd_cpux: regulator@65 {
|
||||||
|
compatible = "silergy,sy8106a";
|
||||||
|
reg = <0x65>;
|
||||||
|
regulator-name = "vdd-cpux";
|
||||||
|
silergy,fixed-microvolt = <1200000>;
|
||||||
|
/*
|
||||||
|
* The datasheet uses 1.1V as the minimum value of VDD-CPUX,
|
||||||
|
* however both the Armbian DVFS table and the official one
|
||||||
|
* have operating points with voltage under 1.1V, and both
|
||||||
|
* DVFS table are known to work properly at the lowest
|
||||||
|
* operating point.
|
||||||
|
*
|
||||||
|
* Use 1.0V as the minimum voltage instead.
|
||||||
|
*/
|
||||||
|
regulator-min-microvolt = <1000000>;
|
||||||
|
regulator-max-microvolt = <1300000>;
|
||||||
|
regulator-boot-on;
|
||||||
|
regulator-always-on;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&r_pio {
|
&r_pio {
|
||||||
leds_r_opc: led_pins@0 {
|
leds_r_opc: led_pins {
|
||||||
allwinner,pins = "PL10";
|
pins = "PL10";
|
||||||
allwinner,function = "gpio_out";
|
function = "gpio_out";
|
||||||
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
|
|
||||||
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
sw_r_opc: key_pins@0 {
|
sw_r_opc: key_pins {
|
||||||
allwinner,pins = "PL3";
|
pins = "PL3";
|
||||||
allwinner,function = "gpio_in";
|
function = "gpio_in";
|
||||||
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
|
|
||||||
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
®_usb0_vbus {
|
||||||
|
gpio = <&r_pio 0 2 GPIO_ACTIVE_HIGH>; /* PL2 */
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
&uart0 {
|
&uart0 {
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&uart0_pins_a>;
|
pinctrl-0 = <&uart0_pins_a>;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
&usbphy {
|
&uart1 {
|
||||||
/* USB VBUS is always on */
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&uart1_pins>;
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
|
&uart2 {
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&uart2_pins>;
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
|
&uart3 {
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&uart3_pins>;
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
|
&usb_otg {
|
||||||
|
dr_mode = "otg";
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
&emac {
|
&usbphy {
|
||||||
phy-handle = <&int_mii_phy>;
|
usb0_id_det-gpios = <&pio 6 12 GPIO_ACTIVE_HIGH>; /* PG12 */
|
||||||
phy-mode = "mii";
|
usb0_vbus-supply = <®_usb0_vbus>;
|
||||||
allwinner,leds-active-low;
|
/* VBUS on USB host ports are always on */
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
@ -47,10 +47,12 @@
|
|||||||
model = "Xunlong Orange Pi Plus / Plus 2";
|
model = "Xunlong Orange Pi Plus / Plus 2";
|
||||||
compatible = "xunlong,orangepi-plus", "allwinner,sun8i-h3";
|
compatible = "xunlong,orangepi-plus", "allwinner,sun8i-h3";
|
||||||
|
|
||||||
|
aliases {
|
||||||
|
ethernet0 = &emac;
|
||||||
|
};
|
||||||
|
|
||||||
reg_gmac_3v3: gmac-3v3 {
|
reg_gmac_3v3: gmac-3v3 {
|
||||||
compatible = "regulator-fixed";
|
compatible = "regulator-fixed";
|
||||||
pinctrl-names = "default";
|
|
||||||
pinctrl-0 = <&gmac_power_pin_orangepi>;
|
|
||||||
regulator-name = "gmac-3v3";
|
regulator-name = "gmac-3v3";
|
||||||
regulator-min-microvolt = <3300000>;
|
regulator-min-microvolt = <3300000>;
|
||||||
regulator-max-microvolt = <3300000>;
|
regulator-max-microvolt = <3300000>;
|
||||||
@ -77,11 +79,13 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
&emac {
|
&emac {
|
||||||
/* The Orange Pi Plus uses an external phy */
|
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&emac_rgmii_pins>;
|
pinctrl-0 = <&emac_rgmii_pins>;
|
||||||
phy-supply = <®_gmac_3v3>;
|
phy-supply = <®_gmac_3v3>;
|
||||||
|
phy-handle = <&ext_rgmii_phy>;
|
||||||
phy-mode = "rgmii";
|
phy-mode = "rgmii";
|
||||||
|
|
||||||
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
&external_mdio {
|
&external_mdio {
|
||||||
@ -103,24 +107,15 @@
|
|||||||
|
|
||||||
&mmc2_8bit_pins {
|
&mmc2_8bit_pins {
|
||||||
/* Increase drive strength for DDR modes */
|
/* Increase drive strength for DDR modes */
|
||||||
allwinner,drive = <SUN4I_PINCTRL_40_MA>;
|
drive-strength = <40>;
|
||||||
/* eMMC is missing pull-ups */
|
/* eMMC is missing pull-ups */
|
||||||
allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
|
bias-pull-up;
|
||||||
};
|
};
|
||||||
|
|
||||||
&pio {
|
&pio {
|
||||||
gmac_power_pin_orangepi: gmac_power_pin@0 {
|
usb3_vbus_pin_a: usb3_vbus_pin {
|
||||||
allwinner,pins = "PD6";
|
pins = "PG11";
|
||||||
allwinner,function = "gpio_out";
|
function = "gpio_out";
|
||||||
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
|
|
||||||
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
|
|
||||||
};
|
|
||||||
|
|
||||||
usb3_vbus_pin_a: usb3_vbus_pin@0 {
|
|
||||||
allwinner,pins = "PG11";
|
|
||||||
allwinner,function = "gpio_out";
|
|
||||||
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
|
|
||||||
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -53,24 +53,22 @@
|
|||||||
|
|
||||||
reg_gmac_3v3: gmac-3v3 {
|
reg_gmac_3v3: gmac-3v3 {
|
||||||
compatible = "regulator-fixed";
|
compatible = "regulator-fixed";
|
||||||
pinctrl-names = "default";
|
|
||||||
pinctrl-0 = <&gmac_power_pin_orangepi>;
|
|
||||||
regulator-name = "gmac-3v3";
|
regulator-name = "gmac-3v3";
|
||||||
regulator-min-microvolt = <3300000>;
|
regulator-min-microvolt = <3300000>;
|
||||||
regulator-max-microvolt = <3300000>;
|
regulator-max-microvolt = <3300000>;
|
||||||
startup-delay-us = <100000>;
|
startup-delay-us = <100000>;
|
||||||
enable-active-high;
|
enable-active-high;
|
||||||
gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>;
|
gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>; /* PD6 */
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&emac {
|
&emac {
|
||||||
/* The Orange Pi Plus 2E uses an external gbit phy */
|
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&emac_rgmii_pins>;
|
pinctrl-0 = <&emac_rgmii_pins>;
|
||||||
phy-supply = <®_gmac_3v3>;
|
phy-supply = <®_gmac_3v3>;
|
||||||
phy-handle = <&ext_rgmii_phy>;
|
phy-handle = <&ext_rgmii_phy>;
|
||||||
phy-mode = "rgmii";
|
phy-mode = "rgmii";
|
||||||
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
&external_mdio {
|
&external_mdio {
|
||||||
@ -79,12 +77,3 @@
|
|||||||
reg = <1>;
|
reg = <1>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&pio {
|
|
||||||
gmac_power_pin_orangepi: gmac_power_pin@0 {
|
|
||||||
allwinner,pins = "PD6";
|
|
||||||
allwinner,function = "gpio_out";
|
|
||||||
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
|
|
||||||
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
Loading…
Reference in New Issue
Block a user