mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-01 06:39:05 +00:00

bootph-all as phase tag was added to dt-schema (dtschema/schemas/bootph.yaml) to describe various node usage during boot phases with DT. Add bootph-all for all nodes that are used in the bootloader on Renesas R-Car SoCs. All SoC require CPG clock and its input clock, RST Reset, PFC pin control and PRR ID register access during all stages of the boot process, those are marked using bootph-all property, and so is the SoC bus node which contains these IP. Each board console UART is also marked as bootph-all to make it available in all stages of the boot process. Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/20250209180616.160253-2-marek.vasut+renesas@mailbox.org Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
240 lines
3.9 KiB
Plaintext
240 lines
3.9 KiB
Plaintext
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
|
|
/*
|
|
* Device Tree Source for the R-Car S4 Starter Kit board
|
|
*
|
|
* Copyright (C) 2023 Renesas Electronics Corp.
|
|
*/
|
|
|
|
/dts-v1/;
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
#include "r8a779f4.dtsi"
|
|
|
|
/ {
|
|
model = "R-Car S4 Starter Kit board";
|
|
compatible = "renesas,s4sk", "renesas,r8a779f4", "renesas,r8a779f0";
|
|
|
|
aliases {
|
|
i2c0 = &i2c0;
|
|
i2c1 = &i2c1;
|
|
i2c2 = &i2c2;
|
|
i2c3 = &i2c3;
|
|
i2c4 = &i2c4;
|
|
i2c5 = &i2c5;
|
|
serial0 = &hscif0;
|
|
serial1 = &hscif1;
|
|
ethernet0 = &rswitch_port0;
|
|
ethernet1 = &rswitch_port1;
|
|
};
|
|
|
|
chosen {
|
|
bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
|
|
stdout-path = "serial0:921600n8";
|
|
};
|
|
|
|
memory@48000000 {
|
|
device_type = "memory";
|
|
/* first 128MB is reserved for secure area. */
|
|
/* The last 512MB is reserved for CR. */
|
|
reg = <0x0 0x48000000 0x0 0x58000000>;
|
|
};
|
|
|
|
memory@480000000 {
|
|
device_type = "memory";
|
|
reg = <0x4 0x80000000 0x0 0x80000000>;
|
|
};
|
|
|
|
vcc_sdhi: regulator-vcc-sdhi {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "SDHI Vcc";
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
gpio = <&gpio1 24 GPIO_ACTIVE_HIGH>;
|
|
enable-active-high;
|
|
};
|
|
};
|
|
|
|
ð_serdes {
|
|
status = "okay";
|
|
};
|
|
|
|
&extal_clk {
|
|
clock-frequency = <20000000>;
|
|
};
|
|
|
|
&extalr_clk {
|
|
clock-frequency = <32768>;
|
|
};
|
|
|
|
&hscif0 {
|
|
pinctrl-0 = <&hscif0_pins>;
|
|
pinctrl-names = "default";
|
|
bootph-all;
|
|
|
|
uart-has-rtscts;
|
|
status = "okay";
|
|
};
|
|
|
|
&hscif1 {
|
|
pinctrl-0 = <&hscif1_pins>;
|
|
pinctrl-names = "default";
|
|
|
|
uart-has-rtscts;
|
|
status = "okay";
|
|
};
|
|
|
|
&i2c2 {
|
|
pinctrl-0 = <&i2c2_pins>;
|
|
pinctrl-names = "default";
|
|
|
|
status = "okay";
|
|
clock-frequency = <400000>;
|
|
};
|
|
|
|
&i2c4 {
|
|
pinctrl-0 = <&i2c4_pins>;
|
|
pinctrl-names = "default";
|
|
|
|
status = "okay";
|
|
clock-frequency = <400000>;
|
|
};
|
|
|
|
&i2c5 {
|
|
pinctrl-0 = <&i2c5_pins>;
|
|
pinctrl-names = "default";
|
|
|
|
status = "okay";
|
|
clock-frequency = <400000>;
|
|
|
|
eeprom@50 {
|
|
compatible = "st,24c16", "atmel,24c16";
|
|
reg = <0x50>;
|
|
pagesize = <16>;
|
|
};
|
|
};
|
|
|
|
&mmc0 {
|
|
pinctrl-0 = <&sd_pins>;
|
|
pinctrl-names = "default";
|
|
|
|
vmmc-supply = <&vcc_sdhi>;
|
|
cd-gpios = <&gpio1 23 GPIO_ACTIVE_LOW>;
|
|
bus-width = <4>;
|
|
status = "okay";
|
|
};
|
|
|
|
&pfc {
|
|
pinctrl-0 = <&scif_clk_pins>;
|
|
pinctrl-names = "default";
|
|
|
|
hscif0_pins: hscif0 {
|
|
groups = "hscif0_data", "hscif0_ctrl";
|
|
function = "hscif0";
|
|
};
|
|
|
|
hscif1_pins: hscif1 {
|
|
groups = "hscif1_data", "hscif1_ctrl";
|
|
function = "hscif1";
|
|
};
|
|
|
|
i2c2_pins: i2c2 {
|
|
groups = "i2c2";
|
|
function = "i2c2";
|
|
};
|
|
|
|
i2c4_pins: i2c4 {
|
|
groups = "i2c4";
|
|
function = "i2c4";
|
|
};
|
|
|
|
i2c5_pins: i2c5 {
|
|
groups = "i2c5";
|
|
function = "i2c5";
|
|
};
|
|
|
|
scif_clk_pins: scif_clk {
|
|
groups = "scif_clk";
|
|
function = "scif_clk";
|
|
};
|
|
|
|
sd_pins: sd {
|
|
groups = "mmc_data4", "mmc_ctrl";
|
|
function = "mmc";
|
|
power-source = <3300>;
|
|
};
|
|
|
|
tsn0_pins: tsn0 {
|
|
groups = "tsn0_mdio_b", "tsn0_link_b";
|
|
function = "tsn0";
|
|
drive-strength = <18>;
|
|
power-source = <3300>;
|
|
};
|
|
|
|
tsn1_pins: tsn1 {
|
|
groups = "tsn1_mdio_b", "tsn1_link_b";
|
|
function = "tsn1";
|
|
drive-strength = <18>;
|
|
power-source = <3300>;
|
|
};
|
|
};
|
|
|
|
&rswitch {
|
|
pinctrl-0 = <&tsn0_pins>, <&tsn1_pins>;
|
|
pinctrl-names = "default";
|
|
status = "okay";
|
|
};
|
|
|
|
&rswitch_port0 {
|
|
reg = <0>;
|
|
phy-handle = <&ic99>;
|
|
phy-mode = "sgmii";
|
|
phys = <ð_serdes 0>;
|
|
status = "okay";
|
|
|
|
mdio {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
ic99: ethernet-phy@1 {
|
|
reg = <1>;
|
|
compatible = "ethernet-phy-ieee802.3-c45";
|
|
interrupts-extended = <&gpio3 10 IRQ_TYPE_LEVEL_LOW>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&rswitch_port1 {
|
|
reg = <1>;
|
|
phy-handle = <&ic102>;
|
|
phy-mode = "sgmii";
|
|
phys = <ð_serdes 1>;
|
|
status = "okay";
|
|
|
|
mdio {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
ic102: ethernet-phy@2 {
|
|
reg = <2>;
|
|
compatible = "ethernet-phy-ieee802.3-c45";
|
|
interrupts-extended = <&gpio3 11 IRQ_TYPE_LEVEL_LOW>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&rwdt {
|
|
timeout-sec = <60>;
|
|
status = "okay";
|
|
};
|
|
|
|
&scif_clk {
|
|
clock-frequency = <24000000>;
|
|
};
|
|
|
|
&ufs {
|
|
status = "okay";
|
|
};
|
|
|
|
&ufs30_clk {
|
|
clock-frequency = <38400000>;
|
|
};
|