commit
b71d9e8b38
@ -0,0 +1,169 @@ |
||||
/* |
||||
* Copyright 2017 Chen-Yu Tsai |
||||
* |
||||
* Chen-Yu Tsai <wens@csie.org> |
||||
* |
||||
* This file is dual-licensed: you can use it either under the terms |
||||
* of the GPL or the X11 license, at your option. Note that this dual |
||||
* licensing only applies to this file, and not this project as a |
||||
* whole. |
||||
* |
||||
* a) This file is free software; you can redistribute it and/or |
||||
* modify it under the terms of the GNU General Public License as |
||||
* published by the Free Software Foundation; either version 2 of the |
||||
* License, or (at your option) any later version. |
||||
* |
||||
* This file is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU General Public License for more details. |
||||
* |
||||
* Or, alternatively, |
||||
* |
||||
* b) Permission is hereby granted, free of charge, to any person |
||||
* obtaining a copy of this software and associated documentation |
||||
* files (the "Software"), to deal in the Software without |
||||
* restriction, including without limitation the rights to use, |
||||
* copy, modify, merge, publish, distribute, sublicense, and/or |
||||
* sell copies of the Software, and to permit persons to whom the |
||||
* Software is furnished to do so, subject to the following |
||||
* conditions: |
||||
* |
||||
* The above copyright notice and this permission notice shall be |
||||
* included in all copies or substantial portions of the Software. |
||||
* |
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
||||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
||||
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
||||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
||||
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
||||
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
||||
* OTHER DEALINGS IN THE SOFTWARE. |
||||
*/ |
||||
|
||||
/* AXP813/818 Integrated Power Management Chip */ |
||||
|
||||
&axp81x { |
||||
interrupt-controller; |
||||
#interrupt-cells = <1>; |
||||
|
||||
axp_adc: adc { |
||||
compatible = "x-powers,axp813-adc"; |
||||
#io-channel-cells = <1>; |
||||
}; |
||||
|
||||
axp_gpio: gpio { |
||||
compatible = "x-powers,axp813-gpio"; |
||||
gpio-controller; |
||||
#gpio-cells = <2>; |
||||
|
||||
gpio0_ldo: gpio0-ldo { |
||||
pins = "GPIO0"; |
||||
function = "ldo"; |
||||
}; |
||||
|
||||
gpio1_ldo: gpio1-ldo { |
||||
pins = "GPIO1"; |
||||
function = "ldo"; |
||||
}; |
||||
}; |
||||
|
||||
battery_power_supply: battery-power-supply { |
||||
compatible = "x-powers,axp813-battery-power-supply"; |
||||
status = "disabled"; |
||||
}; |
||||
|
||||
regulators { |
||||
/* Default work frequency for buck regulators */ |
||||
x-powers,dcdc-freq = <3000>; |
||||
|
||||
reg_dcdc1: dcdc1 { |
||||
}; |
||||
|
||||
reg_dcdc2: dcdc2 { |
||||
}; |
||||
|
||||
reg_dcdc3: dcdc3 { |
||||
}; |
||||
|
||||
reg_dcdc4: dcdc4 { |
||||
}; |
||||
|
||||
reg_dcdc5: dcdc5 { |
||||
}; |
||||
|
||||
reg_dcdc6: dcdc6 { |
||||
}; |
||||
|
||||
reg_dcdc7: dcdc7 { |
||||
}; |
||||
|
||||
reg_aldo1: aldo1 { |
||||
}; |
||||
|
||||
reg_aldo2: aldo2 { |
||||
}; |
||||
|
||||
reg_aldo3: aldo3 { |
||||
}; |
||||
|
||||
reg_dldo1: dldo1 { |
||||
}; |
||||
|
||||
reg_dldo2: dldo2 { |
||||
}; |
||||
|
||||
reg_dldo3: dldo3 { |
||||
}; |
||||
|
||||
reg_dldo4: dldo4 { |
||||
}; |
||||
|
||||
reg_eldo1: eldo1 { |
||||
}; |
||||
|
||||
reg_eldo2: eldo2 { |
||||
}; |
||||
|
||||
reg_eldo3: eldo3 { |
||||
}; |
||||
|
||||
reg_fldo1: fldo1 { |
||||
}; |
||||
|
||||
reg_fldo2: fldo2 { |
||||
}; |
||||
|
||||
reg_fldo3: fldo3 { |
||||
}; |
||||
|
||||
reg_ldo_io0: ldo-io0 { |
||||
pinctrl-names = "default"; |
||||
pinctrl-0 = <&gpio0_ldo>; |
||||
/* Disable by default to avoid conflicts with GPIO */ |
||||
status = "disabled"; |
||||
}; |
||||
|
||||
reg_ldo_io1: ldo-io1 { |
||||
pinctrl-names = "default"; |
||||
pinctrl-0 = <&gpio1_ldo>; |
||||
/* Disable by default to avoid conflicts with GPIO */ |
||||
status = "disabled"; |
||||
}; |
||||
|
||||
reg_rtc_ldo: rtc-ldo { |
||||
/* RTC_LDO is a fixed, always-on regulator */ |
||||
regulator-always-on; |
||||
regulator-min-microvolt = <1800000>; |
||||
regulator-max-microvolt = <1800000>; |
||||
}; |
||||
|
||||
reg_sw: sw { |
||||
}; |
||||
|
||||
reg_drivevbus: drivevbus { |
||||
status = "disabled"; |
||||
}; |
||||
}; |
||||
}; |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,140 @@ |
||||
/*
|
||||
* Copyright (C) 2017 Chen-Yu Tsai <wens@csie.org> |
||||
* |
||||
* This file is dual-licensed: you can use it either under the terms |
||||
* of the GPL or the X11 license, at your option. Note that this dual |
||||
* licensing only applies to this file, and not this project as a |
||||
* whole. |
||||
* |
||||
* a) This file is free software; you can redistribute it and/or |
||||
* modify it under the terms of the GNU General Public License as |
||||
* published by the Free Software Foundation; either version 2 of the |
||||
* License, or (at your option) any later version. |
||||
* |
||||
* This file is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU General Public License for more details. |
||||
* |
||||
* Or, alternatively, |
||||
* |
||||
* b) Permission is hereby granted, free of charge, to any person |
||||
* obtaining a copy of this software and associated documentation |
||||
* files (the "Software"), to deal in the Software without |
||||
* restriction, including without limitation the rights to use, |
||||
* copy, modify, merge, publish, distribute, sublicense, and/or |
||||
* sell copies of the Software, and to permit persons to whom the |
||||
* Software is furnished to do so, subject to the following |
||||
* conditions: |
||||
* |
||||
* The above copyright notice and this permission notice shall be |
||||
* included in all copies or substantial portions of the Software. |
||||
* |
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
||||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
||||
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
||||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
||||
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
||||
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
||||
* OTHER DEALINGS IN THE SOFTWARE. |
||||
*/ |
||||
|
||||
#ifndef _DT_BINDINGS_CLOCK_SUN8I_A83T_CCU_H_ |
||||
#define _DT_BINDINGS_CLOCK_SUN8I_A83T_CCU_H_ |
||||
|
||||
#define CLK_PLL_PERIPH 6 |
||||
|
||||
#define CLK_PLL_DE 9 |
||||
|
||||
#define CLK_C0CPUX 11 |
||||
#define CLK_C1CPUX 12 |
||||
|
||||
#define CLK_BUS_MIPI_DSI 19 |
||||
#define CLK_BUS_SS 20 |
||||
#define CLK_BUS_DMA 21 |
||||
#define CLK_BUS_MMC0 22 |
||||
#define CLK_BUS_MMC1 23 |
||||
#define CLK_BUS_MMC2 24 |
||||
#define CLK_BUS_NAND 25 |
||||
#define CLK_BUS_DRAM 26 |
||||
#define CLK_BUS_EMAC 27 |
||||
#define CLK_BUS_HSTIMER 28 |
||||
#define CLK_BUS_SPI0 29 |
||||
#define CLK_BUS_SPI1 30 |
||||
#define CLK_BUS_OTG 31 |
||||
#define CLK_BUS_EHCI0 32 |
||||
#define CLK_BUS_EHCI1 33 |
||||
#define CLK_BUS_OHCI0 34 |
||||
|
||||
#define CLK_BUS_VE 35 |
||||
#define CLK_BUS_TCON0 36 |
||||
#define CLK_BUS_TCON1 37 |
||||
#define CLK_BUS_CSI 38 |
||||
#define CLK_BUS_HDMI 39 |
||||
#define CLK_BUS_DE 40 |
||||
#define CLK_BUS_GPU 41 |
||||
#define CLK_BUS_MSGBOX 42 |
||||
#define CLK_BUS_SPINLOCK 43 |
||||
|
||||
#define CLK_BUS_SPDIF 44 |
||||
#define CLK_BUS_PIO 45 |
||||
#define CLK_BUS_I2S0 46 |
||||
#define CLK_BUS_I2S1 47 |
||||
#define CLK_BUS_I2S2 48 |
||||
#define CLK_BUS_TDM 49 |
||||
|
||||
#define CLK_BUS_I2C0 50 |
||||
#define CLK_BUS_I2C1 51 |
||||
#define CLK_BUS_I2C2 52 |
||||
#define CLK_BUS_UART0 53 |
||||
#define CLK_BUS_UART1 54 |
||||
#define CLK_BUS_UART2 55 |
||||
#define CLK_BUS_UART3 56 |
||||
#define CLK_BUS_UART4 57 |
||||
|
||||
#define CLK_NAND 59 |
||||
#define CLK_MMC0 60 |
||||
#define CLK_MMC0_SAMPLE 61 |
||||
#define CLK_MMC0_OUTPUT 62 |
||||
#define CLK_MMC1 63 |
||||
#define CLK_MMC1_SAMPLE 64 |
||||
#define CLK_MMC1_OUTPUT 65 |
||||
#define CLK_MMC2 66 |
||||
#define CLK_MMC2_SAMPLE 67 |
||||
#define CLK_MMC2_OUTPUT 68 |
||||
#define CLK_SS 69 |
||||
#define CLK_SPI0 70 |
||||
#define CLK_SPI1 71 |
||||
#define CLK_I2S0 72 |
||||
#define CLK_I2S1 73 |
||||
#define CLK_I2S2 74 |
||||
#define CLK_TDM 75 |
||||
#define CLK_SPDIF 76 |
||||
#define CLK_USB_PHY0 77 |
||||
#define CLK_USB_PHY1 78 |
||||
#define CLK_USB_HSIC 79 |
||||
#define CLK_USB_HSIC_12M 80 |
||||
#define CLK_USB_OHCI0 81 |
||||
|
||||
#define CLK_DRAM_VE 83 |
||||
#define CLK_DRAM_CSI 84 |
||||
|
||||
#define CLK_TCON0 85 |
||||
#define CLK_TCON1 86 |
||||
#define CLK_CSI_MISC 87 |
||||
#define CLK_MIPI_CSI 88 |
||||
#define CLK_CSI_MCLK 89 |
||||
#define CLK_CSI_SCLK 90 |
||||
#define CLK_VE 91 |
||||
#define CLK_AVS 92 |
||||
#define CLK_HDMI 93 |
||||
#define CLK_HDMI_SLOW 94 |
||||
|
||||
#define CLK_MIPI_DSI0 96 |
||||
#define CLK_MIPI_DSI1 97 |
||||
#define CLK_GPU_CORE 98 |
||||
#define CLK_GPU_MEMORY 99 |
||||
#define CLK_GPU_HYD 100 |
||||
|
||||
#endif /* _DT_BINDINGS_CLOCK_SUN8I_A83T_CCU_H_ */ |
@ -0,0 +1,98 @@ |
||||
/*
|
||||
* Copyright (C) 2017 Chen-Yu Tsai <wens@csie.org> |
||||
* |
||||
* This file is dual-licensed: you can use it either under the terms |
||||
* of the GPL or the X11 license, at your option. Note that this dual |
||||
* licensing only applies to this file, and not this project as a |
||||
* whole. |
||||
* |
||||
* a) This file is free software; you can redistribute it and/or |
||||
* modify it under the terms of the GNU General Public License as |
||||
* published by the Free Software Foundation; either version 2 of the |
||||
* License, or (at your option) any later version. |
||||
* |
||||
* This file is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU General Public License for more details. |
||||
* |
||||
* Or, alternatively, |
||||
* |
||||
* b) Permission is hereby granted, free of charge, to any person |
||||
* obtaining a copy of this software and associated documentation |
||||
* files (the "Software"), to deal in the Software without |
||||
* restriction, including without limitation the rights to use, |
||||
* copy, modify, merge, publish, distribute, sublicense, and/or |
||||
* sell copies of the Software, and to permit persons to whom the |
||||
* Software is furnished to do so, subject to the following |
||||
* conditions: |
||||
* |
||||
* The above copyright notice and this permission notice shall be |
||||
* included in all copies or substantial portions of the Software. |
||||
* |
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
||||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
||||
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
||||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
||||
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
||||
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
||||
* OTHER DEALINGS IN THE SOFTWARE. |
||||
*/ |
||||
|
||||
#ifndef _DT_BINDINGS_RESET_SUN8I_A83T_CCU_H_ |
||||
#define _DT_BINDINGS_RESET_SUN8I_A83T_CCU_H_ |
||||
|
||||
#define RST_USB_PHY0 0 |
||||
#define RST_USB_PHY1 1 |
||||
#define RST_USB_HSIC 2 |
||||
|
||||
#define RST_DRAM 3 |
||||
#define RST_MBUS 4 |
||||
|
||||
#define RST_BUS_MIPI_DSI 5 |
||||
#define RST_BUS_SS 6 |
||||
#define RST_BUS_DMA 7 |
||||
#define RST_BUS_MMC0 8 |
||||
#define RST_BUS_MMC1 9 |
||||
#define RST_BUS_MMC2 10 |
||||
#define RST_BUS_NAND 11 |
||||
#define RST_BUS_DRAM 12 |
||||
#define RST_BUS_EMAC 13 |
||||
#define RST_BUS_HSTIMER 14 |
||||
#define RST_BUS_SPI0 15 |
||||
#define RST_BUS_SPI1 16 |
||||
#define RST_BUS_OTG 17 |
||||
#define RST_BUS_EHCI0 18 |
||||
#define RST_BUS_EHCI1 19 |
||||
#define RST_BUS_OHCI0 20 |
||||
|
||||
#define RST_BUS_VE 21 |
||||
#define RST_BUS_TCON0 22 |
||||
#define RST_BUS_TCON1 23 |
||||
#define RST_BUS_CSI 24 |
||||
#define RST_BUS_HDMI0 25 |
||||
#define RST_BUS_HDMI1 26 |
||||
#define RST_BUS_DE 27 |
||||
#define RST_BUS_GPU 28 |
||||
#define RST_BUS_MSGBOX 29 |
||||
#define RST_BUS_SPINLOCK 30 |
||||
|
||||
#define RST_BUS_LVDS 31 |
||||
|
||||
#define RST_BUS_SPDIF 32 |
||||
#define RST_BUS_I2S0 33 |
||||
#define RST_BUS_I2S1 34 |
||||
#define RST_BUS_I2S2 35 |
||||
#define RST_BUS_TDM 36 |
||||
|
||||
#define RST_BUS_I2C0 37 |
||||
#define RST_BUS_I2C1 38 |
||||
#define RST_BUS_I2C2 39 |
||||
#define RST_BUS_UART0 40 |
||||
#define RST_BUS_UART1 41 |
||||
#define RST_BUS_UART2 42 |
||||
#define RST_BUS_UART3 43 |
||||
#define RST_BUS_UART4 44 |
||||
|
||||
#endif /* _DT_BINDINGS_RESET_SUN8I_A83T_CCU_H_ */ |
Loading…
Reference in new issue