def generateScmiNode(self, state):
    node = FdtNode('scmi')
    node.appendCompatible(['arm,scmi'])
    mbox_phandle = state.phandle(self._parent.unproxy(self).mailbox)
    shmem_phandles = []
    for comm in self.unproxy(self).comms:
        shmem_phandles.append(state.phandle(('scmi_virt' + str(comm.agent_channel.virt_id))))
        shmem_phandles.append(state.phandle(('scmi_virt' + str(comm.platform_channel.virt_id))))
    phys_channel = 1
    node.append(FdtPropertyWords('mboxes', [mbox_phandle, phys_channel]))
    node.append(FdtPropertyWords('shmem', shmem_phandles))
    return node
def generateScmiNode(self, state):
    node = FdtNode('scmi')
    node.appendCompatible(['arm,scmi'])
    mbox_phandle = state.phandle(self._parent.unproxy(self).mailbox)
    shmem_phandles = []
    for comm in self.unproxy(self).comms:
        shmem_phandles.append(state.phandle(('scmi_virt' + str(comm.agent_channel.virt_id))))
        shmem_phandles.append(state.phandle(('scmi_virt' + str(comm.platform_channel.virt_id))))
    phys_channel = 1
    node.append(FdtPropertyWords('mboxes', [mbox_phandle, phys_channel]))
    node.append(FdtPropertyWords('shmem', shmem_phandles))
    return node