lw35-upgrade/ioc/kernel-driver/device-tree-opi-pc.patch

42 lines
931 B
Diff
Raw Normal View History

diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts b/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts
2019-11-16 13:22:22 +01:00
index c8201e79dff3..5407742acad6 100644
--- a/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts
+++ b/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts
2019-11-16 13:22:22 +01:00
@@ -210,12 +210,22 @@ &uart0 {
status = "okay";
};
2019-11-16 13:22:22 +01:00
+&pio {
+ lw35ioc_pins: lw35ioc-pins {
+ pins = "PA10";
+ function = "gpio_out";
+ };
+};
+
&uart1 {
2019-11-16 13:22:22 +01:00
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&uart1_pins>;
2019-11-16 13:22:22 +01:00
lw35ioc@0 {
compatible = "brother,lw35";
+ pinctrl-names = "default";
+ pinctrl-0 = <&lw35ioc_pins>;
+ rst-gpios = <&pio 0 10 GPIO_ACTIVE_LOW>;
};
};
2019-11-16 13:22:22 +01:00
@@ -242,3 +252,13 @@ &usbphy {
/* VBUS on USB host ports are always on */
status = "okay";
};
+
+&spi0 {
+ status = "okay";
+ lmg6202ulyt@0 {
+ compatible = "hitachi,lmg6202ulyt";
+ reg = <0x0>;
+ spi-max-frequency = <2000000>;
+ cs-gpios = <0>, <&pio 0 3 GPIO_ACTIVE_LOW>;
+ };
+};