ARM: imx6ull-somdevices-C8P1.dtsi:
authorJosep Orga <jorga@somdevices.com>
Thu, 16 Apr 2020 19:31:53 +0000 (21:31 +0200)
committerJosep Orga <jorga@somdevices.com>
Thu, 16 Apr 2020 19:31:53 +0000 (21:31 +0200)
· Changed to I2C2.
· Changed GPIOs of LEDs and Keys (removed pinctrl_keys).
· Changed EEPROM configuration.

Signed-off-by: Josep Orga <jorga@somdevices.com>
arch/arm/boot/dts/imx6ull-somdevices-C8P1.dts

index 5ae0536..b11f201 100644 (file)
@@ -16,7 +16,7 @@
                };
                led3 {
                        label = "blue";
-                       gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
+                       gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
                        default-state = "on";
                };
                led4 {
        keys {
                compatible = "gpio-keys";
                pinctrl-names = "default";
-               pinctrl-0 = <&pinctrl_keys>;
 
                button0 {
                        label = "BUTTON_-";
-                       gpios = <&gpio1 1 GPIO_ACTIVE_LOW>; //button_-
+                       gpios = <&gpio1 2 GPIO_ACTIVE_LOW>; //button_-
                        linux,code = <KEY_F1>;
                        gpio-key,wakeup;
                };
@@ -45,7 +44,7 @@
                };
                button2 {
                        label = "BUTTON_CH";
-                       gpios = <&gpio3 4 GPIO_ACTIVE_LOW>; //button_ch
+                       gpios = <&gpio1 25 GPIO_ACTIVE_LOW>; //button_ch
                        linux,code = <KEY_F3>;
                        gpio-key,wakeup;
                };
@@ -56,7 +55,7 @@
                        gpio-key,wakeup;
                };
                button4 {
-                       label = "BUTTON_SHUTDOWN";
+                       label = "BUTTON_SHUTDOWN"; //OK
                        gpios = <&gpio4 12 GPIO_ACTIVE_LOW>; //button_shutdown
                        linux,code = <KEY_F5>;
                        gpio-key,wakeup;
        status = "disabled";
 };
 
-&i2c1 {
+&i2c2 {
        pcf8563@51 {
                compatible = "nxp,pcf8563";
                reg = <0x51>;
                compatible = "fsl,sgtl5000";
                reg = <0x0a>;
                #sound-dai-cells = <0>;
-               VDDA-supply = <&reg_sd1_vmmc>;
-               VDDIO-supply = <&reg_sd1_vmmc>;
+               VDDA-supply = <&sw3_reg>;
+               VDDIO-supply = <&sw3_reg>;
                clocks = <&clks IMX6UL_CLK_SAI2>;
                clock-names = "mclk";
                wlf,shared-lrclk;
        };
 
-       /*TODO: Check if 24AA025E48T-I/OT can be set
        eeprom@53 {
-               compatible = "microchip,24c512";
+               compatible = "microchip,24c02";
                reg = <0x53>;
-       };*/
-};
-
-&iomuxc {
-       pinctrl_keys: keys {
-               fsl,pins = <
-                       MX6UL_PAD_GPIO1_IO01__GPIO1_IO01        0x1b0b0 //GPIO02
-                       MX6UL_PAD_UART2_TX_DATA__GPIO1_IO20     0x1b0b0 //IN_2
-               >;
        };
 };