Commit fbefc532 authored by Arnd Bergmann's avatar Arnd Bergmann

Merge tag 'sti-dt-for-v4.17-round1' of...

Merge tag 'sti-dt-for-v4.17-round1' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/pchotard/sti into next/dt

Pull "STi dts update" from Patrice Chotard:

Fix all DT dtc warnings when building with W=1
For most of implicated node, the addition of a fake reg property
fixes these warnings.
For others nodes, their location in device tree
have been updated.

* tag 'sti-dt-for-v4.17-round1' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/pchotard/sti:
  ARM: dts: STi: Remove unused clk_ext2f_a9 clock
  ARM: dts: STi: Update clocks node location
  ARM: dts: STi: Update sound related nodes location
  ARM: dts: STi: Add fake reg property for usb2_picophyX nodes
  ARM: dts: STi: Add fake reg for restart, powerdown and picophy/softreset
  ARM: dts: STi: Add fake reg property for remote processors
  ARM: dts: STi: Add fake reg property for irq-syscfg
  ARM: dts: STi: Add fake reg property for miphy28lp_phy
  ARM: dts: STi: Add fake reg property for sti-display-subsystem
  ARM: dts: STi: Move leds node outside soc node
  ARM: dts: STi: Fix bindings notation
parents d6bdd009 0e04ce02
...@@ -18,7 +18,7 @@ chosen { ...@@ -18,7 +18,7 @@ chosen {
linux,stdout-path = &sbc_serial0; linux,stdout-path = &sbc_serial0;
}; };
memory { memory@40000000 {
device_type = "memory"; device_type = "memory";
reg = <0x40000000 0x80000000>; reg = <0x40000000 0x80000000>;
}; };
......
...@@ -7,32 +7,26 @@ ...@@ -7,32 +7,26 @@
*/ */
#include <dt-bindings/clock/stih407-clks.h> #include <dt-bindings/clock/stih407-clks.h>
/ { / {
/*
* Fixed 30MHz oscillator inputs to SoC
*/
clk_sysin: clk-sysin {
#clock-cells = <0>;
compatible = "fixed-clock";
clock-frequency = <30000000>;
};
clk_tmdsout_hdmi: clk-tmdsout-hdmi {
#clock-cells = <0>;
compatible = "fixed-clock";
clock-frequency = <0>;
};
clocks { clocks {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
ranges; ranges;
/*
* Fixed 30MHz oscillator inputs to SoC
*/
clk_sysin: clk-sysin {
#clock-cells = <0>;
compatible = "fixed-clock";
clock-frequency = <30000000>;
};
/*
* ARM Peripheral clock for timers
*/
arm_periph_clk: clk-m-a9-periphs {
#clock-cells = <0>;
compatible = "fixed-factor-clock";
clocks = <&clk_m_a9>;
clock-div = <2>;
clock-mult = <1>;
};
/* /*
* A9 PLL. * A9 PLL.
*/ */
...@@ -62,32 +56,19 @@ clk_m_a9: clk-m-a9@92b0000 { ...@@ -62,32 +56,19 @@ clk_m_a9: clk-m-a9@92b0000 {
<&clockgen_a9_pll 0>, <&clockgen_a9_pll 0>,
<&clk_s_c0_flexgen 13>, <&clk_s_c0_flexgen 13>,
<&clk_m_a9_ext2f_div2>; <&clk_m_a9_ext2f_div2>;
};
/*
* ARM Peripheral clock for timers
*/
clk_m_a9_ext2f_div2: clk-m-a9-ext2f-div2s {
#clock-cells = <0>;
compatible = "fixed-factor-clock";
clocks = <&clk_s_c0_flexgen 13>;
clock-output-names = "clk-m-a9-ext2f-div2";
clock-div = <2>; /*
clock-mult = <1>; * ARM Peripheral clock for timers
}; */
arm_periph_clk: clk-m-a9-periphs {
#clock-cells = <0>;
compatible = "fixed-factor-clock";
/* clocks = <&clk_m_a9>;
* Bootloader initialized system infrastructure clock for clock-div = <2>;
* serial devices. clock-mult = <1>;
*/ };
clk_ext2f_a9: clockgen-c0@13 {
#clock-cells = <0>;
compatible = "fixed-clock";
clock-frequency = <200000000>;
clock-output-names = "clk-s-icn-reg-0";
}; };
clockgen-a@90ff000 { clockgen-a@90ff000 {
...@@ -204,6 +185,21 @@ clk_s_c0_flexgen: clk-s-c0-flexgen { ...@@ -204,6 +185,21 @@ clk_s_c0_flexgen: clk-s-c0-flexgen {
<CLK_EXT2F_A9>, <CLK_EXT2F_A9>,
<CLK_ICN_LMI>, <CLK_ICN_LMI>,
<CLK_ICN_SBC>; <CLK_ICN_SBC>;
/*
* ARM Peripheral clock for timers
*/
clk_m_a9_ext2f_div2: clk-m-a9-ext2f-div2s {
#clock-cells = <0>;
compatible = "fixed-factor-clock";
clocks = <&clk_s_c0_flexgen 13>;
clock-output-names = "clk-m-a9-ext2f-div2";
clock-div = <2>;
clock-mult = <1>;
};
}; };
}; };
...@@ -254,13 +250,7 @@ clk_s_d2_quadfs: clk-s-d2-quadfs@9106000 { ...@@ -254,13 +250,7 @@ clk_s_d2_quadfs: clk-s-d2-quadfs@9106000 {
"clk-s-d2-fs0-ch3"; "clk-s-d2-fs0-ch3";
}; };
clk_tmdsout_hdmi: clk-tmdsout-hdmi { clockgen-d2@9106000 {
#clock-cells = <0>;
compatible = "fixed-clock";
clock-frequency = <0>;
};
clockgen-d2@x9106000 {
compatible = "st,clkgen-c32"; compatible = "st,clkgen-c32";
reg = <0x9106000 0x1000>; reg = <0x9106000 0x1000>;
......
...@@ -92,7 +92,7 @@ timer@8760200 { ...@@ -92,7 +92,7 @@ timer@8760200 {
clocks = <&arm_periph_clk>; clocks = <&arm_periph_clk>;
}; };
l2: cache-controller { l2: cache-controller@8762000 {
compatible = "arm,pl310-cache"; compatible = "arm,pl310-cache";
reg = <0x08762000 0x1000>; reg = <0x08762000 0x1000>;
arm,data-latency = <3 3 3>; arm,data-latency = <3 3 3>;
...@@ -125,24 +125,28 @@ soc { ...@@ -125,24 +125,28 @@ soc {
ranges; ranges;
compatible = "simple-bus"; compatible = "simple-bus";
restart { restart: restart-controller@0 {
compatible = "st,stih407-restart"; compatible = "st,stih407-restart";
reg = <0 0>;
st,syscfg = <&syscfg_sbc_reg>; st,syscfg = <&syscfg_sbc_reg>;
status = "okay"; status = "okay";
}; };
powerdown: powerdown-controller { powerdown: powerdown-controller@0 {
compatible = "st,stih407-powerdown"; compatible = "st,stih407-powerdown";
reg = <0 0>;
#reset-cells = <1>; #reset-cells = <1>;
}; };
softreset: softreset-controller { softreset: softreset-controller@0 {
compatible = "st,stih407-softreset"; compatible = "st,stih407-softreset";
reg = <0 0>;
#reset-cells = <1>; #reset-cells = <1>;
}; };
picophyreset: picophyreset-controller { picophyreset: picophyreset-controller@0 {
compatible = "st,stih407-picophyreset"; compatible = "st,stih407-picophyreset";
reg = <0 0>;
#reset-cells = <1>; #reset-cells = <1>;
}; };
...@@ -174,6 +178,13 @@ syscfg_sbc_reg: fvdp-lite-syscfg@9600000 { ...@@ -174,6 +178,13 @@ syscfg_sbc_reg: fvdp-lite-syscfg@9600000 {
syscfg_core: core-syscfg@92b0000 { syscfg_core: core-syscfg@92b0000 {
compatible = "st,stih407-core-syscfg", "syscon"; compatible = "st,stih407-core-syscfg", "syscon";
reg = <0x92b0000 0x1000>; reg = <0x92b0000 0x1000>;
sti_sasg_codec: sti-sasg-codec {
compatible = "st,stih407-sas-codec";
#sound-dai-cells = <1>;
status = "disabled";
st,syscfg = <&syscfg_core>;
};
}; };
syscfg_lpm: lpm-syscfg@94b5100 { syscfg_lpm: lpm-syscfg@94b5100 {
...@@ -181,8 +192,9 @@ syscfg_lpm: lpm-syscfg@94b5100 { ...@@ -181,8 +192,9 @@ syscfg_lpm: lpm-syscfg@94b5100 {
reg = <0x94b5100 0x1000>; reg = <0x94b5100 0x1000>;
}; };
irq-syscfg { irq-syscfg@0 {
compatible = "st,stih407-irq-syscfg"; compatible = "st,stih407-irq-syscfg";
reg = <0 0>;
st,syscfg = <&syscfg_core>; st,syscfg = <&syscfg_core>;
st,irq-device = <ST_IRQ_SYSCFG_PMU_0>, st,irq-device = <ST_IRQ_SYSCFG_PMU_0>,
<ST_IRQ_SYSCFG_PMU_1>; <ST_IRQ_SYSCFG_PMU_1>;
...@@ -380,8 +392,9 @@ i2c@9541000 { ...@@ -380,8 +392,9 @@ i2c@9541000 {
status = "disabled"; status = "disabled";
}; };
usb2_picophy0: phy1 { usb2_picophy0: phy1@0 {
compatible = "st,stih407-usb2-phy"; compatible = "st,stih407-usb2-phy";
reg = <0 0>;
#phy-cells = <0>; #phy-cells = <0>;
st,syscfg = <&syscfg_core 0x100 0xf4>; st,syscfg = <&syscfg_core 0x100 0xf4>;
resets = <&softreset STIH407_PICOPHY_SOFTRESET>, resets = <&softreset STIH407_PICOPHY_SOFTRESET>,
...@@ -389,12 +402,13 @@ usb2_picophy0: phy1 { ...@@ -389,12 +402,13 @@ usb2_picophy0: phy1 {
reset-names = "global", "port"; reset-names = "global", "port";
}; };
miphy28lp_phy: miphy28lp@9b22000 { miphy28lp_phy: miphy28lp@0 {
compatible = "st,miphy28lp-phy"; compatible = "st,miphy28lp-phy";
st,syscfg = <&syscfg_core>; st,syscfg = <&syscfg_core>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
ranges; ranges;
reg = <0 0>;
phy_port0: port@9b22000 { phy_port0: port@9b22000 {
reg = <0x9b22000 0xff>, reg = <0x9b22000 0xff>,
...@@ -805,6 +819,7 @@ mailbox3: mailbox@8f03000 { ...@@ -805,6 +819,7 @@ mailbox3: mailbox@8f03000 {
st231_gp0: st231-gp0@0 { st231_gp0: st231-gp0@0 {
compatible = "st,st231-rproc"; compatible = "st,st231-rproc";
reg = <0 0>;
memory-region = <&gp0_reserved>; memory-region = <&gp0_reserved>;
resets = <&softreset STIH407_ST231_GP0_SOFTRESET>; resets = <&softreset STIH407_ST231_GP0_SOFTRESET>;
reset-names = "sw_reset"; reset-names = "sw_reset";
...@@ -818,6 +833,7 @@ st231_gp0: st231-gp0@0 { ...@@ -818,6 +833,7 @@ st231_gp0: st231-gp0@0 {
st231_delta: st231-delta@0 { st231_delta: st231-delta@0 {
compatible = "st,st231-rproc"; compatible = "st,st231-rproc";
reg = <0 0>;
memory-region = <&delta_reserved>; memory-region = <&delta_reserved>;
resets = <&softreset STIH407_ST231_DMU_SOFTRESET>; resets = <&softreset STIH407_ST231_DMU_SOFTRESET>;
reset-names = "sw_reset"; reset-names = "sw_reset";
...@@ -885,13 +901,6 @@ fdma2: dma-controller@8e60000 { ...@@ -885,13 +901,6 @@ fdma2: dma-controller@8e60000 {
status = "disabled"; status = "disabled";
}; };
sti_sasg_codec: sti-sasg-codec {
compatible = "st,stih407-sas-codec";
#sound-dai-cells = <1>;
status = "disabled";
st,syscfg = <&syscfg_core>;
};
sti_uni_player0: sti-uni-player@8d80000 { sti_uni_player0: sti-uni-player@8d80000 {
compatible = "st,stih407-uni-player-hdmi"; compatible = "st,stih407-uni-player-hdmi";
#sound-dai-cells = <0>; #sound-dai-cells = <0>;
...@@ -980,8 +989,9 @@ sti_uni_reader1: sti-uni-reader@8d84000 { ...@@ -980,8 +989,9 @@ sti_uni_reader1: sti-uni-reader@8d84000 {
status = "disabled"; status = "disabled";
}; };
delta0 { delta0@0 {
compatible = "st,st-delta"; compatible = "st,st-delta";
reg = <0 0>;
clock-names = "delta", clock-names = "delta",
"delta-st231", "delta-st231",
"delta-flash-promip"; "delta-flash-promip";
......
...@@ -45,7 +45,7 @@ aliases { ...@@ -45,7 +45,7 @@ aliases {
}; };
soc { soc {
pin-controller-sbc { pin-controller-sbc@961f080 {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
compatible = "st,stih407-sbc-pinctrl"; compatible = "st,stih407-sbc-pinctrl";
...@@ -369,7 +369,7 @@ st,pins { ...@@ -369,7 +369,7 @@ st,pins {
}; };
}; };
pin-controller-front0 { pin-controller-front0@920f080 {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
compatible = "st,stih407-front-pinctrl"; compatible = "st,stih407-front-pinctrl";
...@@ -929,7 +929,7 @@ st,pins { ...@@ -929,7 +929,7 @@ st,pins {
}; };
}; };
pin-controller-front1 { pin-controller-front1@921f080 {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
compatible = "st,stih407-front-pinctrl"; compatible = "st,stih407-front-pinctrl";
...@@ -962,7 +962,7 @@ st,pins { ...@@ -962,7 +962,7 @@ st,pins {
}; };
}; };
pin-controller-rear { pin-controller-rear@922f080 {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
compatible = "st,stih407-rear-pinctrl"; compatible = "st,stih407-rear-pinctrl";
...@@ -1157,7 +1157,7 @@ st,pins { ...@@ -1157,7 +1157,7 @@ st,pins {
}; };
}; };
pin-controller-flash { pin-controller-flash@923f080 {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
compatible = "st,stih407-flash-pinctrl"; compatible = "st,stih407-flash-pinctrl";
......
...@@ -11,11 +11,11 @@ ...@@ -11,11 +11,11 @@
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
/ { / {
soc { soc {
sti-display-subsystem { sti-display-subsystem@0 {
compatible = "st,sti-display-subsystem"; compatible = "st,sti-display-subsystem";
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
reg = <0 0>;
assigned-clocks = <&clk_s_d2_quadfs 0>, assigned-clocks = <&clk_s_d2_quadfs 0>,
<&clk_s_d2_quadfs 1>, <&clk_s_d2_quadfs 1>,
<&clk_s_c0_pll1 0>, <&clk_s_c0_pll1 0>,
......
...@@ -18,7 +18,7 @@ chosen { ...@@ -18,7 +18,7 @@ chosen {
linux,stdout-path = &sbc_serial0; linux,stdout-path = &sbc_serial0;
}; };
memory { memory@40000000 {
device_type = "memory"; device_type = "memory";
reg = <0x40000000 0x80000000>; reg = <0x40000000 0x80000000>;
}; };
...@@ -37,11 +37,11 @@ mmc0: sdhci@9060000 { ...@@ -37,11 +37,11 @@ mmc0: sdhci@9060000 {
sd-uhs-ddr50; sd-uhs-ddr50;
}; };
usb2_picophy1: phy2 { usb2_picophy1: phy2@0 {
status = "okay"; status = "okay";
}; };
usb2_picophy2: phy3 { usb2_picophy2: phy3@0 {
status = "okay"; status = "okay";
}; };
...@@ -61,7 +61,7 @@ ehci1: usb@9a83e00 { ...@@ -61,7 +61,7 @@ ehci1: usb@9a83e00 {
status = "okay"; status = "okay";
}; };
sti-display-subsystem { sti-display-subsystem@0 {
sti-hda@8d02000 { sti-hda@8d02000 {
status = "okay"; status = "okay";
}; };
......
...@@ -19,7 +19,7 @@ chosen { ...@@ -19,7 +19,7 @@ chosen {
linux,stdout-path = &uart1; linux,stdout-path = &uart1;
}; };
memory { memory@40000000 {
device_type = "memory"; device_type = "memory";
reg = <0x40000000 0x40000000>; reg = <0x40000000 0x40000000>;
}; };
...@@ -29,36 +29,54 @@ aliases { ...@@ -29,36 +29,54 @@ aliases {
ethernet0 = &ethernet0; ethernet0 = &ethernet0;
}; };
soc { leds {
compatible = "gpio-leds";
user_green_1 {
label = "User_green_1";
gpios = <&pio1 3 GPIO_ACTIVE_LOW>;
linux,default-trigger = "heartbeat";
default-state = "off";
};
leds { user_green_2 {
compatible = "gpio-leds"; label = "User_green_2";
user_green_1 { gpios = <&pio4 1 GPIO_ACTIVE_LOW>;
label = "User_green_1"; default-state = "off";
gpios = <&pio1 3 GPIO_ACTIVE_LOW>; };
linux,default-trigger = "heartbeat";
default-state = "off";
};
user_green_2 { user_green_3 {
label = "User_green_2"; label = "User_green_3";
gpios = <&pio4 1 GPIO_ACTIVE_LOW>; gpios = <&pio2 1 GPIO_ACTIVE_LOW>;
default-state = "off"; default-state = "off";
}; };
user_green_4 {
label = "User_green_4";
gpios = <&pio2 5 GPIO_ACTIVE_LOW>;
default-state = "off";
};
};
user_green_3 { sound: sound {
label = "User_green_3"; compatible = "simple-audio-card";
gpios = <&pio2 1 GPIO_ACTIVE_LOW>; simple-audio-card,name = "STI-B2260";
default-state = "off"; status = "okay";
simple-audio-card,dai-link0 {
/* DAC */
format = "i2s";
mclk-fs = <128>;
cpu {
sound-dai = <&sti_uni_player0>;
}; };
user_green_4 { codec {
label = "User_green_4"; sound-dai = <&sti_hdmi>;
gpios = <&pio2 5 GPIO_ACTIVE_LOW>;
default-state = "off";
}; };
}; };
};
soc {
/* Low speed expansion connector */ /* Low speed expansion connector */
uart0: serial@9830000 { uart0: serial@9830000 {
label = "LS-UART0"; label = "LS-UART0";
...@@ -128,11 +146,11 @@ pwm1: pwm@9510000 { ...@@ -128,11 +146,11 @@ pwm1: pwm@9510000 {
status = "okay"; status = "okay";
}; };
usb2_picophy1: phy2 { usb2_picophy1: phy2@0 {
status = "okay"; status = "okay";
}; };
usb2_picophy2: phy3 { usb2_picophy2: phy3@0 {
status = "okay"; status = "okay";
}; };
...@@ -182,26 +200,7 @@ hdmiddc: i2c@9541000 { ...@@ -182,26 +200,7 @@ hdmiddc: i2c@9541000 {
status = "okay"; status = "okay";
}; };
sound { miphy28lp_phy: miphy28lp@0 {
compatible = "simple-audio-card";
simple-audio-card,name = "STI-B2260";
status = "okay";
simple-audio-card,dai-link@0 {
/* DAC */
format = "i2s";
mclk-fs = <128>;
cpu {
sound-dai = <&sti_uni_player0>;
};
codec {
sound-dai = <&sti_hdmi>;
};
};
};
miphy28lp_phy: miphy28lp@9b22000 {
phy_port1: port@9b2a000 { phy_port1: port@9b2a000 {
st,osc-force-ext; st,osc-force-ext;
......
...@@ -7,6 +7,22 @@ ...@@ -7,6 +7,22 @@
*/ */
#include <dt-bindings/clock/stih410-clks.h> #include <dt-bindings/clock/stih410-clks.h>
/ { / {
/*
* Fixed 30MHz oscillator inputs to SoC
*/
clk_sysin: clk-sysin {
#clock-cells = <0>;
compatible = "fixed-clock";
clock-frequency = <30000000>;
clock-output-names = "CLK_SYSIN";
};
clk_tmdsout_hdmi: clk-tmdsout-hdmi {
#clock-cells = <0>;
compatible = "fixed-clock";
clock-frequency = <0>;
};
clocks { clocks {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
...@@ -14,27 +30,6 @@ clocks { ...@@ -14,27 +30,6 @@ clocks {
compatible = "st,stih410-clk", "simple-bus"; compatible = "st,stih410-clk", "simple-bus";
/*
* Fixed 30MHz oscillator inputs to SoC
*/
clk_sysin: clk-sysin {
#clock-cells = <0>;
compatible = "fixed-clock";
clock-frequency = <30000000>;
clock-output-names = "CLK_SYSIN";
};
/*
* ARM Peripheral clock for timers
*/
arm_periph_clk: clk-m-a9-periphs {
#clock-cells = <0>;
compatible = "fixed-factor-clock";
clocks = <&clk_m_a9>;
clock-div = <2>;
clock-mult = <1>;
};
/* /*
* A9 PLL. * A9 PLL.
*/ */
...@@ -64,32 +59,16 @@ clk_m_a9: clk-m-a9@92b0000 { ...@@ -64,32 +59,16 @@ clk_m_a9: clk-m-a9@92b0000 {
<&clockgen_a9_pll 0>, <&clockgen_a9_pll 0>,
<&clk_s_c0_flexgen 13>, <&clk_s_c0_flexgen 13>,
<&clk_m_a9_ext2f_div2>; <&clk_m_a9_ext2f_div2>;
}; /*
* ARM Peripheral clock for timers
/* */
* ARM Peripheral clock for timers arm_periph_clk: clk-m-a9-periphs {
*/ #clock-cells = <0>;
clk_m_a9_ext2f_div2: clk-m-a9-ext2f-div2s { compatible = "fixed-factor-clock";
#clock-cells = <0>; clocks = <&clk_m_a9>;
compatible = "fixed-factor-clock"; clock-div = <2>;
clock-mult = <1>;
clocks = <&clk_s_c0_flexgen 13>; };
clock-output-names = "clk-m-a9-ext2f-div2";
clock-div = <2>;
clock-mult = <1>;
};
/*
* Bootloader initialized system infrastructure clock for
* serial devices.
*/
clk_ext2f_a9: clockgen-c0@13 {
#clock-cells = <0>;
compatible = "fixed-clock";
clock-frequency = <200000000>;
clock-output-names = "clk-s-icn-reg-0";
}; };
clockgen-a@90ff000 { clockgen-a@90ff000 {
...@@ -214,6 +193,21 @@ clk_s_c0_flexgen: clk-s-c0-flexgen { ...@@ -214,6 +193,21 @@ clk_s_c0_flexgen: clk-s-c0-flexgen {
<CLK_EXT2F_A9>, <CLK_EXT2F_A9>,
<CLK_ICN_LMI>, <CLK_ICN_LMI>,
<CLK_ICN_SBC>; <CLK_ICN_SBC>;
/*
* ARM Peripheral clock for timers
*/
clk_m_a9_ext2f_div2: clk-m-a9-ext2f-div2s {
#clock-cells = <0>;
compatible = "fixed-factor-clock";
clocks = <&clk_s_c0_flexgen 13>;
clock-output-names = "clk-m-a9-ext2f-div2";
clock-div = <2>;
clock-mult = <1>;
};
}; };
}; };
...@@ -266,13 +260,7 @@ clk_s_d2_quadfs: clk-s-d2-quadfs@9106000 { ...@@ -266,13 +260,7 @@ clk_s_d2_quadfs: clk-s-d2-quadfs@9106000 {
"clk-s-d2-fs0-ch3"; "clk-s-d2-fs0-ch3";
}; };
clk_tmdsout_hdmi: clk-tmdsout-hdmi { clockgen-d2@9106000 {
#clock-cells = <0>;
compatible = "fixed-clock";
clock-frequency = <0>;
};
clockgen-d2@x9106000 {
compatible = "st,clkgen-c32"; compatible = "st,clkgen-c32";
reg = <0x9106000 0x1000>; reg = <0x9106000 0x1000>;
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
/ { / {
soc { soc {
pin-controller-rear { pin-controller-rear@922f080 {
usb0 { usb0 {
pinctrl_usb0: usb2-0 { pinctrl_usb0: usb2-0 {
......
...@@ -16,8 +16,9 @@ aliases { ...@@ -16,8 +16,9 @@ aliases {
}; };
soc { soc {
usb2_picophy1: phy2 { usb2_picophy1: phy2@0 {
compatible = "st,stih407-usb2-phy"; compatible = "st,stih407-usb2-phy";
reg = <0 0>;
#phy-cells = <0>; #phy-cells = <0>;
st,syscfg = <&syscfg_core 0xf8 0xf4>; st,syscfg = <&syscfg_core 0xf8 0xf4>;
resets = <&softreset STIH407_PICOPHY_SOFTRESET>, resets = <&softreset STIH407_PICOPHY_SOFTRESET>,
...@@ -27,8 +28,9 @@ usb2_picophy1: phy2 { ...@@ -27,8 +28,9 @@ usb2_picophy1: phy2 {
status = "disabled"; status = "disabled";
}; };
usb2_picophy2: phy3 { usb2_picophy2: phy3@0 {
compatible = "st,stih407-usb2-phy"; compatible = "st,stih407-usb2-phy";
reg = <0 0>;
#phy-cells = <0>; #phy-cells = <0>;
st,syscfg = <&syscfg_core 0xfc 0xf4>; st,syscfg = <&syscfg_core 0xfc 0xf4>;
resets = <&softreset STIH407_PICOPHY_SOFTRESET>, resets = <&softreset STIH407_PICOPHY_SOFTRESET>,
...@@ -102,11 +104,12 @@ ehci1: usb@9a83e00 { ...@@ -102,11 +104,12 @@ ehci1: usb@9a83e00 {
status = "disabled"; status = "disabled";
}; };
sti-display-subsystem { sti-display-subsystem@0 {
compatible = "st,sti-display-subsystem"; compatible = "st,sti-display-subsystem";
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
reg = <0 0>;
assigned-clocks = <&clk_s_d2_quadfs 0>, assigned-clocks = <&clk_s_d2_quadfs 0>,
<&clk_s_d2_quadfs 1>, <&clk_s_d2_quadfs 1>,
<&clk_s_c0_pll1 0>, <&clk_s_c0_pll1 0>,
...@@ -235,7 +238,7 @@ sti-hda@8d02000 { ...@@ -235,7 +238,7 @@ sti-hda@8d02000 {
<&clk_s_d2_quadfs 1>; <&clk_s_d2_quadfs 1>;
}; };
sti-hqvdp@9c000000 { sti-hqvdp@9c00000 {
compatible = "st,stih407-hqvdp"; compatible = "st,stih407-hqvdp";
reg = <0x9C00000 0x100000>; reg = <0x9C00000 0x100000>;
clock-names = "hqvdp", "pix_main"; clock-names = "hqvdp", "pix_main";
...@@ -273,7 +276,7 @@ thermal@91a0000 { ...@@ -273,7 +276,7 @@ thermal@91a0000 {
interrupts = <GIC_SPI 205 IRQ_TYPE_EDGE_RISING>; interrupts = <GIC_SPI 205 IRQ_TYPE_EDGE_RISING>;
}; };
delta0 { delta0@0 {
compatible = "st,st-delta"; compatible = "st,st-delta";
clock-names = "delta", clock-names = "delta",
"delta-st231", "delta-st231",
......
...@@ -18,7 +18,7 @@ chosen { ...@@ -18,7 +18,7 @@ chosen {
linux,stdout-path = &sbc_serial0; linux,stdout-path = &sbc_serial0;
}; };
memory { memory@40000000 {
device_type = "memory"; device_type = "memory";
reg = <0x40000000 0xc0000000>; reg = <0x40000000 0xc0000000>;
}; };
...@@ -28,24 +28,24 @@ aliases { ...@@ -28,24 +28,24 @@ aliases {
ethernet0 = &ethernet0; ethernet0 = &ethernet0;
}; };
leds {
compatible = "gpio-leds";
red {
label = "Front Panel LED";
gpios = <&pio4 1 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "heartbeat";
};
green {
gpios = <&pio1 3 GPIO_ACTIVE_HIGH>;
default-state = "off";
};
};
soc { soc {
sbc_serial0: serial@9530000 { sbc_serial0: serial@9530000 {
status = "okay"; status = "okay";
}; };
leds {
compatible = "gpio-leds";
red {
label = "Front Panel LED";
gpios = <&pio4 1 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "heartbeat";
};
green {
gpios = <&pio1 3 GPIO_ACTIVE_HIGH>;
default-state = "off";
};
};
i2c@9842000 { i2c@9842000 {
status = "okay"; status = "okay";
}; };
...@@ -88,7 +88,7 @@ mmc0: sdhci@9060000 { ...@@ -88,7 +88,7 @@ mmc0: sdhci@9060000 {
non-removable; non-removable;
}; };
miphy28lp_phy: miphy28lp@9b22000 { miphy28lp_phy: miphy28lp@0 {
phy_port0: port@9b22000 { phy_port0: port@9b22000 {
st,osc-rdy; st,osc-rdy;
......
...@@ -7,6 +7,22 @@ ...@@ -7,6 +7,22 @@
*/ */
#include <dt-bindings/clock/stih418-clks.h> #include <dt-bindings/clock/stih418-clks.h>
/ { / {
/*
* Fixed 30MHz oscillator inputs to SoC
*/
clk_sysin: clk-sysin {
#clock-cells = <0>;
compatible = "fixed-clock";
clock-frequency = <30000000>;
clock-output-names = "CLK_SYSIN";
};
clk_tmdsout_hdmi: clk-tmdsout-hdmi {
#clock-cells = <0>;
compatible = "fixed-clock";
clock-frequency = <0>;
};
clocks { clocks {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
...@@ -14,27 +30,6 @@ clocks { ...@@ -14,27 +30,6 @@ clocks {
compatible = "st,stih418-clk", "simple-bus"; compatible = "st,stih418-clk", "simple-bus";
/*
* Fixed 30MHz oscillator inputs to SoC
*/
clk_sysin: clk-sysin {
#clock-cells = <0>;
compatible = "fixed-clock";
clock-frequency = <30000000>;
clock-output-names = "CLK_SYSIN";
};
/*
* ARM Peripheral clock for timers
*/
arm_periph_clk: clk-m-a9-periphs {
#clock-cells = <0>;
compatible = "fixed-factor-clock";
clocks = <&clk_m_a9>;
clock-div = <2>;
clock-mult = <1>;
};
/* /*
* A9 PLL. * A9 PLL.
*/ */
...@@ -64,32 +59,17 @@ clk_m_a9: clk-m-a9@92b0000 { ...@@ -64,32 +59,17 @@ clk_m_a9: clk-m-a9@92b0000 {
<&clockgen_a9_pll 0>, <&clockgen_a9_pll 0>,
<&clk_s_c0_flexgen 13>, <&clk_s_c0_flexgen 13>,
<&clk_m_a9_ext2f_div2>; <&clk_m_a9_ext2f_div2>;
};
/*
* ARM Peripheral clock for timers
*/
clk_m_a9_ext2f_div2: clk-m-a9-ext2f-div2s {
#clock-cells = <0>;
compatible = "fixed-factor-clock";
clocks = <&clk_s_c0_flexgen 13>;
clock-output-names = "clk-m-a9-ext2f-div2"; /*
* ARM Peripheral clock for timers
clock-div = <2>; */
clock-mult = <1>; arm_periph_clk: clk-m-a9-periphs {
}; #clock-cells = <0>;
compatible = "fixed-factor-clock";
/* clocks = <&clk_m_a9>;
* Bootloader initialized system infrastructure clock for clock-div = <2>;
* serial devices. clock-mult = <1>;
*/ };
clk_ext2f_a9: clockgen-c0@13 {
#clock-cells = <0>;
compatible = "fixed-clock";
clock-frequency = <200000000>;
clock-output-names = "clk-s-icn-reg-0";
}; };
clockgen-a@90ff000 { clockgen-a@90ff000 {
...@@ -207,6 +187,21 @@ clk_s_c0_flexgen: clk-s-c0-flexgen { ...@@ -207,6 +187,21 @@ clk_s_c0_flexgen: clk-s-c0-flexgen {
"clk-proc-mixer", "clk-proc-mixer",
"clk-proc-sc", "clk-proc-sc",
"clk-avsp-hevc"; "clk-avsp-hevc";
/*
* ARM Peripheral clock for timers
*/
clk_m_a9_ext2f_div2: clk-m-a9-ext2f-div2s {
#clock-cells = <0>;
compatible = "fixed-factor-clock";
clocks = <&clk_s_c0_flexgen 13>;
clock-output-names = "clk-m-a9-ext2f-div2";
clock-div = <2>;
clock-mult = <1>;
};
}; };
}; };
...@@ -259,13 +254,7 @@ clk_s_d2_quadfs: clk-s-d2-quadfs@9106000 { ...@@ -259,13 +254,7 @@ clk_s_d2_quadfs: clk-s-d2-quadfs@9106000 {
"clk-s-d2-fs0-ch3"; "clk-s-d2-fs0-ch3";
}; };
clk_tmdsout_hdmi: clk-tmdsout-hdmi { clockgen-d2@9106000 {
#clock-cells = <0>;
compatible = "fixed-clock";
clock-frequency = <0>;
};
clockgen-d2@x9106000 {
compatible = "st,clkgen-c32"; compatible = "st,clkgen-c32";
reg = <0x9106000 0x1000>; reg = <0x9106000 0x1000>;
......
...@@ -30,8 +30,9 @@ cpu@3 { ...@@ -30,8 +30,9 @@ cpu@3 {
}; };
soc { soc {
usb2_picophy1: phy2 { usb2_picophy1: phy2@0 {
compatible = "st,stih407-usb2-phy"; compatible = "st,stih407-usb2-phy";
reg = <0 0>;
#phy-cells = <0>; #phy-cells = <0>;
st,syscfg = <&syscfg_core 0xf8 0xf4>; st,syscfg = <&syscfg_core 0xf8 0xf4>;
resets = <&softreset STIH407_PICOPHY_SOFTRESET>, resets = <&softreset STIH407_PICOPHY_SOFTRESET>,
...@@ -39,8 +40,9 @@ usb2_picophy1: phy2 { ...@@ -39,8 +40,9 @@ usb2_picophy1: phy2 {
reset-names = "global", "port"; reset-names = "global", "port";
}; };
usb2_picophy2: phy3 { usb2_picophy2: phy3@0 {
compatible = "st,stih407-usb2-phy"; compatible = "st,stih407-usb2-phy";
reg = <0 0>;
#phy-cells = <0>; #phy-cells = <0>;
st,syscfg = <&syscfg_core 0xfc 0xf4>; st,syscfg = <&syscfg_core 0xfc 0xf4>;
resets = <&softreset STIH407_PICOPHY_SOFTRESET>, resets = <&softreset STIH407_PICOPHY_SOFTRESET>,
......
...@@ -10,23 +10,69 @@ ...@@ -10,23 +10,69 @@
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/media/c8sectpfe.h> #include <dt-bindings/media/c8sectpfe.h>
/ { / {
soc { leds {
sbc_serial0: serial@9530000 { compatible = "gpio-leds";
status = "okay"; red {
label = "Front Panel LED";
gpios = <&pio4 1 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "heartbeat";
};
green {
gpios = <&pio1 3 GPIO_ACTIVE_HIGH>;
default-state = "off";
};
};
sound: sound {
compatible = "simple-audio-card";
simple-audio-card,name = "STI-B2120";
status = "okay";
simple-audio-card,dai-link0 {
/* HDMI */
format = "i2s";
mclk-fs = <128>;
cpu {
sound-dai = <&sti_uni_player0>;
};
codec {
sound-dai = <&sti_hdmi>;
};
};
simple-audio-card,dai-link1 {
/* DAC */
format = "i2s";
mclk-fs = <256>;
frame-inversion = <1>;
cpu {
sound-dai = <&sti_uni_player2>;
};
codec {
sound-dai = <&sti_sasg_codec 1>;
};
}; };
leds { simple-audio-card,dai-link2 {
compatible = "gpio-leds"; /* SPDIF */
red { format = "left_j";
label = "Front Panel LED"; mclk-fs = <128>;
gpios = <&pio4 1 GPIO_ACTIVE_HIGH>; cpu {
linux,default-trigger = "heartbeat"; sound-dai = <&sti_uni_player3>;
}; };
green {
gpios = <&pio1 3 GPIO_ACTIVE_HIGH>; codec {
default-state = "off"; sound-dai = <&sti_sasg_codec 0>;
}; };
}; };
};
soc {
sbc_serial0: serial@9530000 {
status = "okay";
};
pwm0: pwm@9810000 { pwm0: pwm@9810000 {
status = "okay"; status = "okay";
...@@ -80,7 +126,7 @@ hdmiddc: i2c@9541000 { ...@@ -80,7 +126,7 @@ hdmiddc: i2c@9541000 {
st,i2c-min-sda-pulse-width-us = <5>; st,i2c-min-sda-pulse-width-us = <5>;
}; };
miphy28lp_phy: miphy28lp@9b22000 { miphy28lp_phy: miphy28lp@0 {
phy_port0: port@9b22000 { phy_port0: port@9b22000 {
st,osc-rdy; st,osc-rdy;
...@@ -126,7 +172,7 @@ demux@8a20000 { ...@@ -126,7 +172,7 @@ demux@8a20000 {
clock-names = "c8sectpfe"; clock-names = "c8sectpfe";
/* tsin0 is TSA on NIMA */ /* tsin0 is TSA on NIMA */
tsin0: port@0 { tsin0: port {
tsin-num = <0>; tsin-num = <0>;
serial-not-parallel; serial-not-parallel;
i2c-bus = <&ssc2>; i2c-bus = <&ssc2>;
...@@ -147,53 +193,11 @@ sti_uni_player3: sti-uni-player@8d85000 { ...@@ -147,53 +193,11 @@ sti_uni_player3: sti-uni-player@8d85000 {
status = "okay"; status = "okay";
}; };
sti_sasg_codec: sti-sasg-codec { syscfg_core: core-syscfg@92b0000 {
status = "okay"; sti_sasg_codec: sti-sasg-codec {
pinctrl-names = "default"; status = "okay";
pinctrl-0 = <&pinctrl_spdif_out>; pinctrl-names = "default";
}; pinctrl-0 = <&pinctrl_spdif_out>;
sound {
compatible = "simple-audio-card";
simple-audio-card,name = "STI-B2120";
status = "okay";
simple-audio-card,dai-link@0 {
/* HDMI */
format = "i2s";
mclk-fs = <128>;
cpu {
sound-dai = <&sti_uni_player0>;
};
codec {
sound-dai = <&sti_hdmi>;
};
};
simple-audio-card,dai-link@1 {
/* DAC */
format = "i2s";
mclk-fs = <256>;
frame-inversion = <1>;
cpu {
sound-dai = <&sti_uni_player2>;
};
codec {
sound-dai = <&sti_sasg_codec 1>;
};
};
simple-audio-card,dai-link@2 {
/* SPDIF */
format = "left_j";
mclk-fs = <128>;
cpu {
sound-dai = <&sti_uni_player3>;
};
codec {
sound-dai = <&sti_sasg_codec 0>;
};
}; };
}; };
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment