Skip to content

Commit c027d18

Browse files
facchinmpillo79
authored andcommitted
portenta_c33: enable qspi and i2c_over_sci3
1 parent 36a6955 commit c027d18

File tree

2 files changed

+97
-0
lines changed

2 files changed

+97
-0
lines changed

boards/arduino/portenta_c33/arduino_portenta_c33-pinctrl.dtsi

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,15 @@
5454
};
5555
};
5656

57+
sci3_i2c_default: sci3_i2c_default {
58+
group1 {
59+
/* sda scl */
60+
psels = <RA_PSEL(RA_PSEL_SCI_3, 3, 9)>,
61+
<RA_PSEL(RA_PSEL_SCI_3, 3, 10)>;
62+
bias-pull-up;
63+
};
64+
};
65+
5766
iic1_default: iic1_default {
5867
group1 {
5968
/* SCL1 SDA1 */
@@ -90,6 +99,18 @@
9099
};
91100
};
92101

102+
qspi_default: qspi_default {
103+
group1 {
104+
/* QSPICLK QSSL QIO0 QIO1 QIO2 QIO3 */
105+
psels = <RA_PSEL(RA_PSEL_QSPI, 3, 5)>,
106+
<RA_PSEL(RA_PSEL_QSPI, 3, 6)>,
107+
<RA_PSEL(RA_PSEL_QSPI, 3, 7)>,
108+
<RA_PSEL(RA_PSEL_QSPI, 3, 8)>,
109+
<RA_PSEL(RA_PSEL_QSPI, 2, 9)>,
110+
<RA_PSEL(RA_PSEL_QSPI, 2, 8)>;
111+
};
112+
};
113+
93114
adc0_default: adc0_default {
94115
group1 {
95116
/* input */

boards/arduino/portenta_c33/arduino_portenta_c33.dts

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,82 @@
107107
status = "disabled";
108108
};
109109

110+
&qspi0 {
111+
pinctrl-0 = <&qspi_default>;
112+
pinctrl-names = "default";
113+
status = "okay";
114+
at25sf128a: qspi-nor-flash@60000000 {
115+
compatible = "renesas,ra-qspi-nor";
116+
reg = <0x60000000 DT_SIZE_M(16)>;
117+
status = "okay";
118+
write-block-size = <1>;
119+
erase-block-size = <4096>;
120+
};
121+
};
122+
123+
&sci3 {
124+
pinctrl-0 = <&sci3_i2c_default>;
125+
pinctrl-names = "default";
126+
status = "okay";
127+
128+
i2c3: i2c {
129+
compatible = "renesas,ra-i2c-sci";
130+
channel = <3>;
131+
#address-cells = <1>;
132+
#size-cells = <0>;
133+
clock-frequency = <DT_FREQ_K(400)>;
134+
status = "okay";
135+
136+
pf1550: pmic@8 {
137+
status = "okay";
138+
reg = <0x8>;
139+
compatible = "nxp,pf1550";
140+
141+
pmic_regulators: regulators {
142+
status = "okay";
143+
compatible = "nxp,pf1550-regulator";
144+
pf1550_sw1: BUCK1 {
145+
regulator-init-microvolt = <3300000>;
146+
regulator-boot-on;
147+
};
148+
pf1550_sw2: BUCK2 {
149+
regulator-init-microvolt = <3300000>;
150+
regulator-boot-on;
151+
};
152+
pf1550_sw3: BUCK3 {
153+
regulator-init-microvolt = <3300000>;
154+
regulator-init-microamp = <2000000>;
155+
regulator-boot-on;
156+
};
157+
pf1550_ldo1: LDO1 {
158+
regulator-init-microvolt = <3300000>;
159+
regulator-boot-on;
160+
};
161+
pf1550_ldo2: LDO2 {
162+
regulator-init-microvolt = <3300000>;
163+
regulator-boot-on;
164+
};
165+
pf1550_ldo3: LDO3 {
166+
regulator-init-microvolt = <1200000>;
167+
regulator-boot-on;
168+
};
169+
};
170+
171+
pmic_charger: charger {
172+
status = "okay";
173+
compatible = "nxp,pf1550-charger";
174+
constant-charge-current-max-microamp = <100000>;
175+
constant-charge-voltage-max-microvolt = <4200000>;
176+
pf1550,int-gpios = <&ioport9 6 0>;
177+
pf1550,led-behaviour = "on-in-charging-flash-in-fault";
178+
pf1550,system-voltage-min-threshold-microvolt = <3500000>;
179+
pf1550,thermistor-monitoring-mode = "thermistor";
180+
pf1550,vbus-current-limit-microamp = <1500000>;
181+
};
182+
};
183+
};
184+
};
185+
110186
&iic0 {
111187
status = "okay";
112188
#address-cells = <1>;

0 commit comments

Comments
 (0)