1# Copyright (c) 2020 Nordic Semiconductor ASA 2# 3# SPDX-License-Identifier: Apache-2.0 4 5""" 6A Sphinx extension for documenting devicetree content. It adds a role and a 7directive with the same name, 'dtcompatible'. 8 9The directive marks the page where the :dtcompatible: role link goes. 10Do not use it directly. The generated bindings documentation puts these 11in the right places. 12""" 13 14def setup(app): 15 app.add_crossref_type('dtcompatible', 'dtcompatible') 16 17 return { 18 'parallel_read_safe': True, 19 'parallel_write_safe': True, 20 } 21