-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
247 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,189 @@ | ||
// SPDX-License-Identifier: (GPL-2.0+ or MIT) | ||
/* | ||
* Copyright (C) 2020 Arm Ltd. | ||
*/ | ||
|
||
/dts-v1/; | ||
|
||
#include "sun50i-h616.dtsi" | ||
|
||
#include <dt-bindings/gpio/gpio.h> | ||
#include <dt-bindings/interrupt-controller/arm-gic.h> | ||
|
||
/ { | ||
model = "T95"; | ||
compatible = "t95", "allwinner,sun50i-h616"; | ||
|
||
aliases { | ||
ethernet0 = &emac1; | ||
serial0 = &uart0; | ||
}; | ||
|
||
chosen { | ||
stdout-path = "serial0:115200n8"; | ||
}; | ||
|
||
leds { | ||
compatible = "gpio-leds"; | ||
|
||
power { | ||
label = "orangepi:red:power"; | ||
gpios = <&pio 2 13 GPIO_ACTIVE_HIGH>; /* PC13 */ | ||
default-state = "on"; | ||
}; | ||
|
||
status { | ||
label = "orangepi:green:status"; | ||
gpios = <&pio 2 12 GPIO_ACTIVE_HIGH>; /* PC12 */ | ||
}; | ||
}; | ||
|
||
reg_vcc5v: vcc5v { | ||
/* board wide 5V supply directly from the USB-C socket */ | ||
compatible = "regulator-fixed"; | ||
regulator-name = "vcc-5v"; | ||
regulator-min-microvolt = <5000000>; | ||
regulator-max-microvolt = <5000000>; | ||
regulator-always-on; | ||
}; | ||
}; | ||
|
||
&emac1 { | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&rmii_pins>; | ||
phy-mode = "rmii"; | ||
phy-handle = <&rmii_phy>; | ||
phy-supply = <®_aldo1>; | ||
allwinner,rx-delay-ps = <3100>; | ||
allwinner,tx-delay-ps = <700>; | ||
status = "okay"; | ||
}; | ||
|
||
&mdio1 { | ||
rmii_phy: ethernet-phy@1 { | ||
compatible = "ethernet-phy-ieee802.3-c22"; | ||
reg = <1>; | ||
}; | ||
}; | ||
|
||
&mmc0 { | ||
vmmc-supply = <®_dcdce>; | ||
broken-cd; | ||
bus-width = <4>; | ||
status = "okay"; | ||
}; | ||
|
||
&r_i2c { | ||
status = "okay"; | ||
|
||
axp305: pmic@36 { | ||
compatible = "x-powers,axp305", "x-powers,axp805", | ||
"x-powers,axp806"; | ||
reg = <0x36>; | ||
|
||
/* dummy interrupt to appease the driver for now */ | ||
interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>; | ||
interrupt-controller; | ||
#interrupt-cells = <1>; | ||
|
||
x-powers,self-working-mode; | ||
vina-supply = <®_vcc5v>; | ||
vinb-supply = <®_vcc5v>; | ||
vinc-supply = <®_vcc5v>; | ||
vind-supply = <®_vcc5v>; | ||
vine-supply = <®_vcc5v>; | ||
aldoin-supply = <®_vcc5v>; | ||
bldoin-supply = <®_vcc5v>; | ||
cldoin-supply = <®_vcc5v>; | ||
|
||
regulators { | ||
reg_aldo1: aldo1 { | ||
regulator-always-on; | ||
regulator-min-microvolt = <3300000>; | ||
regulator-max-microvolt = <3300000>; | ||
regulator-name = "vcc-sys"; | ||
}; | ||
|
||
reg_aldo2: aldo2 { | ||
regulator-min-microvolt = <3300000>; | ||
regulator-max-microvolt = <3300000>; | ||
regulator-name = "vcc3v3-ext"; | ||
}; | ||
|
||
reg_aldo3: aldo3 { | ||
regulator-min-microvolt = <3300000>; | ||
regulator-max-microvolt = <3300000>; | ||
regulator-name = "vcc3v3-ext2"; | ||
}; | ||
|
||
reg_bldo1: bldo1 { | ||
regulator-always-on; | ||
regulator-min-microvolt = <1800000>; | ||
regulator-max-microvolt = <1800000>; | ||
regulator-name = "vcc1v8"; | ||
}; | ||
|
||
bldo2 { | ||
/* unused */ | ||
}; | ||
|
||
bldo3 { | ||
/* unused */ | ||
}; | ||
|
||
bldo4 { | ||
/* unused */ | ||
}; | ||
|
||
cldo1 { | ||
/* reserved */ | ||
}; | ||
|
||
cldo2 { | ||
/* unused */ | ||
}; | ||
|
||
cldo3 { | ||
/* unused */ | ||
}; | ||
|
||
reg_dcdca: dcdca { | ||
regulator-always-on; | ||
regulator-min-microvolt = <810000>; | ||
regulator-max-microvolt = <1080000>; | ||
regulator-name = "vdd-cpu"; | ||
}; | ||
|
||
reg_dcdcc: dcdcc { | ||
regulator-always-on; | ||
regulator-min-microvolt = <810000>; | ||
regulator-max-microvolt = <1080000>; | ||
regulator-name = "vdd-gpu-sys"; | ||
}; | ||
|
||
reg_dcdcd: dcdcd { | ||
regulator-always-on; | ||
regulator-min-microvolt = <1500000>; | ||
regulator-max-microvolt = <1500000>; | ||
regulator-name = "vdd-dram"; | ||
}; | ||
|
||
reg_dcdce: dcdce { | ||
regulator-boot-on; | ||
regulator-min-microvolt = <3300000>; | ||
regulator-max-microvolt = <3300000>; | ||
regulator-name = "vcc-eth-mmc"; | ||
}; | ||
|
||
sw { | ||
/* unused */ | ||
}; | ||
}; | ||
}; | ||
}; | ||
|
||
&uart0 { | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&uart0_ph_pins>; | ||
status = "okay"; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
CONFIG_ARM=y | ||
CONFIG_ARCH_SUNXI=y | ||
CONFIG_SPL=y | ||
CONFIG_DRAM_SUN50I_H616_READ_CALIBRATION=y | ||
CONFIG_DRAM_SUN50I_H616_UNKNOWN_FEATURE=y | ||
CONFIG_MACH_SUN50I_H616=y | ||
CONFIG_R_I2C_ENABLE=y | ||
CONFIG_DEFAULT_DEVICE_TREE="sun50i-h616-t95" | ||
# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set | ||
CONFIG_SPL_I2C_SUPPORT=y | ||
CONFIG_SUN8I_EMAC=y | ||
CONFIG_I2C3_ENABLE=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters