Skip to content

Commit 1e1ce25

Browse files
committed
Merge tag 'v6.16-rockchip-dts32-2' of https://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip into soc/dt
RK3036 usbphy addition and two Sonoff iHost adjustments. * tag 'v6.16-rockchip-dts32-2' of https://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip: ARM: dts: rockchip: add rk3036 usb2phy nodes and enable them on kylin ARM: dts: rockchip: Sonoff-iHost: correct IO domain voltages ARM: dts: rockchip: Sonoff-iHost: adjust SDIO for stability Link: https://lore.kernel.org/r/3652020.5fSG56mABF@phil Signed-off-by: Arnd Bergmann <[email protected]>
2 parents f9930ae + 9e01073 commit 1e1ce25

File tree

3 files changed

+53
-8
lines changed

3 files changed

+53
-8
lines changed

arch/arm/boot/dts/rockchip/rk3036-kylin.dts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,18 @@
388388
status = "okay";
389389
};
390390

391+
&usb2phy {
392+
status = "okay";
393+
};
394+
395+
&usb2phy_host {
396+
status = "okay";
397+
};
398+
399+
&usb2phy_otg {
400+
status = "okay";
401+
};
402+
391403
&vop {
392404
status = "okay";
393405
};

arch/arm/boot/dts/rockchip/rk3036.dtsi

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,8 @@
213213
g-np-tx-fifo-size = <16>;
214214
g-rx-fifo-size = <275>;
215215
g-tx-fifo-size = <256 128 128 64 64 32>;
216+
phys = <&usb2phy_otg>;
217+
phy-names = "usb2-phy";
216218
status = "disabled";
217219
};
218220

@@ -224,6 +226,8 @@
224226
clocks = <&cru HCLK_OTG1>;
225227
clock-names = "otg";
226228
dr_mode = "host";
229+
phys = <&usb2phy_host>;
230+
phy-names = "usb2-phy";
227231
status = "disabled";
228232
};
229233

@@ -342,6 +346,37 @@
342346
grf: syscon@20008000 {
343347
compatible = "rockchip,rk3036-grf", "syscon", "simple-mfd";
344348
reg = <0x20008000 0x1000>;
349+
#address-cells = <1>;
350+
#size-cells = <1>;
351+
352+
usb2phy: usb2phy@17c {
353+
compatible = "rockchip,rk3036-usb2phy";
354+
reg = <0x017c 0x20>;
355+
clocks = <&cru SCLK_OTGPHY0>;
356+
clock-names = "phyclk";
357+
clock-output-names = "usb480m_phy";
358+
assigned-clocks = <&cru SCLK_USB480M>;
359+
assigned-clock-parents = <&usb2phy>;
360+
#clock-cells = <0>;
361+
status = "disabled";
362+
363+
usb2phy_host: host-port {
364+
interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
365+
interrupt-names = "linestate";
366+
#phy-cells = <0>;
367+
status = "disabled";
368+
};
369+
370+
usb2phy_otg: otg-port {
371+
interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>,
372+
<GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>,
373+
<GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
374+
interrupt-names = "otg-bvalid", "otg-id",
375+
"linestate";
376+
#phy-cells = <0>;
377+
status = "disabled";
378+
};
379+
};
345380

346381
power: power-controller {
347382
compatible = "rockchip,rk3036-power-controller";

arch/arm/boot/dts/rockchip/rv1126-sonoff-ihost.dtsi

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -323,15 +323,15 @@
323323
};
324324

325325
&pmu_io_domains {
326-
pmuio0-supply = <&vcc1v8_pmu>;
326+
pmuio0-supply = <&vcc3v3_sys>;
327327
pmuio1-supply = <&vcc3v3_sys>;
328328
vccio1-supply = <&vcc_1v8>;
329329
vccio2-supply = <&vccio_sd>;
330330
vccio3-supply = <&vcc3v3_sd>;
331-
vccio4-supply = <&vcc_dovdd>;
332-
vccio5-supply = <&vcc_1v8>;
333-
vccio6-supply = <&vcc_1v8>;
334-
vccio7-supply = <&vcc_dovdd>;
331+
vccio4-supply = <&vcc_3v3>;
332+
vccio5-supply = <&vcc_3v3>;
333+
vccio6-supply = <&vcc_3v3>;
334+
vccio7-supply = <&vcc_1v8>;
335335
status = "okay";
336336
};
337337

@@ -342,16 +342,14 @@
342342

343343
&sdio {
344344
bus-width = <4>;
345-
cap-sd-highspeed;
346345
cap-sdio-irq;
347346
keep-power-in-suspend;
348-
max-frequency = <50000000>;
347+
max-frequency = <25000000>;
349348
mmc-pwrseq = <&sdio_pwrseq>;
350349
non-removable;
351350
pinctrl-names = "default";
352351
pinctrl-0 = <&sdmmc1_clk &sdmmc1_cmd &sdmmc1_bus4>;
353352
rockchip,default-sample-phase = <90>;
354-
sd-uhs-sdr50;
355353
vmmc-supply = <&vcc3v3_sd>;
356354
vqmmc-supply = <&vcc_1v8>;
357355
status = "okay";

0 commit comments

Comments
 (0)