mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 18:30:54 +07:00
ARM: STi: DT: STih407: Abstract common dt nodes into shared files.
The stih410 soc which will be added in the following commit is very similar to the stih407, to enable maximum re-use of the dt files this commit abstracts the common parts into a shared dt file stihxxx-b2120 for the board, and also a shared file stih407-family.dtsi for the SoC. Signed-off-by: Peter Griffin <peter.griffin@linaro.org> Signed-off-by: Maxime Coquelin <maxime.coquelin@st.com>
This commit is contained in:
parent
ef893c1a93
commit
2577451303
@ -7,7 +7,9 @@
|
||||
* published by the Free Software Foundation.
|
||||
*/
|
||||
/dts-v1/;
|
||||
#include "stih407.dtsi"
|
||||
#include "stih407-clock.dtsi"
|
||||
#include "stih407-family.dtsi"
|
||||
#include "stihxxx-b2120.dtsi"
|
||||
/ {
|
||||
model = "STiH407 B2120";
|
||||
compatible = "st,stih407-b2120", "st,stih407";
|
||||
@ -26,53 +28,4 @@ aliases {
|
||||
ttyAS0 = &sbc_serial0;
|
||||
};
|
||||
|
||||
soc {
|
||||
sbc_serial0: serial@9530000 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
red {
|
||||
#gpio-cells = <2>;
|
||||
label = "Front Panel LED";
|
||||
gpios = <&pio4 1 0>;
|
||||
linux,default-trigger = "heartbeat";
|
||||
};
|
||||
green {
|
||||
#gpio-cells = <2>;
|
||||
gpios = <&pio1 3 0>;
|
||||
default-state = "off";
|
||||
};
|
||||
};
|
||||
|
||||
i2c@9842000 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
i2c@9843000 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
i2c@9844000 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
i2c@9845000 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
i2c@9540000 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
/* SSC11 to HDMI */
|
||||
i2c@9541000 {
|
||||
status = "okay";
|
||||
/* HDMI V1.3a supports Standard mode only */
|
||||
clock-frequency = <100000>;
|
||||
st,i2c-min-scl-pulse-width-us = <0>;
|
||||
st,i2c-min-sda-pulse-width-us = <5>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -6,7 +6,6 @@
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
* publishhed by the Free Software Foundation.
|
||||
*/
|
||||
#include "stih407-clock.dtsi"
|
||||
#include "stih407-pinctrl.dtsi"
|
||||
#include <dt-bindings/reset-controller/stih407-resets.h>
|
||||
/ {
|
59
arch/arm/boot/dts/stihxxx-b2120.dtsi
Normal file
59
arch/arm/boot/dts/stihxxx-b2120.dtsi
Normal file
@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright (C) 2014 STMicroelectronics (R&D) Limited.
|
||||
* Author: Giuseppe Cavallaro <peppe.cavallaro@st.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
* published by the Free Software Foundation.
|
||||
*/
|
||||
/ {
|
||||
soc {
|
||||
sbc_serial0: serial@9530000 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
red {
|
||||
#gpio-cells = <2>;
|
||||
label = "Front Panel LED";
|
||||
gpios = <&pio4 1 0>;
|
||||
linux,default-trigger = "heartbeat";
|
||||
};
|
||||
green {
|
||||
#gpio-cells = <2>;
|
||||
gpios = <&pio1 3 0>;
|
||||
default-state = "off";
|
||||
};
|
||||
};
|
||||
|
||||
i2c@9842000 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
i2c@9843000 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
i2c@9844000 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
i2c@9845000 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
i2c@9540000 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
/* SSC11 to HDMI */
|
||||
i2c@9541000 {
|
||||
status = "okay";
|
||||
/* HDMI V1.3a supports Standard mode only */
|
||||
clock-frequency = <100000>;
|
||||
st,i2c-min-scl-pulse-width-us = <0>;
|
||||
st,i2c-min-sda-pulse-width-us = <5>;
|
||||
};
|
||||
};
|
||||
};
|
Loading…
Reference in New Issue
Block a user