diff options
Diffstat (limited to 'recipes-kernel/linux/linux-3.19/overlays')
5 files changed, 114 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-3.19/overlays/port1_gpio.dts b/recipes-kernel/linux/linux-3.19/overlays/port1_gpio.dts new file mode 100644 index 0000000..d931cd8 --- /dev/null +++ b/recipes-kernel/linux/linux-3.19/overlays/port1_gpio.dts @@ -0,0 +1,29 @@ +/dts-v1/; +/plugin/; + +/* enable spi0 for mts-io */ + +/ { + fragment@0 { + target-path = "/ahb/apb/spi@f0000000"; + __overlay__ { + status = "okay"; + + ap1-cs0@0 { + compatible = "mts-io-ap1-adc"; + spi-max-frequency = <20000000>; + reg = <0>; + }; + ap1-cs1@1 { + compatible = "mts-io-ap1-dout"; + spi-max-frequency = <1000000>; + reg = <1>; + }; + ap1-cs2@2 { + compatible = "mts-io-ap1-din"; + spi-max-frequency = <1000000>; + reg = <2>; + }; + }; + }; +}; diff --git a/recipes-kernel/linux/linux-3.19/overlays/port1_lora.dts b/recipes-kernel/linux/linux-3.19/overlays/port1_lora.dts new file mode 100644 index 0000000..dfc04c5 --- /dev/null +++ b/recipes-kernel/linux/linux-3.19/overlays/port1_lora.dts @@ -0,0 +1,19 @@ +/dts-v1/; +/plugin/; + +/* enable spi0 for spidev */ + +/ { + fragment@0 { + target-path = "/ahb/apb/spi@f0000000"; + __overlay__ { + status = "okay"; + + ap1-cs0@0 { + compatible = "spidev"; + spi-max-frequency = <1000000>; + reg = <0>; + }; + }; + }; +}; diff --git a/recipes-kernel/linux/linux-3.19/overlays/port1_wibt.dts b/recipes-kernel/linux/linux-3.19/overlays/port1_wibt.dts new file mode 100644 index 0000000..5db0462 --- /dev/null +++ b/recipes-kernel/linux/linux-3.19/overlays/port1_wibt.dts @@ -0,0 +1,18 @@ +/dts-v1/; +/plugin/; + +/* enable mmc1 */ +/ { + fragment@0 { + target-path = "/ahb/apb/mmc@f000c000"; + __overlay__ { + status = "okay"; + + slot@0 { + reg = <0>; + bus-width = <4>; + cd-gpios = <&pioA 1 GPIO_ACTIVE_HIGH>; + }; + }; + }; +}; diff --git a/recipes-kernel/linux/linux-3.19/overlays/port2_gpio.dts b/recipes-kernel/linux/linux-3.19/overlays/port2_gpio.dts new file mode 100644 index 0000000..240bf4e --- /dev/null +++ b/recipes-kernel/linux/linux-3.19/overlays/port2_gpio.dts @@ -0,0 +1,29 @@ +/dts-v1/; +/plugin/; + +/* enable spi1 for mts-io */ + +/ { + fragment@0 { + target-path = "/ahb/apb/spi@f0004000"; + __overlay__ { + status = "okay"; + + ap1-cs0@0 { + compatible = "mts-io-ap2-adc"; + spi-max-frequency = <20000000>; + reg = <0>; + }; + ap1-cs1@1 { + compatible = "mts-io-ap2-dout"; + spi-max-frequency = <1000000>; + reg = <1>; + }; + ap1-cs2@2 { + compatible = "mts-io-ap2-din"; + spi-max-frequency = <1000000>; + reg = <2>; + }; + }; + }; +}; diff --git a/recipes-kernel/linux/linux-3.19/overlays/port2_lora.dts b/recipes-kernel/linux/linux-3.19/overlays/port2_lora.dts new file mode 100644 index 0000000..5c03f2a --- /dev/null +++ b/recipes-kernel/linux/linux-3.19/overlays/port2_lora.dts @@ -0,0 +1,19 @@ +/dts-v1/; +/plugin/; + +/* enable spi1 for spidev */ + +/ { + fragment@0 { + target-path = "/ahb/apb/spi@f0004000"; + __overlay__ { + status = "okay"; + + ap2-cs0@0 { + compatible = "spidev"; + spi-max-frequency = <1000000>; + reg = <0>; + }; + }; + }; +}; |