From 9565747d6b2ed02b2b40ee113aa8af1bace52d64 Mon Sep 17 00:00:00 2001 From: Josep Orga Date: Tue, 21 Apr 2020 21:07:18 +0200 Subject: [PATCH] ARM: dts: Add imx6ull-somdevices-C8P1.dts functionallity. Signed-off-by: Josep Orga --- arch/arm/boot/dts/imx6ull-somdevices-C8P1.dts | 136 ++++++++++++++++++ 1 file changed, 136 insertions(+) diff --git a/arch/arm/boot/dts/imx6ull-somdevices-C8P1.dts b/arch/arm/boot/dts/imx6ull-somdevices-C8P1.dts index 394cb0e619fb..531b44d0bd04 100644 --- a/arch/arm/boot/dts/imx6ull-somdevices-C8P1.dts +++ b/arch/arm/boot/dts/imx6ull-somdevices-C8P1.dts @@ -1,3 +1,139 @@ #define MMC_SPI #include "imx6ull-somdevices.dtsi" + +/ { + leds { + led1 { + label = "red"; + gpios = <&gpio4 11 GPIO_ACTIVE_HIGH>; + default-state = "on"; + }; + led2 { + label = "green"; + gpios = <&gpio4 15 GPIO_ACTIVE_HIGH>; + default-state = "on"; + }; + led3 { + label = "blue"; + gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>; + default-state = "on"; + }; + led4 { + label = "white"; + gpios = <&gpio1 18 GPIO_ACTIVE_HIGH>; + default-state = "on"; + }; + }; + + keys { + compatible = "gpio-keys"; + pinctrl-names = "default"; + + button0 { + label = "BUTTON_-"; + gpios = <&gpio1 2 GPIO_ACTIVE_LOW>; //button_- + linux,code = ; + gpio-key,wakeup; + }; + button1 { + label = "BUTTON_+"; + gpios = <&gpio4 13 GPIO_ACTIVE_LOW>; //button_+ + linux,code = ; + gpio-key,wakeup; + }; + button2 { + label = "BUTTON_CH"; + gpios = <&gpio1 25 GPIO_ACTIVE_LOW>; //button_ch + linux,code = ; + gpio-key,wakeup; + }; + button3 { + label = "BUTTON_RESTORE"; + gpios = <&gpio4 16 GPIO_ACTIVE_LOW>; //button_restore + linux,code = ; + gpio-key,wakeup; + }; + button4 { + label = "BUTTON_SHUTDOWN"; + gpios = <&gpio4 12 GPIO_ACTIVE_LOW>; //button_shutdown + linux,code = ; + gpio-key,wakeup; + }; + }; + + sound { + compatible = "somdevices,imx6ul-sgtl5000", + "simple-audio-card"; + simple-audio-card,name = "imx6ul-sgtl5000-audio"; + simple-audio-card,format = "i2s"; + simple-audio-card,bitclock-master = <&codec_dai>; + simple-audio-card,frame-master = <&codec_dai>; + simple-audio-card,widgets = + "Microphone", "Mic Jack", + "Line", "Line In", + "Line", "Line Out", + "Headphone", "Headphone Jack"; + simple-audio-card,routing = + "MIC_IN", "Mic Jack", + "Mic Jack", "Mic Bias", + "Headphone Jack", "HP_OUT"; + + cpu_dai: simple-audio-card,cpu { + sound-dai = <&sai2>; + }; + + codec_dai: simple-audio-card,codec { + sound-dai = <&sgtl5000>; + }; + }; + + backlight { + status = "disabled"; + }; + + pxp_v4l2 { + status = "disabled"; + }; +}; + +&flexcan1 { + status = "disabled"; +}; + +&i2c2 { + pcf8563@51 { + compatible = "nxp,pcf8563"; + reg = <0x51>; + wakeup-source; + }; + + sgtl5000: codec@a { + compatible = "fsl,sgtl5000"; + reg = <0x0a>; + #sound-dai-cells = <0>; + VDDA-supply = <&sw3_reg>; + VDDIO-supply = <&sw3_reg>; + clocks = <&clks IMX6UL_CLK_SAI2>; + clock-names = "mclk"; + wlf,shared-lrclk; + }; + + eeprom@53 { + compatible = "microchip,24c02"; + reg = <0x53>; + }; +}; + +&sai2 { + #sound-dai-cells = <0>; + status = "okay"; +}; + +&lcdif { + status = "disabled"; +}; + +&uart2 { + status = "disabled"; +}; -- 2.17.1