diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2020-04-15 22:35:55 +0200 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2020-05-13 22:08:29 +0200 |
commit | 80f3da5ab46b3b9531b08bb0dc6c87d925ea3d7e (patch) | |
tree | 22a2e52fceee1d125efbb786d835f9199c5c1057 | |
parent | 18ed8490085155a65e503ceec4bc84438d6d78e9 (diff) | |
download | openfirmware-lr/mmp3-4.tar.gz |
olpc/sound: move the Mic and HP jacks from /gpio-keys to /audio-complexlr/mmp3-4
The Linux codec drivers really wants to know which GPIOs are used for
connected jack detection and it also eventually registers an input device.
-rw-r--r-- | cpu/arm/olpc/sound.fth | 10 | ||||
-rw-r--r-- | dev/olpc/gpio-keys.fth | 28 |
2 files changed, 10 insertions, 28 deletions
diff --git a/cpu/arm/olpc/sound.fth b/cpu/arm/olpc/sound.fth index 0cec3b8a..1ef2cb70 100644 --- a/cpu/arm/olpc/sound.fth +++ b/cpu/arm/olpc/sound.fth @@ -1090,6 +1090,16 @@ device-end " widgets" property " /audio/port" encode-phandle " dais" property + " /gpio" encode-phandle + mic-plug-gpio# encode-int encode+ + 0 encode-int encode+ \ GPIO_ACTIVE_HIGH + " mic-det-gpio" property + + " /gpio" encode-phandle + hp-plug-gpio# encode-int encode+ + 0 encode-int encode+ \ GPIO_ACTIVE_HIGH + " hp-det-gpio" property + \ The name that was hardcoded in the Linux driver was OLPC XO-1.75 " OLPC XO" " model" string-property diff --git a/dev/olpc/gpio-keys.fth b/dev/olpc/gpio-keys.fth index 4d6d916b..6367b74c 100644 --- a/dev/olpc/gpio-keys.fth +++ b/dev/olpc/gpio-keys.fth @@ -43,34 +43,6 @@ new-device " gpios" property finish-device -new-device - " microphone_insert" device-name - " Microphone Plug" " label" string-property - 5 " linux,input-type" integer-property \ EV_SW - 4 " linux,code" integer-property \ SW_MICROPHONE_INSERT - d# 100 " debounce-interval" integer-property - 0 0 encode-bytes " wakeup-source" property - - " /gpio" encode-phandle - mic-plug-gpio# encode-int encode+ - 0 encode-int encode+ \ GPIO_ACTIVE_HIGH - " gpios" property -finish-device - -new-device - " headphone_insert" device-name - " Headphone Plug" " label" string-property - 5 " linux,input-type" integer-property \ EV_SW - 2 " linux,code" integer-property \ SW_HEADPHONE_INSERT - d# 100 " debounce-interval" integer-property - 0 0 encode-bytes " wakeup-source" property - - " /gpio" encode-phandle - hp-plug-gpio# encode-int encode+ - 0 encode-int encode+ \ GPIO_ACTIVE_HIGH - " gpios" property -finish-device - end-package \ LICENSE_BEGIN |