From 6e17009512061be62f0f1acc8e5446b5f77f0605 Mon Sep 17 00:00:00 2001 From: vpeter4 Date: Sun, 14 Sep 2014 19:22:32 +0200 Subject: [PATCH] projects/Cuboxi/patches/linux: update device tree for TBS Matrix system --- ...=> linux-300-tbs_matrix_device_tree.patch} | 45 +++++++++++++++++-- 1 file changed, 41 insertions(+), 4 deletions(-) rename projects/Cuboxi/patches/linux/{linux-300-tbs_matrix_ir_fan_led.patch => linux-300-tbs_matrix_device_tree.patch} (54%) diff --git a/projects/Cuboxi/patches/linux/linux-300-tbs_matrix_ir_fan_led.patch b/projects/Cuboxi/patches/linux/linux-300-tbs_matrix_device_tree.patch similarity index 54% rename from projects/Cuboxi/patches/linux/linux-300-tbs_matrix_ir_fan_led.patch rename to projects/Cuboxi/patches/linux/linux-300-tbs_matrix_device_tree.patch index 9abe7449e0..e215645b1f 100644 --- a/projects/Cuboxi/patches/linux/linux-300-tbs_matrix_ir_fan_led.patch +++ b/projects/Cuboxi/patches/linux/linux-300-tbs_matrix_device_tree.patch @@ -15,7 +15,7 @@ chosen { stdout-path = &uart1; }; -@@ -132,6 +140,12 @@ +@@ -132,9 +140,22 @@ red { gpios = <&gpio1 2 0>; default-state = "on"; @@ -28,7 +28,17 @@ }; }; -@@ -475,6 +489,12 @@ ++ sound-spdif { ++ compatible = "fsl,imx-audio-spdif"; ++ model = "imx-spdif"; ++ spdif-controller = <&spdif>; ++ spdif-out; ++ }; ++ + sound-hdmi { + compatible = "fsl,imx6q-audio-hdmi", + "fsl,imx-audio-hdmi"; +@@ -475,6 +496,16 @@ >; }; @@ -37,11 +47,15 @@ + MX6QDL_PAD_EIM_D18__GPIO3_IO18 0x80000000 + >; + }; -+ ++ ++ pinctrl_sabresd_spdif: sabresd-spdif { ++ fsl,pins = ; ++ }; ++ pinctrl_hdmi_cec: hdmi_cecgrp { fsl,pins = < MX6QDL_PAD_KEY_ROW2__HDMI_TX_CEC_LINE 0x1f8b0 -@@ -618,6 +638,7 @@ +@@ -618,6 +649,7 @@ pinctrl_gpio_leds: gpioledsgrp { fsl,pins = < MX6QDL_PAD_GPIO_2__GPIO1_IO02 0x80000000 @@ -49,3 +63,26 @@ >; }; }; +@@ -698,6 +730,22 @@ + status = "okay"; + }; + ++&spdif { ++ pinctrl-names = "default"; ++ pinctrl-0 = <&pinctrl_sabresd_spdif>; ++ clocks = <&clks 197>, <&clks 0>, ++ <&clks 197>, <&clks 0>, ++ <&clks 0>, <&clks 0>, ++ <&clks 0>, <&clks 0>, ++ <&clks 0>; ++ clock-names = "core", "rxtx0", ++ "rxtx1", "rxtx2", ++ "rxtx3", "rxtx4", ++ "rxtx5", "rxtx6", ++ "rxtx7"; ++ status = "okay"; ++}; ++ + &usbh1 { + vbus-supply = <®_usb_h1_vbus>; + status = "okay";