add h6-spi-add-cs1/h6-spi-jedec-nor overlays

This commit is contained in:
Martin Ayotte
2018-11-13 17:41:35 -05:00
parent 72c8aac485
commit 8e29b9245e
2 changed files with 83 additions and 0 deletions

View 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 */
};
};
};

View 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";
};
};
};
};