Skip to content

Commit a719915

Browse files
Marek Vasutgeertu
authored andcommitted
arm64: dts: renesas: r8a779g3: Add Retronix R-Car V4H Sparrow Hawk board support
Add Retronix R-Car V4H Sparrow Hawk board based on Renesas R-Car V4H ES3.0 (R8A779G3) SoC. This is a single-board computer with single gigabit ethernet, DSI-to-eDP bridge, DSI and two CSI2 interfaces, audio codec, two CANFD ports, micro SD card slot, USB PD supply, USB 3.0 ports, M.2 Key-M slot for NVMe SSD, debug UART and JTAG. Tested-by: Kuninori Morimoto <[email protected]> Tested-by: Niklas Söderlund <[email protected]> Signed-off-by: Marek Vasut <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Geert Uytterhoeven <[email protected]>
1 parent 4c5e0f0 commit a719915

File tree

3 files changed

+713
-0
lines changed

3 files changed

+713
-0
lines changed

arch/arm64/boot/dts/renesas/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ dtb-$(CONFIG_ARCH_R8A779G0) += r8a779g2-white-hawk-single.dtb
9494
r8a779g2-white-hawk-single-ard-audio-da7212-dtbs := r8a779g2-white-hawk-single.dtb white-hawk-ard-audio-da7212.dtbo
9595
dtb-$(CONFIG_ARCH_R8A779G0) += r8a779g2-white-hawk-single-ard-audio-da7212.dtb
9696

97+
dtb-$(CONFIG_ARCH_R8A779G0) += r8a779g3-sparrow-hawk.dtb
98+
r8a779g3-sparrow-hawk-fan-pwm-dtbs := r8a779g3-sparrow-hawk.dtb r8a779g3-sparrow-hawk-fan-pwm.dtbo
99+
dtb-$(CONFIG_ARCH_R8A779G0) += r8a779g3-sparrow-hawk-fan-pwm.dtb
100+
97101
dtb-$(CONFIG_ARCH_R8A779G0) += r8a779g3-white-hawk-single.dtb
98102
r8a779g3-white-hawk-single-ard-audio-da7212-dtbs := r8a779g3-white-hawk-single.dtb white-hawk-ard-audio-da7212.dtbo
99103
dtb-$(CONFIG_ARCH_R8A779G0) += r8a779g3-white-hawk-single-ard-audio-da7212.dtb
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
/*
3+
* Device Tree Overlay for the PWM controlled blower fan in connector J3:FAN
4+
* on R-Car V4H ES3.0 Sparrow Hawk board
5+
*
6+
* Copyright (C) 2025 Marek Vasut <[email protected]>
7+
*
8+
* Example usage:
9+
*
10+
* # Localize hwmon sysfs directory that matches the PWM fan,
11+
* # enable the PWM fan, and configure the fan speed manually.
12+
* r8a779g3-sparrow-hawk$ grep -H . /sys/class/hwmon/hwmon?/name
13+
* /sys/class/hwmon/hwmon0/name:sensor1_thermal
14+
* /sys/class/hwmon/hwmon1/name:sensor2_thermal
15+
* /sys/class/hwmon/hwmon2/name:sensor3_thermal
16+
* /sys/class/hwmon/hwmon3/name:sensor4_thermal
17+
* /sys/class/hwmon/hwmon4/name:pwmfan
18+
* ^ ^^^^^^
19+
*
20+
* # Select mode 2 , enable fan PWM and regulator and keep them enabled.
21+
* # For details, see Linux Documentation/hwmon/pwm-fan.rst
22+
* r8a779g3-sparrow-hawk$ echo 2 > /sys/class/hwmon/hwmon4/pwm1_enable
23+
*
24+
* # Configure PWM fan speed in range 0..255 , 0 is stopped , 255 is full speed .
25+
* # Fan speed 101 is about 2/5 of the PWM fan speed:
26+
* r8a779g3-sparrow-hawk$ echo 101 > /sys/class/hwmon/hwmon4/pwm1
27+
*/
28+
29+
/dts-v1/;
30+
/plugin/;
31+
32+
/*
33+
* Override default PWM fan settings. For a list of available properties,
34+
* see schema Documentation/devicetree/bindings/hwmon/pwm-fan.yaml .
35+
*/
36+
&fan {
37+
/* Available cooling levels */
38+
cooling-levels = <0 50 100 150 200 255>;
39+
/* Four pulses of tacho signal per one revolution */
40+
pulses-per-revolution = <4>;
41+
/* PWM period: 100us ~= 10 kHz */
42+
pwms = <&pwm0 0 100000>;
43+
};

0 commit comments

Comments
 (0)