ARM: dts: Add imx6ull-somdevices-C8P1.dts functionallity.
authorJosep Orga <jorga@somdevices.com>
Tue, 21 Apr 2020 19:07:18 +0000 (21:07 +0200)
committerJosep Orga <jorga@somdevices.com>
Tue, 21 Apr 2020 19:07:18 +0000 (21:07 +0200)
Signed-off-by: Josep Orga <jorga@somdevices.com>
arch/arm/boot/dts/imx6ull-somdevices-C8P1.dts

index 394cb0e..531b44d 100644 (file)
@@ -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 = <KEY_F1>;
+                       gpio-key,wakeup;
+               };
+               button1 {
+                       label = "BUTTON_+";
+                       gpios = <&gpio4 13 GPIO_ACTIVE_LOW>; //button_+
+                       linux,code = <KEY_F2>;
+                       gpio-key,wakeup;
+               };
+               button2 {
+                       label = "BUTTON_CH";
+                       gpios = <&gpio1 25 GPIO_ACTIVE_LOW>; //button_ch
+                       linux,code = <KEY_F3>;
+                       gpio-key,wakeup;
+               };
+               button3 {
+                       label = "BUTTON_RESTORE";
+                       gpios = <&gpio4 16 GPIO_ACTIVE_LOW>; //button_restore
+                       linux,code = <KEY_F4>;
+                       gpio-key,wakeup;
+               };
+               button4 {
+                       label = "BUTTON_SHUTDOWN";
+                       gpios = <&gpio4 12 GPIO_ACTIVE_LOW>; //button_shutdown
+                       linux,code = <KEY_F5>;
+                       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";
+};