2018-02-26 22:49:18 +07:00
|
|
|
// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
|
|
|
|
/*
|
|
|
|
* Copyright (C) STMicroelectronics 2017 - All Rights Reserved
|
|
|
|
* Author: Ludovic Barre <ludovic.barre@st.com> for STMicroelectronics.
|
|
|
|
*/
|
|
|
|
/dts-v1/;
|
|
|
|
|
|
|
|
#include "stm32mp157c-ed1.dts"
|
2018-09-20 21:33:52 +07:00
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
2019-05-10 14:49:55 +07:00
|
|
|
#include <dt-bindings/input/input.h>
|
2018-02-26 22:49:18 +07:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "STMicroelectronics STM32MP157C eval daughter on eval mother";
|
|
|
|
compatible = "st,stm32mp157c-ev1", "st,stm32mp157c-ed1", "st,stm32mp157";
|
|
|
|
|
|
|
|
chosen {
|
|
|
|
stdout-path = "serial0:115200n8";
|
|
|
|
};
|
|
|
|
|
|
|
|
aliases {
|
|
|
|
serial0 = &uart4;
|
2018-06-26 20:12:23 +07:00
|
|
|
ethernet0 = ðernet0;
|
|
|
|
};
|
2018-09-20 21:33:52 +07:00
|
|
|
|
2019-05-10 14:49:55 +07:00
|
|
|
joystick {
|
|
|
|
compatible = "gpio-keys";
|
|
|
|
#size-cells = <0>;
|
|
|
|
pinctrl-0 = <&joystick_pins>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
button-0 {
|
|
|
|
label = "JoySel";
|
|
|
|
linux,code = <KEY_ENTER>;
|
|
|
|
interrupt-parent = <&stmfx_pinctrl>;
|
|
|
|
interrupts = <0 IRQ_TYPE_EDGE_RISING>;
|
|
|
|
};
|
|
|
|
button-1 {
|
|
|
|
label = "JoyDown";
|
|
|
|
linux,code = <KEY_DOWN>;
|
|
|
|
interrupt-parent = <&stmfx_pinctrl>;
|
|
|
|
interrupts = <1 IRQ_TYPE_EDGE_RISING>;
|
|
|
|
};
|
|
|
|
button-2 {
|
|
|
|
label = "JoyLeft";
|
|
|
|
linux,code = <KEY_LEFT>;
|
|
|
|
interrupt-parent = <&stmfx_pinctrl>;
|
|
|
|
interrupts = <2 IRQ_TYPE_EDGE_RISING>;
|
|
|
|
};
|
|
|
|
button-3 {
|
|
|
|
label = "JoyRight";
|
|
|
|
linux,code = <KEY_RIGHT>;
|
|
|
|
interrupt-parent = <&stmfx_pinctrl>;
|
|
|
|
interrupts = <3 IRQ_TYPE_EDGE_RISING>;
|
|
|
|
};
|
|
|
|
button-4 {
|
|
|
|
label = "JoyUp";
|
|
|
|
linux,code = <KEY_UP>;
|
|
|
|
interrupt-parent = <&stmfx_pinctrl>;
|
|
|
|
interrupts = <4 IRQ_TYPE_EDGE_RISING>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-09-20 21:33:52 +07:00
|
|
|
panel_backlight: panel-backlight {
|
|
|
|
compatible = "gpio-backlight";
|
|
|
|
gpios = <&gpiod 13 GPIO_ACTIVE_LOW>;
|
|
|
|
default-on;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&cec {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&cec_pins_a>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&dsi {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
ports {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
port@0 {
|
|
|
|
reg = <0>;
|
|
|
|
dsi_in: endpoint {
|
|
|
|
remote-endpoint = <<dc_ep0_out>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
port@1 {
|
|
|
|
reg = <1>;
|
|
|
|
dsi_out: endpoint {
|
|
|
|
remote-endpoint = <&dsi_panel_in>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
panel-dsi@0 {
|
|
|
|
compatible = "raydium,rm68200";
|
|
|
|
reg = <0>;
|
|
|
|
reset-gpios = <&gpiof 15 GPIO_ACTIVE_LOW>;
|
|
|
|
backlight = <&panel_backlight>;
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
port {
|
|
|
|
dsi_panel_in: endpoint {
|
|
|
|
remote-endpoint = <&dsi_out>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2018-06-26 20:12:23 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
ðernet0 {
|
|
|
|
status = "okay";
|
|
|
|
pinctrl-0 = <ðernet0_rgmii_pins_a>;
|
|
|
|
pinctrl-1 = <ðernet0_rgmii_pins_sleep_a>;
|
|
|
|
pinctrl-names = "default", "sleep";
|
|
|
|
phy-mode = "rgmii";
|
|
|
|
max-speed = <1000>;
|
|
|
|
phy-handle = <&phy0>;
|
|
|
|
|
|
|
|
mdio0 {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
compatible = "snps,dwmac-mdio";
|
|
|
|
phy0: ethernet-phy@0 {
|
|
|
|
reg = <0>;
|
|
|
|
};
|
2018-02-26 22:49:18 +07:00
|
|
|
};
|
|
|
|
};
|
2018-04-17 20:45:00 +07:00
|
|
|
|
2018-04-23 16:48:00 +07:00
|
|
|
&i2c2 {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&i2c2_pins_a>;
|
|
|
|
i2c-scl-rising-time-ns = <185>;
|
|
|
|
i2c-scl-falling-time-ns = <20>;
|
|
|
|
status = "okay";
|
2019-05-10 14:49:54 +07:00
|
|
|
|
|
|
|
stmfx: stmfx@42 {
|
|
|
|
compatible = "st,stmfx-0300";
|
|
|
|
reg = <0x42>;
|
|
|
|
interrupts = <8 IRQ_TYPE_EDGE_RISING>;
|
|
|
|
interrupt-parent = <&gpioi>;
|
|
|
|
vdd-supply = <&v3v3>;
|
|
|
|
|
|
|
|
stmfx_pinctrl: stmfx-pin-controller {
|
|
|
|
compatible = "st,stmfx-0300-pinctrl";
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
interrupt-controller;
|
|
|
|
#interrupt-cells = <2>;
|
|
|
|
gpio-ranges = <&stmfx_pinctrl 0 0 24>;
|
2019-05-10 14:49:55 +07:00
|
|
|
|
|
|
|
joystick_pins: joystick {
|
|
|
|
pins = "gpio0", "gpio1", "gpio2", "gpio3", "gpio4";
|
|
|
|
drive-push-pull;
|
|
|
|
bias-pull-down;
|
|
|
|
};
|
2019-05-10 14:49:54 +07:00
|
|
|
};
|
|
|
|
};
|
2018-04-23 16:48:00 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
&i2c5 {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&i2c5_pins_a>;
|
|
|
|
i2c-scl-rising-time-ns = <185>;
|
|
|
|
i2c-scl-falling-time-ns = <20>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2018-09-20 21:33:52 +07:00
|
|
|
<dc {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
port {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
ltdc_ep0_out: endpoint@0 {
|
|
|
|
reg = <0>;
|
|
|
|
remote-endpoint = <&dsi_in>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-06-25 20:44:24 +07:00
|
|
|
&m_can1 {
|
2018-11-15 15:52:29 +07:00
|
|
|
pinctrl-names = "default", "sleep";
|
2018-06-25 20:44:24 +07:00
|
|
|
pinctrl-0 = <&m_can1_pins_a>;
|
2018-11-15 15:52:29 +07:00
|
|
|
pinctrl-1 = <&m_can1_sleep_pins_a>;
|
2018-06-25 20:44:24 +07:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2018-04-30 14:11:00 +07:00
|
|
|
&qspi {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&qspi_clk_pins_a &qspi_bk1_pins_a &qspi_bk2_pins_a>;
|
|
|
|
reg = <0x58003000 0x1000>, <0x70000000 0x4000000>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
flash0: mx66l51235l@0 {
|
|
|
|
reg = <0>;
|
|
|
|
spi-rx-bus-width = <4>;
|
|
|
|
spi-max-frequency = <108000000>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
};
|
|
|
|
|
|
|
|
flash1: mx66l51235l@1 {
|
|
|
|
reg = <1>;
|
|
|
|
spi-rx-bus-width = <4>;
|
|
|
|
spi-max-frequency = <108000000>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-05-17 21:21:00 +07:00
|
|
|
&spi1 {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&spi1_pins_a>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
2018-04-17 20:45:00 +07:00
|
|
|
&timers2 {
|
2018-10-03 22:11:05 +07:00
|
|
|
/* spare dmas for other usage (un-delete to enable pwm capture) */
|
|
|
|
/delete-property/dmas;
|
|
|
|
/delete-property/dma-names;
|
2018-04-17 20:45:00 +07:00
|
|
|
status = "disabled";
|
|
|
|
pwm {
|
|
|
|
pinctrl-0 = <&pwm2_pins_a>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
timer@1 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&timers8 {
|
2018-10-03 22:11:05 +07:00
|
|
|
/delete-property/dmas;
|
|
|
|
/delete-property/dma-names;
|
2018-04-17 20:45:00 +07:00
|
|
|
status = "disabled";
|
|
|
|
pwm {
|
|
|
|
pinctrl-0 = <&pwm8_pins_a>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
timer@7 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&timers12 {
|
2018-10-03 22:11:05 +07:00
|
|
|
/delete-property/dmas;
|
|
|
|
/delete-property/dma-names;
|
2018-04-17 20:45:00 +07:00
|
|
|
status = "disabled";
|
|
|
|
pwm {
|
|
|
|
pinctrl-0 = <&pwm12_pins_a>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
timer@11 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
};
|
2018-04-24 16:41:00 +07:00
|
|
|
|
2018-05-17 21:36:00 +07:00
|
|
|
&usbh_ehci {
|
|
|
|
phys = <&usbphyc_port0>;
|
|
|
|
phy-names = "usb";
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2018-05-17 22:47:00 +07:00
|
|
|
&usbotg_hs {
|
|
|
|
dr_mode = "peripheral";
|
|
|
|
phys = <&usbphyc_port1 0>;
|
|
|
|
phy-names = "usb2-phy";
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2018-04-24 16:41:00 +07:00
|
|
|
&usbphyc {
|
|
|
|
status = "okay";
|
|
|
|
};
|