Skip to content

Commit

Permalink
ARM64: dts: meson-axg: add s400 microphone card leds
Browse files Browse the repository at this point in the history
The microphone card connected to the s400 has 6 leds controlled
through an additional i2c gpio controller.

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
  • Loading branch information
Jerome Brunet authored and Kevin Hilman committed Jul 20, 2018
1 parent d1b5a0a commit 6279f66
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions arch/arm64/boot/dts/amlogic/meson-axg-s400.dts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,40 @@
clock-frequency = <32768>;
pwms = <&pwm_ab 0 30518 0>; /* PWM_A at 32.768KHz */
};

speaker-leds {
compatible = "gpio-leds";

aled1 {
label = "speaker:aled1";
gpios = <&gpio_speaker 7 0>;
};

aled2 {
label = "speaker:aled2";
gpios = <&gpio_speaker 6 0>;
};

aled3 {
label = "speaker:aled3";
gpios = <&gpio_speaker 5 0>;
};

aled4 {
label = "speaker:aled4";
gpios = <&gpio_speaker 4 0>;
};

aled5 {
label = "speaker:aled5";
gpios = <&gpio_speaker 3 0>;
};

aled6 {
label = "speaker:aled6";
gpios = <&gpio_speaker 2 0>;
};
};
};

&ethmac {
Expand Down Expand Up @@ -99,6 +133,14 @@
status = "okay";
pinctrl-0 = <&i2c_ao_sck_10_pins>, <&i2c_ao_sda_11_pins>;
pinctrl-names = "default";

gpio_speaker: gpio-controller@1f {
compatible = "nxp,pca9557";
reg = <0x1f>;
gpio-controller;
#gpio-cells = <2>;
vcc-supply = <&vddao_3v3>;
};
};

&pwm_ab {
Expand Down

0 comments on commit 6279f66

Please sign in to comment.