copy armhf overlays
This commit is contained in:
parent
9dec3a39af
commit
e8a8754a04
@ -0,0 +1,13 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun4i-a10";
|
||||
|
||||
fragment@0 {
|
||||
target = <&codec>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,15 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun4i-a10";
|
||||
|
||||
fragment@0 {
|
||||
target = <&can0>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&can0_ph_pins>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,22 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun4i-a10";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
i2c1 = "/soc@1c00000/i2c@1c2b000";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&i2c1>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&i2c1_pins>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,22 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun4i-a10";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
i2c2 = "/soc@1c00000/i2c@1c2b400";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&i2c2>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&i2c2_pins>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
103
patch/kernel/archive/sunxi-6.18/overlay_32/sun4i-a10-nand.dtso
Normal file
103
patch/kernel/archive/sunxi-6.18/overlay_32/sun4i-a10-nand.dtso
Normal file
@ -0,0 +1,103 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun4i-a10";
|
||||
|
||||
fragment@0 {
|
||||
target = <&pio>;
|
||||
__overlay__ {
|
||||
nand_pins_a: nand_pins@0 {
|
||||
pins = "PC0", "PC1", "PC2",
|
||||
"PC5", "PC8", "PC9", "PC10",
|
||||
"PC11", "PC12", "PC13", "PC14",
|
||||
"PC15", "PC16";
|
||||
function = "nand0";
|
||||
};
|
||||
|
||||
nand_cs0_pins_a: nand_cs@0 {
|
||||
pins = "PC4";
|
||||
function = "nand0";
|
||||
};
|
||||
|
||||
nand_cs1_pins_a: nand_cs@1 {
|
||||
pins = "PC3";
|
||||
function = "nand0";
|
||||
};
|
||||
|
||||
nand_cs2_pins_a: nand_cs@2 {
|
||||
pins = "PC17";
|
||||
function = "nand0";
|
||||
};
|
||||
|
||||
nand_cs3_pins_a: nand_cs@3 {
|
||||
pins = "PC18";
|
||||
function = "nand0";
|
||||
};
|
||||
|
||||
nand_rb0_pins_a: nand_rb@0 {
|
||||
pins = "PC6";
|
||||
function = "nand0";
|
||||
};
|
||||
|
||||
nand_rb1_pins_a: nand_rb@1 {
|
||||
pins = "PC7";
|
||||
function = "nand0";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&nfc>;
|
||||
__overlay__ {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&nand_pins_a>, <&nand_cs0_pins_a>, <&nand_rb0_pins_a>;
|
||||
status = "okay";
|
||||
|
||||
nand@0 {
|
||||
reg = <0>;
|
||||
allwinner,rb = <0>;
|
||||
nand-ecc-mode = "hw";
|
||||
nand-on-flash-bbt;
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <2>;
|
||||
#size-cells = <2>;
|
||||
|
||||
partition@0 {
|
||||
label = "SPL";
|
||||
reg = <0x0 0x0 0x0 0x400000>;
|
||||
};
|
||||
|
||||
partition@400000 {
|
||||
label = "SPL.backup";
|
||||
reg = <0x0 0x400000 0x0 0x400000>;
|
||||
};
|
||||
|
||||
partition@800000 {
|
||||
label = "U-Boot";
|
||||
reg = <0x0 0x800000 0x0 0x400000>;
|
||||
};
|
||||
|
||||
partition@c00000 {
|
||||
label = "U-Boot.backup";
|
||||
reg = <0x0 0xc00000 0x0 0x400000>;
|
||||
};
|
||||
|
||||
partition@1000000 {
|
||||
label = "env";
|
||||
reg = <0x0 0x1000000 0x0 0x400000>;
|
||||
};
|
||||
|
||||
partition@1400000 {
|
||||
label = "rootfs";
|
||||
reg = <0x0 0xa00000 0x01 0xff000000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,29 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun4i-a10";
|
||||
|
||||
fragment@0 {
|
||||
target = <&pio>;
|
||||
__overlay__ {
|
||||
pps_pins: pps_pins {
|
||||
pins = "PI15";
|
||||
function = "gpio_in";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target-path = "/";
|
||||
__overlay__ {
|
||||
pps@0 {
|
||||
compatible = "pps-gpio";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pps_pins>;
|
||||
gpios = <&pio 8 15 0>; /* PI15 */
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,15 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun4i-a10";
|
||||
|
||||
fragment@0 {
|
||||
target = <&pwm>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pwm0_pin>, <&pwm1_pin>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,38 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun4i-a10";
|
||||
|
||||
fragment@0 {
|
||||
target = <&spdif>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&spdif_tx_pin>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target-path = "/";
|
||||
__overlay__ {
|
||||
sound {
|
||||
compatible = "simple-audio-card";
|
||||
simple-audio-card,name = "On-board SPDIF";
|
||||
|
||||
simple-audio-card,cpu {
|
||||
sound-dai = <&spdif>;
|
||||
};
|
||||
|
||||
simple-audio-card,codec {
|
||||
sound-dai = <&spdif_out>;
|
||||
};
|
||||
};
|
||||
|
||||
spdif_out: spdif-out {
|
||||
#sound-dai-cells = <0>;
|
||||
compatible = "linux,spdif-dit";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,57 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun4i-a10";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
spi0 = "/soc@1c00000/spi@1c05000";
|
||||
spi1 = "/soc@1c00000/spi@1c06000";
|
||||
spi2 = "/soc@1c00000/spi@1c17000";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&spi0>;
|
||||
__overlay__ {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
spiflash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
status = "disabled";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <1000000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@2 {
|
||||
target = <&spi1>;
|
||||
__overlay__ {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
spiflash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
status = "disabled";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <1000000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@3 {
|
||||
target = <&spi2>;
|
||||
__overlay__ {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
spiflash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
status = "disabled";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <1000000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,57 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun4i-a10";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
spi0 = "/soc@1c00000/spi@1c05000";
|
||||
spi1 = "/soc@1c00000/spi@1c06000";
|
||||
spi2 = "/soc@1c00000/spi@1c17000";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&spi0>;
|
||||
__overlay__ {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
spidev@0 {
|
||||
compatible = "armbian,spi-dev";
|
||||
status = "disabled";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <1000000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@2 {
|
||||
target = <&spi1>;
|
||||
__overlay__ {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
spidev@0 {
|
||||
compatible = "armbian,spi-dev";
|
||||
status = "disabled";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <1000000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@3 {
|
||||
target = <&spi2>;
|
||||
__overlay__ {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
spidev@0 {
|
||||
compatible = "armbian,spi-dev";
|
||||
status = "disabled";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <1000000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,23 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun7i-a20";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
spi0 = "/soc@1c00000/spi@1c05000";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&spi0>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
pinctrl-names = "default", "default";
|
||||
pinctrl-0 = <&spi0_pi_pins>;
|
||||
pinctrl-1 = <&spi0_cs0_pi_pin>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,22 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun7i-a20";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
spi1 = "/soc@1c00000/spi@1c06000";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&spi1>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&spi1_pins>, <&spi1_cs0_pin>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,23 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun7i-a20";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
spi2 = "/soc@1c00000/spi@1c17000";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&spi2>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
pinctrl-names = "default", "default";
|
||||
pinctrl-0 = <&spi2_pins_a>;
|
||||
pinctrl-1 = <&spi2_cs0_pins_a>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,37 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun4i-a10";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
serial2 = "/soc@1c00000/serial@1c28800";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&pio>;
|
||||
__overlay__ {
|
||||
uart2_pins_a: uart2@0 {
|
||||
pins = "PI16", "PI17", "PI18", "PI19";
|
||||
function = "uart2";
|
||||
};
|
||||
|
||||
uart2_pins_a_2: uart2@1 {
|
||||
pins = "PI18", "PI19";
|
||||
function = "uart2";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@2 {
|
||||
target = <&uart2>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&uart2_pins_a_2>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,47 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun4i-a10";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
serial3 = "/soc@1c00000/serial@1c28c00";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&pio>;
|
||||
__overlay__ {
|
||||
uart3_pins_a: uart3@0 {
|
||||
pins = "PG6", "PG7";
|
||||
function = "uart3";
|
||||
};
|
||||
|
||||
uart3_pins_a_rts_cts: uart3@1 {
|
||||
pins = "PG8", "PG9";
|
||||
function = "uart3";
|
||||
};
|
||||
|
||||
uart3_pins_b: uart3@2 {
|
||||
pins = "PH0", "PH1";
|
||||
function = "uart3";
|
||||
};
|
||||
|
||||
uart3_pins_b_rts_cts: uart3@3 {
|
||||
pins = "PH2", "PH3";
|
||||
function = "uart3";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@2 {
|
||||
target = <&uart3>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&uart3_pins_a>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,37 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun4i-a10";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
serial4 = "/soc@1c00000/serial@1c29000";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&pio>;
|
||||
__overlay__ {
|
||||
uart4_pins_a: uart4@0 {
|
||||
pins = "PG10", "PG11";
|
||||
function = "uart4";
|
||||
};
|
||||
|
||||
uart4_pins_b: uart4@1 {
|
||||
pins = "PH4", "PH5";
|
||||
function = "uart4";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@2 {
|
||||
target = <&uart4>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&uart4_pins_a>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,32 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun4i-a10";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
serial5 = "/soc@1c00000/serial@1c29400";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&pio>;
|
||||
__overlay__ {
|
||||
uart5_pins_a: uart5@0 {
|
||||
pins = "PH6", "PH7";
|
||||
function = "uart5";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@2 {
|
||||
target = <&uart5>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&uart5_pins_a>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,32 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun4i-a10";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
serial6 = "/soc@1c00000/serial@1c29800";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&pio>;
|
||||
__overlay__ {
|
||||
uart6_pins_a: uart6@0 {
|
||||
pins = "PI12", "PI13";
|
||||
function = "uart6";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@2 {
|
||||
target = <&uart6>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&uart6_pins_a>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,32 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun4i-a10";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
serial7 = "/soc@1c00000/serial@1c29c00";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&pio>;
|
||||
__overlay__ {
|
||||
uart7_pins_a: uart7@0 {
|
||||
pins = "PI20", "PI21";
|
||||
function = "uart7";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@2 {
|
||||
target = <&uart7>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&uart7_pins_a>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,29 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun4i-a10";
|
||||
|
||||
fragment@0 {
|
||||
target = <&pio>;
|
||||
__overlay__ {
|
||||
w1_pins: w1_pins {
|
||||
pins = "PI15";
|
||||
function = "gpio_in";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target-path = "/";
|
||||
__overlay__ {
|
||||
onewire@0 {
|
||||
compatible = "w1-gpio";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&w1_pins>;
|
||||
gpios = <&pio 8 15 0>; /* PI15 */
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,13 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun4i-a13";
|
||||
|
||||
fragment@0 {
|
||||
target = <&codec>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,22 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun5i-a13";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
i2c1 = "/soc@1c00000/i2c@1c2b000";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&i2c1>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&i2c1_pins>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,22 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun5i-a13";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
i2c2 = "/soc@1c00000/i2c@1c2b400";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&i2c2>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&i2c2_pins>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,60 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun5i-a13";
|
||||
|
||||
fragment@0 {
|
||||
target = <&nfc>;
|
||||
__overlay__ {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&nand_pins>, <&nand_cs0_pin>, <&nand_rb0_pin>;
|
||||
status = "okay";
|
||||
|
||||
nand@0 {
|
||||
reg = <0>;
|
||||
allwinner,rb = <0>;
|
||||
nand-ecc-mode = "hw";
|
||||
nand-on-flash-bbt;
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <2>;
|
||||
#size-cells = <2>;
|
||||
|
||||
partition@0 {
|
||||
label = "SPL";
|
||||
reg = <0x0 0x0 0x0 0x400000>;
|
||||
};
|
||||
|
||||
partition@400000 {
|
||||
label = "SPL.backup";
|
||||
reg = <0x0 0x400000 0x0 0x400000>;
|
||||
};
|
||||
|
||||
partition@800000 {
|
||||
label = "U-Boot";
|
||||
reg = <0x0 0x800000 0x0 0x400000>;
|
||||
};
|
||||
|
||||
partition@c00000 {
|
||||
label = "U-Boot.backup";
|
||||
reg = <0x0 0xc00000 0x0 0x400000>;
|
||||
};
|
||||
|
||||
partition@1000000 {
|
||||
label = "env";
|
||||
reg = <0x0 0x1000000 0x0 0x400000>;
|
||||
};
|
||||
|
||||
partition@1400000 {
|
||||
label = "rootfs";
|
||||
reg = <0x0 0xa00000 0x01 0xff000000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,15 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun5i-a13";
|
||||
|
||||
fragment@0 {
|
||||
target = <&pwm>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pwm0_pin>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,57 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun5i-a13";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
spi0 = "/soc/spi@1c05000";
|
||||
spi1 = "/soc/spi@1c06000";
|
||||
spi2 = "/soc/spi@1c17000";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&spi0>;
|
||||
__overlay__ {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
spiflash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
status = "disabled";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <1000000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@2 {
|
||||
target = <&spi1>;
|
||||
__overlay__ {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
spiflash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
status = "disabled";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <1000000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@3 {
|
||||
target = <&spi2>;
|
||||
__overlay__ {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
spiflash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
status = "disabled";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <1000000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,57 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun5i-a10";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
spi0 = "/soc/spi@1c05000";
|
||||
spi1 = "/soc/spi@1c06000";
|
||||
spi2 = "/soc/spi@1c17000";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&spi0>;
|
||||
__overlay__ {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
spidev@0 {
|
||||
compatible = "armbian,spi-dev";
|
||||
status = "disabled";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <1000000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@2 {
|
||||
target = <&spi1>;
|
||||
__overlay__ {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
spidev@0 {
|
||||
compatible = "armbian,spi-dev";
|
||||
status = "disabled";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <1000000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@3 {
|
||||
target = <&spi2>;
|
||||
__overlay__ {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
spidev@0 {
|
||||
compatible = "armbian,spi-dev";
|
||||
status = "disabled";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <1000000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,38 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun5i-a13";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
spi0 = "/soc/spi@1c05000";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&pio>;
|
||||
__overlay__ {
|
||||
spi0_pins_a: spi0@0 {
|
||||
pins = "PC0", "PC1", "PC2";
|
||||
function = "spi0";
|
||||
};
|
||||
|
||||
spi0_cs0_pins_a: spi0-cs0@0 {
|
||||
pins = "PC3";
|
||||
function = "spi0";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@2 {
|
||||
target = <&spi0>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
pinctrl-names = "default", "default";
|
||||
pinctrl-0 = <&spi0_pins_a>;
|
||||
pinctrl-1 = <&spi0_cs0_pins_a>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,39 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun5i-a13";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
spi1 = "/soc/spi@1c06000";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&pio>;
|
||||
__overlay__ {
|
||||
spi1_pins_a: spi1@0 {
|
||||
pins = "PG10", "PG11", "PG12";
|
||||
function = "spi1";
|
||||
};
|
||||
|
||||
spi1_cs0_pins_a: spi1-cs0@0 {
|
||||
pins = "PG9";
|
||||
function = "spi1";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@2 {
|
||||
target = <&spi1>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&spi1_pins_a>, <&spi1_cs0_pins_a>;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
};
|
||||
@ -0,0 +1,22 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun5i-a13";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
spi2 = "/soc/spi@1c17000";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&spi2>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&spi2_pe_pins>, <&spi2_cs0_pe_pin>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,32 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun5i-a13";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
uart0 = "/soc@1c00000/serial@1c28000";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&pio>;
|
||||
__overlay__ {
|
||||
uart0_pa_pins: uart0@0 {
|
||||
pins = "PF2", "PF4";
|
||||
function = "uart0";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@2 {
|
||||
target = <&uart0>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&uart0_pa_pins>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,22 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun5i-a13";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
uart1 = "/soc@1c00000/serial@1c28400";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&uart1>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&uart1_pe_pins>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,22 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun5i-a13";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
uart2 = "/soc@1c00000/serial@1c28800";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&uart2>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&uart2_pd_pins>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,22 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun5i-a13";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
uart3 = "/soc@1c00000/serial@1c28c00";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&uart3>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&uart3_pg_pins>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,13 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun7i-a20";
|
||||
|
||||
fragment@0 {
|
||||
target = <&codec>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,15 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun7i-a20";
|
||||
|
||||
fragment@0 {
|
||||
target = <&can0>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&can0_pins_a>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,22 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun7i-a20";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
i2c1 = "/soc@1c00000/i2c@1c2b000";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&i2c1>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&i2c1_pins>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,22 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun7i-a20";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
i2c2 = "/soc@1c00000/i2c@1c2b400";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&i2c2>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&i2c2_pins>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,22 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun7i-a20";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
i2c3 = "/soc@1c00000/i2c@1c2b800";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&i2c3>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&i2c3_pins>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,32 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun7i-a20";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
i2c4 = "/soc@1c00000/i2c@1c2c000";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&pio>;
|
||||
__overlay__ {
|
||||
i2c4_pins_a: i2c4@0 {
|
||||
pins = "PI2", "PI3";
|
||||
function = "i2c4";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@2 {
|
||||
target = <&i2c4>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&i2c4_pins>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,25 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun7i-a20";
|
||||
|
||||
fragment@0 {
|
||||
target = <&pio>;
|
||||
__overlay__ {
|
||||
i2s0_pins: i2s0 {
|
||||
pins = "PB5", "PB6", "PB7", "PB8", "PB9", "PB10", "PB11", "PB12";
|
||||
function = "i2s0";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&i2s0>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&i2s0_pins>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,25 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun7i-a20";
|
||||
|
||||
fragment@0 {
|
||||
target = <&pio>;
|
||||
__overlay__ {
|
||||
i2s1_pins: i2s1 {
|
||||
pins = "PA9", "PA14", "PA15", "PA16", "PA17";
|
||||
function = "i2s1";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&i2s1>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&i2s1_pins>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,18 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun7i-a20";
|
||||
|
||||
fragment@0 {
|
||||
target = <&mmc2>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&mmc2_pins>;
|
||||
vmmc-supply = <®_vcc3v3>;
|
||||
bus-width = <4>;
|
||||
cd-gpios = <&pio 7 0 1>; /* PH0, active low */
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
103
patch/kernel/archive/sunxi-6.18/overlay_32/sun7i-a20-nand.dtso
Normal file
103
patch/kernel/archive/sunxi-6.18/overlay_32/sun7i-a20-nand.dtso
Normal file
@ -0,0 +1,103 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun7i-a20";
|
||||
|
||||
fragment@0 {
|
||||
target = <&pio>;
|
||||
__overlay__ {
|
||||
nand_pins_a: nand_pins@0 {
|
||||
pins = "PC0", "PC1", "PC2",
|
||||
"PC5", "PC8", "PC9", "PC10",
|
||||
"PC11", "PC12", "PC13", "PC14",
|
||||
"PC15", "PC16";
|
||||
function = "nand0";
|
||||
};
|
||||
|
||||
nand_cs0_pins_a: nand_cs@0 {
|
||||
pins = "PC4";
|
||||
function = "nand0";
|
||||
};
|
||||
|
||||
nand_cs1_pins_a: nand_cs@1 {
|
||||
pins = "PC3";
|
||||
function = "nand0";
|
||||
};
|
||||
|
||||
nand_cs2_pins_a: nand_cs@2 {
|
||||
pins = "PC17";
|
||||
function = "nand0";
|
||||
};
|
||||
|
||||
nand_cs3_pins_a: nand_cs@3 {
|
||||
pins = "PC18";
|
||||
function = "nand0";
|
||||
};
|
||||
|
||||
nand_rb0_pins_a: nand_rb@0 {
|
||||
pins = "PC6";
|
||||
function = "nand0";
|
||||
};
|
||||
|
||||
nand_rb1_pins_a: nand_rb@1 {
|
||||
pins = "PC7";
|
||||
function = "nand0";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&nfc>;
|
||||
__overlay__ {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&nand_pins_a>, <&nand_cs0_pins_a>, <&nand_rb0_pins_a>;
|
||||
status = "okay";
|
||||
|
||||
nand@0 {
|
||||
reg = <0>;
|
||||
allwinner,rb = <0>;
|
||||
nand-ecc-mode = "hw";
|
||||
nand-on-flash-bbt;
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <2>;
|
||||
#size-cells = <2>;
|
||||
|
||||
partition@0 {
|
||||
label = "SPL";
|
||||
reg = <0x0 0x0 0x0 0x400000>;
|
||||
};
|
||||
|
||||
partition@400000 {
|
||||
label = "SPL.backup";
|
||||
reg = <0x0 0x400000 0x0 0x400000>;
|
||||
};
|
||||
|
||||
partition@800000 {
|
||||
label = "U-Boot";
|
||||
reg = <0x0 0x800000 0x0 0x400000>;
|
||||
};
|
||||
|
||||
partition@c00000 {
|
||||
label = "U-Boot.backup";
|
||||
reg = <0x0 0xc00000 0x0 0x400000>;
|
||||
};
|
||||
|
||||
partition@1000000 {
|
||||
label = "env";
|
||||
reg = <0x0 0x1000000 0x0 0x400000>;
|
||||
};
|
||||
|
||||
partition@1400000 {
|
||||
label = "rootfs";
|
||||
reg = <0x0 0xa00000 0x01 0xff000000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,29 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun7i-a20";
|
||||
|
||||
fragment@0 {
|
||||
target = <&pio>;
|
||||
__overlay__ {
|
||||
pps_pins: pps_pins {
|
||||
pins = "PI15";
|
||||
function = "gpio_in";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target-path = "/";
|
||||
__overlay__ {
|
||||
pps@0 {
|
||||
compatible = "pps-gpio";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pps_pins>;
|
||||
gpios = <&pio 8 15 0>; /* PI15 */
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,15 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun7i-a20";
|
||||
|
||||
fragment@0 {
|
||||
target = <&pwm>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pwm0_pin>, <&pwm1_pin>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,38 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun7i-a20";
|
||||
|
||||
fragment@0 {
|
||||
target = <&spdif>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&spdif_tx_pin>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target-path = "/";
|
||||
__overlay__ {
|
||||
sound {
|
||||
compatible = "simple-audio-card";
|
||||
simple-audio-card,name = "On-board SPDIF";
|
||||
|
||||
simple-audio-card,cpu {
|
||||
sound-dai = <&spdif>;
|
||||
};
|
||||
|
||||
simple-audio-card,codec {
|
||||
sound-dai = <&spdif_out>;
|
||||
};
|
||||
};
|
||||
|
||||
spdif_out: spdif-out {
|
||||
#sound-dai-cells = <0>;
|
||||
compatible = "linux,spdif-dit";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,16 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun7i-a20";
|
||||
|
||||
fragment@0 {
|
||||
target = <&spi0>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default", "default", "default";
|
||||
pinctrl-0 = <&spi0_pi_pins>;
|
||||
pinctrl-1 = <&spi0_cs0_pi_pin>;
|
||||
pinctrl-2 = <&spi0_cs1_pi_pin>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,57 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun7i-a20";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
spi0 = "/soc@1c00000/spi@1c05000";
|
||||
spi1 = "/soc@1c00000/spi@1c06000";
|
||||
spi2 = "/soc@1c00000/spi@1c17000";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&spi0>;
|
||||
__overlay__ {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
spiflash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
status = "disabled";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <1000000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@2 {
|
||||
target = <&spi1>;
|
||||
__overlay__ {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
spiflash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
status = "disabled";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <1000000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@3 {
|
||||
target = <&spi2>;
|
||||
__overlay__ {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
spiflash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
status = "disabled";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <1000000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,57 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun7i-a20";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
spi0 = "/soc@1c00000/spi@1c05000";
|
||||
spi1 = "/soc@1c00000/spi@1c06000";
|
||||
spi2 = "/soc@1c00000/spi@1c17000";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&spi0>;
|
||||
__overlay__ {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
spidev@0 {
|
||||
compatible = "armbian,spi-dev";
|
||||
status = "disabled";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <1000000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@2 {
|
||||
target = <&spi1>;
|
||||
__overlay__ {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
spidev@0 {
|
||||
compatible = "armbian,spi-dev";
|
||||
status = "disabled";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <1000000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@3 {
|
||||
target = <&spi2>;
|
||||
__overlay__ {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
spidev@0 {
|
||||
compatible = "armbian,spi-dev";
|
||||
status = "disabled";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <1000000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,23 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun7i-a20";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
spi0 = "/soc@1c00000/spi@1c05000";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&spi0>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
pinctrl-names = "default", "default";
|
||||
pinctrl-0 = <&spi0_pi_pins>;
|
||||
pinctrl-1 = <&spi0_cs0_pi_pin>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,22 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun7i-a20";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
spi1 = "/soc@1c00000/spi@1c06000";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&spi1>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&spi1_pi_pins>, <&spi1_cs0_pi_pin>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,23 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun7i-a20";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
spi2 = "/soc@1c00000/spi@1c17000";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&spi2>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
pinctrl-names = "default", "default";
|
||||
pinctrl-0 = <&spi2_pb_pins>;
|
||||
pinctrl-1 = <&spi2_pb_cs0_pin>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,32 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun7i-a20";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
serial2 = "/soc@1c00000/serial@1c28800";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&pio>;
|
||||
__overlay__ {
|
||||
uart2_pins_a_2: uart2@1 {
|
||||
pins = "PI18", "PI19";
|
||||
function = "uart2";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@2 {
|
||||
target = <&uart2>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&uart2_pins_a_2>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,42 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun7i-a20";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
serial3 = "/soc@1c00000/serial@1c28c00";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&pio>;
|
||||
__overlay__ {
|
||||
uart3_pins_a_2: uart3@2 {
|
||||
pins = "PG6", "PG7";
|
||||
function = "uart3";
|
||||
};
|
||||
|
||||
uart3_pins_a_rts_cts: uart3@1 {
|
||||
pins = "PG8", "PG9";
|
||||
function = "uart3";
|
||||
};
|
||||
|
||||
uart3_pins_b_rts_cts: uart3@3 {
|
||||
pins = "PH2", "PH3";
|
||||
function = "uart3";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@2 {
|
||||
target = <&uart3>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&uart3_pins_a_2>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,22 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun7i-a20";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
serial4 = "/soc@1c00000/serial@1c29000";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&uart4>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&uart4_pg_pins>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,22 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun7i-a20";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
serial5 = "/soc@1c00000/serial@1c29400";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&uart5>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&uart5_pi_pins>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,22 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun7i-a20";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
serial6 = "/soc@1c00000/serial@1c29800";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&uart6>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&uart6_pi_pins>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,22 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun7i-a20";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
serial7 = "/soc@1c00000/serial@1c29c00";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&uart7>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&uart7_pi_pins>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,29 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun7i-a20";
|
||||
|
||||
fragment@0 {
|
||||
target = <&pio>;
|
||||
__overlay__ {
|
||||
w1_pins: w1_pins {
|
||||
pins = "PI15";
|
||||
function = "gpio_in";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target-path = "/";
|
||||
__overlay__ {
|
||||
onewire@0 {
|
||||
compatible = "w1-gpio";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&w1_pins>;
|
||||
gpios = <&pio 8 15 0>; /* PI15 */
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,17 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun8i-h3";
|
||||
|
||||
fragment@0 {
|
||||
target = <&codec>;
|
||||
__overlay__ {
|
||||
allwinner,audio-routing =
|
||||
"Line Out", "LINEOUT",
|
||||
"MIC1", "Mic",
|
||||
"Mic", "MBIAS";
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
15
patch/kernel/archive/sunxi-6.18/overlay_32/sun8i-h3-cir.dtso
Normal file
15
patch/kernel/archive/sunxi-6.18/overlay_32/sun8i-h3-cir.dtso
Normal file
@ -0,0 +1,15 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun8i-h3";
|
||||
|
||||
fragment@0 {
|
||||
target = <&ir>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&r_ir_rx_pin>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,31 @@
|
||||
// DT overlay for CPU frequency operating points to up to 1.2GHz at a maximum CPU voltage of 1.3v
|
||||
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
fragment@0 {
|
||||
target = <&cpu0_opp_table>;
|
||||
|
||||
__overlay__ {
|
||||
compatible = "operating-points-v2";
|
||||
opp-shared;
|
||||
|
||||
// in order to match the existing DT cooling-maps, update the existing OP table in-place
|
||||
// with the new voltages
|
||||
|
||||
opp-1104000000 {
|
||||
opp-hz = /bits/ 64 <1104000000>;
|
||||
opp-microvolt = <1300000 1300000 1300000>;
|
||||
clock-latency-ns = <244144>; /* 8 32k periods */
|
||||
};
|
||||
|
||||
opp-1200000000 {
|
||||
opp-hz = /bits/ 64 <1200000000>;
|
||||
opp-microvolt = <1300000 1300000 1300000>;
|
||||
clock-latency-ns = <244144>; /* 8 32k periods */
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@ -0,0 +1,67 @@
|
||||
// DT overlay for CPU frequency operating points to 1.3GHz at a maximum CPU voltage of 1.3v
|
||||
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
fragment@0 {
|
||||
target = <&cpu0_opp_table>;
|
||||
|
||||
__overlay__ {
|
||||
compatible = "operating-points-v2";
|
||||
opp-shared;
|
||||
|
||||
// in order to match the DT cooling-maps, update the existing OP table in-place
|
||||
// with the new voltages
|
||||
|
||||
opp-1056000000 {
|
||||
opp-hz = /bits/ 64 <1056000000>;
|
||||
opp-microvolt = <1300000 1300000 1300000>;
|
||||
clock-latency-ns = <244144>; /* 8 32k periods */
|
||||
};
|
||||
|
||||
opp-1104000000 {
|
||||
opp-hz = /bits/ 64 <1104000000>;
|
||||
opp-microvolt = <1300000 1300000 1300000>;
|
||||
clock-latency-ns = <244144>; /* 8 32k periods */
|
||||
};
|
||||
|
||||
opp-1152000000 {
|
||||
opp-hz = /bits/ 64 <1152000000>;
|
||||
opp-microvolt = <1300000 1300000 1300000>;
|
||||
clock-latency-ns = <244144>; /* 8 32k periods */
|
||||
};
|
||||
|
||||
opp-1200000000 {
|
||||
opp-hz = /bits/ 64 <1200000000>;
|
||||
opp-microvolt = <1300000 1300000 1300000>;
|
||||
clock-latency-ns = <244144>; /* 8 32k periods */
|
||||
};
|
||||
|
||||
opp-1224000000 {
|
||||
opp-hz = /bits/ 64 <1224000000>;
|
||||
opp-microvolt = <1300000 1300000 1300000>;
|
||||
clock-latency-ns = <244144>; /* 8 32k periods */
|
||||
};
|
||||
|
||||
opp-1248000000 {
|
||||
opp-hz = /bits/ 64 <1248000000>;
|
||||
opp-microvolt = <1300000 1300000 1300000>;
|
||||
clock-latency-ns = <244144>; /* 8 32k periods */
|
||||
};
|
||||
|
||||
opp-1296000000 {
|
||||
opp-hz = /bits/ 64 <1296000000>;
|
||||
opp-microvolt = <1300000 1300000 1300000>;
|
||||
clock-latency-ns = <244144>; /* 8 32k periods */
|
||||
};
|
||||
|
||||
opp-1368000000 {
|
||||
opp-hz = /bits/ 64 <1368000000>;
|
||||
opp-microvolt = <1300000 1300000 1300000>;
|
||||
clock-latency-ns = <244144>; /* 8 32k periods */
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@ -0,0 +1,61 @@
|
||||
// DT overlay for CPU frequency operating points to 1.3GHz at a maximum CPU voltage of 1.3v
|
||||
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
fragment@0 {
|
||||
target = <&cpu0_opp_table>;
|
||||
|
||||
__overlay__ {
|
||||
compatible = "operating-points-v2";
|
||||
opp-shared;
|
||||
|
||||
// in order to match the DT cooling-maps, update the existing OP table in-place
|
||||
// with the new voltages
|
||||
|
||||
opp-1056000000 {
|
||||
opp-hz = /bits/ 64 <1056000000>;
|
||||
opp-microvolt = <1300000 1300000 1300000>;
|
||||
clock-latency-ns = <244144>; /* 8 32k periods */
|
||||
};
|
||||
|
||||
opp-1104000000 {
|
||||
opp-hz = /bits/ 64 <1104000000>;
|
||||
opp-microvolt = <1300000 1300000 1300000>;
|
||||
clock-latency-ns = <244144>; /* 8 32k periods */
|
||||
};
|
||||
|
||||
opp-1152000000 {
|
||||
opp-hz = /bits/ 64 <1152000000>;
|
||||
opp-microvolt = <1300000 1300000 1300000>;
|
||||
clock-latency-ns = <244144>; /* 8 32k periods */
|
||||
};
|
||||
|
||||
opp-1200000000 {
|
||||
opp-hz = /bits/ 64 <1200000000>;
|
||||
opp-microvolt = <1300000 1300000 1300000>;
|
||||
clock-latency-ns = <244144>; /* 8 32k periods */
|
||||
};
|
||||
|
||||
opp-1224000000 {
|
||||
opp-hz = /bits/ 64 <1224000000>;
|
||||
opp-microvolt = <1300000 1300000 1300000>;
|
||||
clock-latency-ns = <244144>; /* 8 32k periods */
|
||||
};
|
||||
|
||||
opp-1248000000 {
|
||||
opp-hz = /bits/ 64 <1248000000>;
|
||||
opp-microvolt = <1300000 1300000 1300000>;
|
||||
clock-latency-ns = <244144>; /* 8 32k periods */
|
||||
};
|
||||
|
||||
opp-1296000000 {
|
||||
opp-hz = /bits/ 64 <1296000000>;
|
||||
opp-microvolt = <1300000 1300000 1300000>;
|
||||
clock-latency-ns = <244144>; /* 8 32k periods */
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@ -0,0 +1,20 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun8i-h3";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
i2c0 = "/soc/i2c@1c2ac00";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&i2c0>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,20 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun8i-h3";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
i2c1 = "/soc/i2c@1c2b000";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&i2c1>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,20 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun8i-h3";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
i2c2 = "/soc/i2c@1c2b400";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&i2c2>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,29 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun8i-h3";
|
||||
|
||||
fragment@0 {
|
||||
target = <&pio>;
|
||||
__overlay__ {
|
||||
pps_pins: pps_pins {
|
||||
pins = "PD14";
|
||||
function = "gpio_in";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target-path = "/";
|
||||
__overlay__ {
|
||||
pps@0 {
|
||||
compatible = "pps-gpio";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pps_pins>;
|
||||
gpios = <&pio 3 14 0>; /* PD14 */
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
39
patch/kernel/archive/sunxi-6.18/overlay_32/sun8i-h3-pwm.dtso
Normal file
39
patch/kernel/archive/sunxi-6.18/overlay_32/sun8i-h3-pwm.dtso
Normal file
@ -0,0 +1,39 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun8i-h3";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/chosen";
|
||||
__overlay__ {
|
||||
/delete-property/ stdout-path;
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&uart0>;
|
||||
__overlay__ {
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@2 {
|
||||
target = <&pio>;
|
||||
__overlay__ {
|
||||
pwm0_pin: pwm0 {
|
||||
pins = "PA5";
|
||||
function = "pwm0";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@3 {
|
||||
target = <&pwm>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pwm0_pin>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,38 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun8i-h3";
|
||||
|
||||
fragment@0 {
|
||||
target = <&spdif>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&spdif_tx_pin>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target-path = "/";
|
||||
__overlay__ {
|
||||
sound {
|
||||
compatible = "simple-audio-card";
|
||||
simple-audio-card,name = "On-board SPDIF";
|
||||
|
||||
simple-audio-card,cpu {
|
||||
sound-dai = <&spdif>;
|
||||
};
|
||||
|
||||
simple-audio-card,codec {
|
||||
sound-dai = <&spdif_out>;
|
||||
};
|
||||
};
|
||||
|
||||
spdif_out: spdif-out {
|
||||
#sound-dai-cells = <0>;
|
||||
compatible = "linux,spdif-dit";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,41 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun8i-h3";
|
||||
|
||||
fragment@0 {
|
||||
target = <&pio>;
|
||||
__overlay__ {
|
||||
spi0_cs1: spi0_cs1 {
|
||||
pins = "PA21";
|
||||
function = "gpio_out";
|
||||
output-high;
|
||||
};
|
||||
|
||||
spi1_cs1: spi1_cs1 {
|
||||
pins = "PA10";
|
||||
function = "gpio_out";
|
||||
output-high;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&spi0>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default", "default";
|
||||
pinctrl-1 = <&spi0_cs1>;
|
||||
cs-gpios = <0>, <&pio 0 21 0>; /* PA21 */
|
||||
};
|
||||
};
|
||||
|
||||
fragment@2 {
|
||||
target = <&spi1>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default", "default";
|
||||
pinctrl-1 = <&spi1_cs1>;
|
||||
cs-gpios = <0>, <&pio 0 10 0>; /* PA10 */
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,42 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun8i-h3";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
spi0 = "/soc/spi@1c68000";
|
||||
spi1 = "/soc/spi@1c69000";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&spi0>;
|
||||
__overlay__ {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
spiflash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <1000000>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@2 {
|
||||
target = <&spi1>;
|
||||
__overlay__ {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
spiflash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <1000000>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,42 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun8i-h3";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
spi0 = "/soc/spi@1c68000";
|
||||
spi1 = "/soc/spi@1c69000";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&spi0>;
|
||||
__overlay__ {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
spidev@0 {
|
||||
compatible = "armbian,spi-dev";
|
||||
status = "disabled";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <1000000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@2 {
|
||||
target = <&spi1>;
|
||||
__overlay__ {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
spidev@0 {
|
||||
compatible = "armbian,spi-dev";
|
||||
status = "disabled";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <1000000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,22 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun8i-h3";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
serial1 = "/soc/serial@1c28400";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&uart1>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&uart1_pins>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,22 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun8i-h3";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
serial2 = "/soc/serial@1c28800";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&uart2>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&uart2_pins>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,22 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun8i-h3";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
serial3 = "/soc/serial@1c28c00";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&uart3>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&uart3_pins>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,27 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun8i-h3";
|
||||
|
||||
fragment@0 {
|
||||
target = <&ehci0>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&ohci0>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@2 {
|
||||
target = <&usbphy>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,27 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun8i-h3";
|
||||
|
||||
fragment@0 {
|
||||
target = <&ehci1>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&ohci1>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@2 {
|
||||
target = <&usbphy>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,27 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun8i-h3";
|
||||
|
||||
fragment@0 {
|
||||
target = <&ehci2>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&ohci2>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@2 {
|
||||
target = <&usbphy>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,27 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun8i-h3";
|
||||
|
||||
fragment@0 {
|
||||
target = <&ehci3>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&ohci3>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@2 {
|
||||
target = <&usbphy>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,29 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun8i-h3";
|
||||
|
||||
fragment@0 {
|
||||
target = <&pio>;
|
||||
__overlay__ {
|
||||
w1_pins: w1_pins {
|
||||
pins = "PD14";
|
||||
function = "gpio_in";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target-path = "/";
|
||||
__overlay__ {
|
||||
onewire@0 {
|
||||
compatible = "w1-gpio";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&w1_pins>;
|
||||
gpios = <&pio 3 14 0>; /* PD14 */
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,20 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun8i-h3";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
i2c2 = "/soc/i2c@1c2b400";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&i2c2>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,20 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun8i-h3";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
i2c3 = "/soc/i2c@1c2b800";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&i2c3>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,27 @@
|
||||
/dts-v1/;
|
||||
/ {
|
||||
compatible = "allwinner,sun8i-r40";
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
spi0 = "/soc/spi@1c05000";
|
||||
};
|
||||
};
|
||||
fragment@1 {
|
||||
target = <0xffffffff>;
|
||||
__overlay__ {
|
||||
#address-cells = <0x00000001>;
|
||||
#size-cells = <0x00000000>;
|
||||
status = "okay";
|
||||
spidev@0 {
|
||||
compatible = "armbian,spi-dev";
|
||||
status = "okay";
|
||||
reg = <0x00000000>;
|
||||
spi-max-frequency = <0x000f4240>;
|
||||
};
|
||||
};
|
||||
};
|
||||
__fixups__ {
|
||||
spi0 = "/fragment@1:target:0";
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,27 @@
|
||||
/dts-v1/;
|
||||
/ {
|
||||
compatible = "allwinner,sun8i-r40";
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
spi1 = "/soc/spi@1c06000";
|
||||
};
|
||||
};
|
||||
fragment@1 {
|
||||
target = <0xffffffff>;
|
||||
__overlay__ {
|
||||
#address-cells = <0x00000001>;
|
||||
#size-cells = <0x00000000>;
|
||||
status = "okay";
|
||||
spidev@0 {
|
||||
compatible = "armbian,spi-dev";
|
||||
status = "okay";
|
||||
reg = <0x00000000>;
|
||||
spi-max-frequency = <0x000f4240>;
|
||||
};
|
||||
};
|
||||
};
|
||||
__fixups__ {
|
||||
spi1 = "/fragment@1:target:0";
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,22 @@
|
||||
/dts-v1/;
|
||||
/ {
|
||||
compatible = "allwinner,sun8i-r40";
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
serial2 = "/soc/serial@1c28800";
|
||||
};
|
||||
};
|
||||
fragment@1 {
|
||||
target = <0xffffffff>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <0xffffffff>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
__fixups__ {
|
||||
uart2 = "/fragment@1:target:0";
|
||||
uart2_pi_pins = "/fragment@1/__overlay__:pinctrl-0:0";
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,22 @@
|
||||
/dts-v1/;
|
||||
/ {
|
||||
compatible = "allwinner,sun8i-r40";
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
serial4 = "/soc/serial@1c29000";
|
||||
};
|
||||
};
|
||||
fragment@1 {
|
||||
target = <0xffffffff>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <0xffffffff>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
__fixups__ {
|
||||
uart4 = "/fragment@1:target:0";
|
||||
uart4_ph_pins = "/fragment@1/__overlay__:pinctrl-0:0";
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,22 @@
|
||||
/dts-v1/;
|
||||
/ {
|
||||
compatible = "allwinner,sun8i-r40";
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
serial5 = "/soc/serial@1c29400";
|
||||
};
|
||||
};
|
||||
fragment@1 {
|
||||
target = <0xffffffff>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <0xffffffff>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
__fixups__ {
|
||||
uart5 = "/fragment@1:target:0";
|
||||
uart5_ph_pins = "/fragment@1/__overlay__:pinctrl-0:0";
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,22 @@
|
||||
/dts-v1/;
|
||||
/ {
|
||||
compatible = "allwinner,sun8i-r40";
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
serial7 = "/soc/serial@1c29c00";
|
||||
};
|
||||
};
|
||||
fragment@1 {
|
||||
target = <0xffffffff>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <0xffffffff>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
__fixups__ {
|
||||
uart7 = "/fragment@1:target:0";
|
||||
uart7_pi_pins = "/fragment@1/__overlay__:pinctrl-0:0";
|
||||
};
|
||||
};
|
||||
Loading…
Reference in New Issue
Block a user