@@ -42,6 +42,8 @@
ethernet0 = &avb;
serial3 = &scif4;
serial5 = &hscif1;
+ i2c9 = &gpioi2c5;
+ i2c11 = &i2caudiocodec;
};
chosen {
@@ -55,6 +57,36 @@
clock-frequency = <26000000>;
};
+ gpioi2c5: i2c-9 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ compatible = "i2c-gpio";
+ status = "disabled";
+ scl-gpios = <&gpio0 14 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
+ sda-gpios = <&gpio0 15 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
+ i2c-gpio,delay-us = <5>;
+ };
+
+ /*
+ * A fallback to GPIO is provided for I2C5.
+ */
+ i2caudiocodec: i2c-11 {
+ compatible = "i2c-demux-pinctrl";
+ i2c-parent = <&i2c5>, <&gpioi2c5>;
+ i2c-bus-name = "i2c-audiocodec";
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ sgtl5000: codec@a {
+ compatible = "fsl,sgtl5000";
+ #sound-dai-cells = <0>;
+ reg = <0x0a>;
+ clocks = <&audio_clock>;
+ VDDA-supply = <®_3p3v>;
+ VDDIO-supply = <®_3p3v>;
+ };
+ };
+
rsnd_sgtl5000: sound {
compatible = "simple-audio-card";
simple-audio-card,format = "i2s";
@@ -126,19 +158,9 @@
&i2c5 {
pinctrl-0 = <&i2c5_pins>;
- pinctrl-names = "default";
+ pinctrl-names = "i2c-audiocodec";
- status = "okay";
clock-frequency = <400000>;
-
- sgtl5000: codec@a {
- compatible = "fsl,sgtl5000";
- #sound-dai-cells = <0>;
- reg = <0x0a>;
- clocks = <&audio_clock>;
- VDDA-supply = <®_3p3v>;
- VDDIO-supply = <®_3p3v>;
- };
};
&pci1 {