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-spidev h6-w1-gpio overlays
This commit is contained in:
42
sun50i-h6/sun50i-h6-spi-spidev.dts
Normal file
42
sun50i-h6/sun50i-h6-spi-spidev.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>;
|
||||
spidev {
|
||||
compatible = "spidev";
|
||||
status = "disabled";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <1000000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@2 {
|
||||
target = <&spi1>;
|
||||
__overlay__ {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
spidev {
|
||||
compatible = "spidev";
|
||||
status = "disabled";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <1000000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
29
sun50i-h6/sun50i-h6-w1-gpio.dts
Normal file
29
sun50i-h6/sun50i-h6-w1-gpio.dts
Normal file
@@ -0,0 +1,29 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun50i-h6";
|
||||
|
||||
fragment@0 {
|
||||
target = <&pio>;
|
||||
__overlay__ {
|
||||
w1_pins: w1_pins {
|
||||
pins = "PC9";
|
||||
function = "gpio_in";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target-path = "/";
|
||||
__overlay__ {
|
||||
onewire@0 {
|
||||
compatible = "w1-gpio";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&w1_pins>;
|
||||
gpios = <&pio 3 9 0>; /* PC9 */
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user