mirror of
https://github.com/paolosabatino/multitool.git
synced 2024-11-22 14:17:03 +00:00
546 lines
11 KiB
Plaintext
546 lines
11 KiB
Plaintext
/*
|
|
* Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd
|
|
*
|
|
* 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 library 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 library 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.
|
|
*/
|
|
|
|
/dts-v1/;
|
|
#include "rk3328.dtsi"
|
|
|
|
/ {
|
|
model = "Rockchip RK3318 BOX";
|
|
compatible = "rockchip,rk3318-box", "rockchip,rk3328-box", "rockchip,rk3328";
|
|
|
|
aliases {
|
|
mmc0 = <&sdmmc>;
|
|
mmc1 = <&sdio>;
|
|
mmc2 = <&emmc>;
|
|
mmc3 = <&sdmmc_ext>;
|
|
};
|
|
|
|
chosen {
|
|
bootargs = "console=ttyS2,115200";
|
|
};
|
|
|
|
reserved-memory {
|
|
#address-cells = <2>;
|
|
#size-cells = <2>;
|
|
ranges;
|
|
|
|
drm_logo: drm-logo@00000000 {
|
|
compatible = "rockchip,drm-logo";
|
|
reg = <0x0 0x0 0x0 0x0>;
|
|
};
|
|
|
|
secure_memory: secure-memory@20000000 {
|
|
compatible = "rockchip,secure-memory";
|
|
reg = <0x0 0x20000000 0x0 0x0>;
|
|
};
|
|
|
|
/* global autoconfigured region for contiguous allocations */
|
|
linux,cma {
|
|
compatible = "shared-dma-pool";
|
|
reusable;
|
|
size = <0x0 0x1000000>;
|
|
linux,cma-default;
|
|
};
|
|
};
|
|
|
|
regulators {
|
|
compatible = "simple-bus";
|
|
#address-cells = <0x01>;
|
|
#size-cells = <0x00>;
|
|
|
|
vcc_18: regulator@0 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vccio_1v8";
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
regulator-always-on;
|
|
};
|
|
|
|
vcc_io: regulator@1 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vccio_3v3";
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
regulator-always-on;
|
|
};
|
|
};
|
|
|
|
xin32k: xin32k {
|
|
compatible = "fixed-clock";
|
|
clock-frequency = <32768>;
|
|
clock-output-names = "xin32k";
|
|
#clock-cells = <0>;
|
|
};
|
|
|
|
external-gmac-clock {
|
|
compatible = "fixed-clock";
|
|
clock-frequency = <125000000>;
|
|
clock-output-names = "gmac_clkin";
|
|
#clock-cells = <0x00>;
|
|
};
|
|
|
|
vcc_phy: vcc-phy-regulator {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc_phy";
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
};
|
|
|
|
vcc_sys: vcc-sys {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc_sys";
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <5000000>;
|
|
regulator-max-microvolt = <5000000>;
|
|
};
|
|
|
|
vcc_sd: sdmmc-regulator {
|
|
compatible = "regulator-fixed";
|
|
gpio = <&gpio0 RK_PD6 GPIO_ACTIVE_LOW>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&sdmmc0m1_gpio>;
|
|
regulator-name = "vcc_sd";
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
vin-supply = <&vcc_io>;
|
|
};
|
|
|
|
/*
|
|
* USB3 vbus
|
|
*/
|
|
vcc_host_vbus: vcc-host-vbus {
|
|
compatible = "regulator-fixed";
|
|
enable-active-high;
|
|
gpio = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&usb30_host_drv>;
|
|
regulator-name = "vcc_host_vbus";
|
|
regulator-always-on;
|
|
regulator-min-microvolt = <5000000>;
|
|
regulator-max-microvolt = <5000000>;
|
|
vin-supply = <&vcc_sys>;
|
|
};
|
|
|
|
/*
|
|
* USB2 OTG vbus
|
|
*/
|
|
vcc_otg_vbus: vcc-otg-vbus {
|
|
compatible = "regulator-fixed";
|
|
enable-active-high;
|
|
gpio = <&gpio0 RK_PA2 GPIO_ACTIVE_HIGH>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&usb20_host_drv>;
|
|
regulator-name = "vcc_otg_vbus";
|
|
regulator-always-on;
|
|
regulator-min-microvolt = <5000000>;
|
|
regulator-max-microvolt = <5000000>;
|
|
vin-supply = <&vcc_sys>;
|
|
};
|
|
|
|
vdd_arm: vdd-arm {
|
|
compatible = "pwm-regulator";
|
|
rockchip,pwm_id = <0>;
|
|
rockchip,pwm_voltage = <1100000>;
|
|
pwms = <&pwm0 0 5000 1>;
|
|
regulator-name = "vdd_arm";
|
|
regulator-min-microvolt = <950000>;
|
|
regulator-max-microvolt = <1400000>;
|
|
regulator-ramp-delay = <12500>;
|
|
regulator-settling-time-up-us = <250>;
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
};
|
|
|
|
vdd_logic: vdd-log {
|
|
compatible = "pwm-regulator";
|
|
rockchip,pwm_id = <1>;
|
|
rockchip,pwm_voltage = <1200000>;
|
|
pwms = <&pwm1 0 5000 1>;
|
|
regulator-name = "vdd_log";
|
|
regulator-min-microvolt = <900000>;
|
|
regulator-max-microvolt = <1300000>;
|
|
regulator-ramp-delay = <12500>;
|
|
regulator-settling-time-up-us = <250>;
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
};
|
|
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
|
|
working {
|
|
label = "led:state1";
|
|
gpios = <&gpio2 RK_PC7 GPIO_ACTIVE_LOW>;
|
|
linux,default-trigger = "timer";
|
|
default-state = "on";
|
|
};
|
|
|
|
};
|
|
|
|
ir-receiver {
|
|
compatible = "gpio-ir-receiver";
|
|
gpios = <&gpio2 RK_PA2 GPIO_ACTIVE_LOW>;
|
|
pinctrl-0 = <&ir_int>;
|
|
pinctrl-names = "default";
|
|
};
|
|
|
|
sdio_pwrseq: sdio-pwrseq {
|
|
compatible = "mmc-pwrseq-simple";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&wifi_enable_h>;
|
|
|
|
/*
|
|
* On the module itself this is one of these (depending
|
|
* on the actual card populated):
|
|
* - SDIO_RESET_L_WL_REG_ON
|
|
* - PDN (power down when low)
|
|
*/
|
|
reset-gpios = <&gpio1 RK_PC2 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
};
|
|
|
|
&cpu0 {
|
|
cpu-supply = <&vdd_arm>;
|
|
};
|
|
|
|
&cpu1 {
|
|
cpu-supply = <&vdd_arm>;
|
|
};
|
|
|
|
&cpu2 {
|
|
cpu-supply = <&vdd_arm>;
|
|
};
|
|
|
|
&cpu3 {
|
|
cpu-supply = <&vdd_arm>;
|
|
};
|
|
|
|
&display_subsystem {
|
|
|
|
logo-memory-region = <&drm_logo>;
|
|
secure-memory-region = <&secure_memory>;
|
|
ports = <&vop_out>;
|
|
|
|
status = "okay";
|
|
|
|
route {
|
|
route_hdmi: route-hdmi {
|
|
status = "okay";
|
|
connect = <&vop_out_hdmi>;
|
|
};
|
|
route_tve: route-tve {
|
|
status = "okay";
|
|
connect = <&vop_out_tve>;
|
|
};
|
|
};
|
|
|
|
};
|
|
|
|
&emmc {
|
|
bus-width = <8>;
|
|
cap-mmc-highspeed;
|
|
non-removable;
|
|
disable-wp;
|
|
non-removable;
|
|
num-slots = <0x01>;
|
|
//pinctrl-names = "default";
|
|
//pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
|
|
supports-emmc;
|
|
status = "okay";
|
|
};
|
|
|
|
&gmac2phy {
|
|
phy-supply = <&vcc_phy>;
|
|
|
|
phy-mode = "rmii";
|
|
phy-is-integrated;
|
|
clock_in_out = "output";
|
|
assigned-clocks = <&cru SCLK_MAC2PHY>;
|
|
assigned-clock-rate = <50000000>;
|
|
assigned-clock-parents = <&cru SCLK_MAC2PHY_SRC>;
|
|
tx_delay = <0x30>;
|
|
rx_delay = <0x10>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
&gpu {
|
|
status = "disabled";
|
|
mali-supply = <&vdd_logic>;
|
|
};
|
|
|
|
&hdmi {
|
|
#sound-dai-cells = <0>;
|
|
ddc-i2c-scl-high-time-ns = <9625>;
|
|
ddc-i2c-scl-low-time-ns = <10000>;
|
|
status = "okay";
|
|
};
|
|
|
|
&hdmiphy {
|
|
status = "okay";
|
|
};
|
|
|
|
&io_domains {
|
|
status = "okay";
|
|
|
|
vccio1-supply = <&vcc_io>;
|
|
vccio2-supply = <&vcc_18>;
|
|
vccio3-supply = <&vcc_io>;
|
|
vccio4-supply = <&vcc_18>;
|
|
vccio5-supply = <&vcc_io>;
|
|
vccio6-supply = <&vcc_io>;
|
|
pmuio-supply = <&vcc_io>;
|
|
};
|
|
|
|
&pinctrl {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&clk_32k_out>;
|
|
|
|
clk_32k {
|
|
clk_32k_out: clk-32k-out {
|
|
rockchip,pins = <1 RK_PD4 RK_FUNC_1 &pcfg_pull_none>;
|
|
};
|
|
};
|
|
|
|
ir {
|
|
ir_int: ir-int {
|
|
rockchip,pins = <2 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
};
|
|
|
|
pmic {
|
|
pmic_int_l: pmic-int-l {
|
|
rockchip,pins = <2 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>;
|
|
};
|
|
};
|
|
|
|
sdio-pwrseq {
|
|
wifi_enable_h: wifi-enable-h {
|
|
rockchip,pins = <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none_4ma>,
|
|
<1 RK_PC3 RK_FUNC_GPIO &pcfg_pull_none_4ma>;
|
|
};
|
|
};
|
|
|
|
usb2 {
|
|
usb20_host_drv: usb20-host-drv {
|
|
rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
};
|
|
|
|
usb3 {
|
|
usb30_host_drv: usb30-host-drv {
|
|
rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
};
|
|
|
|
wireless-bluetooth {
|
|
uart0_gpios: uart0-gpios {
|
|
rockchip,pins = <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&sdio {
|
|
bus-width = <4>;
|
|
cap-sd-highspeed;
|
|
cap-sdio-irq;
|
|
disable-wp;
|
|
keep-power-in-suspend;
|
|
mmc-pwrseq = <&sdio_pwrseq>;
|
|
non-removable;
|
|
num-slots = <1>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd &sdmmc1_clk>;
|
|
supports-sdio;
|
|
status = "okay";
|
|
};
|
|
|
|
&sdmmc {
|
|
bus-width = <4>;
|
|
cap-mmc-highspeed;
|
|
cap-sd-highspeed;
|
|
card-detect-delay = <800>;
|
|
disable-wp;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&sdmmc0_clk &sdmmc0_cmd &sdmmc0_dectn &sdmmc0_bus4>;
|
|
supports-sd;
|
|
vmmc-supply = <&vcc_sd>;
|
|
status = "okay";
|
|
};
|
|
|
|
&sdmmc_ext {
|
|
bus-width = <4>;
|
|
cap-mmc-highspeed;
|
|
cap-sd-highspeed;
|
|
disable-wp;
|
|
keep-power-in-suspend;
|
|
max-frequency = <150000000>;
|
|
num-slots = <1>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&sdmmc0ext_clk &sdmmc0ext_cmd &sdmmc0ext_dectn &sdmmc0ext_bus4>;
|
|
supports-sd;
|
|
status = "okay";
|
|
};
|
|
|
|
|
|
&spdif {
|
|
#sound-dai-cells = <0>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&spdifm0_tx>;
|
|
status = "okay";
|
|
};
|
|
|
|
&threshold {
|
|
temperature = <80000>; /* millicelsius */
|
|
};
|
|
|
|
&target {
|
|
temperature = <95000>; /* millicelsius */
|
|
};
|
|
|
|
&soc_crit {
|
|
temperature = <100000>; /* millicelsius */
|
|
};
|
|
|
|
&tsadc {
|
|
rockchip,hw-tshut-mode = <0>;
|
|
rockchip,hw-tshut-polarity = <0>;
|
|
rockchip,hw-tshut-temp = <110000>;
|
|
status = "okay";
|
|
};
|
|
|
|
&uart2 {
|
|
status = "okay";
|
|
dma-names = "tx", "rx";
|
|
};
|
|
|
|
&u2phy {
|
|
status = "okay";
|
|
};
|
|
|
|
&u2phy_host {
|
|
vbus-supply = <&vcc_otg_vbus>;
|
|
status = "okay";
|
|
};
|
|
|
|
&u2phy_otg {
|
|
vbus-supply = <&vcc_otg_vbus>;
|
|
status = "okay";
|
|
};
|
|
|
|
&u3phy {
|
|
status = "okay";
|
|
};
|
|
|
|
&u3phy_utmi {
|
|
vbus-supply = <&vcc_host_vbus>;
|
|
status = "okay";
|
|
};
|
|
|
|
&u3phy_pipe {
|
|
vbus-supply = <&vcc_host_vbus>;
|
|
status = "okay";
|
|
};
|
|
|
|
&usb20_otg {
|
|
vusb_d-supply = <&vcc_otg_vbus>;
|
|
vusb_a-supply = <&vcc_otg_vbus>;
|
|
dr_mode = "host";
|
|
status = "okay";
|
|
};
|
|
|
|
&usb_host0_ehci {
|
|
status = "okay";
|
|
};
|
|
|
|
&usb_host0_ohci {
|
|
status = "okay";
|
|
};
|
|
|
|
&usbdrd3 {
|
|
status = "okay";
|
|
};
|
|
|
|
&usbdrd_dwc3 {
|
|
status = "okay";
|
|
};
|
|
|
|
&vop {
|
|
rockchip,grf = <&grf>;
|
|
status = "okay";
|
|
};
|
|
|
|
&vop_mmu {
|
|
status = "okay";
|
|
};
|
|
|
|
&saradc {
|
|
vref-supply = <&vcc_18>;
|
|
status = "okay";
|
|
};
|
|
|
|
&pwm0 {
|
|
status = "okay";
|
|
pinctrl-names = "active";
|
|
pinctrl-0 = <&pwm0_pin_pull_up>;
|
|
};
|
|
|
|
&pwm1 {
|
|
status = "okay";
|
|
pinctrl-names = "active";
|
|
pinctrl-0 = <&pwm1_pin_pull_up>;
|
|
};
|
|
|
|
&cpu0_opp_table {
|
|
/delete-node/ opp-1200000000;
|
|
/delete-node/ opp-1296000000;
|
|
/delete-node/ opp-1392000000;
|
|
/delete-node/ opp-1512000000;
|
|
};
|