Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003  * Device tree file for Firefly Rockchip RK3288 Core board
0004  * Copyright (c) 2016 Randy Li <ayaka@soulik.info>
0005  */
0006 
0007 #include <dt-bindings/input/input.h>
0008 #include "rk3288.dtsi"
0009 
0010 / {
0011         memory@0 {
0012                 device_type = "memory";
0013                 reg = <0x0 0x0 0x0 0x80000000>;
0014         };
0015 
0016         ext_gmac: external-gmac-clock {
0017                 compatible = "fixed-clock";
0018                 #clock-cells = <0>;
0019                 clock-frequency = <125000000>;
0020                 clock-output-names = "ext_gmac";
0021         };
0022 
0023 
0024         vcc_flash: flash-regulator {
0025                 compatible = "regulator-fixed";
0026                 regulator-name = "vcc_flash";
0027                 regulator-min-microvolt = <1800000>;
0028                 regulator-max-microvolt = <1800000>;
0029                 vin-supply = <&vcc_io>;
0030         };
0031 };
0032 
0033 &cpu0 {
0034         cpu0-supply = <&vdd_cpu>;
0035 };
0036 
0037 &emmc {
0038         bus-width = <8>;
0039         cap-mmc-highspeed;
0040         disable-wp;
0041         mmc-ddr-1_8v;
0042         mmc-hs200-1_8v;
0043         non-removable;
0044         pinctrl-names = "default";
0045         pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_pwr>, <&emmc_bus8>;
0046         vmmc-supply = <&vcc_io>;
0047         vqmmc-supply = <&vcc_flash>;
0048         status = "okay";
0049 };
0050 
0051 &gmac {
0052         assigned-clocks = <&cru SCLK_MAC>;
0053         assigned-clock-parents = <&ext_gmac>;
0054         clock_in_out = "input";
0055         pinctrl-names = "default";
0056         pinctrl-0 = <&rgmii_pins>, <&phy_rst>, <&phy_pmeb>, <&phy_int>;
0057         phy-supply = <&vcc_lan>;
0058         phy-mode = "rgmii";
0059         snps,reset-active-low;
0060         snps,reset-delays-us = <0 10000 1000000>;
0061         snps,reset-gpio = <&gpio4 RK_PB0 GPIO_ACTIVE_LOW>;
0062         tx_delay = <0x30>;
0063         rx_delay = <0x10>;
0064         status = "okay";
0065 };
0066 
0067 &i2c0 {
0068         clock-frequency = <400000>;
0069         status = "okay";
0070 
0071         vdd_cpu: syr827@40 {
0072                 compatible = "silergy,syr827";
0073                 fcs,suspend-voltage-selector = <1>;
0074                 reg = <0x40>;
0075                 regulator-name = "vdd_cpu";
0076                 regulator-min-microvolt = <850000>;
0077                 regulator-max-microvolt = <1350000>;
0078                 regulator-always-on;
0079                 regulator-boot-on;
0080                 regulator-enable-ramp-delay = <300>;
0081                 regulator-ramp-delay = <8000>;
0082                 vin-supply = <&vcc_sys>;
0083         };
0084 
0085         vdd_gpu: syr828@41 {
0086                 compatible = "silergy,syr828";
0087                 fcs,suspend-voltage-selector = <1>;
0088                 reg = <0x41>;
0089                 regulator-name = "vdd_gpu";
0090                 regulator-min-microvolt = <850000>;
0091                 regulator-max-microvolt = <1350000>;
0092                 regulator-always-on;
0093                 vin-supply = <&vcc_sys>;
0094         };
0095 
0096         act8846: act8846@5a {
0097                 compatible = "active-semi,act8846";
0098                 reg = <0x5a>;
0099                 pinctrl-names = "default";
0100                 pinctrl-0 = <&pmic_vsel>, <&pwr_hold>;
0101                 system-power-controller;
0102 
0103                 vp1-supply = <&vcc_sys>;
0104                 vp2-supply = <&vcc_sys>;
0105                 vp3-supply = <&vcc_sys>;
0106                 vp4-supply = <&vcc_sys>;
0107                 inl1-supply = <&vcc_sys>;
0108                 inl2-supply = <&vcc_sys>;
0109                 inl3-supply = <&vcc_20>;
0110 
0111                 regulators {
0112                         vcc_ddr: REG1 {
0113                                 regulator-name = "vcc_ddr";
0114                                 regulator-min-microvolt = <1200000>;
0115                                 regulator-max-microvolt = <1200000>;
0116                                 regulator-always-on;
0117                         };
0118 
0119                         vcc_io: REG2 {
0120                                 regulator-name = "vcc_io";
0121                                 regulator-min-microvolt = <3300000>;
0122                                 regulator-max-microvolt = <3300000>;
0123                                 regulator-always-on;
0124                         };
0125 
0126                         vdd_log: REG3 {
0127                                 regulator-name = "vdd_log";
0128                                 regulator-min-microvolt = <1100000>;
0129                                 regulator-max-microvolt = <1100000>;
0130                                 regulator-always-on;
0131                         };
0132 
0133                         vcc_20: REG4 {
0134                                 regulator-name = "vcc_20";
0135                                 regulator-min-microvolt = <2000000>;
0136                                 regulator-max-microvolt = <2000000>;
0137                                 regulator-always-on;
0138                         };
0139 
0140                         vccio_sd: REG5 {
0141                                 regulator-name = "vccio_sd";
0142                                 regulator-min-microvolt = <3300000>;
0143                                 regulator-max-microvolt = <3300000>;
0144                         };
0145 
0146                         vdd10_lcd: REG6 {
0147                                 regulator-name = "vdd10_lcd";
0148                                 regulator-min-microvolt = <1000000>;
0149                                 regulator-max-microvolt = <1000000>;
0150                                 regulator-always-on;
0151                         };
0152 
0153                         vcca_18: REG7  {
0154                                 regulator-name = "vcca_18";
0155                                 regulator-min-microvolt = <1800000>;
0156                                 regulator-max-microvolt = <1800000>;
0157                                 regulator-always-on;
0158                         };
0159 
0160                         vcca_33: REG8 {
0161                                 regulator-name = "vcca_33";
0162                                 regulator-min-microvolt = <3300000>;
0163                                 regulator-max-microvolt = <3300000>;
0164                                 regulator-always-on;
0165                         };
0166 
0167                         vcc_lan: REG9 {
0168                                 regulator-name = "vcca_lan";
0169                                 regulator-min-microvolt = <3300000>;
0170                                 regulator-max-microvolt = <3300000>;
0171                         };
0172 
0173                         vdd_10: REG10 {
0174                                 regulator-name = "vdd_10";
0175                                 regulator-min-microvolt = <1000000>;
0176                                 regulator-max-microvolt = <1000000>;
0177                                 regulator-always-on;
0178                         };
0179 
0180                         vccio_wl: vcc_18: REG11 {
0181                                 regulator-name = "vcc_18";
0182                                 regulator-min-microvolt = <1800000>;
0183                                 regulator-max-microvolt = <1800000>;
0184                         };
0185 
0186                         vcc18_lcd: REG12 {
0187                                 regulator-name = "vcc18_lcd";
0188                                 regulator-min-microvolt = <1800000>;
0189                                 regulator-max-microvolt = <1800000>;
0190                                 regulator-always-on;
0191                         };
0192                 };
0193         };
0194 };
0195 
0196 &io_domains {
0197         status = "okay";
0198 
0199         audio-supply = <&vccio_wl>;
0200         bb-supply = <&vcc_io>;
0201         dvp-supply = <&dovdd_1v8>;
0202         flash0-supply = <&vcc_flash>;
0203         flash1-supply = <&vcc_lan>;
0204         gpio30-supply = <&vcc_io>;
0205         gpio1830-supply = <&vcc_io>;
0206         lcdc-supply = <&vcc_io>;
0207         sdcard-supply = <&vccio_sd>;
0208         wifi-supply = <&vccio_wl>;
0209 };
0210 
0211 &pinctrl {
0212         pcfg_output_high: pcfg-output-high {
0213                 output-high;
0214         };
0215 
0216         pcfg_output_low: pcfg-output-low {
0217                 output-low;
0218         };
0219 
0220         pcfg_pull_up_drv_12ma: pcfg-pull-up-drv-12ma {
0221                 bias-pull-up;
0222                 drive-strength = <12>;
0223         };
0224 
0225         act8846 {
0226                 pwr_hold: pwr-hold {
0227                         rockchip,pins = <0 RK_PA1 RK_FUNC_GPIO &pcfg_output_high>;
0228                 };
0229 
0230                 pmic_vsel: pmic-vsel {
0231                         rockchip,pins = <7 RK_PB6 RK_FUNC_GPIO &pcfg_output_low>;
0232                 };
0233         };
0234 
0235         gmac {
0236                 phy_int: phy-int {
0237                         rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_up>;
0238                 };
0239 
0240                 phy_pmeb: phy-pmeb {
0241                         rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_up>;
0242                 };
0243 
0244                 phy_rst: phy-rst {
0245                         rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_output_high>;
0246                 };
0247         };
0248 };
0249 
0250 &tsadc {
0251         rockchip,hw-tshut-mode = <0>;
0252         rockchip,hw-tshut-polarity = <0>;
0253         status = "okay";
0254 };
0255 
0256 &vopb {
0257         status = "okay";
0258 };
0259 
0260 &vopb_mmu {
0261         status = "okay";
0262 };
0263 
0264 &vopl {
0265         status = "okay";
0266 };
0267 
0268 &vopl_mmu {
0269         status = "okay";
0270 };
0271 
0272 &wdt {
0273         status = "okay";
0274 };