You've already forked sunxi-DT-overlays
mirror of
https://github.com/armbian/sunxi-DT-overlays.git
synced 2026-01-06 10:14:43 -08:00
add h6-spi-add-cs1/h6-spi-jedec-nor overlays
This commit is contained in:
41
sun50i-h6/sun50i-h6-spi-add-cs1.dts
Normal file
41
sun50i-h6/sun50i-h6-spi-add-cs1.dts
Normal file
@@ -0,0 +1,41 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun50i-h6";
|
||||
|
||||
fragment@0 {
|
||||
target = <&pio>;
|
||||
__overlay__ {
|
||||
spi0_cs1: spi0_cs1 {
|
||||
pins = "PA10";
|
||||
function = "gpio_out";
|
||||
output-high;
|
||||
};
|
||||
|
||||
spi1_cs1: spi1_cs1 {
|
||||
pins = "PA21";
|
||||
function = "gpio_out";
|
||||
output-high;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&spi0>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default", "default";
|
||||
pinctrl-1 = <&spi0_cs1>;
|
||||
cs-gpios = <0>, <&pio 0 10 0>; /* PA10 */
|
||||
};
|
||||
};
|
||||
|
||||
fragment@2 {
|
||||
target = <&spi1>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default", "default";
|
||||
pinctrl-1 = <&spi1_cs1>;
|
||||
cs-gpios = <0>, <&pio 0 21 0>; /* PA21 */
|
||||
};
|
||||
};
|
||||
};
|
||||
42
sun50i-h6/sun50i-h6-spi-jedec-nor.dts
Normal file
42
sun50i-h6/sun50i-h6-spi-jedec-nor.dts
Normal file
@@ -0,0 +1,42 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun50i-h6";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/aliases";
|
||||
__overlay__ {
|
||||
spi0 = "/soc/spi@5010000";
|
||||
spi1 = "/soc/spi@5011000";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&spi0>;
|
||||
__overlay__ {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
spiflash {
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <1000000>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@2 {
|
||||
target = <&spi1>;
|
||||
__overlay__ {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
spiflash {
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <1000000>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user