关键词:rk322x-android.dtsi ,linux_3.10,rockchip,dts
dts — rk322x-android.dtsi
/* * 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 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. */ #include <dt-bindings/pwm/pwm.h> #include <dt-bindings/input/input.h> / { chosen { bootargs = "earlycon=uart8250,mmio32,0x11030000"; }; fiq-debugger { compatible = "rockchip,fiq-debugger"; interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>; rockchip,serial-id = <2>; rockchip,signal-irq = <159>; rockchip,wake-irq = <0>; rockchip,irq-mode-enable = <0>; /* If enable uart uses irq instead of fiq */ rockchip,baudrate = <1500000>; /* Only 115200 and 1500000 */ pinctrl-names = "default"; pinctrl-0 = <&uart21_xfer>; }; firmware { android { compatible = "android,firmware"; fstab { compatible = "android,fstab"; system { compatible = "android,system"; dev = "/dev/block/by-name/system"; type = "ext4"; mnt_flags = "ro,barrier=1,inode_readahead_blks=8"; fsmgr_flags = "wait,verify"; }; vendor { compatible = "android,vendor"; dev = "/dev/block/by-name/vendor"; type = "ext4"; mnt_flags = "ro,barrier=1,inode_readahead_blks=8"; fsmgr_flags = "wait,verify"; }; }; }; }; reserved-memory { #address-cells = <1>; #size-cells = <1>; ranges; drm_logo: drm-logo@00000000 { compatible = "rockchip,drm-logo"; reg = <0x0 0x0>; }; secure_memory: secure-memory@80000000 { compatible = "rockchip,secure-memory"; reg = <0x80000000 0x0>; }; ramoops_mem: ramoops@62e00000 { reg = <0x62e00000 0xf0000>; }; }; ramoops { compatible = "ramoops"; record-size = <0x0 0x20000>; console-size = <0x0 0x80000>; ftrace-size = <0x0 0x00000>; pmsg-size = <0x0 0x50000>; memory-region = <&ramoops_mem>; }; psci { compatible = "arm,psci-1.0"; method = "smc"; }; }; &cpu0 { enable-method = "psci"; }; &cpu1 { enable-method = "psci"; }; &cpu2 { enable-method = "psci"; }; &cpu3 { enable-method = "psci"; }; &emmc { broken-cd; bus-width = <8>; cap-mmc-highspeed; mmc-hs200-1_8v; supports-emmc; disable-wp; non-removable; num-slots = <1>; /delete-property/ default-sample-phase; /delete-property/ pinctrl-names; /delete-property/ pinctrl-0; status = "okay"; }; &hdmi { status = "okay"; }; &hdmi_phy { status = "okay"; }; &sdmmc { bus-width = <4>; cap-mmc-highspeed; cap-sd-highspeed; card-detect-delay = <200>; disable-wp; max-frequency = <50000000>; num-slots = <1>; supports-sd; }; &sdio { bus-width = <4>; cap-mmc-highspeed; cap-sd-highspeed; cap-sdio-irq; non-removable; ignore-pm-notify; keep-power-in-suspend; max-frequency = <150000000>; supports-sdio; }; &tsadc { rockchip,hw-tshut-mode = <0>; /* tshut mode 0:CRU 1:GPIO */ status = "okay"; }; &u2phy0 { status = "okay"; u2phy0_otg: otg-port { status = "okay"; }; u2phy0_host: host-port { status = "okay"; }; }; &u2phy1 { status = "okay"; u2phy1_otg: otg-port { status = "okay"; }; u2phy1_host: host-port { status = "okay"; }; }; &uart1 { pinctrl-names = "default"; pinctrl-0 = <&uart11_xfer &uart11_cts>; status = "okay"; }; &usb_otg { status = "okay"; }; &vop { assigned-clocks = <&cru DCLK_VOP>; assigned-clock-parents = <&cru HDMIPHY>; status = "okay"; }; &vop_mmu { status = "okay"; }; &rockchip_suspend { status = "okay"; }; ,prop = <EXTEND>; rockchip,pwr18 = <0>; reg = <0xff930000 0x10000>; interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>; //pinctrl-names = "default", "gpio"; //pinctrl-0 = <&lcdc0_lcdc>; //pinctrl-1 = <&lcdc0_gpio>; status = "disabled"; }; adc: adc@ff100000 { compatible = "rockchip,saradc"; reg = <0xff100000 0x100>; interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>; #io-channel-cells = <1>; io-channel-ranges; rockchip,adc-vref = <1800>; clock-frequency = <1000000>; clock-names = "saradc", "pclk_saradc"; status = "disabled"; }; rga@ff920000 { compatible = "rockchip,rga"; reg = <0xff920000 0x1000>; interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>; clock-names = "hclk_rga", "aclk_rga"; }; i2s: rockchip-i2s@0xff890000 { compatible = "rockchip-i2s"; reg = <0xff890000 0x10000>; i2s-id = <0>; interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>; // dmas = <&pdma0 0>, // <&pdma0 1>; //#dma-cells = <2>; // dma-names = "tx", "rx"; }; spdif: rockchip-spdif@0xff8b0000 { compatible = "rockchip-spdif"; reg = <0xff8b0000 0x10000>; //8channel //reg = <ff880000 0x2000>;//2channel interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>; // dmas = <&pdma0 8>; //#dma-cells = <1>; }; ion { compatible = "rockchip,ion"; #address-cells = <1>; #size-cells = <0>; ion_cma: rockchip,ion-heap@4 { /* CMA HEAP */ compatible = "rockchip,ion-heap"; rockchip,ion_heap = <4>; reg = <0x00000000 0x04000000>; /* 64MB */ }; rockchip,ion-heap@0 { /* VMALLOC HEAP */ compatible = "rockchip,ion-heap"; rockchip,ion_heap = <0>; }; }; mmc: mshc@ff0c0000 { compatible = "rockchip,rk_mmc"; reg = <0xff0c0000 0x4000>; interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; /*irq=64*/ #address-cells = <1>; #size-cells = <0>; clock-frequency = <50000000>; clock-freq-min-max = <400000 50000000>; num-slots = <1>; supports-highspeed; broken-cd; card-detect-delay = <200>; pwr-gpios = <&gpio3 GPIO_A1 GPIO_ACTIVE_LOW>; /*pwr_en = GPIO3_A1*/ fifo-depth = <0x100>; emmc-compatible = <0>; status = "okay"; }; sdio0: mshc@ff0d0000 { compatible = "rockchip,rk_mmc"; reg = <0xff0d0000 0x4000>; interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>; /*irq=65*/ #address-cells = <1>; #size-cells = <0>; clock-frequency = <50000000>; clock-freq-min-max = <400000 50000000>; num-slots = <1>; supports-highspeed; fifo-depth = <0x100>; emmc-compatible = <0>; status = "disabled"; }; sdio1: mshc@ff0e0000 { compatible = "rockchip,rk_mmc"; reg = <0xff0e0000 0x4000>; interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>; /*irq=66*/ #address-cells = <1>; #size-cells = <0>; clock-frequency = <50000000>; clock-freq-min-max = <400000 50000000>; num-slots = <1>; supports-highspeed; fifo-depth = <0x100>; emmc-compatible = <0>; status = "disabled"; }; emmc: mshc@ff0f0000 { compatible = "rockchip,rk_mmc"; reg = <0xff0f0000 0x4000>; interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>; /*irq=67*/ #address-cells = <1>; #size-cells = <0>; clock-frequency = <50000000>; clock-freq-min-max = <400000 50000000>; num-slots = <1>; supports-highspeed; fifo-depth = <0x100>; emmc-compatible = <1>; status = "disabled"; }; vpu: vpu_service@ff9a0000 { compatible = "vpu_service"; reg = <0xff9a0000 0x800>; interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>; interrupt-names = "irq_enc", "irq_dec"; name = "vpu_service"; status = "disabled"; }; hevc: hevc_service@ff9c0000 { compatible = "rockchip,hevc_service"; reg = <0xff9c0000 0x800>; interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>; interrupt-names = "irq_dec"; name = "hevc_service"; status = "disabled"; }; iep: iep@ff900000 { compatible = "rockchip,iep"; reg = <0xff900000 0x800>; interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; }; dwc_control_usb: dwc-control-usb@ff770284 { compatible = "rockchip,rk3288-dwc-control-usb"; reg = <0xff770284 0x04>, <0xff770288 0x04>, <0xff7702cc 0x04>, <0xff7702d4 0x04>, <0xff770320 0x14>, <0xff770334 0x14>, <0xff770348 0x10>, <0xff770358 0x08>, <0xff770360 0x08>; reg-names = "GRF_SOC_STATUS1" ,"GRF_SOC_STATUS2", "GRF_SOC_STATUS19", "GRF_SOC_STATUS21", "GRF_UOC0_BASE", "GRF_UOC1_BASE", "GRF_UOC2_BASE", "GRF_UOC3_BASE", "GRF_UOC4_BASE"; interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>; interrupt-names = "otg_id", "bvalid", "otg_linestate", "host0_linestate", "host1_linestate"; /*gpios = <&gpio0 GPIO_B6 GPIO_ACTIVE_LOW>,*//*HOST_VBUS_DRV*/ /* <&gpio0 GPIO_B4 GPIO_ACTIVE_LOW>;*//*OTG_VBUS_DRV*/ /*clocks = <&clk_gates4 5>;*/ /*clock-names = "hclk_usb_peri";*/ }; usb1: usb@ff580000 { compatible = "rockchip,rk3288_usb20_otg"; reg = <0xff580000 0x40000>; interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>; }; usb2: usb@ff540000 { compatible = "rockchip,rk3288_usb20_host"; reg = <0xff540000 0x40000>; interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>; }; usb3: usb@ff520000 { compatible = "rockchip,rk3288_rk_ohci_host"; reg = <0xff520000 0x20000>; interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>; }; usb4: usb@ff500000 { compatible = "rockchip,rk3288_rk_ehci_host"; reg = <0xff500000 0x20000>; interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>; }; usb5: usb@ff5c0000 { compatible = "rockchip,rk3288_rk_ehci1_host"; reg = <0xff5c0000 0x40000>; interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>; }; gmac: eth@ff290000 { compatible = "rockchip,gmac"; reg = <0xff290000 0x10000>; interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>; /*irq=59*/ interrupt-names = "macirq"; phy-mode = "rmii"; //phy-mode = "gmii"; pinctrl-names = "default"; pinctrl-0 = <&mac_clk &mac_txpins &mac_rxpins &mac_mdpins>; }; }; #include "lcd-td043mgeal.dtsi" / { compatible = "rockchip,rk3288-fpga"; memory { device_type = "memory"; reg = <0x00000000 0x10000000>; }; chosen { bootargs = "androidboot.console=ttyFIQ0 initrd=0x02000000,0x00800000"; }; fiq-debugger { status = "okay"; }; rockchip-rt5631 { compatible = "rockchip-rt5631"; dais { dai0 { codec-name = "rt5631.0-001a"; cpu-dai-name = "rockchip-i2s.0"; format = "i2s"; //continuous-clock; //bitclock-inversion; //frame-inversion; //bitclock-master; //frame-master; }; }; }; rockchip-rk610 { compatible = "rockchip-rk610"; dais { dai0 { codec-name = "rk610_codec.0-0060"; cpu-dai-name = "rockchip-i2s.0"; format = "i2s"; //continuous-clock; //bitclock-inversion; //frame-inversion; //bitclock-master; //frame-master; }; }; }; codec-hdmi-spdif { compatible = "hdmi-spdif"; }; codec-hdmi-i2s { compatible = "hdmi-i2s"; }; codec-hdmi-spdif { compatible = "hdmi-spdif"; }; }; &i2c0 { status = "okay"; rt5631@1a { compatible = "rt5631"; reg = <0x1a>; }; rk610ctl@40 { compatible = "rk610_ctl"; reg = <0x40>; rk610-reset-io = <&gpio3 GPIO_B2 GPIO_ACTIVE_HIGH>; // clocks = <&clk_i2s>; // clock-names = "i2s_clk"; }; rk610codec@60 {//RK610_CODEC addr from 0x60 to 0x80 (0x60~0x80) compatible = "rk610_codec"; reg = <0x60>; spk_ctl_io = <&gpio2 GPIO_D7 GPIO_ACTIVE_HIGH>; boot_depop = <1>; pa_enable_time = <1000>; }; ion { compatible = "rockchip,ion"; #address-cells = <1>; #size-cells = <0>; rockchip,ion-heap@1 { /* CMA HEAP */ compatible = "rockchip,ion-reserve"; reg = <1>; memory-reservation = <0x00000000 0x04000000>; /* 64MB */ }; rockchip,ion-heap@3 { /* SYSTEM HEAP */ reg = <3>; }; }; }; &fb { rockchip,disp-mode = <DUAL>; }; &rk_screen { display-timings = <&disp_timings>; }; &lcdc0 { status = "okay"; power_ctr: power_ctr { rockchip,debug = <0>; rockchip,mirror = <NO_MIRROR>; /*lcd_en:lcd_en { rockchip,power_type = <GPIO>; gpios = <&gpio7 GPIO_A3 GPIO_ACTIVE_HIGH>; rockchip,delay = <10>; }; lcd_cs:lcd_cs { rockchip,power_type = <REGULATOR>; rockchip,delay = <10>; }; lcd_rst:lcd_rst { rockchip,power_type = <GPIO>; gpios = <&gpio3 GPIO_D6 GPIO_ACTIVE_HIGH>; rockchip,delay = <5>; };*/ }; }; &lcdc1 { status = "disable"; }; &hdmi { status = "okay"; rockchips,hdmi_audio_source = <0>; }; ;SDMMC_CLKOUT>; rockchip,pull = <VALUE_PULL_UPDOWN_DISABLE>; }; sdio0_bus1: sdio0-bus-width1 { rockchip,pins = <SDMMC_DATA0>; rockchip,pull = <VALUE_PULL_UPDOWN_DISABLE>; }; sdio0_bus4: sdio0-bus-width4 { rockchip,pins = <SDMMC_DATA0>, <SDMMC_DATA1>, <SDMMC_DATA2>, <SDMMC_DATA3>; rockchip,pull = <VALUE_PULL_UPDOWN_DISABLE>; }; sdio0_gpio: sdio0_gpio{ rockchip,pins = <GPIO0_D6>, //pwren <GPIO0_A3>, //cmd <GPIO1_A0>, //clk <GPIO1_A1>, //data0 <GPIO1_A2>, //data1 <GPIO1_A4>, //data2 <GPIO1_A5>; //data3 rockchip,pull = <VALUE_PULL_UPDOWN_DISABLE>; }; }; gpio0_pwm{ pwm0_pin:pwm0 { rockchip,pins = <PWM0>; rockchip,pull = <VALUE_PULL_DEFAULT>; }; pwm1_pin:pwm1 { rockchip,pins = <PWM1>; rockchip,pull = <VALUE_PULL_DEFAULT>; }; pwm2_pin:pwm2 { rockchip,pins = <PWM2>; rockchip,pull = <VALUE_PULL_DEFAULT>; }; pwm3_pin:pwm3 { rockchip,pins = <PWM_IRIN>; rockchip,pull = <VALUE_PULL_DEFAULT>; }; }; gpio2_gmac { gmac_rxdv:gmac-rxdv { rockchip,pins = <GMAC_RXDV>; rockchip,pull = <VALUE_PULL_DEFAULT>; }; gmac_txclk:gmac-txclk { rockchip,pins = <GMAC_TXCLK>; rockchip,pull = <VALUE_PULL_DEFAULT>; }; gmac_crs:gmac-crs { rockchip,pins = <GMAC_CRS>; rockchip,pull = <VALUE_PULL_DEFAULT>; }; gmac_rxclk:gmac-rxclk { rockchip,pins = <GMAC_RXCLK>; rockchip,pull = <VALUE_PULL_DEFAULT>; }; gmac_mdio:gmac-mdio { rockchip,pins = <GMAC_MDIO>; rockchip,pull = <VALUE_PULL_DEFAULT>; }; gmac_txen:gmac-txen { rockchip,pins = <GMAC_TXEN>; rockchip,pull = <VALUE_PULL_DEFAULT>; }; gmac_clk:gmac-clk { rockchip,pins = <GMAC_CLK>; rockchip,pull = <VALUE_PULL_DEFAULT>; }; gmac_rxer:gmac-rxer { rockchip,pins = <GMAC_RXER>; rockchip,pull = <VALUE_PULL_DEFAULT>; }; gmac_rxd1:gmac-rxd1 { rockchip,pins = <GMAC_RXD1>; rockchip,pull = <VALUE_PULL_DEFAULT>; }; gmac_rxd0:gmac-rxd0 { rockchip,pins = <GMAC_RXD0>; rockchip,pull = <VALUE_PULL_DEFAULT>; }; gmac_txd1:gmac-txd1 { rockchip,pins = <GMAC_TXD1>; rockchip,pull = <VALUE_PULL_DEFAULT>; }; gmac_txd0:gmac-txd0 { rockchip,pins = <GMAC_TXD0>; rockchip,pull = <VALUE_PULL_DEFAULT>; }; gmac_rxd3:gmac-rxd3 { rockchip,pins = <GMAC_RXD3>; rockchip,pull = <VALUE_PULL_DEFAULT>; }; gmac_rxd2:gmac-rxd2 { rockchip,pins = <GMAC_RXD2>; rockchip,pull = <VALUE_PULL_DEFAULT>; }; gmac_txd2:gmac-txd2 { rockchip,pins = <GMAC_TXD2>; rockchip,pull = <VALUE_PULL_DEFAULT>; }; gmac_txd3:gmac-txd3 { rockchip,pins = <GMAC_TXD3>; rockchip,pull = <VALUE_PULL_DEFAULT>; }; gmac_col:gmac-col { rockchip,pins = <GMAC_COL>; rockchip,pull = <VALUE_PULL_DEFAULT>; }; gmac_col_gpio:gmac-col-gpio { rockchip,pins = <GPIO2_D0>; rockchip,pull = <VALUE_PULL_DEFAULT>; }; gmac_mdc:gmac-mdc { rockchip,pins = <GMAC_MDC>; rockchip,pull = <VALUE_PULL_DEFAULT>; }; }; gpio2_lcdc0 { lcdc0_lcdc:lcdc0-lcdc { rockchip,pins = <LCDC0_DCLK>, <LCDC0_DEN>, <LCDC0_HSYNC>, <LCDC0_VSYNC>; rockchip,pull = <VALUE_PULL_DISABLE>; }; lcdc0_gpio:lcdc0-gpio { rockchip,pins = <FUNC_TO_GPIO(LCDC0_DCLK)>, <FUNC_TO_GPIO(LCDC0_DEN)>, <FUNC_TO_GPIO(LCDC0_HSYNC)>, <FUNC_TO_GPIO(LCDC0_VSYNC)>; rockchip,pull = <VALUE_PULL_DISABLE>; }; }; gpio2_lcdc0_d { lcdc0_lcdc_d: lcdc0-lcdc_d { rockchip,pins = <LCDC0_D10>, <LCDC0_D11>, <LCDC0_D12>, <LCDC0_D13>, <LCDC0_D14>, <LCDC0_D15>, <LCDC0_D16>, <LCDC0_D17>; /* <LCDC0_D18>, <LCDC0_D19>, <LCDC0_D20>, <LCDC0_D21>, <LCDC0_D22>, <LCDC0_D23>; */ rockchip,pull = <VALUE_PULL_DISABLE>; }; lcdc0_lcdc_gpio: lcdc0-lcdc_gpio { rockchip,pins = <FUNC_TO_GPIO(LCDC0_D10)>, <FUNC_TO_GPIO(LCDC0_D11)>, <FUNC_TO_GPIO(LCDC0_D12)>, <FUNC_TO_GPIO(LCDC0_D13)>, <FUNC_TO_GPIO(LCDC0_D14)>, <FUNC_TO_GPIO(LCDC0_D15)>, <FUNC_TO_GPIO(LCDC0_D16)>, <FUNC_TO_GPIO(LCDC0_D17)>; /* <FUNC_TO_GPIO(LCDC0_D18)>, <FUNC_TO_GPIO(LCDC0_D19)>, <FUNC_TO_GPIO(LCDC0_D20)>, <FUNC_TO_GPIO(LCDC0_D21)>, <FUNC_TO_GPIO(LCDC0_D22)>, <FUNC_TO_GPIO(LCDC0_D23)>; */ rockchip,pull = <VALUE_PULL_DOWN>; }; }; //to add }; };