* [PATCH 1/2] ARM: dts: am335x-myirtech: Add an external clock oscillator for CPU RTC
@ 2022-04-27 8:19 Alexander Shiyan
2022-04-27 8:19 ` [PATCH 2/2] ARM: dts: am335x-myirtech: Update NAND default partition table layout Alexander Shiyan
2022-05-03 6:27 ` [PATCH 1/2] ARM: dts: am335x-myirtech: Add an external clock oscillator for CPU RTC Tony Lindgren
0 siblings, 2 replies; 3+ messages in thread
From: Alexander Shiyan @ 2022-04-27 8:19 UTC (permalink / raw)
To: linux-omap
Cc: devicetree, Benoît Cousson, Krzysztof Kozlowski,
Alexander Shiyan
The CPU RTC has an external crystal, so to keep time, let's define
it for devicetree.
Signed-off-by: Alexander Shiyan <eagle.alexander923@gmail.com>
---
arch/arm/boot/dts/am335x-myirtech-myc.dtsi | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/arch/arm/boot/dts/am335x-myirtech-myc.dtsi b/arch/arm/boot/dts/am335x-myirtech-myc.dtsi
index 245c35f41cdf..d94e096983c7 100644
--- a/arch/arm/boot/dts/am335x-myirtech-myc.dtsi
+++ b/arch/arm/boot/dts/am335x-myirtech-myc.dtsi
@@ -27,6 +27,13 @@ memory@80000000 {
reg = <0x80000000 0x10000000>;
};
+ clk32k: clk32k {
+ compatible = "fixed-clock";
+ clock-frequency = <32768>;
+
+ #clock-cells = <0>;
+ };
+
vdd_mod: vdd_mod_reg {
compatible = "regulator-fixed";
regulator-name = "vdd-mod";
@@ -149,6 +156,8 @@ eeprom: eeprom@50 {
};
&rtc {
+ clocks = <&clk32k>;
+ clock-names = "ext-clk";
system-power-controller;
};
--
2.32.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] ARM: dts: am335x-myirtech: Update NAND default partition table layout
2022-04-27 8:19 [PATCH 1/2] ARM: dts: am335x-myirtech: Add an external clock oscillator for CPU RTC Alexander Shiyan
@ 2022-04-27 8:19 ` Alexander Shiyan
2022-05-03 6:27 ` [PATCH 1/2] ARM: dts: am335x-myirtech: Add an external clock oscillator for CPU RTC Tony Lindgren
1 sibling, 0 replies; 3+ messages in thread
From: Alexander Shiyan @ 2022-04-27 8:19 UTC (permalink / raw)
To: linux-omap
Cc: devicetree, Benoît Cousson, Krzysztof Kozlowski,
Alexander Shiyan
This patch replaces the legacy partition table layout with a modern style.
As an additional change, we are reserving space for three backup MLO entries
and increasing space for the main bootloader.
Signed-off-by: Alexander Shiyan <eagle.alexander923@gmail.com>
---
arch/arm/boot/dts/am335x-myirtech-myc.dtsi | 3 ---
arch/arm/boot/dts/am335x-myirtech-myd.dts | 20 +++++++++++++-------
2 files changed, 13 insertions(+), 10 deletions(-)
diff --git a/arch/arm/boot/dts/am335x-myirtech-myc.dtsi b/arch/arm/boot/dts/am335x-myirtech-myc.dtsi
index d94e096983c7..6eea18b29355 100644
--- a/arch/arm/boot/dts/am335x-myirtech-myc.dtsi
+++ b/arch/arm/boot/dts/am335x-myirtech-myc.dtsi
@@ -131,9 +131,6 @@ nand0: nand@0,0 {
gpmc,wr-data-mux-bus-ns = <0>;
ti,elm-id = <&elm>;
ti,nand-ecc-opt = "bch8";
-
- #address-cells = <1>;
- #size-cells = <1>;
};
};
diff --git a/arch/arm/boot/dts/am335x-myirtech-myd.dts b/arch/arm/boot/dts/am335x-myirtech-myd.dts
index 1479fd95dec2..9d81d4cc6890 100644
--- a/arch/arm/boot/dts/am335x-myirtech-myd.dts
+++ b/arch/arm/boot/dts/am335x-myirtech-myd.dts
@@ -227,14 +227,20 @@ &mmc1 {
};
&nand0 {
- partition@0 {
- label = "MLO";
- reg = <0x00000 0x20000>;
- };
+ nand_parts: partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
- partition@20000 {
- label = "boot";
- reg = <0x20000 0x80000>;
+ partition@0 {
+ label = "MLO";
+ reg = <0x00000 0x20000>;
+ };
+
+ partition@80000 {
+ label = "boot";
+ reg = <0x80000 0x100000>;
+ };
};
};
--
2.32.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] ARM: dts: am335x-myirtech: Add an external clock oscillator for CPU RTC
2022-04-27 8:19 [PATCH 1/2] ARM: dts: am335x-myirtech: Add an external clock oscillator for CPU RTC Alexander Shiyan
2022-04-27 8:19 ` [PATCH 2/2] ARM: dts: am335x-myirtech: Update NAND default partition table layout Alexander Shiyan
@ 2022-05-03 6:27 ` Tony Lindgren
1 sibling, 0 replies; 3+ messages in thread
From: Tony Lindgren @ 2022-05-03 6:27 UTC (permalink / raw)
To: Alexander Shiyan
Cc: linux-omap, devicetree, Benoît Cousson, Krzysztof Kozlowski
* Alexander Shiyan <eagle.alexander923@gmail.com> [220427 11:16]:
> The CPU RTC has an external crystal, so to keep time, let's define
> it for devicetree.
I've applied both patches into omap-for-v5.19/dt thanks.
Tony
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-05-03 6:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-27 8:19 [PATCH 1/2] ARM: dts: am335x-myirtech: Add an external clock oscillator for CPU RTC Alexander Shiyan
2022-04-27 8:19 ` [PATCH 2/2] ARM: dts: am335x-myirtech: Update NAND default partition table layout Alexander Shiyan
2022-05-03 6:27 ` [PATCH 1/2] ARM: dts: am335x-myirtech: Add an external clock oscillator for CPU RTC Tony Lindgren
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.