18c2ecf20Sopenharmony_ci/*
28c2ecf20Sopenharmony_ci * Copyright (C) 2016 Icenowy Zheng <icenowy@aosc.xyz>
38c2ecf20Sopenharmony_ci *
48c2ecf20Sopenharmony_ci * Based on sun8i-v3s-ccu.h, which is
58c2ecf20Sopenharmony_ci * Copyright (C) 2016 Maxime Ripard <maxime.ripard@free-electrons.com>
68c2ecf20Sopenharmony_ci *
78c2ecf20Sopenharmony_ci * This file is dual-licensed: you can use it either under the terms
88c2ecf20Sopenharmony_ci * of the GPL or the X11 license, at your option. Note that this dual
98c2ecf20Sopenharmony_ci * licensing only applies to this file, and not this project as a
108c2ecf20Sopenharmony_ci * whole.
118c2ecf20Sopenharmony_ci *
128c2ecf20Sopenharmony_ci *  a) This file is free software; you can redistribute it and/or
138c2ecf20Sopenharmony_ci *     modify it under the terms of the GNU General Public License as
148c2ecf20Sopenharmony_ci *     published by the Free Software Foundation; either version 2 of the
158c2ecf20Sopenharmony_ci *     License, or (at your option) any later version.
168c2ecf20Sopenharmony_ci *
178c2ecf20Sopenharmony_ci *     This file is distributed in the hope that it will be useful,
188c2ecf20Sopenharmony_ci *     but WITHOUT ANY WARRANTY; without even the implied warranty of
198c2ecf20Sopenharmony_ci *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
208c2ecf20Sopenharmony_ci *     GNU General Public License for more details.
218c2ecf20Sopenharmony_ci *
228c2ecf20Sopenharmony_ci * Or, alternatively,
238c2ecf20Sopenharmony_ci *
248c2ecf20Sopenharmony_ci *  b) Permission is hereby granted, free of charge, to any person
258c2ecf20Sopenharmony_ci *     obtaining a copy of this software and associated documentation
268c2ecf20Sopenharmony_ci *     files (the "Software"), to deal in the Software without
278c2ecf20Sopenharmony_ci *     restriction, including without limitation the rights to use,
288c2ecf20Sopenharmony_ci *     copy, modify, merge, publish, distribute, sublicense, and/or
298c2ecf20Sopenharmony_ci *     sell copies of the Software, and to permit persons to whom the
308c2ecf20Sopenharmony_ci *     Software is furnished to do so, subject to the following
318c2ecf20Sopenharmony_ci *     conditions:
328c2ecf20Sopenharmony_ci *
338c2ecf20Sopenharmony_ci *     The above copyright notice and this permission notice shall be
348c2ecf20Sopenharmony_ci *     included in all copies or substantial portions of the Software.
358c2ecf20Sopenharmony_ci *
368c2ecf20Sopenharmony_ci *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
378c2ecf20Sopenharmony_ci *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
388c2ecf20Sopenharmony_ci *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
398c2ecf20Sopenharmony_ci *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
408c2ecf20Sopenharmony_ci *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
418c2ecf20Sopenharmony_ci *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
428c2ecf20Sopenharmony_ci *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
438c2ecf20Sopenharmony_ci *     OTHER DEALINGS IN THE SOFTWARE.
448c2ecf20Sopenharmony_ci */
458c2ecf20Sopenharmony_ci
468c2ecf20Sopenharmony_ci#ifndef _DT_BINDINGS_RST_SUN8I_V3S_H_
478c2ecf20Sopenharmony_ci#define _DT_BINDINGS_RST_SUN8I_V3S_H_
488c2ecf20Sopenharmony_ci
498c2ecf20Sopenharmony_ci#define RST_USB_PHY0		0
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_ci#define RST_MBUS		1
528c2ecf20Sopenharmony_ci
538c2ecf20Sopenharmony_ci#define RST_BUS_CE		5
548c2ecf20Sopenharmony_ci#define RST_BUS_DMA		6
558c2ecf20Sopenharmony_ci#define RST_BUS_MMC0		7
568c2ecf20Sopenharmony_ci#define RST_BUS_MMC1		8
578c2ecf20Sopenharmony_ci#define RST_BUS_MMC2		9
588c2ecf20Sopenharmony_ci#define RST_BUS_DRAM		11
598c2ecf20Sopenharmony_ci#define RST_BUS_EMAC		12
608c2ecf20Sopenharmony_ci#define RST_BUS_HSTIMER		14
618c2ecf20Sopenharmony_ci#define RST_BUS_SPI0		15
628c2ecf20Sopenharmony_ci#define RST_BUS_OTG		17
638c2ecf20Sopenharmony_ci#define RST_BUS_EHCI0		18
648c2ecf20Sopenharmony_ci#define RST_BUS_OHCI0		22
658c2ecf20Sopenharmony_ci#define RST_BUS_VE		26
668c2ecf20Sopenharmony_ci#define RST_BUS_TCON0		27
678c2ecf20Sopenharmony_ci#define RST_BUS_CSI		30
688c2ecf20Sopenharmony_ci#define RST_BUS_DE		34
698c2ecf20Sopenharmony_ci#define RST_BUS_DBG		38
708c2ecf20Sopenharmony_ci#define RST_BUS_EPHY		39
718c2ecf20Sopenharmony_ci#define RST_BUS_CODEC		40
728c2ecf20Sopenharmony_ci#define RST_BUS_I2C0		46
738c2ecf20Sopenharmony_ci#define RST_BUS_I2C1		47
748c2ecf20Sopenharmony_ci#define RST_BUS_UART0		49
758c2ecf20Sopenharmony_ci#define RST_BUS_UART1		50
768c2ecf20Sopenharmony_ci#define RST_BUS_UART2		51
778c2ecf20Sopenharmony_ci
788c2ecf20Sopenharmony_ci/* Reset lines not available on V3s */
798c2ecf20Sopenharmony_ci#define RST_BUS_I2S0		52
808c2ecf20Sopenharmony_ci
818c2ecf20Sopenharmony_ci#endif /* _DT_BINDINGS_RST_SUN8I_H3_H_ */
82