dts: bindings: lora: sx127x: add SX1272 binding

Refactor out common parts and add SX1272 support to SX127x bindings.

Signed-off-by: Ilya Tagunov <tagunil@gmail.com>
diff --git a/dts/bindings/lora/semtech,sx1272.yaml b/dts/bindings/lora/semtech,sx1272.yaml
new file mode 100644
index 0000000..c75b30e
--- /dev/null
+++ b/dts/bindings/lora/semtech,sx1272.yaml
@@ -0,0 +1,8 @@
+# Copyright (c) 2021, Ilya Tagunov
+# SPDX-License-Identifier: Apache-2.0
+
+description: Semtech SX1272 LoRa Modem
+
+compatible: "semtech,sx1272"
+
+include: semtech,sx127x-base.yaml
diff --git a/dts/bindings/lora/semtech,sx1276.yaml b/dts/bindings/lora/semtech,sx1276.yaml
index 2ca1352..ef35e37 100644
--- a/dts/bindings/lora/semtech,sx1276.yaml
+++ b/dts/bindings/lora/semtech,sx1276.yaml
@@ -1,74 +1,8 @@
-# Copyright (c) 2019, Manivannan Sadhasivam
-# Copyright (c) 2020, Grinn
+# Copyright (c) 2021, Ilya Tagunov
 # SPDX-License-Identifier: Apache-2.0
 
 description: Semtech SX1276 LoRa Modem
 
 compatible: "semtech,sx1276"
 
-include: spi-device.yaml
-
-properties:
-    reset-gpios:
-      type: phandle-array
-      required: true
-      description: |
-        GPIO connected to the sensor NRST signal.
-
-        This signal is open-drain, active-low as interpreted by the
-        modem.
-
-    dio-gpios:
-      type: phandle-array
-      required: true
-      description: |
-        Up to six pins that produce service interrupts from the modem.
-
-        These signals are normally active-high.
-
-    power-amplifier-output:
-      type: string
-      required: false
-      description: |
-        Selects power amplifier output pin. This is required when neither
-        'rfo-enable-gpios' nor 'pa-boost-enable-gpios' is specified. In other
-        case this property is simply ignored.
-      enum:
-         - "rfo"
-         - "pa-boost"
-
-    antenna-enable-gpios:
-      type: phandle-array
-      required: false
-      description: |
-        Antenna power enable pin.
-
-    rfi-enable-gpios:
-      type: phandle-array
-      required: false
-      description: |
-        RFI antenna input enable pin.
-
-    rfo-enable-gpios:
-      type: phandle-array
-      required: false
-      description: |
-        RFO antenna output enable pin.
-
-    pa-boost-enable-gpios:
-      type: phandle-array
-      required: false
-      description: |
-        PA_BOOST antenna output enable pin.
-
-    tcxo-power-gpios:
-      type: phandle-array
-      required: false
-      description: |
-        TCXO power enable pin.
-
-    tcxo-power-startup-delay-ms:
-      type: int
-      required: false
-      description: |
-        Delay which has to be applied after enabling TCXO power.
+include: semtech,sx127x-base.yaml
diff --git a/dts/bindings/lora/semtech,sx127x-base.yaml b/dts/bindings/lora/semtech,sx127x-base.yaml
new file mode 100644
index 0000000..19adb36
--- /dev/null
+++ b/dts/bindings/lora/semtech,sx127x-base.yaml
@@ -0,0 +1,70 @@
+# Copyright (c) 2019, Manivannan Sadhasivam
+# Copyright (c) 2020, Grinn
+# SPDX-License-Identifier: Apache-2.0
+
+include: spi-device.yaml
+
+properties:
+    reset-gpios:
+      type: phandle-array
+      required: true
+      description: |
+        GPIO connected to the modem's RESET/NRESET signal.
+
+        This signal is open-drain, active-high (SX1272/3) or
+        active-low (SX1276/7/8/9) as interpreted by the modem.
+
+    dio-gpios:
+      type: phandle-array
+      required: true
+      description: |
+        Up to six pins that produce service interrupts from the modem.
+
+        These signals are normally active-high.
+
+    power-amplifier-output:
+      type: string
+      required: false
+      description: |
+        Selects power amplifier output pin. This is required when neither
+        'rfo-enable-gpios' nor 'pa-boost-enable-gpios' is specified. In other
+        case this property is simply ignored.
+      enum:
+         - "rfo"
+         - "pa-boost"
+
+    antenna-enable-gpios:
+      type: phandle-array
+      required: false
+      description: |
+        Antenna power enable pin.
+
+    rfi-enable-gpios:
+      type: phandle-array
+      required: false
+      description: |
+        RFI antenna input enable pin.
+
+    rfo-enable-gpios:
+      type: phandle-array
+      required: false
+      description: |
+        RFO antenna output enable pin.
+
+    pa-boost-enable-gpios:
+      type: phandle-array
+      required: false
+      description: |
+        PA_BOOST antenna output enable pin.
+
+    tcxo-power-gpios:
+      type: phandle-array
+      required: false
+      description: |
+        TCXO power enable pin.
+
+    tcxo-power-startup-delay-ms:
+      type: int
+      required: false
+      description: |
+        Delay which has to be applied after enabling TCXO power.