def __init__(self, shmem, *args, **kwargs):
    super(ScmiChannel, self).__init__(**kwargs)

    def shmemGenerator(state):
        shmem_node = FdtNode(('scp-shmem@%x' % 0))
        shmem_node.appendCompatible(['arm,scmi-shmem'])
        shmem_node.append(FdtPropertyWords('reg', (state.addrCells(0) + state.sizeCells(512))))
        shmem_node.appendPhandle(('scmi_virt' + str(self.virt_id)))
        return shmem_node
    self._shmem = shmem
    self._shmem.addSubnodeGenerator(shmemGenerator)
def __init__(self, shmem, *args, **kwargs):
    super(ScmiChannel, self).__init__(**kwargs)

    def shmemGenerator(state):
        shmem_node = FdtNode(('scp-shmem@%x' % 0))
        shmem_node.appendCompatible(['arm,scmi-shmem'])
        shmem_node.append(FdtPropertyWords('reg', (state.addrCells(0) + state.sizeCells(512))))
        shmem_node.appendPhandle(('scmi_virt' + str(self.virt_id)))
        return shmem_node
    self._shmem = shmem
    self._shmem.addSubnodeGenerator(shmemGenerator)