arm64: dts: overlay: VIM1: move pwm_f to dtbo
authorNick Xie <nick@khadas.com>
Wed, 12 Aug 2020 07:27:08 +0000 (15:27 +0800)
committerNick Xie <nick@khadas.com>
Thu, 13 Aug 2020 03:37:34 +0000 (11:37 +0800)
Signed-off-by: Nick Xie <nick@khadas.com>
arch/arm64/boot/dts/amlogic/kvim_linux.dts
arch/arm64/boot/dts/amlogic/overlays/kvim/Makefile
arch/arm64/boot/dts/amlogic/overlays/kvim/pwm_f.dts [new file with mode: 0644]

index 991b43f..59341a5 100644 (file)
 
 &pwm_ef {
        status = "okay";
-       pinctrl-names="default";
-       pinctrl-0=<&pwm_f_pin>;
 };
 
 &audio_data{
index 25c39ee..1ac05ba 100644 (file)
@@ -1,6 +1,7 @@
 dtbo-y += uart4.dtbo \
                  onewire.dtbo \
-                 pwm_ao_a.dtbo
+                 pwm_ao_a.dtbo \
+                 pwm_f.dtbo
 
 targets += $(dtbo-y)
 always  := $(dtbo-y)
diff --git a/arch/arm64/boot/dts/amlogic/overlays/kvim/pwm_f.dts b/arch/arm64/boot/dts/amlogic/overlays/kvim/pwm_f.dts
new file mode 100644 (file)
index 0000000..3dfa70e
--- /dev/null
@@ -0,0 +1,15 @@
+/dts-v1/;
+/plugin/;
+
+/ {
+       fragment@0 {
+               target = <&pwm_ef>;
+
+               __overlay__ {
+                       status = "okay";
+
+                       pinctrl-names="default";
+                       pinctrl-0=<&pwm_f_pin>;
+               };
+       };
+};