Skip to content

Commit ffe6099

Browse files
soburifabiobaltieri
authored andcommitted
boards: arduino: uno_r4: Migrate to FSP
Update configuration for migrate to FSP Signed-off-by: TOKITA Hiroshi <[email protected]>
1 parent 6376ee1 commit ffe6099

File tree

3 files changed

+42
-12
lines changed

3 files changed

+42
-12
lines changed

boards/arduino/uno_r4/arduino_uno_r4_common.dtsi

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,30 @@
6464
clock-frequency = <48000000>;
6565
};
6666

67-
&cgc {
68-
clock-source = <&hoco>;
69-
iclk-div = <1>;
70-
pclka-div = <1>;
71-
pclkb-div = <2>;
72-
pclkc-div = <1>;
73-
pclkd-div = <1>;
74-
fclk-div = <2>;
67+
&pclkblock {
68+
clocks = <&hoco>;
69+
};
70+
71+
&iclk {
72+
div = <1>;
73+
};
74+
75+
&pclka {
76+
div = <1>;
77+
};
78+
79+
&pclkb {
80+
div = <2>;
81+
};
82+
83+
&pclkc {
84+
div = <1>;
85+
};
86+
87+
&pclkd {
88+
div = <1>;
89+
};
90+
91+
&fclk {
92+
div = <2>;
7593
};

boards/arduino/uno_r4/arduino_uno_r4_minima-pinctrl.dtsi

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,18 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
#include <zephyr/dt-bindings/pinctrl/renesas/pinctrl-r7fa4m1xxxxxx.h>
7+
#include <zephyr/dt-bindings/pinctrl/renesas/pinctrl-ra.h>
88

99
&pinctrl {
1010
sci2_default: sci2_default {
1111
group1 {
12-
pinmux = <P301_RXD2>, <P302_TXD2>;
12+
/* tx */
13+
psels = <RA_PSEL(RA_PSEL_SCI_2, 3, 2)>;
14+
drive-strength = "medium";
15+
};
16+
group2 {
17+
/* rx */
18+
psels = <RA_PSEL(RA_PSEL_SCI_2, 3, 1)>;
1319
};
1420
};
1521
};

boards/arduino/uno_r4/arduino_uno_r4_wifi-pinctrl.dtsi

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,18 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
#include <zephyr/dt-bindings/pinctrl/renesas/pinctrl-r7fa4m1xxxxxx.h>
7+
#include <zephyr/dt-bindings/pinctrl/renesas/pinctrl-ra.h>
88

99
&pinctrl {
1010
sci2_default: sci2_default {
1111
group1 {
12-
pinmux = <P301_RXD2>, <P302_TXD2>;
12+
/* tx */
13+
psels = <RA_PSEL(RA_PSEL_SCI_2, 3, 2)>;
14+
drive-strength = "medium";
15+
};
16+
group2 {
17+
/* rx */
18+
psels = <RA_PSEL(RA_PSEL_SCI_2, 3, 1)>;
1319
};
1420
};
1521
};

0 commit comments

Comments
 (0)