PHYTEC
Page 38
&pwm3 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_pwm3>;
};
[...]
&iomuxc {
[...]
pinctrl_pwm3: pwm3grp {
fsl,pins = <
MX8MP_IOMUXC_SPDIF_TX__PWM3_OUT 0x12
>;
};
pinctrl_lvds1: lvds1grp {
fsl,pins = <
MX8MP_IOMUXC_SD2_WP__GPIO2_IO20 0x12
MX8MP_IOMUXC_GPIO1_IO09__GPIO1_IO09 0x12
>;
};
[...]
};
Framebuffer
This driver gains access to displays connected to PHYTEC carrier boards by using an emulated framebuffer device /dev/fb0.
To run a simple test of the framebuffer feature, execute:
fbtest -f /dev/fb0
This will show various test patterns on the display.
Information about the framebuffer's resolution can be obtained with:
fbset
which will return something like:
mode "1280x800-0"
# D: 0.000 MHz, H: 0.000 kHz, V: 0.000 Hz
geometry 1280 800 1280 800 32
timings 0 0 0 0 0 0 0
accel true
rgba 8/16,8/8,8/0,0/0
endmode
To query the color depth of the framebuffer emulation, type:
target$ cat /sys/class/graphics/fb0/bits_per_pixel
Backlight Control
If a display is connected to the PHYTEC board, you can control its backlight with the
kernel
interface. All available backlight devices in the
Linux
sysfs
system can be found in the folder
. Reading the appropriate files and writing to them allows you to control the backlight.
/sys/class/backlight
To get, for example, the maximum brightness level (
) execute:
max_brightness