From 23a180068183f987f611d5dbe3fbce586443dc7e Mon Sep 17 00:00:00 2001 From: lijie02 Date: Thu, 2 Aug 2018 09:50:55 +0800 Subject: [PATCH] add dts file of pv1 target, lack of this file will cause some dts config error --- lichee/linux-4.9/arch/arm/boot/dts/Makefile | 3 +- .../arm/boot/dts/sun8iw15p1-mandolin-pv1.dts | 55 +++++++++++++++++++ 2 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 lichee/linux-4.9/arch/arm/boot/dts/sun8iw15p1-mandolin-pv1.dts diff --git a/lichee/linux-4.9/arch/arm/boot/dts/Makefile b/lichee/linux-4.9/arch/arm/boot/dts/Makefile index fd9c386c4..5414b36cd 100644 --- a/lichee/linux-4.9/arch/arm/boot/dts/Makefile +++ b/lichee/linux-4.9/arch/arm/boot/dts/Makefile @@ -836,7 +836,8 @@ dtb-$(CONFIG_ARCH_SUN8IW6P1) += \ sun8iw6p1-soc.dtb dtb-$(CONFIG_ARCH_SUN8IW15P1) += \ sun8iw15p1-soc.dtb \ - sun8iw15p1-mandolin-perf1.dtb + sun8iw15p1-mandolin-perf1.dtb\ + sun8iw15p1-mandolin-pv1.dtb dtb-$(CONFIG_ARCH_TANGO) += \ tango4-vantage-1172.dtb dtb-$(CONFIG_ARCH_TEGRA_2x_SOC) += \ diff --git a/lichee/linux-4.9/arch/arm/boot/dts/sun8iw15p1-mandolin-pv1.dts b/lichee/linux-4.9/arch/arm/boot/dts/sun8iw15p1-mandolin-pv1.dts new file mode 100644 index 000000000..6d39811a8 --- /dev/null +++ b/lichee/linux-4.9/arch/arm/boot/dts/sun8iw15p1-mandolin-pv1.dts @@ -0,0 +1,55 @@ +/* + * Allwinner Technology CO., Ltd. sun8iw12p1 fpga board. + * + * fpga board support. + */ + +/dts-v1/; + +#include "sun8iw15p1.dtsi" + +/{ + soc@03000000 { + twi0: twi@0x05002000{ + status = "disabled"; + + ad82584f@31 { + compatible = "ESMT, ad82584f"; + reg = <0x31>; + reset_pin = <&r_pio PL 11 1 1 1 1>; + amp_en = <&r_pio PL 3 1 1 1 1>; + }; + }; + + snddaudio0:sound@1{ + sunxi,snddaudio-codec = "ad82584f.0-0031"; + sunxi,snddaudio-codec-dai = "ad82584f"; + }; + + wlan:wlan { + compatible = "allwinner,sunxi-wlan"; + clocks = <&clk_losc_out>; + wlan_power = "vcc-wifi"; + wlan_io_regulator = "vcc-wifi-io"; + wlan_busnum = <1>; + wlan_regon = <&r_pio PL 5 1 1 1 0>; + wlan_hostwake = <&r_pio PL 6 6 0 0 0>; + status = "okay"; + }; + bt:bt { + compatible = "allwinner,sunxi-bt"; + clocks = <&clk_losc_out>; + bt_power = "vcc-wifi"; + bt_io_regulator = "vcc-wifi-io"; + bt_rst_n = <&r_pio PL 2 1 1 1 0>; + status = "okay"; + }; + btlpm:btlpm { + compatible = "allwinner,sunxi-btlpm"; + uart_index = <1>; + bt_wake = <&r_pio PL 7 1 1 1 1>; + bt_hostwake = <&r_pio PL 4 6 0 0 0>; + status = "okay"; + }; + }; +};