From 900ea940686b5a5377908fc53e276353f1a4b50e Mon Sep 17 00:00:00 2001 From: hmz007 Date: Thu, 15 Jun 2023 19:45:20 +0800 Subject: [PATCH] device: update config for FriendlyELEC boards Signed-off-by: hmz007 Change-Id: Ib4724539dde93e5e1f6f1d64f956faa7109fcf77 --- .../input/Vendor_1949_Product_0401.idc | 18 + .../input/Vendor_1949_Product_0410.idc | 18 + .../input/Vendor_2717_Product_32b8.idc | 24 + .../nanopi3/input/Vendor_2717_Product_32b8.kl | 43 + .../friendlyelec/nanopi3/input/keyboards.mk | 20 + .../nanopi3/media_profiles_default.xml | 203 +- device/rockchip/common/device.mk | 2 +- device/rockchip/rk356x/nanopi5/device.mk | 12 +- device/rockchip/rk356x/nanopi5/dtbo.img | Bin 1184 -> 768 bytes .../SettingsProvider/res/values/defaults.xml | 8 +- device/rockchip/rk356x/nanopi5_box/device.mk | 5 +- device/rockchip/rk356x/nanopi5_box/dtbo.img | Bin 1184 -> 768 bytes .../SettingsProvider/res/values/defaults.xml | 10 +- .../nanopi5_box/remote_config/fd8b0030_pwm.kl | 2 +- device/rockchip/rk3588/device.mk | 40 +- device/rockchip/rk3588/nanopi6/BoardConfig.mk | 2 +- .../rk3588/nanopi6/camera3_profiles.xml | 3251 +++++++++++++++++ device/rockchip/rk3588/nanopi6/device.mk | 14 +- device/rockchip/rk3588/nanopi6/dtbo.img | Bin 1184 -> 768 bytes .../SettingsProvider/res/values/defaults.xml | 8 +- device/rockchip/rk3588/nanopi6_box/device.mk | 7 +- device/rockchip/rk3588/nanopi6_box/dtbo.img | Bin 1184 -> 768 bytes .../SettingsProvider/res/values/defaults.xml | 10 +- .../nanopi6_box/remote_config/fd8b0030_pwm.kl | 2 +- 24 files changed, 3535 insertions(+), 164 deletions(-) create mode 100644 device/friendlyelec/nanopi3/input/Vendor_1949_Product_0401.idc create mode 100644 device/friendlyelec/nanopi3/input/Vendor_1949_Product_0410.idc create mode 100644 device/friendlyelec/nanopi3/input/Vendor_2717_Product_32b8.idc create mode 100644 device/friendlyelec/nanopi3/input/Vendor_2717_Product_32b8.kl create mode 100644 device/friendlyelec/nanopi3/input/keyboards.mk create mode 100644 device/rockchip/rk3588/nanopi6/camera3_profiles.xml diff --git a/device/friendlyelec/nanopi3/input/Vendor_1949_Product_0401.idc b/device/friendlyelec/nanopi3/input/Vendor_1949_Product_0401.idc new file mode 100644 index 00000000000..9f2b2e3b229 --- /dev/null +++ b/device/friendlyelec/nanopi3/input/Vendor_1949_Product_0401.idc @@ -0,0 +1,18 @@ +# Copyright (C) 2021 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Amazon Fire TV remote +keyboard.layout = Vendor_1949_Product_0401 +keyboard.doNotWakeByDefault = 1 +audio.mic = 1 diff --git a/device/friendlyelec/nanopi3/input/Vendor_1949_Product_0410.idc b/device/friendlyelec/nanopi3/input/Vendor_1949_Product_0410.idc new file mode 100644 index 00000000000..9f2b2e3b229 --- /dev/null +++ b/device/friendlyelec/nanopi3/input/Vendor_1949_Product_0410.idc @@ -0,0 +1,18 @@ +# Copyright (C) 2021 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Amazon Fire TV remote +keyboard.layout = Vendor_1949_Product_0401 +keyboard.doNotWakeByDefault = 1 +audio.mic = 1 diff --git a/device/friendlyelec/nanopi3/input/Vendor_2717_Product_32b8.idc b/device/friendlyelec/nanopi3/input/Vendor_2717_Product_32b8.idc new file mode 100644 index 00000000000..5be820664a2 --- /dev/null +++ b/device/friendlyelec/nanopi3/input/Vendor_2717_Product_32b8.idc @@ -0,0 +1,24 @@ +# Copyright (C) 2021 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# +# Input Device Configuration file for Bluetooth Remote. +# +# + +# Basic Parameters +keyboard.layout = Vendor_2717_Product_32b8 +keyboard.doNotWakeByDefault = 0 +# audio.mic = 1 + diff --git a/device/friendlyelec/nanopi3/input/Vendor_2717_Product_32b8.kl b/device/friendlyelec/nanopi3/input/Vendor_2717_Product_32b8.kl new file mode 100644 index 00000000000..00f090d3b29 --- /dev/null +++ b/device/friendlyelec/nanopi3/input/Vendor_2717_Product_32b8.kl @@ -0,0 +1,43 @@ +# Copyright (C) 2021 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# +# Key Layout file for Bluetooth Remote. +# + +key 103 DPAD_UP +key 108 DPAD_DOWN +key 105 DPAD_LEFT +key 106 DPAD_RIGHT +key 96 DPAD_CENTER + +key 102 HOME +key 158 BACK +key 127 MENU +key 116 POWER + +key 168 MEDIA_REWIND +key 208 MEDIA_FAST_FORWARD +key 164 MEDIA_PLAY_PAUSE +key 217 ASSIST + +key 113 VOLUME_MUTE +key 114 VOLUME_DOWN +key 115 VOLUME_UP + +# custom keys +# key 28 ENTER +# key 63 F5 +key usage 0x00070028 DPAD_CENTER +key usage 0x0007003e F12 diff --git a/device/friendlyelec/nanopi3/input/keyboards.mk b/device/friendlyelec/nanopi3/input/keyboards.mk new file mode 100644 index 00000000000..f47e1d5ad0f --- /dev/null +++ b/device/friendlyelec/nanopi3/input/keyboards.mk @@ -0,0 +1,20 @@ +# Copyright (C) 2021 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +BOARD_INPUTCFG_DIR := device/friendlyelec/nanopi3/input + +PRODUCT_COPY_FILES += \ + $(call find-copy-subdir-files,*.kl,$(BOARD_INPUTCFG_DIR),system/usr/keylayout) \ + $(call find-copy-subdir-files,*.idc,$(BOARD_INPUTCFG_DIR),system/usr/idc) + diff --git a/device/friendlyelec/nanopi3/media_profiles_default.xml b/device/friendlyelec/nanopi3/media_profiles_default.xml index 8fa5dad6413..d277335f9e9 100644 --- a/device/friendlyelec/nanopi3/media_profiles_default.xml +++ b/device/friendlyelec/nanopi3/media_profiles_default.xml @@ -38,13 +38,13 @@ @@ -68,7 +68,7 @@ frameRate="30" />