MIPS: DTS: CI20: Add DT nodes for HDMI setup
We need to hook up * HDMI connector * HDMI power regulator * JZ4780_CLK_HDMI @ 27 MHz * DDC pinmux * HDMI and LCDC endpoint connections Signed-off-by: Paul Boddie <paul@boddie.org.uk> Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
This commit is contained in:
parent
9375100da3
commit
ae1b8d2c2d
1 changed files with 70 additions and 2 deletions
|
@ -78,6 +78,18 @@
|
||||||
enable-active-high;
|
enable-active-high;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
hdmi_out: connector {
|
||||||
|
compatible = "hdmi-connector";
|
||||||
|
label = "HDMI OUT";
|
||||||
|
type = "a";
|
||||||
|
|
||||||
|
port {
|
||||||
|
hdmi_con: endpoint {
|
||||||
|
remote-endpoint = <&dw_hdmi_out>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
ir: ir {
|
ir: ir {
|
||||||
compatible = "gpio-ir-receiver";
|
compatible = "gpio-ir-receiver";
|
||||||
gpios = <&gpe 3 GPIO_ACTIVE_LOW>;
|
gpios = <&gpe 3 GPIO_ACTIVE_LOW>;
|
||||||
|
@ -102,6 +114,17 @@
|
||||||
gpio = <&gpf 14 GPIO_ACTIVE_LOW>;
|
gpio = <&gpf 14 GPIO_ACTIVE_LOW>;
|
||||||
enable-active-high;
|
enable-active-high;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
hdmi_power: fixedregulator@3 {
|
||||||
|
compatible = "regulator-fixed";
|
||||||
|
|
||||||
|
regulator-name = "hdmi_power";
|
||||||
|
regulator-min-microvolt = <5000000>;
|
||||||
|
regulator-max-microvolt = <5000000>;
|
||||||
|
|
||||||
|
gpio = <&gpa 25 0>;
|
||||||
|
enable-active-high;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&ext {
|
&ext {
|
||||||
|
@ -114,11 +137,12 @@
|
||||||
* precision.
|
* precision.
|
||||||
*/
|
*/
|
||||||
assigned-clocks = <&cgu JZ4780_CLK_OTGPHY>, <&cgu JZ4780_CLK_RTC>,
|
assigned-clocks = <&cgu JZ4780_CLK_OTGPHY>, <&cgu JZ4780_CLK_RTC>,
|
||||||
<&cgu JZ4780_CLK_SSIPLL>, <&cgu JZ4780_CLK_SSI>;
|
<&cgu JZ4780_CLK_SSIPLL>, <&cgu JZ4780_CLK_SSI>,
|
||||||
|
<&cgu JZ4780_CLK_HDMI>;
|
||||||
assigned-clock-parents = <0>, <&cgu JZ4780_CLK_RTCLK>,
|
assigned-clock-parents = <0>, <&cgu JZ4780_CLK_RTCLK>,
|
||||||
<&cgu JZ4780_CLK_MPLL>,
|
<&cgu JZ4780_CLK_MPLL>,
|
||||||
<&cgu JZ4780_CLK_SSIPLL>;
|
<&cgu JZ4780_CLK_SSIPLL>;
|
||||||
assigned-clock-rates = <48000000>, <0>, <54000000>;
|
assigned-clock-rates = <48000000>, <0>, <54000000>, <0>, <27000000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
&tcu {
|
&tcu {
|
||||||
|
@ -509,6 +533,12 @@
|
||||||
bias-disable;
|
bias-disable;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pins_hdmi_ddc: hdmi_ddc {
|
||||||
|
function = "hdmi-ddc";
|
||||||
|
groups = "hdmi-ddc";
|
||||||
|
bias-disable;
|
||||||
|
};
|
||||||
|
|
||||||
pins_nemc: nemc {
|
pins_nemc: nemc {
|
||||||
function = "nemc";
|
function = "nemc";
|
||||||
groups = "nemc-data", "nemc-cle-ale", "nemc-rd-we", "nemc-frd-fwe";
|
groups = "nemc-data", "nemc-cle-ale", "nemc-rd-we", "nemc-frd-fwe";
|
||||||
|
@ -539,3 +569,41 @@
|
||||||
bias-disable;
|
bias-disable;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&hdmi {
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&pins_hdmi_ddc>;
|
||||||
|
|
||||||
|
hdmi-5v-supply = <&hdmi_power>;
|
||||||
|
|
||||||
|
ports {
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <0>;
|
||||||
|
|
||||||
|
port@0 {
|
||||||
|
reg = <0>;
|
||||||
|
dw_hdmi_in: endpoint {
|
||||||
|
remote-endpoint = <&lcd_out>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
port@1 {
|
||||||
|
reg = <1>;
|
||||||
|
dw_hdmi_out: endpoint {
|
||||||
|
remote-endpoint = <&hdmi_con>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&lcdc0 {
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
port {
|
||||||
|
lcd_out: endpoint {
|
||||||
|
remote-endpoint = <&dw_hdmi_in>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue