[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1568037993-4646-1-git-send-email-eugen.hristev@microchip.com>
Date: Mon, 9 Sep 2019 14:12:25 +0000
From: <Eugen.Hristev@...rochip.com>
To: <Adham.Abozaeid@...rochip.com>, <Ajay.Kathat@...rochip.com>,
<gregkh@...uxfoundation.org>, <linux-wireless@...r.kernel.org>,
<devel@...verdev.osuosl.org>, <linux-kernel@...r.kernel.org>
CC: <Nicolas.Ferre@...rochip.com>, <Claudiu.Beznea@...rochip.com>,
<Eugen.Hristev@...rochip.com>
Subject: [PATCH v2 1/2] staging: dt-bindings: wilc1000: add optional rtc_clk
property
From: Eugen Hristev <eugen.hristev@...rochip.com>
Add bindings for optional rtc clock pin.
Signed-off-by: Eugen Hristev <eugen.hristev@...rochip.com>
Acked-by: Ajay Singh <ajay.kathat@...rochip.com>
---
Changes in v2:
- none
drivers/staging/wilc1000/microchip,wilc1000,sdio.txt | 8 +++++++-
drivers/staging/wilc1000/microchip,wilc1000,spi.txt | 8 ++++++++
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/drivers/staging/wilc1000/microchip,wilc1000,sdio.txt b/drivers/staging/wilc1000/microchip,wilc1000,sdio.txt
index 4f7d1c2..da52359 100644
--- a/drivers/staging/wilc1000/microchip,wilc1000,sdio.txt
+++ b/drivers/staging/wilc1000/microchip,wilc1000,sdio.txt
@@ -10,7 +10,9 @@ Required properties:
Optional:
- bus-width : Number of data lines wired up the slot. Default 1 bit.
-
+- rtc_clk : Clock connected on the rtc clock line. Must be assigned
+ a frequency with assigned-clocks property, and must be
+ connected to a clock provider.
Examples:
mmc1: mmc@...00000 {
@@ -24,6 +26,10 @@ mmc1: mmc@...00000 {
wilc_sdio@0 {
compatible = "microchip,wilc1000-sdio";
irq-gpios = <&pioC 27 0>;
+ clocks = <&pck1>;
+ clock-names = "rtc_clk";
+ assigned-clocks = <&pck1>;
+ assigned-clock-rates = <32768>;
status = "okay";
reg = <0>;
bus-width = <4>;
diff --git a/drivers/staging/wilc1000/microchip,wilc1000,spi.txt b/drivers/staging/wilc1000/microchip,wilc1000,spi.txt
index 87db87b..3423693 100644
--- a/drivers/staging/wilc1000/microchip,wilc1000,spi.txt
+++ b/drivers/staging/wilc1000/microchip,wilc1000,spi.txt
@@ -9,6 +9,10 @@ Required properties:
- reg : Chip select address of device
- irq-gpios : Connect to a host IRQ
+Optional:
+- rtc_clk : Clock connected on the rtc clock line. Must be assigned
+ a frequency with assigned-clocks property, and must be
+ connected to a clock provider.
Examples:
@@ -21,6 +25,10 @@ spi1: spi@...18000 {
spi-max-frequency = <48000000>;
reg = <0>;
irq-gpios = <&pioC 27 0>;
+ clocks = <&pck1>;
+ clock-names = "rtc_clk";
+ assigned-clocks = <&pck1>;
+ assigned-clock-rates = <32768>;
status = "okay";
};
};
--
2.7.4
Powered by blists - more mailing lists