添加构建Allwinner H616四核2GB RAM SoC WiFi(蓝莓)
This commit is contained in:
27
patch/kernel/archive/meson64-6.5/overlay/Makefile
Normal file
27
patch/kernel/archive/meson64-6.5/overlay/Makefile
Normal file
@@ -0,0 +1,27 @@
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
dtbo-$(CONFIG_ARCH_MESON) += \
|
||||
meson-i2cA.dtbo \
|
||||
meson-i2cB.dtbo \
|
||||
meson-uartA.dtbo \
|
||||
meson-uartC.dtbo \
|
||||
meson-w1-gpio.dtbo \
|
||||
meson-w1AB-gpio.dtbo \
|
||||
meson-g12-gxl-cma-pool-896MB.dtbo \
|
||||
meson-g12a-radxa-zero-gpio-8-led.dtbo \
|
||||
meson-g12a-radxa-zero-gpio-10-led.dtbo \
|
||||
meson-g12b-odroid-n2-spi.dtbo \
|
||||
meson-sm1-bananapi-rtl8822cs.dtbo \
|
||||
meson-sm1-bananapi-uartA.dtbo \
|
||||
meson-sm1-bananapi-uartAO_B.dtbo \
|
||||
meson-sm1-bananapi-uartB.dtbo
|
||||
|
||||
scr-$(CONFIG_ARCH_MESON) += \
|
||||
meson-fixup.scr
|
||||
|
||||
dtbotxt-$(CONFIG_ARCH_MESON) += \
|
||||
README.meson-overlays
|
||||
|
||||
targets += $(dtbo-y) $(scr-y) $(dtbotxt-y)
|
||||
|
||||
always := $(dtbo-y) $(scr-y) $(dtbotxt-y)
|
||||
clean-files := *.dtbo *.scr
|
||||
@@ -0,0 +1,20 @@
|
||||
This document describes overlays provided in the kernel packages
|
||||
For generic Armbian overlays documentation please see
|
||||
https://docs.armbian.com/User-Guide_Allwinner_overlays/
|
||||
|
||||
### Platform:
|
||||
|
||||
meson (Amlogic)
|
||||
|
||||
### Provided overlays:
|
||||
|
||||
- i2c8
|
||||
|
||||
### Overlay details:
|
||||
|
||||
### i2c8
|
||||
|
||||
Activates TWI/I2C bus 8
|
||||
|
||||
I2C8 pins (SCL, SDA): GPIO1-C4, GPIO1-C5
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
# overlays fixup script
|
||||
# implements (or rather substitutes) overlay arguments functionality
|
||||
# using u-boot scripting, environment variables and "fdt" command
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "amlogic,g12a", "amlogic,g12b", "amlogic,meson-gxl";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/reserved-memory";
|
||||
__overlay__ {
|
||||
linux,cma {
|
||||
compatible = "shared-dma-pool";
|
||||
reusable;
|
||||
size = <0x0 0x38000000>;
|
||||
alignment = <0x0 0x400000>;
|
||||
linux,cma-default;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1,26 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/gpio/meson-g12a-gpio.h>
|
||||
|
||||
/ {
|
||||
compatible = "radxa,zero", "amlogic,g12a";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/";
|
||||
__overlay__ {
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led-green {
|
||||
label = "radxa-zero:green";
|
||||
gpios = <&gpio_ao GPIOAO_10 GPIO_ACTIVE_HIGH>;
|
||||
linux,default-trigger = "heartbeat";
|
||||
default-state = "on";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1,26 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/gpio/meson-g12a-gpio.h>
|
||||
|
||||
/ {
|
||||
compatible = "radxa,zero", "amlogic,g12a";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/";
|
||||
__overlay__ {
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led-green {
|
||||
label = "radxa-zero:green";
|
||||
gpios = <&gpio_ao GPIOAO_8 GPIO_ACTIVE_HIGH>;
|
||||
linux,default-trigger = "heartbeat";
|
||||
default-state = "on";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1,23 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include <dt-bindings/interrupt-controller/irq.h>
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/gpio/meson-g12a-gpio.h>
|
||||
|
||||
/ {
|
||||
fragment@0 {
|
||||
target = <&sd_emmc_c>;
|
||||
__overlay__ {
|
||||
pinctrl-0 = <&emmc_ctrl_pins>, <&emmc_data_4b_pins>, <&emmc_ds_pins>;
|
||||
bus-width = <4>;
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&spifc>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
17
patch/kernel/archive/meson64-6.5/overlay/meson-i2cA.dts
Normal file
17
patch/kernel/archive/meson64-6.5/overlay/meson-i2cA.dts
Normal file
@@ -0,0 +1,17 @@
|
||||
/dts-v1/;
|
||||
|
||||
/ {
|
||||
compatible = "amlogic,meson-gxbb";
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
i2cA = "/soc/bus@c1100000/i2c@8500";
|
||||
};
|
||||
};
|
||||
fragment@1 {
|
||||
target-path = "/soc/bus@c1100000/i2c@8500";
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
17
patch/kernel/archive/meson64-6.5/overlay/meson-i2cB.dts
Normal file
17
patch/kernel/archive/meson64-6.5/overlay/meson-i2cB.dts
Normal file
@@ -0,0 +1,17 @@
|
||||
/dts-v1/;
|
||||
|
||||
/ {
|
||||
compatible = "amlogic,meson-gxbb";
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
i2cA = "/soc/bus@c1100000/i2c@87c0";
|
||||
};
|
||||
};
|
||||
fragment@1 {
|
||||
target-path = "/soc/bus@c1100000/i2c@87c0";
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1,23 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
/* Banana Pi M2S/M5 */
|
||||
compatible = "bananapi,bpi-m2s", "bananapi,bpi-m5";
|
||||
|
||||
/* RTL8822CS SDIO WIFI */
|
||||
fragment@0 {
|
||||
target = <&sd_emmc_a>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
/* RTL8822CS BLUETOOTH */
|
||||
fragment@1 {
|
||||
target = <&uart_A>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1,15 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "bananapi,bpi-m5", "bananapi,bpi-m2-pro", "amlogic,sm1";
|
||||
|
||||
fragment@0 {
|
||||
target = <&uart_A>;
|
||||
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "bananapi,bpi-m5", "bananapi,bpi-m2-pro", "amlogic,sm1";
|
||||
|
||||
fragment@0 {
|
||||
target = <&uart_AO_B>;
|
||||
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1,15 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "bananapi,bpi-m5", "bananapi,bpi-m2-pro", "amlogic,sm1";
|
||||
|
||||
fragment@0 {
|
||||
target = <&uart_B>;
|
||||
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
11
patch/kernel/archive/meson64-6.5/overlay/meson-uartA.dts
Normal file
11
patch/kernel/archive/meson64-6.5/overlay/meson-uartA.dts
Normal file
@@ -0,0 +1,11 @@
|
||||
/dts-v1/;
|
||||
|
||||
/ {
|
||||
compatible = "amlogic,meson-gxbb";
|
||||
fragment@0 {
|
||||
target-path = "/soc/bus@c1100000/serial@84c0";
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
11
patch/kernel/archive/meson64-6.5/overlay/meson-uartC.dts
Normal file
11
patch/kernel/archive/meson64-6.5/overlay/meson-uartC.dts
Normal file
@@ -0,0 +1,11 @@
|
||||
/dts-v1/;
|
||||
|
||||
/ {
|
||||
compatible = "amlogic,meson-gxbb";
|
||||
fragment@0 {
|
||||
target-path = "/soc/bus@c1100000/serial@8700";
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
20
patch/kernel/archive/meson64-6.5/overlay/meson-w1-gpio.dts
Normal file
20
patch/kernel/archive/meson64-6.5/overlay/meson-w1-gpio.dts
Normal file
@@ -0,0 +1,20 @@
|
||||
// Definitions for w1-gpio module (without external pullup)
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "amlogic,meson-gxbb";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/";
|
||||
__overlay__ {
|
||||
|
||||
w1: onewire@0 {
|
||||
compatible = "w1-gpio";
|
||||
pinctrl-names = "default";
|
||||
gpios = <&gpio 91 6>; // GPIOY_16
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
32
patch/kernel/archive/meson64-6.5/overlay/meson-w1AB-gpio.dts
Normal file
32
patch/kernel/archive/meson64-6.5/overlay/meson-w1AB-gpio.dts
Normal file
@@ -0,0 +1,32 @@
|
||||
// Definitions for w1-gpio module (without external pullup)
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "amlogic,meson-gxbb";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/";
|
||||
__overlay__ {
|
||||
|
||||
w1a: onewire@0 {
|
||||
compatible = "w1-gpio";
|
||||
pinctrl-names = "default";
|
||||
gpios = <&gpio 91 6>; // GPIOY_16
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
fragment@1 {
|
||||
target-path = "/";
|
||||
__overlay__ {
|
||||
|
||||
w1b: onewire@1 {
|
||||
compatible = "w1-gpio";
|
||||
pinctrl-names = "default";
|
||||
gpios = <&gpio 90 6>; // GPIOY_15
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user