Skip to content

Commit

Permalink
Merge pull request #140 from KevinWassermann94/patch-1
Browse files Browse the repository at this point in the history
Add support for Linxdot CM4
  • Loading branch information
shawaj authored Dec 11, 2022
2 parents 8db4677 + e34d553 commit 182d647
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
26 changes: 25 additions & 1 deletion hm_pyhelper/hardware_definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,28 @@ def is_raspberry_pi() -> bool:
'CONTAINS_IC_IDS': []
},

# Linxdot CM4
'linxdot-fl1': {
'FRIENDLY': 'Linxdot Hotspot',
'SUPPORTED_MODELS': ['Linxdot Hotspot'],
'CPU_ARCH': 'aarch64',
'BALENA_DEVICE_TYPE': ['raspberrypicm4-ioboard'],
'SPIBUS': 'spidev0.0',
'KEY_STORAGE_BUS': '/dev/i2c-1',
'SWARM_KEY_URI': 'ecc://i2c-1:96?slot=0',
'RESET': 17,
'MAC': 'wlan0',
'STATUS': 22,
'BUTTON': 27,
'ECCOB': True,
'TYPE': 'Full',
'CELLULAR': False,
'FCC_IDS': [],
'CONTAINS_FCC_IDS': [],
'IC_IDS': [],
'CONTAINS_IC_IDS': []
},

# COTX X3 Hotspot
'cotx-fl1': {
'FRIENDLY': 'COTX X3',
Expand All @@ -488,6 +510,7 @@ def is_raspberry_pi() -> bool:
'BALENA_DEVICE_TYPE': ['raspberrypi4-64'],
'SPIBUS': 'spidev0.0', # There is a CSN1 pin which is connected to GPIO6 (HAT Pin 31)
'KEY_STORAGE_BUS': '/dev/i2c-1',
'SWARM_KEY_URI': 'ecc://i2c-1:96?slot=0',
'RESET': 22,
'MAC': 'eth0',
'STATUS': 21, # Stub. There is no status LED on X3. I2C-3 is used for display
Expand All @@ -500,7 +523,7 @@ def is_raspberry_pi() -> bool:
'CONTAINS_FCC_IDS': [],
'IC_IDS': [],
'CONTAINS_IC_IDS': []
},
}
}

# Note: Maintain old names for backward compatibility, should be removed at some
Expand All @@ -521,6 +544,7 @@ def is_raspberry_pi() -> bool:
variant_definitions['COMP-PISCESP100'] = variant_definitions['pisces-fl1']
variant_definitions['COMP-COTX3'] = variant_definitions['cotx-fl1']
variant_definitions['COMP-CONTROLLINO'] = variant_definitions['controllino-fl1']
variant_definitions['COMP-LINXDOTCM4'] = variant_definitions['linxdot-fl1']


def get_variant_attribute(variant_name, attribute_key):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setup(
name='hm_pyhelper',
version='0.13.38',
version='0.13.39',
author="Nebra Ltd",
author_email="[email protected]",
description="Helium Python Helper",
Expand Down

0 comments on commit 182d647

Please sign in to comment.