docs: def from_element(self, element, defaults={}):
          """Populate object variables from SVD element"""
          if isinstance(defaults, SvdElement):
              defaults = vars(defaults)
          for key in self.props:
              try:
                  value = element.find(key).text
              except AttributeError:  # Maybe it's attribute?
                  default = defaults[key] if key in defaults else None
                  value = element.get(key, default)
              if value is not None:
                  if key in self.props_to_integer:
                      try:
                          value = int(value)
                      except ValueError:  # It has to be hex
                          value = int(value, 16)
                  elif key in self.props_to_boolean:
                      value = value.lower() in ("yes", "true", "t", "1")
  
              setattr(self, key, value)