add YuzukiChameleon based on mq-qurd
This commit is contained in:
parent
6fa6dc8e8e
commit
ede4bfa596
63
buildroot/board/yuzukihd/yuzukichameleon/README.md
Normal file
63
buildroot/board/yuzukihd/yuzukichameleon/README.md
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
## MangoPI MQ-Quad board (Allwinner H616 chip)
|
||||||
|
|
||||||
|
### Direction for use
|
||||||
|
- Modify the `board/mangopi/mq-quad/rootfs/etc/wpa_supplicant/wpa_supplicant-wlan0.conf` file, Set the WiFi ssid and password
|
||||||
|
- Using `systemctrl start wpa_supplicant@wlan0` command to connect Wifi
|
||||||
|
- Using `systemctrl enable wpa_supplicant@wlan0` Automatic startup connection
|
||||||
|
- After powering on the board, you can connect to the console through the analog serial port of the OTG typec port
|
||||||
|
- Or connect HDMI and keyboard for console interaction.
|
||||||
|
|
||||||
|
### Peripheral support
|
||||||
|
| **Peripheral** | **Describe** |
|
||||||
|
|----------------|------------------------------------------|
|
||||||
|
| RTL8723DS | WiFi/BT |
|
||||||
|
| USB Host | 1 typec host with2 usb host in misc port |
|
||||||
|
| USB OTG | 1 typec otg |
|
||||||
|
| ethernet | ethernet for mac1 with ephy in misc port |
|
||||||
|
| UART | uart1 with uart2 |
|
||||||
|
| Mini HDMI | hdmi with audio |
|
||||||
|
| I2C | i2c1 with i2c2 |
|
||||||
|
| Nor Flash | spi0 nor flash |
|
||||||
|
| SPI | spi1dev drivers |
|
||||||
|
| GPU | gpu(panforst) |
|
||||||
|
|
||||||
|
### Build
|
||||||
|
```
|
||||||
|
# Using mangopi_mq_quad_defconfig
|
||||||
|
make mangopi_mq_quad_defconfig
|
||||||
|
|
||||||
|
# Start compiling the tf card image
|
||||||
|
make
|
||||||
|
```
|
||||||
|
|
||||||
|
### Test method
|
||||||
|
- Bluetooth Test
|
||||||
|
```
|
||||||
|
bluetoothctl # Open bluetooth console
|
||||||
|
[bluetooth]# power on # Open bluetooth power
|
||||||
|
[bluetooth]# scan on # Start scanning peripheral devices
|
||||||
|
[bluetooth]# devices # Lists the scanned peripherals
|
||||||
|
[bluetooth]# exit # Exit bluetooth console
|
||||||
|
```
|
||||||
|
- HDMI Audio test
|
||||||
|
```
|
||||||
|
# Configure HDMI audio
|
||||||
|
amixer -c 1 set 'I2S1 Src Select' 'APBIF_TXDIF0'
|
||||||
|
amixer -c 1 set 'I2S1OUT' on
|
||||||
|
|
||||||
|
# The -D hw:2,0 command must be run first, before you can use audio normally. (You only need to do this once per startup)
|
||||||
|
aplay test.wav -D hw:2,0
|
||||||
|
|
||||||
|
# Play music
|
||||||
|
aplay test.wav -D hw:1,0
|
||||||
|
```
|
||||||
|
- GPU Test
|
||||||
|
```
|
||||||
|
# Perform the following command on the terminal to start scoring (Insert the HDMI screen first)
|
||||||
|
glmark2-es2-drm
|
||||||
|
|
||||||
|
# Test images can be seen on HDMI while running
|
||||||
|
```
|
||||||
|
|
||||||
|
### Reference
|
||||||
|
https://github.com/open-cores/mangguo-h616-armbian
|
||||||
4
buildroot/board/yuzukihd/yuzukichameleon/boot.cmd
Normal file
4
buildroot/board/yuzukihd/yuzukichameleon/boot.cmd
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
setenv bootargs console=tty0 console=ttyS0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait rw loglevel=1
|
||||||
|
setenv bootcmd fatload mmc 0:1 0x4fc00000 boot.scr; fatload mmc 0:1 0x40200000 Image; fatload mmc 0:1 0x4fa00000 sun50i-h616-mangopi-mcore.dtb; booti 0x40200000 - 0x4fa00000
|
||||||
|
|
||||||
|
# mkimage -C none -A arm64 -T script -d boot.cmd boot.scr
|
||||||
2750
buildroot/board/yuzukihd/yuzukichameleon/configs/linux_defconfig
Normal file
2750
buildroot/board/yuzukihd/yuzukichameleon/configs/linux_defconfig
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,16 @@
|
|||||||
|
CONFIG_ARM=y
|
||||||
|
CONFIG_ARCH_SUNXI=y
|
||||||
|
CONFIG_DEFAULT_DEVICE_TREE="sun50i-h616-mangopi-mcore"
|
||||||
|
CONFIG_SPL=y
|
||||||
|
CONFIG_DRAM_SUN50I_H616_WRITE_LEVELING=y
|
||||||
|
CONFIG_DRAM_SUN50I_H616_READ_CALIBRATION=y
|
||||||
|
CONFIG_DRAM_SUN50I_H616_READ_TRAINING=y
|
||||||
|
CONFIG_DRAM_SUN50I_H616_WRITE_TRAINING=y
|
||||||
|
CONFIG_MACH_SUN50I_H616=y
|
||||||
|
CONFIG_MMC0_CD_PIN="PF6"
|
||||||
|
CONFIG_R_I2C_ENABLE=y
|
||||||
|
# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
|
||||||
|
CONFIG_SPL_I2C=y
|
||||||
|
CONFIG_PHY_REALTEK=y
|
||||||
|
CONFIG_SUN8I_EMAC=y
|
||||||
|
CONFIG_I2C3_ENABLE=y
|
||||||
@ -0,0 +1,366 @@
|
|||||||
|
// 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>
|
||||||
|
#include "sun50i-h616-cpu-opp.dtsi"
|
||||||
|
|
||||||
|
/ {
|
||||||
|
model = "MangoPi Mcore";
|
||||||
|
compatible = "mgcc,mangopi-mcore", "allwinner,sun50i-h616";
|
||||||
|
|
||||||
|
aliases {
|
||||||
|
ethernet0 = &emac0;
|
||||||
|
ethernet1 = &emac1;
|
||||||
|
serial0 = &uart0;
|
||||||
|
serial1 = &uart2;
|
||||||
|
mmc0 =&mmc0;
|
||||||
|
mmc1 =&mmc1;
|
||||||
|
};
|
||||||
|
|
||||||
|
chosen {
|
||||||
|
stdout-path = "serial0:115200n8";
|
||||||
|
};
|
||||||
|
|
||||||
|
connector {
|
||||||
|
compatible = "hdmi-connector";
|
||||||
|
type = "d";
|
||||||
|
|
||||||
|
port {
|
||||||
|
hdmi_con_in: endpoint {
|
||||||
|
remote-endpoint = <&hdmi_out_con>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
leds {
|
||||||
|
compatible = "gpio-leds";
|
||||||
|
|
||||||
|
|
||||||
|
status {
|
||||||
|
label = "led_blue";
|
||||||
|
linux,default-trigger = "heartbeat";
|
||||||
|
gpios = <&pio 2 13 GPIO_ACTIVE_HIGH>; /* PC13 */
|
||||||
|
default-state = "on";
|
||||||
|
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
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;
|
||||||
|
};
|
||||||
|
|
||||||
|
reg_vcc3v3: vcc3v3 {
|
||||||
|
compatible = "regulator-fixed";
|
||||||
|
regulator-name = "vcc-3v3";
|
||||||
|
regulator-min-microvolt = <3300000>;
|
||||||
|
regulator-max-microvolt = <3300000>;
|
||||||
|
regulator-always-on;
|
||||||
|
};
|
||||||
|
|
||||||
|
reg_usb1_vbus: usb1-vbus {
|
||||||
|
compatible = "regulator-fixed";
|
||||||
|
regulator-name = "usb1-vbus";
|
||||||
|
regulator-min-microvolt = <5000000>;
|
||||||
|
regulator-max-microvolt = <5000000>;
|
||||||
|
enable-active-high;
|
||||||
|
gpio = <&pio 2 8 GPIO_ACTIVE_HIGH>; /* PC8 */
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&cpu0 {
|
||||||
|
cpu-supply = <®_dcdca>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&gpu {
|
||||||
|
mali-supply = <®_dcdcc>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&ehci0 {
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
|
&ehci1 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&ehci2 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&ehci3 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
/* USB 2 & 3 are on headers only. */
|
||||||
|
|
||||||
|
&emac0 {
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&ext_rgmii_pins>;
|
||||||
|
phy-mode = "rgmii";
|
||||||
|
phy-handle = <&ext_rgmii_phy>;
|
||||||
|
phy-supply = <®_aldo1>;
|
||||||
|
allwinner,rx-delay-ps = <3100>;
|
||||||
|
allwinner,tx-delay-ps = <700>;
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio0 {
|
||||||
|
ext_rgmii_phy: ethernet-phy@1 {
|
||||||
|
compatible = "ethernet-phy-ieee802.3-c22";
|
||||||
|
reg = <1>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&emac1{
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&rmii_pins>;
|
||||||
|
phy-mode = "rmii";
|
||||||
|
phy-handle = <&emd_rgmii_phy>;
|
||||||
|
phy-supply = <®_aldo1>;
|
||||||
|
allwinner,rx-delay-ps = <3100>;
|
||||||
|
allwinner,tx-delay-ps = <700>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio1 {
|
||||||
|
emd_rgmii_phy: ethernet-phy@0 {
|
||||||
|
compatible = "ethernet-phy-ieee802.3-c22";
|
||||||
|
reg = <0>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
&mmc0 {
|
||||||
|
vmmc-supply = <®_vcc3v3>;
|
||||||
|
cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
|
||||||
|
bus-width = <4>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&mmc2 {
|
||||||
|
vmmc-supply = <®_aldo1>;
|
||||||
|
vqmmc-supply = <®_bldo1>;
|
||||||
|
bus-width = <8>;
|
||||||
|
non-removable;
|
||||||
|
cap-mmc-hw-reset;
|
||||||
|
mmc-hs200-1_8v;
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
|
&mmc1 {
|
||||||
|
vmmc-supply = <®_aldo1>;
|
||||||
|
vqmmc-supply = <®_aldo1>;
|
||||||
|
bus-width = <4>;
|
||||||
|
non-removable;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&spi0 {
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
flash@0 {
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <1>;
|
||||||
|
compatible = "jedec,spi-nor";
|
||||||
|
reg = <0>;
|
||||||
|
spi-max-frequency = <40000000>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&spi1 {
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <0>;
|
||||||
|
status = "okay";
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&spi1_pins>,<&spi1_cs_pin>;
|
||||||
|
spidev@0 {
|
||||||
|
compatible = "rohm,dh2228fv";
|
||||||
|
status = "okay";
|
||||||
|
reg = <0>;
|
||||||
|
spi-max-frequency = <2000000>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&ohci0 {
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
|
&ohci1 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
&ohci2 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&ohci3 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&de {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&hdmi {
|
||||||
|
hvcc-supply = <®_bldo1>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&hdmi_out {
|
||||||
|
hdmi_out_con: endpoint {
|
||||||
|
remote-endpoint = <&hdmi_con_in>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&r_i2c {
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
axp305: pmic@36 {
|
||||||
|
compatible = "x-powers,axp1530";
|
||||||
|
reg = <0x36>;
|
||||||
|
|
||||||
|
/* dummy interrupt to appease the driver for now */
|
||||||
|
interrupt-controller;
|
||||||
|
#interrupt-cells = <1>;
|
||||||
|
|
||||||
|
vin1-supply = <®_vcc5v>;
|
||||||
|
vin2-supply = <®_vcc5v>;
|
||||||
|
vin3-supply = <®_vcc5v>;
|
||||||
|
ldo1in-supply = <®_vcc5v>;
|
||||||
|
ldo2in-supply = <®_vcc5v>;
|
||||||
|
|
||||||
|
regulators {
|
||||||
|
reg_aldo1: ldo2 {
|
||||||
|
regulator-always-on;
|
||||||
|
regulator-min-microvolt = <3300000>;
|
||||||
|
regulator-max-microvolt = <3300000>;
|
||||||
|
regulator-name = "vcc-sys";
|
||||||
|
};
|
||||||
|
|
||||||
|
reg_bldo1: ldo1 {
|
||||||
|
regulator-always-on;
|
||||||
|
regulator-min-microvolt = <1800000>;
|
||||||
|
regulator-max-microvolt = <1800000>;
|
||||||
|
regulator-name = "vcc1v8";
|
||||||
|
};
|
||||||
|
|
||||||
|
reg_dcdca: dcdc2 {
|
||||||
|
regulator-always-on;
|
||||||
|
regulator-min-microvolt = <810000>;
|
||||||
|
regulator-max-microvolt = <1200000>;
|
||||||
|
regulator-name = "vdd-cpu";
|
||||||
|
};
|
||||||
|
|
||||||
|
reg_dcdcc: dcdc1 {
|
||||||
|
regulator-always-on;
|
||||||
|
regulator-min-microvolt = <810000>;
|
||||||
|
regulator-max-microvolt = <1160000>;
|
||||||
|
regulator-name = "vdd-gpu-sys";
|
||||||
|
};
|
||||||
|
|
||||||
|
reg_dcdcd: dcdc3 {
|
||||||
|
regulator-always-on;
|
||||||
|
regulator-min-microvolt = <1500000>;
|
||||||
|
regulator-max-microvolt = <1500000>;
|
||||||
|
regulator-name = "vdd-dram";
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&uart0 {
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&uart0_ph_pins>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&uart1 {
|
||||||
|
uart-has-rtscts;
|
||||||
|
pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
bluetooth {
|
||||||
|
compatible = "realtek,rtl8723ds-bt";
|
||||||
|
device-wake-gpios = <&pio 6 17 GPIO_ACTIVE_HIGH>; /* PG17 */
|
||||||
|
enable-gpios = <&pio 6 19 GPIO_ACTIVE_HIGH>; /* PG19 */
|
||||||
|
host-wake-gpios = <&pio 6 16 GPIO_ACTIVE_HIGH>; /* PG16 */
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&uart2 {
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&uart2_pins>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&usbotg {
|
||||||
|
dr_mode = "otg"; /* USB A type receptable */
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&usbphy {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&i2c1 {
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&i2c1_pins>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&i2c2 {
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&i2c2_pins>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&codec {
|
||||||
|
allwinner,audio-routing =
|
||||||
|
"Line Out", "LINEOUT";
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&ahub_codec {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&ahub_cpudai0 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&ahub_cpudai1 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&ahub_cpudai2 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&sndahub {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&ahub_i2s1 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&hdmi_audio {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
@ -0,0 +1,242 @@
|
|||||||
|
// 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>
|
||||||
|
#include <dt-bindings/leds/common.h>
|
||||||
|
|
||||||
|
/ {
|
||||||
|
model = "MangoPi Mcore";
|
||||||
|
compatible = "mgcc,mangopi-mcore", "allwinner,sun50i-h616";
|
||||||
|
|
||||||
|
aliases {
|
||||||
|
ethernet0 = &emac1;
|
||||||
|
serial0 = &uart0;
|
||||||
|
};
|
||||||
|
|
||||||
|
chosen {
|
||||||
|
stdout-path = "serial0:115200n8";
|
||||||
|
};
|
||||||
|
|
||||||
|
leds {
|
||||||
|
compatible = "gpio-leds";
|
||||||
|
|
||||||
|
led-0 {
|
||||||
|
function = LED_FUNCTION_POWER;
|
||||||
|
color = <LED_COLOR_ID_RED>;
|
||||||
|
gpios = <&pio 2 12 GPIO_ACTIVE_HIGH>; /* PC12 */
|
||||||
|
default-state = "on";
|
||||||
|
};
|
||||||
|
|
||||||
|
led-1 {
|
||||||
|
function = LED_FUNCTION_STATUS;
|
||||||
|
color = <LED_COLOR_ID_GREEN>;
|
||||||
|
gpios = <&pio 2 13 GPIO_ACTIVE_HIGH>; /* PC13 */
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
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;
|
||||||
|
};
|
||||||
|
|
||||||
|
reg_usb1_vbus: usb1-vbus {
|
||||||
|
compatible = "regulator-fixed";
|
||||||
|
regulator-name = "usb1-vbus";
|
||||||
|
regulator-min-microvolt = <5000000>;
|
||||||
|
regulator-max-microvolt = <5000000>;
|
||||||
|
vin-supply = <®_vcc5v>;
|
||||||
|
enable-active-high;
|
||||||
|
gpio = <&pio 2 16 GPIO_ACTIVE_HIGH>; /* PC16 */
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&ehci0 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&ehci1 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
/* USB 2 & 3 are on headers only. */
|
||||||
|
|
||||||
|
&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@16 {
|
||||||
|
compatible = "ethernet-phy-ieee802.3-c22";
|
||||||
|
reg = <16>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&mmc0 {
|
||||||
|
vmmc-supply = <®_dcdce>;
|
||||||
|
cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
|
||||||
|
bus-width = <4>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&ohci0 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&ohci1 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&r_rsb {
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
axp305: pmic@745 {
|
||||||
|
compatible = "x-powers,axp305", "x-powers,axp805",
|
||||||
|
"x-powers,axp806";
|
||||||
|
interrupt-controller;
|
||||||
|
#interrupt-cells = <1>;
|
||||||
|
reg = <0x745>;
|
||||||
|
|
||||||
|
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 { /* 3.3V on headers */
|
||||||
|
regulator-always-on;
|
||||||
|
regulator-min-microvolt = <3300000>;
|
||||||
|
regulator-max-microvolt = <3300000>;
|
||||||
|
regulator-name = "vcc3v3-ext";
|
||||||
|
};
|
||||||
|
|
||||||
|
reg_aldo3: aldo3 { /* 3.3V on headers */
|
||||||
|
regulator-always-on;
|
||||||
|
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 */
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&spi0 {
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
flash@0 {
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <1>;
|
||||||
|
compatible = "jedec,spi-nor";
|
||||||
|
reg = <0>;
|
||||||
|
spi-max-frequency = <40000000>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&uart0 {
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&uart0_ph_pins>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&usbotg {
|
||||||
|
dr_mode = "peripheral";
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&usbphy {
|
||||||
|
usb1_vbus-supply = <®_usb1_vbus>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
@ -0,0 +1 @@
|
|||||||
|
g_serial
|
||||||
@ -0,0 +1,5 @@
|
|||||||
|
[Match]
|
||||||
|
Name=wlan0
|
||||||
|
|
||||||
|
[Network]
|
||||||
|
DHCP=yes
|
||||||
@ -0,0 +1 @@
|
|||||||
|
/usr/lib/systemd/system/getty@.service
|
||||||
@ -0,0 +1 @@
|
|||||||
|
/usr/lib/systemd/system/serial-getty@.service
|
||||||
@ -0,0 +1,21 @@
|
|||||||
|
# This file is part of systemd.
|
||||||
|
#
|
||||||
|
# systemd is free software; you can redistribute it and/or modify it under the
|
||||||
|
# terms of the GNU Lesser General Public License as published by the Free
|
||||||
|
# Software Foundation; either version 2.1 of the License, or (at your option)
|
||||||
|
# any later version.
|
||||||
|
#
|
||||||
|
# Entries in this file show the compile time defaults. Local configuration
|
||||||
|
# should be created by either modifying this file, or by creating "drop-ins" in
|
||||||
|
# the timesyncd.conf.d/ subdirectory. The latter is generally recommended.
|
||||||
|
# Defaults can be restored by simply deleting this file and all drop-ins.
|
||||||
|
#
|
||||||
|
# See timesyncd.conf(5) for details.
|
||||||
|
|
||||||
|
[Time]
|
||||||
|
NTP=time.windows.com
|
||||||
|
#FallbackNTP=time1.google.com time2.google.com time3.google.com time4.google.com
|
||||||
|
#RootDistanceMaxSec=5
|
||||||
|
#PollIntervalMinSec=32
|
||||||
|
#PollIntervalMaxSec=2048
|
||||||
|
#SaveIntervalSec=60
|
||||||
@ -0,0 +1,8 @@
|
|||||||
|
# Auto Connect WiFi: systemctl enable wpa_supplicant@wlan0
|
||||||
|
country=CN
|
||||||
|
update_config=1
|
||||||
|
|
||||||
|
network={
|
||||||
|
ssid="you wifi ssid"
|
||||||
|
psk="you wifi password"
|
||||||
|
}
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,63 @@
|
|||||||
|
BR2_aarch64=y
|
||||||
|
BR2_ARM_FPU_VFPV4=y
|
||||||
|
BR2_TOOLCHAIN_EXTERNAL=y
|
||||||
|
BR2_TARGET_GENERIC_HOSTNAME="YuzukiChameleon"
|
||||||
|
BR2_TARGET_GENERIC_ISSUE="Welcome to Yuzuki Chameleon (allwinner-mainline h616)"
|
||||||
|
BR2_INIT_SYSTEMD=y
|
||||||
|
BR2_TARGET_GENERIC_ROOT_PASSWD="root"
|
||||||
|
BR2_ROOTFS_OVERLAY="board/allwinner-mainline/h616/rootfs board/yuzukihd/yuzukichameleon/rootfs"
|
||||||
|
BR2_ROOTFS_POST_BUILD_SCRIPT="board/allwinner-mainline/h616/scripts/post-build.sh"
|
||||||
|
BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
|
||||||
|
BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/allwinner-mainline/h616/scripts/genimage_sdcard.cfg"
|
||||||
|
BR2_LINUX_KERNEL=y
|
||||||
|
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
|
||||||
|
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.19.4"
|
||||||
|
BR2_LINUX_KERNEL_PATCH="board/allwinner-mainline/h616/patches/linux/"
|
||||||
|
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
|
||||||
|
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/yuzukihd/yuzukichameleon/configs/linux_defconfig"
|
||||||
|
BR2_LINUX_KERNEL_DTS_SUPPORT=y
|
||||||
|
BR2_LINUX_KERNEL_CUSTOM_DTS_PATH="board/allwinner-mainline/h616/devicetree/linux/sun50i-h616.dtsi board/allwinner-mainline/h616/devicetree/linux/sun50i-h616-cpu-opp.dtsi board/yuzukihd/yuzukichameleon/devicetree/linux/sun50i-h616-mangopi-mcore.dts"
|
||||||
|
BR2_PACKAGE_ALSA_UTILS=y
|
||||||
|
BR2_PACKAGE_ALSA_UTILS_AMIXER=y
|
||||||
|
BR2_PACKAGE_ALSA_UTILS_APLAY=y
|
||||||
|
BR2_PACKAGE_GIT=y
|
||||||
|
BR2_PACKAGE_E2FSPROGS=y
|
||||||
|
BR2_PACKAGE_E2FSPROGS_RESIZE2FS=y
|
||||||
|
BR2_PACKAGE_GLMARK2=y
|
||||||
|
BR2_PACKAGE_FB_TEST_APP=y
|
||||||
|
BR2_PACKAGE_MESA3D=y
|
||||||
|
BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_PANFROST=y
|
||||||
|
BR2_PACKAGE_MESA3D_OPENGL_EGL=y
|
||||||
|
BR2_PACKAGE_MESA3D_OPENGL_ES=y
|
||||||
|
BR2_PACKAGE_BLUEZ5_UTILS=y
|
||||||
|
BR2_PACKAGE_BLUEZ5_UTILS_CLIENT=y
|
||||||
|
BR2_PACKAGE_IPERF3=y
|
||||||
|
BR2_PACKAGE_LFTP=y
|
||||||
|
BR2_PACKAGE_LFTP_PROTO_SFTP=y
|
||||||
|
BR2_PACKAGE_NGINX=y
|
||||||
|
BR2_PACKAGE_OPENSSH=y
|
||||||
|
BR2_PACKAGE_WPA_SUPPLICANT=y
|
||||||
|
BR2_PACKAGE_WPA_SUPPLICANT_CLI=y
|
||||||
|
BR2_PACKAGE_BASH=y
|
||||||
|
BR2_PACKAGE_DASH=y
|
||||||
|
BR2_PACKAGE_HTOP=y
|
||||||
|
BR2_TARGET_ROOTFS_EXT2=y
|
||||||
|
BR2_TARGET_ROOTFS_EXT2_4=y
|
||||||
|
BR2_TARGET_ROOTFS_EXT2_SIZE="256M"
|
||||||
|
BR2_TARGET_ARM_TRUSTED_FIRMWARE=y
|
||||||
|
BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="sun50i_h616"
|
||||||
|
BR2_TARGET_UBOOT=y
|
||||||
|
BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
|
||||||
|
BR2_TARGET_UBOOT_CUSTOM_VERSION=y
|
||||||
|
BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2021.10"
|
||||||
|
BR2_TARGET_UBOOT_PATCH="board/allwinner-mainline/h616/patches/uboot/"
|
||||||
|
BR2_TARGET_UBOOT_USE_CUSTOM_CONFIG=y
|
||||||
|
BR2_TARGET_UBOOT_CUSTOM_CONFIG_FILE="board/yuzukihd/yuzukichameleon/configs/uboot_defconfig"
|
||||||
|
BR2_TARGET_UBOOT_NEEDS_DTC=y
|
||||||
|
BR2_TARGET_UBOOT_NEEDS_ATF_BL31=y
|
||||||
|
BR2_TARGET_UBOOT_SPL=y
|
||||||
|
BR2_TARGET_UBOOT_SPL_NAME="u-boot-sunxi-with-spl.bin"
|
||||||
|
BR2_TARGET_UBOOT_CUSTOM_DTS_PATH="board/allwinner-mainline/h616/devicetree/uboot/sun50i-h616.dtsi board/yuzukihd/yuzukichameleon/devicetree/uboot/sun50i-h616-mangopi-mcore.dts"
|
||||||
|
BR2_PACKAGE_HOST_GENIMAGE=y
|
||||||
|
BR2_PACKAGE_HOST_MTOOLS=y
|
||||||
|
BR2_PACKAGE_HOST_UBOOT_TOOLS=y
|
||||||
Loading…
x
Reference in New Issue
Block a user