Skip to contentSkip to conversation

ARM: dts: at91: sama5d2: Name the qspi clock

PATCH Applied Tudor Ambarus 2 participants 2 messages Dec 9, 2021 – Dec 13, 2021 Device tree bindings

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: at91: sama5d2: Name the qspi clock

Naming clocks is a good practice. The atmel-quadspi driver supports an unnamed clock for the peripheral clock in order to be backward compatible with old DTs, but it is recommended to name the clocks on new DTs. The driver's bindings file requires the clock-names property, so name the clock.

---
 arch/arm/boot/dts/sama5d2.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/boot/dts/sama5d2.dtsi +2 -0
index 801969c113d6..09c741e8ecb8 100644
@@ -288,6 +288,7 @@ qspi0: spi@f0020000 {
 				reg-names = "qspi_base", "qspi_mmap";
 				interrupts = <52 IRQ_TYPE_LEVEL_HIGH 7>;
 				clocks = <&pmc PMC_TYPE_PERIPHERAL 52>;
+				clock-names = "pclk";
 				#address-cells = <1>;
 				#size-cells = <0>;
 				status = "disabled";
@@ -299,6 +300,7 @@ qspi1: spi@f0024000 {
 				reg-names = "qspi_base", "qspi_mmap";
 				interrupts = <53 IRQ_TYPE_LEVEL_HIGH 7>;
 				clocks = <&pmc PMC_TYPE_PERIPHERAL 53>;
+				clock-names = "pclk";
 				#address-cells = <1>;
 				#size-cells = <0>;
 				status = "disabled";
Signature · 1 line
2.25.1
Acked-by on v1 1/1 Applied
#1 lore raw
Quoted 7 lines · Tudor Ambarus

Naming clocks is a good practice. The atmel-quadspi driver supports an unnamed clock for the peripheral clock in order to be backward compatible with old DTs, but it is recommended to name the clocks on new DTs. The driver's bindings file requires the clock-names property, so name the clock.

Queued in at91-dt branch for 5.17.
Best regards,
Nicolas

Quoted 25 lines
---
  arch/arm/boot/dts/sama5d2.dtsi | 2 ++
  1 file changed, 2 insertions(+)
arch/arm/boot/dts/sama5d2.dtsi +2 -0
index 801969c113d6..09c741e8ecb8 100644
@@ -288,6 +288,7 @@ qspi0: spi@f0020000 {
  				reg-names = "qspi_base", "qspi_mmap";
  				interrupts = <52 IRQ_TYPE_LEVEL_HIGH 7>;
  				clocks = <&pmc PMC_TYPE_PERIPHERAL 52>;
+				clock-names = "pclk";
  				#address-cells = <1>;
  				#size-cells = <0>;
  				status = "disabled";
@@ -299,6 +300,7 @@ qspi1: spi@f0024000 {
  				reg-names = "qspi_base", "qspi_mmap";
  				interrupts = <53 IRQ_TYPE_LEVEL_HIGH 7>;
  				clocks = <&pmc PMC_TYPE_PERIPHERAL 53>;
+				clock-names = "pclk";
  				#address-cells = <1>;
  				#size-cells = <0>;
  				status = "disabled";
Signature · 1 line
Nicolas Ferre