mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
Mark the first 128 MiB of DRAM as reserved. The first 128 MiB of DRAM
may optionally be used by TFA and other firmware for its own purposes,
and in such case, Linux must not use this memory.
On this platform, U-Boot runs in EL3 and starts TFA BL31 and Linux from
a single combined fitImage. U-Boot has full access to all memory in the
0x40000000..0xbfffffff range, as well memory in the memory banks in the
64-bit address ranges, and therefore U-Boot patches this full complete
view of platform memory layout into the DT that is passed to the next
stage.
The next stage is TFA BL31 and then the Linux kernel. The TFA BL31 does
not modify the DT passed from U-Boot to TFA BL31 and then to Linux with
any new reserved-memory {} node to reserve memory areas used by the TFA
BL31 to prevent the next stage from using those areas, which lets Linux
to use all of the available DRAM as described in the DT that was passed
in by U-Boot, including the areas that are newly utilized by TFA BL31.
In case of high DRAM utilization, for example in case of four instances
of "memtester 3900M" running in parallel, unless the memory used by TFA
BL31 is properly reserved, Linux may use and corrupt the memory used by
TFA BL31, which would often lead to system becoming unresponsive.
Until TFA BL31 can properly fill its own reserved-memory node into the
DT, and to assure older versions of TFA BL31 do not cause problems, add
explicitly reserved-memory {} node which prevents Linux from using the
first 128 MiB of DRAM.
Note that TFA BL31 can be adjusted to use different memory areas, this
newly added reserved-memory {} node follows longer-term practice on the
R-Car SoCs where the first 128 MiB of DRAM is reserved for firmware use.
In case user does modify TFA BL31 to use different memory ranges, they
must either use a future version of TFA BL31 which properly patches a
reserved-memory {} node into the DT, or they must adjust the address
ranges of this reserved-memory {} node accordingly.
Fixes: a719915e76 ("arm64: dts: renesas: r8a779g3: Add Retronix R-Car V4H Sparrow Hawk board support")
Cc: stable@vger.kernel.org
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/20260324143342.17872-1-marek.vasut+renesas@mailbox.org
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
956 lines
18 KiB
Plaintext
956 lines
18 KiB
Plaintext
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
/*
|
|
* Device Tree Source for the R-Car V4H ES3.0 Sparrow Hawk board
|
|
*
|
|
* Copyright (C) 2025 Marek Vasut <marek.vasut+renesas@mailbox.org>
|
|
*/
|
|
/*
|
|
* DA7212 Codec settings
|
|
*
|
|
* for Playback
|
|
* > amixer set "Headphone" 40%
|
|
* > amixer set "Headphone" on
|
|
* > amixer set "Mixout Left DAC Left" on
|
|
* > amixer set "Mixout Right DAC Right" on
|
|
* > aplay xxx.wav
|
|
*
|
|
* for Capture (Aux/Mic)
|
|
*
|
|
* on/off (B)
|
|
* CONN3 (HeadSet) ---+----> MSIOF1
|
|
* |
|
|
* CONN4 AUX ---------+ on/off (A)
|
|
*
|
|
* > amixer set "Mixin PGA" on
|
|
* > amixer set "Mixin PGA" 50%
|
|
* > amixer set "ADC" on
|
|
* > amixer set "ADC" 80%
|
|
* > amixer set "Aux" on ^
|
|
* > amixer set "Aux" 80% | (A)
|
|
* > amixer set "Mixin Left Aux Left" on |
|
|
* > amixer set "Mixin Right Aux Right" on v
|
|
* > amixer set "Mic 1" on ^
|
|
* > amixer set "Mic 1" 80% | (B)
|
|
* > amixer set "Mixin Left Mic 1" on |
|
|
* > amixer set "Mixin Right Mic 1" on v
|
|
* > arecord -f cd xxx.wav
|
|
*/
|
|
|
|
/dts-v1/;
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
#include <dt-bindings/thermal/thermal.h>
|
|
|
|
#include "r8a779g3.dtsi"
|
|
|
|
/ {
|
|
model = "Retronix Sparrow Hawk board based on r8a779g3";
|
|
compatible = "retronix,sparrow-hawk", "renesas,r8a779g3",
|
|
"renesas,r8a779g0";
|
|
|
|
aliases {
|
|
ethernet0 = &avb0;
|
|
i2c0 = &i2c0;
|
|
i2c1 = &i2c1;
|
|
i2c2 = &i2c2;
|
|
i2c3 = &i2c3;
|
|
i2c4 = &i2c4;
|
|
i2c5 = &i2c5;
|
|
serial0 = &hscif0;
|
|
serial1 = &hscif1;
|
|
serial2 = &hscif3;
|
|
spi0 = &rpc;
|
|
};
|
|
|
|
chosen {
|
|
bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
|
|
stdout-path = "serial0:921600n8";
|
|
};
|
|
|
|
/* Page 31 / FAN */
|
|
fan: pwm-fan {
|
|
pinctrl-0 = <&irq4_pins>;
|
|
pinctrl-names = "default";
|
|
compatible = "pwm-fan";
|
|
#cooling-cells = <2>;
|
|
interrupts-extended = <&intc_ex 4 IRQ_TYPE_EDGE_FALLING>;
|
|
/*
|
|
* The fan model connected to this device can be selected
|
|
* by user. Set "cooling-levels" DT property to single 255
|
|
* entry to force the fan PWM into constant HIGH, which
|
|
* forces the fan to spin at maximum RPM, thus providing
|
|
* maximum cooling to this device and protection against
|
|
* misconfigured PWM duty cycle to the fan.
|
|
*
|
|
* User has to configure "pwms" and "pulses-per-revolution"
|
|
* DT properties according to fan datasheet first, and then
|
|
* extend "cooling-levels = <0 m n ... 255>" property to
|
|
* achieve proper fan control compatible with fan model
|
|
* installed by user.
|
|
*/
|
|
cooling-levels = <255>;
|
|
pulses-per-revolution = <2>;
|
|
pwms = <&pwm0 0 50000>;
|
|
};
|
|
|
|
/*
|
|
* Page 15 / LPDDR5
|
|
*
|
|
* This configuration listed below is for the 8 GiB board variant
|
|
* with MT62F1G64D8EK-023 WT:C LPDDR5 part populated on the board.
|
|
*
|
|
* A variant with 16 GiB MT62F2G64D8EK-023 WT:C part populated on
|
|
* the board is automatically handled by the bootloader, which
|
|
* adjusts the correct DRAM size into the memory nodes below.
|
|
*/
|
|
memory@48000000 {
|
|
device_type = "memory";
|
|
/* first 128MB is reserved for secure area. */
|
|
reg = <0x0 0x48000000 0x0 0x78000000>;
|
|
};
|
|
|
|
memory@480000000 {
|
|
device_type = "memory";
|
|
reg = <0x4 0x80000000 0x0 0x80000000>;
|
|
};
|
|
|
|
memory@600000000 {
|
|
device_type = "memory";
|
|
reg = <0x6 0x00000000 0x1 0x00000000>;
|
|
};
|
|
|
|
reserved-memory {
|
|
#address-cells = <2>;
|
|
#size-cells = <2>;
|
|
ranges;
|
|
|
|
tfa@40000000 {
|
|
reg = <0x0 0x40000000 0x0 0x8000000>;
|
|
no-map;
|
|
};
|
|
};
|
|
|
|
/* Page 27 / DSI to Display */
|
|
dp-con {
|
|
compatible = "dp-connector";
|
|
label = "CN6";
|
|
type = "full-size";
|
|
|
|
port {
|
|
dp_con_in: endpoint {
|
|
remote-endpoint = <&sn65dsi86_out>;
|
|
};
|
|
};
|
|
};
|
|
|
|
/* Page 26 / PCIe.0/1 CLK */
|
|
pcie_refclk: clk-x8 {
|
|
compatible = "fixed-clock";
|
|
#clock-cells = <0>;
|
|
clock-frequency = <25000000>;
|
|
};
|
|
|
|
reg_1p2v: regulator-1p2v {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "fixed-1.2V";
|
|
regulator-min-microvolt = <1200000>;
|
|
regulator-max-microvolt = <1200000>;
|
|
regulator-boot-on;
|
|
regulator-always-on;
|
|
};
|
|
|
|
reg_1p8v: regulator-1p8v {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "fixed-1.8V";
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
regulator-boot-on;
|
|
regulator-always-on;
|
|
};
|
|
|
|
reg_3p3v: regulator-3p3v {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "fixed-3.3V";
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
regulator-boot-on;
|
|
regulator-always-on;
|
|
};
|
|
|
|
/* Page 27 / DSI to Display */
|
|
sn65dsi86_refclk: clk-x9 {
|
|
compatible = "fixed-clock";
|
|
#clock-cells = <0>;
|
|
clock-frequency = <38400000>;
|
|
};
|
|
|
|
/* Page 30 / Audio_Codec */
|
|
sound_card: sound {
|
|
compatible = "audio-graph-card2";
|
|
links = <&msiof1_snd>;
|
|
};
|
|
|
|
/* Page 17 uSD-Slot */
|
|
vcc_sdhi: regulator-vcc-sdhi {
|
|
compatible = "regulator-gpio";
|
|
regulator-name = "SDHI VccQ";
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
gpios = <&gpio8 13 GPIO_ACTIVE_HIGH>;
|
|
gpios-states = <1>;
|
|
states = <1800000 0>, <3300000 1>;
|
|
};
|
|
};
|
|
|
|
/* Use thermal-idle cooling for all SoC cores */
|
|
&a76_0 {
|
|
#cooling-cells = <2>;
|
|
|
|
a76_0_thermal_idle: thermal-idle {
|
|
#cooling-cells = <2>;
|
|
duration-us = <10000>;
|
|
exit-latency-us = <500>;
|
|
};
|
|
};
|
|
|
|
&a76_1 {
|
|
a76_1_thermal_idle: thermal-idle {
|
|
#cooling-cells = <2>;
|
|
duration-us = <10000>;
|
|
exit-latency-us = <500>;
|
|
};
|
|
};
|
|
|
|
&a76_2 {
|
|
a76_2_thermal_idle: thermal-idle {
|
|
#cooling-cells = <2>;
|
|
duration-us = <10000>;
|
|
exit-latency-us = <500>;
|
|
};
|
|
};
|
|
|
|
&a76_3 {
|
|
a76_3_thermal_idle: thermal-idle {
|
|
#cooling-cells = <2>;
|
|
duration-us = <10000>;
|
|
exit-latency-us = <500>;
|
|
};
|
|
};
|
|
|
|
&audio_clkin {
|
|
clock-frequency = <24576000>;
|
|
};
|
|
|
|
/* Page 22 / Ether_AVB0 */
|
|
&avb0 {
|
|
pinctrl-0 = <&avb0_pins>;
|
|
pinctrl-names = "default";
|
|
phy-handle = <&avb0_phy>;
|
|
tx-internal-delay-ps = <2000>;
|
|
status = "okay";
|
|
|
|
mdio {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
avb0_phy: ethernet-phy@0 { /* KSZ9031RNXVB */
|
|
compatible = "ethernet-phy-id0022.1622",
|
|
"ethernet-phy-ieee802.3-c22";
|
|
rxc-skew-ps = <1500>;
|
|
reg = <0>;
|
|
/* AVB0_PHY_INT_V */
|
|
interrupts-extended = <&gpio7 5 IRQ_TYPE_LEVEL_LOW>;
|
|
/* GP7_10/AVB0_RESETN_V */
|
|
reset-gpios = <&gpio7 10 GPIO_ACTIVE_LOW>;
|
|
reset-assert-us = <10000>;
|
|
reset-deassert-us = <300>;
|
|
};
|
|
};
|
|
};
|
|
|
|
/* Page 28 / CANFD_IF */
|
|
&can_clk {
|
|
clock-frequency = <40000000>;
|
|
};
|
|
|
|
/* Page 28 / CANFD_IF */
|
|
&canfd {
|
|
pinctrl-0 = <&canfd3_pins>, <&canfd4_pins>, <&can_clk_pins>;
|
|
pinctrl-names = "default";
|
|
|
|
status = "okay";
|
|
|
|
channel3 {
|
|
status = "okay";
|
|
};
|
|
|
|
channel4 {
|
|
status = "okay";
|
|
};
|
|
};
|
|
|
|
/* Page 27 / DSI to Display */
|
|
&dsi1 {
|
|
status = "okay";
|
|
|
|
ports {
|
|
port@1 {
|
|
dsi1_out: endpoint {
|
|
remote-endpoint = <&sn65dsi86_in>;
|
|
data-lanes = <1 2 3 4>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
/* Page 27 / DSI to Display */
|
|
&du {
|
|
status = "okay";
|
|
};
|
|
|
|
/* Page 5 / R-Car V4H_INT_I2C */
|
|
&extal_clk { /* X3 */
|
|
clock-frequency = <16666666>;
|
|
};
|
|
|
|
/* Page 5 / R-Car V4H_INT_I2C */
|
|
&extalr_clk { /* X2 */
|
|
clock-frequency = <32768>;
|
|
};
|
|
|
|
/* Page 26 / 2230 Key M M.2 */
|
|
&gpio4 {
|
|
/* 9FGV0441 nOE inputs 0 and 1 */
|
|
pcie-m2-oe-hog {
|
|
gpio-hog;
|
|
gpios = <21 GPIO_ACTIVE_HIGH>;
|
|
output-low;
|
|
line-name = "PCIe-CLK-nOE-M2";
|
|
};
|
|
|
|
/* 9FGV0441 nOE inputs 2 and 3 */
|
|
pcie-usb-oe-hog {
|
|
gpio-hog;
|
|
gpios = <22 GPIO_ACTIVE_HIGH>;
|
|
output-low;
|
|
line-name = "PCIe-CLK-nOE-USB";
|
|
};
|
|
};
|
|
|
|
/* Page 23 / DEBUG */
|
|
&hscif0 { /* FTDI ADBUS[3:0] */
|
|
pinctrl-0 = <&hscif0_pins>;
|
|
pinctrl-names = "default";
|
|
uart-has-rtscts;
|
|
bootph-all;
|
|
|
|
status = "okay";
|
|
};
|
|
|
|
/* Page 23 / DEBUG */
|
|
&hscif1 { /* FTDI BDBUS[3:0] */
|
|
pinctrl-0 = <&hscif1_pins>;
|
|
pinctrl-names = "default";
|
|
uart-has-rtscts;
|
|
|
|
status = "okay";
|
|
};
|
|
|
|
/* Page 24 / UART */
|
|
&hscif3 { /* CN7 pins 8 (TX) and 10 (RX) */
|
|
pinctrl-0 = <&hscif3_pins>;
|
|
pinctrl-names = "default";
|
|
|
|
status = "okay";
|
|
};
|
|
|
|
/* Page 24 / I2C SWITCH */
|
|
&i2c0 {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
pinctrl-0 = <&i2c0_pins>;
|
|
pinctrl-names = "default";
|
|
clock-frequency = <400000>;
|
|
status = "okay";
|
|
|
|
mux@71 {
|
|
compatible = "nxp,pca9544"; /* TCA9544 */
|
|
reg = <0x71>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
vdd-supply = <®_3p3v>;
|
|
|
|
i2c0_mux0: i2c@0 {
|
|
reg = <0>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
/* Page 27 / DSI to Display */
|
|
bridge@2c {
|
|
pinctrl-0 = <&irq0_pins>;
|
|
pinctrl-names = "default";
|
|
|
|
compatible = "ti,sn65dsi86";
|
|
reg = <0x2c>;
|
|
|
|
clocks = <&sn65dsi86_refclk>;
|
|
clock-names = "refclk";
|
|
|
|
interrupts-extended = <&intc_ex 0 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
enable-gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;
|
|
|
|
vccio-supply = <®_1p8v>;
|
|
vpll-supply = <®_1p8v>;
|
|
vcca-supply = <®_1p2v>;
|
|
vcc-supply = <®_1p2v>;
|
|
|
|
ports {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
port@0 {
|
|
reg = <0>;
|
|
sn65dsi86_in: endpoint {
|
|
remote-endpoint = <&dsi1_out>;
|
|
};
|
|
};
|
|
|
|
port@1 {
|
|
reg = <1>;
|
|
sn65dsi86_out: endpoint {
|
|
remote-endpoint = <&dp_con_in>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
i2c0_mux1: i2c@1 {
|
|
reg = <1>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
/* Page 30 / Audio_Codec */
|
|
codec@1a {
|
|
compatible = "dlg,da7212";
|
|
|
|
#sound-dai-cells = <0>;
|
|
reg = <0x1a>;
|
|
|
|
clocks = <&rcar_sound>;
|
|
clock-names = "mclk";
|
|
|
|
VDDA-supply = <®_1p8v>;
|
|
VDDMIC-supply = <®_3p3v>;
|
|
VDDIO-supply = <®_3p3v>;
|
|
|
|
port {
|
|
da7212_endpoint: endpoint {
|
|
bitclock-master;
|
|
frame-master;
|
|
remote-endpoint = <&msiof1_snd_endpoint>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
i2c0_mux2: i2c@2 {
|
|
reg = <2>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
/* Page 26 / PCIe.0/1 CLK */
|
|
pcie_clk: clk@68 {
|
|
compatible = "renesas,9fgv0441";
|
|
reg = <0x68>;
|
|
clocks = <&pcie_refclk>;
|
|
#clock-cells = <1>;
|
|
};
|
|
};
|
|
|
|
i2c0_mux3: i2c@3 {
|
|
reg = <3>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
};
|
|
};
|
|
};
|
|
|
|
/* Page 29 / CSI_IF_CN / CAM_CN0 */
|
|
&i2c1 {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
pinctrl-0 = <&i2c1_pins>;
|
|
pinctrl-names = "default";
|
|
};
|
|
|
|
/* Page 29 / CSI_IF_CN / CAM_CN1 */
|
|
&i2c2 {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
pinctrl-0 = <&i2c2_pins>;
|
|
pinctrl-names = "default";
|
|
};
|
|
|
|
/* Page 31 / IO_CN */
|
|
&i2c3 {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
pinctrl-0 = <&i2c3_pins>;
|
|
pinctrl-names = "default";
|
|
};
|
|
|
|
/* Page 31 / IO_CN */
|
|
&i2c4 {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
pinctrl-0 = <&i2c4_pins>;
|
|
pinctrl-names = "default";
|
|
};
|
|
|
|
/* Page 18 / POWER_CORE and Page 19 / POWER_PMIC */
|
|
&i2c5 {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
pinctrl-0 = <&i2c5_pins>;
|
|
pinctrl-names = "default";
|
|
};
|
|
|
|
/* Page 17 uSD-Slot */
|
|
&mmc0 {
|
|
pinctrl-0 = <&sd_pins>;
|
|
pinctrl-1 = <&sd_uhs_pins>;
|
|
pinctrl-names = "default", "state_uhs";
|
|
bus-width = <4>;
|
|
cd-gpios = <&gpio3 11 GPIO_ACTIVE_LOW>; /* SD_CD */
|
|
sd-uhs-sdr50;
|
|
sd-uhs-sdr104;
|
|
vmmc-supply = <®_3p3v>;
|
|
vqmmc-supply = <&vcc_sdhi>;
|
|
status = "okay";
|
|
};
|
|
|
|
&msiof1 {
|
|
pinctrl-0 = <&msiof1_pins>;
|
|
pinctrl-names = "default";
|
|
|
|
status = "okay";
|
|
|
|
/* ignore DT warning */
|
|
/delete-property/#address-cells;
|
|
/delete-property/#size-cells;
|
|
|
|
msiof1_snd: port {
|
|
msiof1_snd_endpoint: endpoint {
|
|
remote-endpoint = <&da7212_endpoint>;
|
|
};
|
|
};
|
|
};
|
|
|
|
/* Page 26 / 2230 Key M M.2 */
|
|
&pcie0_clkref {
|
|
status = "disabled";
|
|
};
|
|
|
|
&pciec0 {
|
|
clocks = <&cpg CPG_MOD 624>, <&pcie_clk 0>;
|
|
reset-gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
|
|
status = "okay";
|
|
};
|
|
|
|
&pciec0_rp {
|
|
clocks = <&pcie_clk 1>;
|
|
vpcie3v3-supply = <®_3p3v>;
|
|
};
|
|
|
|
/* Page 25 / PCIe to USB */
|
|
&pcie1_clkref {
|
|
status = "disabled";
|
|
};
|
|
|
|
&pciec1 {
|
|
clocks = <&cpg CPG_MOD 625>, <&pcie_clk 2>;
|
|
/* uPD720201 is PCIe Gen2 x1 device */
|
|
num-lanes = <1>;
|
|
reset-gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
|
|
status = "okay";
|
|
};
|
|
|
|
&pciec1_rp {
|
|
clocks = <&pcie_clk 3>;
|
|
vpcie3v3-supply = <®_3p3v>;
|
|
};
|
|
|
|
&pfc {
|
|
pinctrl-0 = <&scif_clk_pins>;
|
|
pinctrl-names = "default";
|
|
|
|
/* Page 22 / Ether_AVB0 */
|
|
avb0_pins: avb0 {
|
|
mux {
|
|
groups = "avb0_link", "avb0_mdio", "avb0_rgmii",
|
|
"avb0_txcrefclk";
|
|
function = "avb0";
|
|
};
|
|
|
|
pins-mdio {
|
|
groups = "avb0_mdio";
|
|
drive-strength = <21>;
|
|
};
|
|
|
|
pins-mii {
|
|
groups = "avb0_rgmii";
|
|
drive-strength = <21>;
|
|
};
|
|
|
|
pins-vddq18-25-avb {
|
|
pins = "PIN_VDDQ_AVB0", "PIN_VDDQ_AVB1", "PIN_VDDQ_AVB2", "PIN_VDDQ_TSN0";
|
|
power-source = <1800>;
|
|
};
|
|
};
|
|
|
|
/* Page 28 / CANFD_IF */
|
|
can_clk_pins: can-clk {
|
|
groups = "can_clk";
|
|
function = "can_clk";
|
|
};
|
|
|
|
/* Page 28 / CANFD_IF */
|
|
canfd3_pins: canfd3 {
|
|
groups = "canfd3_data";
|
|
function = "canfd3";
|
|
};
|
|
|
|
/* Page 28 / CANFD_IF */
|
|
canfd4_pins: canfd4 {
|
|
groups = "canfd4_data";
|
|
function = "canfd4";
|
|
};
|
|
|
|
/* Page 23 / DEBUG */
|
|
hscif0_pins: hscif0 {
|
|
groups = "hscif0_data", "hscif0_ctrl";
|
|
function = "hscif0";
|
|
};
|
|
|
|
/* Page 23 / DEBUG */
|
|
hscif1_pins: hscif1 {
|
|
groups = "hscif1_data_a", "hscif1_ctrl_a";
|
|
function = "hscif1";
|
|
};
|
|
|
|
/* Page 24 / UART */
|
|
hscif3_pins: hscif3 {
|
|
groups = "hscif3_data_a";
|
|
function = "hscif3";
|
|
};
|
|
|
|
/* Page 24 / I2C SWITCH */
|
|
i2c0_pins: i2c0 {
|
|
groups = "i2c0";
|
|
function = "i2c0";
|
|
};
|
|
|
|
/* Page 29 / CSI_IF_CN / CAM_CN0 */
|
|
i2c1_pins: i2c1 {
|
|
groups = "i2c1";
|
|
function = "i2c1";
|
|
};
|
|
|
|
/* Page 29 / CSI_IF_CN / CAM_CN1 */
|
|
i2c2_pins: i2c2 {
|
|
groups = "i2c2";
|
|
function = "i2c2";
|
|
};
|
|
|
|
/* Page 31 / IO_CN */
|
|
i2c3_pins: i2c3 {
|
|
groups = "i2c3";
|
|
function = "i2c3";
|
|
};
|
|
|
|
/* Page 31 / IO_CN */
|
|
i2c4_pins: i2c4 {
|
|
groups = "i2c4";
|
|
function = "i2c4";
|
|
};
|
|
|
|
/* Page 18 / POWER_CORE */
|
|
i2c5_pins: i2c5 {
|
|
groups = "i2c5";
|
|
function = "i2c5";
|
|
};
|
|
|
|
/* Page 27 / DSI to Display */
|
|
irq0_pins: irq0 {
|
|
groups = "intc_ex_irq0_a";
|
|
function = "intc_ex";
|
|
};
|
|
|
|
/* Page 31 / FAN */
|
|
irq4_pins: irq4 {
|
|
groups = "intc_ex_irq4_b";
|
|
function = "intc_ex";
|
|
};
|
|
|
|
/* Page 31 / FAN */
|
|
pwm0_pins: pwm0 {
|
|
groups = "pwm0";
|
|
function = "pwm0";
|
|
};
|
|
|
|
/* Page 31 / CN7 pin 12 */
|
|
pwm1_pins: pwm1 {
|
|
groups = "pwm1_b";
|
|
function = "pwm1";
|
|
};
|
|
|
|
/* Page 31 / CN7 pin 32 */
|
|
pwm6_pins: pwm6 {
|
|
groups = "pwm6";
|
|
function = "pwm6";
|
|
};
|
|
|
|
/* Page 31 / CN7 pin 33 */
|
|
pwm7_pins: pwm7 {
|
|
groups = "pwm7";
|
|
function = "pwm7";
|
|
};
|
|
|
|
/* Page 16 / QSPI_FLASH */
|
|
qspi0_pins: qspi0 {
|
|
groups = "qspi0_ctrl", "qspi0_data4";
|
|
function = "qspi0";
|
|
bootph-all;
|
|
};
|
|
|
|
/* Page 6 / SCIF_CLK_SOC_V */
|
|
scif_clk_pins: scif-clk {
|
|
groups = "scif_clk";
|
|
function = "scif_clk";
|
|
};
|
|
|
|
/* Page 17 uSD-Slot */
|
|
sd_pins: sd {
|
|
groups = "mmc_data4", "mmc_ctrl";
|
|
function = "mmc";
|
|
power-source = <3300>;
|
|
};
|
|
|
|
/* Page 17 uSD-Slot */
|
|
sd_uhs_pins: sd-uhs {
|
|
groups = "mmc_data4", "mmc_ctrl";
|
|
function = "mmc";
|
|
power-source = <1800>;
|
|
};
|
|
|
|
/* Page 30 / Audio_Codec */
|
|
msiof1_pins: sound {
|
|
groups = "msiof1_clk", "msiof1_sync", "msiof1_txd", "msiof1_rxd";
|
|
function = "msiof1";
|
|
};
|
|
|
|
/* Page 30 / Audio_Codec */
|
|
sound_clk_pins: sound-clk {
|
|
groups = "audio_clkin", "audio_clkout";
|
|
function = "audio_clk";
|
|
};
|
|
};
|
|
|
|
/* Page 31 / FAN */
|
|
&pwm0 {
|
|
pinctrl-0 = <&pwm0_pins>;
|
|
pinctrl-names = "default";
|
|
status = "okay";
|
|
};
|
|
|
|
/* Page 31 / CN7 pin 12 */
|
|
&pwm1 {
|
|
pinctrl-0 = <&pwm1_pins>;
|
|
pinctrl-names = "default";
|
|
status = "okay";
|
|
};
|
|
|
|
/* Page 31 / CN7 pin 32 */
|
|
&pwm6 {
|
|
pinctrl-0 = <&pwm6_pins>;
|
|
pinctrl-names = "default";
|
|
status = "okay";
|
|
};
|
|
|
|
/* Page 31 / CN7 pin 33 */
|
|
&pwm7 {
|
|
pinctrl-0 = <&pwm7_pins>;
|
|
pinctrl-names = "default";
|
|
status = "okay";
|
|
};
|
|
|
|
/* Page 30 / Audio_Codec */
|
|
&rcar_sound {
|
|
pinctrl-0 = <&sound_clk_pins>;
|
|
pinctrl-names = "default";
|
|
|
|
/* It is used for ADG output as DA7212_MCLK */
|
|
|
|
/* audio_clkout */
|
|
clock-frequency = <12288000>; /* 48 kHz groups */
|
|
|
|
status = "okay";
|
|
};
|
|
|
|
/* Page 16 / QSPI_FLASH */
|
|
&rpc {
|
|
pinctrl-0 = <&qspi0_pins>;
|
|
pinctrl-names = "default";
|
|
bootph-all;
|
|
|
|
status = "okay";
|
|
|
|
flash@0 {
|
|
/*
|
|
* EVTA1 is populated with Spansion S25FS512S
|
|
* EVTB1 is populated with Winbond W77Q51NW
|
|
*/
|
|
compatible = "jedec,spi-nor";
|
|
reg = <0>;
|
|
spi-max-frequency = <40000000>;
|
|
spi-rx-bus-width = <4>;
|
|
spi-tx-bus-width = <4>;
|
|
bootph-all;
|
|
|
|
partitions {
|
|
compatible = "fixed-partitions";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
boot@0 {
|
|
reg = <0x0 0x1000000>;
|
|
read-only;
|
|
};
|
|
|
|
user@1000000 {
|
|
reg = <0x1000000 0x2f80000>;
|
|
};
|
|
|
|
env1@3f80000 {
|
|
reg = <0x3f80000 0x40000>;
|
|
};
|
|
|
|
env2@3fc0000 {
|
|
reg = <0x3fc0000 0x40000>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&rwdt {
|
|
timeout-sec = <60>;
|
|
status = "okay";
|
|
};
|
|
|
|
/* Page 6 / SCIF_CLK_SOC_V */
|
|
&scif_clk { /* X12 */
|
|
clock-frequency = <24000000>;
|
|
};
|
|
|
|
/* THS sensors in SoC, critical temperature trip point is 100C */
|
|
&sensor1_crit {
|
|
temperature = <100000>;
|
|
};
|
|
|
|
&sensor2_crit {
|
|
temperature = <100000>;
|
|
};
|
|
|
|
&sensor3_crit {
|
|
temperature = <100000>;
|
|
};
|
|
|
|
&sensor4_crit {
|
|
temperature = <100000>;
|
|
};
|
|
|
|
/* THS sensor in SoC near CA76 cores does more progressive cooling. */
|
|
&sensor_thermal_ca76 {
|
|
critical-action = "shutdown";
|
|
|
|
cooling-maps {
|
|
/*
|
|
* The cooling-device minimum and maximum parameters inversely
|
|
* match opp-table-0 {} node entries in r8a779g0.dtsi, in other
|
|
* words, 0 refers to 1.8 GHz OPP and 4 refers to 500 MHz OPP.
|
|
* This is because they refer to cooling levels, where maximum
|
|
* cooling level happens at 500 MHz OPP, when the CPU core is
|
|
* running slowly and therefore generates least heat.
|
|
*/
|
|
map0 {
|
|
/* At 68C, inhibit 1.7 GHz and 1.8 GHz modes */
|
|
trip = <&sensor3_passive_low>;
|
|
cooling-device = <&a76_0 2 4>;
|
|
contribution = <128>;
|
|
};
|
|
|
|
map1 {
|
|
/* At 72C, inhibit 1.5 GHz mode */
|
|
trip = <&sensor3_passive_mid>;
|
|
cooling-device = <&a76_0 3 4>;
|
|
contribution = <256>;
|
|
};
|
|
|
|
map2 {
|
|
/* At 76C, start injecting idle states 0..80% of time */
|
|
trip = <&sensor3_passive_hi>;
|
|
cooling-device = <&a76_0_thermal_idle 0 80>,
|
|
<&a76_1_thermal_idle 0 80>,
|
|
<&a76_2_thermal_idle 0 80>,
|
|
<&a76_3_thermal_idle 0 80>;
|
|
contribution = <512>;
|
|
};
|
|
|
|
map3 {
|
|
/* At 80C, inhibit 1.0 GHz mode */
|
|
trip = <&sensor3_passive_crit>;
|
|
cooling-device = <&a76_0 4 4>;
|
|
contribution = <1024>;
|
|
};
|
|
};
|
|
|
|
trips {
|
|
sensor3_passive_low: sensor3-passive-low {
|
|
temperature = <68000>;
|
|
hysteresis = <2000>;
|
|
type = "passive";
|
|
};
|
|
|
|
sensor3_passive_mid: sensor3-passive-mid {
|
|
temperature = <72000>;
|
|
hysteresis = <2000>;
|
|
type = "passive";
|
|
};
|
|
|
|
sensor3_passive_hi: sensor3-passive-hi {
|
|
temperature = <76000>;
|
|
hysteresis = <2000>;
|
|
type = "passive";
|
|
};
|
|
|
|
sensor3_passive_crit: sensor3-passive-crit {
|
|
temperature = <80000>;
|
|
hysteresis = <2000>;
|
|
type = "passive";
|
|
};
|
|
};
|
|
};
|
|
|
|
&sensor_thermal_cnn {
|
|
critical-action = "shutdown";
|
|
};
|
|
|
|
&sensor_thermal_cr52 {
|
|
critical-action = "shutdown";
|
|
};
|
|
|
|
&sensor_thermal_ddr1 {
|
|
critical-action = "shutdown";
|
|
};
|