Add support for generic M9S device and update Makefile entries
This commit is contained in:
1 parent
925cee3322
commit
296cf25b5a
4 files changed
+227
-1
No files matched your search
@@ -0,0 +1,94 @@
|
||||
CONFIG_TARGET_msm89xx=y
|
||||
CONFIG_TARGET_msm89xx_msm8916=y
|
||||
CONFIG_TARGET_msm89xx_msm8916_DEVICE_generic-m9s=y
|
||||
CONFIG_BUSYBOX_CUSTOM=y
|
||||
CONFIG_BUSYBOX_CONFIG_FBSET=y
|
||||
CONFIG_BUSYBOX_CONFIG_USLEEP=y
|
||||
CONFIG_LIBQMI_COLLECTION_BASIC=y
|
||||
CONFIG_LIBQMI_WITH_MBIM_QMUX=y
|
||||
CONFIG_LIBQMI_WITH_QRTR_GLIB=y
|
||||
CONFIG_MODEMMANAGER_WITH_MBIM=y
|
||||
CONFIG_MODEMMANAGER_WITH_NETIFD=y
|
||||
CONFIG_MODEMMANAGER_WITH_QMI=y
|
||||
CONFIG_MODEMMANAGER_WITH_QRTR=y
|
||||
CONFIG_PACKAGE_bash=y
|
||||
CONFIG_PACKAGE_cgi-io=y
|
||||
CONFIG_PACKAGE_dbus=y
|
||||
CONFIG_PACKAGE_glib2=y
|
||||
CONFIG_PACKAGE_ip-tiny=y
|
||||
CONFIG_PACKAGE_kmod-crypto-kpp=y
|
||||
CONFIG_PACKAGE_kmod-crypto-lib-chacha20=y
|
||||
CONFIG_PACKAGE_kmod-crypto-lib-chacha20poly1305=y
|
||||
CONFIG_PACKAGE_kmod-crypto-lib-curve25519=y
|
||||
CONFIG_PACKAGE_kmod-crypto-lib-poly1305=y
|
||||
CONFIG_PACKAGE_kmod-tun=y
|
||||
CONFIG_PACKAGE_kmod-udptunnel4=y
|
||||
CONFIG_PACKAGE_kmod-udptunnel6=y
|
||||
CONFIG_PACKAGE_kmod-wireguard=y
|
||||
CONFIG_PACKAGE_libattr=y
|
||||
CONFIG_PACKAGE_libdbus=y
|
||||
CONFIG_PACKAGE_libexpat=y
|
||||
CONFIG_PACKAGE_libfdisk=y
|
||||
CONFIG_PACKAGE_libffi=y
|
||||
CONFIG_PACKAGE_libiwinfo=y
|
||||
CONFIG_PACKAGE_libiwinfo-data=y
|
||||
CONFIG_PACKAGE_liblua=y
|
||||
CONFIG_PACKAGE_liblucihttp=y
|
||||
CONFIG_PACKAGE_liblucihttp-lua=y
|
||||
CONFIG_PACKAGE_liblucihttp-ucode=y
|
||||
CONFIG_PACKAGE_libmbim=y
|
||||
CONFIG_PACKAGE_libmount=y
|
||||
CONFIG_PACKAGE_libncurses=y
|
||||
CONFIG_PACKAGE_libpcre2=y
|
||||
CONFIG_PACKAGE_libqmi=y
|
||||
CONFIG_PACKAGE_libqrtr-glib=y
|
||||
CONFIG_PACKAGE_libreadline=y
|
||||
CONFIG_PACKAGE_libubus-lua=y
|
||||
CONFIG_PACKAGE_lsblk=y
|
||||
CONFIG_PACKAGE_lua=y
|
||||
CONFIG_PACKAGE_luci=y
|
||||
CONFIG_PACKAGE_luci-app-firewall=y
|
||||
CONFIG_PACKAGE_luci-app-package-manager=y
|
||||
CONFIG_PACKAGE_luci-app-usb-gadget=y
|
||||
CONFIG_PACKAGE_luci-base=y
|
||||
CONFIG_PACKAGE_luci-lib-base=y
|
||||
CONFIG_PACKAGE_luci-lib-ip=y
|
||||
CONFIG_PACKAGE_luci-lib-json=y
|
||||
CONFIG_PACKAGE_luci-lib-jsonc=y
|
||||
CONFIG_PACKAGE_luci-lib-nixio=y
|
||||
CONFIG_PACKAGE_luci-lib-uqr=y
|
||||
CONFIG_PACKAGE_luci-light=y
|
||||
CONFIG_PACKAGE_luci-lua-runtime=y
|
||||
CONFIG_PACKAGE_luci-mod-admin-full=y
|
||||
CONFIG_PACKAGE_luci-mod-network=y
|
||||
CONFIG_PACKAGE_luci-mod-rpc=y
|
||||
CONFIG_PACKAGE_luci-mod-status=y
|
||||
CONFIG_PACKAGE_luci-mod-system=y
|
||||
CONFIG_PACKAGE_luci-proto-ipv6=y
|
||||
CONFIG_PACKAGE_luci-proto-modemmanager=y
|
||||
CONFIG_PACKAGE_luci-proto-ppp=y
|
||||
CONFIG_PACKAGE_luci-proto-wireguard=y
|
||||
CONFIG_PACKAGE_luci-theme-bootstrap=y
|
||||
CONFIG_PACKAGE_modemmanager=y
|
||||
CONFIG_PACKAGE_mount-utils=y
|
||||
CONFIG_PACKAGE_mtools=y
|
||||
CONFIG_PACKAGE_nano=y
|
||||
CONFIG_PACKAGE_resize2fs=y
|
||||
CONFIG_PACKAGE_resolveip=y
|
||||
CONFIG_PACKAGE_rpcd=y
|
||||
CONFIG_PACKAGE_rpcd-mod-file=y
|
||||
CONFIG_PACKAGE_rpcd-mod-iwinfo=y
|
||||
CONFIG_PACKAGE_rpcd-mod-luci=y
|
||||
CONFIG_PACKAGE_rpcd-mod-rrdns=y
|
||||
CONFIG_PACKAGE_rpcd-mod-ucode=y
|
||||
CONFIG_PACKAGE_sfdisk=y
|
||||
CONFIG_PACKAGE_terminfo=y
|
||||
CONFIG_PACKAGE_tune2fs=y
|
||||
CONFIG_PACKAGE_ucode-mod-html=y
|
||||
CONFIG_PACKAGE_ucode-mod-log=y
|
||||
CONFIG_PACKAGE_ucode-mod-lua=y
|
||||
CONFIG_PACKAGE_ucode-mod-math=y
|
||||
CONFIG_PACKAGE_uhttpd=y
|
||||
CONFIG_PACKAGE_uhttpd-mod-ubus=y
|
||||
CONFIG_PACKAGE_wireguard-tools=y
|
||||
# CONFIG_TARGET_ROOTFS_EXT4FS is not set
|
||||
@@ -63,4 +63,15 @@ define Device/generic-mf68e
|
||||
endef
|
||||
TARGET_DEVICES += generic-mf68e
|
||||
|
||||
define Device/generic-m9s
|
||||
$(Device/msm8916)
|
||||
DEVICE_VENDOR := Generic
|
||||
DEVICE_MODEL := M9S
|
||||
FILESYSTEMS := squashfs
|
||||
DEVICE_PACKAGES := configs-mf68e wpad-basic-wolfssl rmtfs uci-usb-gadget \
|
||||
block-mount f2fs-tools prepare-rootfs-data \
|
||||
msm-firmware-dumper ledcontrol
|
||||
endef
|
||||
TARGET_DEVICES += generic-m9s
|
||||
|
||||
endif
|
||||
+2
-1
@@ -11,12 +11,13 @@ Signed-off-by: hkfuertes <hkfuertes@example.com>
|
||||
|
||||
--- a/arch/arm64/boot/dts/qcom/Makefile
|
||||
+++ b/arch/arm64/boot/dts/qcom/Makefile
|
||||
@@ -23,6 +23,8 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsu
|
||||
@@ -23,6 +23,9 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsu
|
||||
dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-gt58.dtb
|
||||
dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-j3ltetw.dtb
|
||||
dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-j5.dtb
|
||||
+dtb-$(CONFIG_ARCH_QCOM) += msm8916-generic-mf68e.dtb
|
||||
+dtb-$(CONFIG_ARCH_QCOM) += msm8916-generic-uf02.dtb
|
||||
+dtb-$(CONFIG_ARCH_QCOM) += msm8916-generic-m9s.dtb
|
||||
dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-j5x.dtb
|
||||
dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-rossa.dtb
|
||||
dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-serranove.dtb
|
||||
@@ -0,0 +1,120 @@
|
||||
--- /dev/null
|
||||
+++ b/arch/arm64/boot/dts/qcom/msm8916-generic-m9s.dts
|
||||
@@ -0,0 +1,117 @@
|
||||
+// SPDX-License-Identifier: GPL-2.0-only
|
||||
+
|
||||
+/dts-v1/;
|
||||
+
|
||||
+#include "msm8916-ufi.dtsi"
|
||||
+
|
||||
+#include <dt-bindings/leds/common.h>
|
||||
+
|
||||
+/ {
|
||||
+ model = "M9S 4G LTE Mobile WiFi Router";
|
||||
+ compatible = "generic,m9s", "qcom,msm8916";
|
||||
+
|
||||
+ /* Batería - Voltaje máximo corregido a 4.4V */
|
||||
+ bat: battery {
|
||||
+ compatible = "simple-battery";
|
||||
+ voltage-min-design-microvolt = <3400000>;
|
||||
+ voltage-max-design-microvolt = <4400000>;
|
||||
+ energy-full-design-microwatt-hours = <11100000>;
|
||||
+ charge-full-design-microamp-hours = <3000000>;
|
||||
+
|
||||
+ ocv-capacity-celsius = <25>;
|
||||
+ ocv-capacity-table-0 = <4330000 100>, <4265000 95>,
|
||||
+ <4208000 90>, <4154000 85>, <4102000 80>,
|
||||
+ <4063000 75>, <4006000 70>, <3972000 65>,
|
||||
+ <3931000 60>, <3880000 55>, <3841000 50>,
|
||||
+ <3817000 45>, <3798000 40>, <3783000 35>,
|
||||
+ <3767000 30>, <3747000 25>, <3729000 20>,
|
||||
+ <3700000 16>, <3687000 13>, <3683000 11>,
|
||||
+ <3681000 10>, <3680000 9>, <3678000 8>,
|
||||
+ <3674000 7>, <3666000 6>, <3641000 5>,
|
||||
+ <3597000 4>, <3537000 3>, <3457000 2>,
|
||||
+ <3336000 1>, <3000000 0>;
|
||||
+ };
|
||||
+
|
||||
+ /* USB ID detection - GPIO 110 */
|
||||
+ usb_id: usb-id {
|
||||
+ compatible = "linux,extcon-usb-gpio";
|
||||
+ id-gpios = <&tlmm 110 GPIO_ACTIVE_HIGH>;
|
||||
+ pinctrl-names = "default";
|
||||
+ pinctrl-0 = <&usb_id_default>;
|
||||
+ };
|
||||
+
|
||||
+ /* LED WLAN rojo (componente rojo del LED bicolor) */
|
||||
+ leds-extra {
|
||||
+ compatible = "gpio-leds";
|
||||
+
|
||||
+ led-wlan-red {
|
||||
+ function = LED_FUNCTION_WLAN;
|
||||
+ color = <LED_COLOR_ID_RED>;
|
||||
+ gpios = <&tlmm 84 GPIO_ACTIVE_HIGH>;
|
||||
+ };
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+/* USB con extcon */
|
||||
+&usb {
|
||||
+ extcon = <&usb_id>, <&usb_id>;
|
||||
+};
|
||||
+
|
||||
+&usb_hs_phy {
|
||||
+ extcon = <&usb_id>;
|
||||
+};
|
||||
+
|
||||
+/* Botón Reset - GPIO 102 */
|
||||
+&button_restart {
|
||||
+ gpios = <&tlmm 102 GPIO_ACTIVE_LOW>;
|
||||
+};
|
||||
+
|
||||
+/* LEDs - 2 LEDs bicolores (WAN y WLAN) = 4 componentes */
|
||||
+
|
||||
+/* LED WAN rojo (componente rojo del bicolor) */
|
||||
+&led_r {
|
||||
+ function = LED_FUNCTION_WAN;
|
||||
+ color = <LED_COLOR_ID_RED>;
|
||||
+ gpios = <&tlmm 72 GPIO_ACTIVE_HIGH>;
|
||||
+};
|
||||
+
|
||||
+/* LED WLAN verde (componente verde del bicolor) */
|
||||
+&led_g {
|
||||
+ function = LED_FUNCTION_WLAN;
|
||||
+ color = <LED_COLOR_ID_GREEN>;
|
||||
+ gpios = <&tlmm 73 GPIO_ACTIVE_HIGH>;
|
||||
+};
|
||||
+
|
||||
+/* LED WAN verde (componente verde del bicolor) */
|
||||
+&led_b {
|
||||
+ function = LED_FUNCTION_WAN;
|
||||
+ color = <LED_COLOR_ID_GREEN>;
|
||||
+ gpios = <&tlmm 85 GPIO_ACTIVE_HIGH>;
|
||||
+};
|
||||
+
|
||||
+/* BMS y Charger */
|
||||
+&pm8916_bms {
|
||||
+ monitored-battery = <&bat>;
|
||||
+};
|
||||
+
|
||||
+&pm8916_charger {
|
||||
+ qcom,fast-charge-safe-voltage = <4400000>;
|
||||
+};
|
||||
+
|
||||
+/* Pinctrl definitions */
|
||||
+&tlmm {
|
||||
+ usb_id_default: usb-id-default-state {
|
||||
+ pins = "gpio110";
|
||||
+ function = "gpio";
|
||||
+ drive-strength = <8>;
|
||||
+ bias-pull-up;
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&button_default {
|
||||
+ pins = "gpio102";
|
||||
+};
|
||||
+
|
||||
+&gpio_leds_default {
|
||||
+ pins = "gpio72", "gpio73", "gpio84", "gpio85";
|
||||
+};
|
||||
Reference in new issue
Block a user