#include #include #include #include / { pinctrl: pinctrl@20008000 { compatible = "rockchip,rk312x-pinctrl"; reg = <0x20008000 0xA8>, <0x200080A8 0x4C>, <0x20008118 0x20>, <0x20008100 0x04>; reg-names = "base", "mux", "pull", "drv"; #address-cells = <1>; #size-cells = <1>; ranges; gpio0: gpio0@2007c000 { compatible = "rockchip,gpio-bank"; reg = <0x2007c000 0x100>; interrupts = ; clocks = <&clk_gates8 9>; gpio-controller; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; }; gpio1: gpio1@20080000 { compatible = "rockchip,gpio-bank"; reg = <0x20080000 0x100>; interrupts = ; clocks = <&clk_gates8 10>; gpio-controller; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; }; gpio2: gpio2@20084000 { compatible = "rockchip,gpio-bank"; reg = <0x20084000 0x100>; interrupts = ; clocks = <&clk_gates8 11>; gpio-controller; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; }; gpio3: gpio3@20088000 { compatible = "rockchip,gpio-bank"; reg = <0x20088000 0x100>; interrupts = ; clocks = <&clk_gates8 12>; gpio-controller; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; }; gpio15: gpio15@2008A000 { compatible = "rockchip,gpio-bank"; reg = <0x20086000 0x100>; interrupts = ;//127 = 160-32-1 clocks = <&clk_gates8 12>; gpio-controller; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; }; pcfg_pull_up: pcfg_pull_up { bias-pull-up; }; pcfg_pull_down: pcfg_pull_down { bias-pull-down; }; pcfg_pull_none: pcfg_pull_none { bias-disable; }; gpio0_uart0 { uart0_xfer: uart0-xfer { rockchip,pins = , ; rockchip,pull = ; }; uart0_cts: uart0-cts { rockchip,pins = ; rockchip,pull = ; }; uart0_rts: uart0-rts { rockchip,pins = ; rockchip,pull = ; }; uart0_rts_gpio: uart0-rts-gpio { rockchip,pins = ; rockchip,pull = ; }; }; gpio1_uart1 { uart1_xfer: uart1-xfer { rockchip,pins = , ; rockchip,pull = ; }; uart1_cts: uart1-cts { rockchip,pins = ; rockchip,pull = ; }; uart1_rts: uart1-rts { rockchip,pins = ; rockchip,pull = ; }; uart1_rts_gpio: uart1-rts-gpio { rockchip,pins = ; rockchip,pull = ; }; }; gpio1_uart2 { uart2_xfer: uart2-xfer { rockchip,pins = , ; rockchip,pull = ; }; uart2_cts: uart2-cts { rockchip,pins = ; rockchip,pull = ; }; uart2_rts: uart2-rts { rockchip,pins = ; rockchip,pull = ; }; uart2_rts_gpio: uart2-rts-gpio { rockchip,pins = ; rockchip,pull = ; }; }; gpio0_i2c0 { i2c0_sda:i2c0-sda { rockchip,pins = ; rockchip,pull = ; }; i2c0_scl:i2c0-scl { rockchip,pins = ; rockchip,pull = ; }; i2c0_gpio: i2c0-gpio { rockchip,pins = , ; rockchip,pull = ; }; }; gpio0_i2c1 { i2c1_sda:i2c1-sda { rockchip,pins = ; rockchip,pull = ; }; i2c1_scl:i2c1-scl { rockchip,pins = ; rockchip,pull = ; }; i2c1_gpio: i2c1-gpio { rockchip,pins = , ; rockchip,pull = ; }; }; gpio1_i2c2 { i2c2_sda:i2c2-sda { rockchip,pins = ; rockchip,pull = ; }; i2c2_scl:i2c2-scl { rockchip,pins = ; rockchip,pull = ; }; i2c2_gpio: i2c2-gpio { rockchip,pins = , ; rockchip,pull = ; }; }; gpio0_i2c3 { i2c3_sda:i2c3-sda { rockchip,pins = ; rockchip,pull = ; }; i2c3_scl:i2c3-scl { rockchip,pins = ; rockchip,pull = ; }; i2c3_gpio: i2c3-gpio { rockchip,pins = , ; rockchip,pull = ; }; }; gpio1_spi0 { spi0_txd_mux0:spi0-txd-mux0 { rockchip,pins = ; rockchip,pull = ; }; spi0_rxd_mux0:spi0-rxd-mux0 { rockchip,pins = ; rockchip,pull = ; }; spi0_clk_mux0:spi0-clk-mux0 { rockchip,pins = ; rockchip,pull = ; }; spi0_cs0_mux0:spi0-cs0-mux0 { rockchip,pins = ; rockchip,pull = ; }; spi0_cs1_mux0:spi0-cs1-mux0 { rockchip,pins = ; rockchip,pull = ; }; spi0_txd_mux1:spi0-txd-mux1 { rockchip,pins = ; rockchip,pull = ; }; spi0_rxd_mux1:spi0-rxd-mux1 { rockchip,pins = ; rockchip,pull = ; }; spi0_clk_mux1:spi0-clk-mux1 { rockchip,pins = ; rockchip,pull = ; }; spi0_cs0_mux1:spi0-cs0-mux1 { rockchip,pins = ; rockchip,pull = ; }; spi0_cs1_mux1:spi0-cs1-mux1 { rockchip,pins = ; rockchip,pull = ; }; spi0_txd_mux2:spi0-txd-mux2 { rockchip,pins = ; rockchip,pull = ; }; spi0_rxd_mux2:spi0-rxd-mux2 { rockchip,pins = ; rockchip,pull = ; }; spi0_clk_mux2:spi0-clk-mux2 { rockchip,pins = ; rockchip,pull = ; }; spi0_cs0_mux2:spi0-cs0-mux2 { rockchip,pins = ; rockchip,pull = ; }; }; gpio1_hdmi { hdmi_cec:hdmi-cec { rockchip,pins = ; rockchip,pull = ; //rockchip,drive = ; }; hdmi_sda:hdmi-sda { rockchip,pins = ; rockchip,pull = ; //rockchip,drive = ; }; hdmi_scl:hdmi-scl { rockchip,pins = ; rockchip,pull = ; //rockchip,drive = ; }; hdmi_hpd:hdmi-hpd { rockchip,pins = ; rockchip,pull = ; //rockchip,drive = ; }; hdmi_gpio: hdmi-gpio { rockchip,pins = , , , ; rockchip,pull = ; //rockchip,drive = ; }; }; gpio1_i2s0 { i2s0_mclk_mux0:i2s0-mclk-mux0 { rockchip,pins = ; rockchip,pull = ; }; i2s0_sclk_mux0:i2s0-sclk-mux0 { rockchip,pins = ; rockchip,pull = ; }; i2s0_lrckrx_mux0:i2s0-lrckrx-mux0 { rockchip,pins = ; rockchip,pull = ; }; i2s0_lrcktx_mux0:i2s0-lrcktx-mux0 { rockchip,pins = ; rockchip,pull = ; }; i2s0_sdo_mux0:i2s0-sdo-mux0 { rockchip,pins = ; rockchip,pull = ; }; i2s0_sdi_mux0:i2s0-sdi-mux0 { rockchip,pins = ; rockchip,pull = ; }; i2s0_gpio_mux0: i2s0-gpio-mux0 { rockchip,pins = , , , , , ; rockchip,pull = ; }; i2s0_mclk_mux1:i2s0-mclk-mux1 { rockchip,pins = ; rockchip,pull = ; }; i2s0_sclk_mux1:i2s0-sclk-mux1 { rockchip,pins = ; rockchip,pull = ; }; i2s0_lrckrx_mux1:i2s0-lrckrx-mux1 { rockchip,pins = ; rockchip,pull = ; }; i2s0_lrcktx_mux1:i2s0-lrcktx-mux1 { rockchip,pins = ; rockchip,pull = ; }; i2s0_sdo_mux1:i2s0-sdo-mux1 { rockchip,pins = ; rockchip,pull = ; }; i2s0_sdi_mux1:i2s0-sdi-mux1 { rockchip,pins = ; rockchip,pull = ; }; i2s0_gpio_mux1: i2s0-gpio-mux1 { rockchip,pins = , , , , , ; rockchip,pull = ; }; }; gpio0_spdif { spdif_tx: spdif-tx { rockchip,pins = ; rockchip,pull = ; }; }; gpio0_emmc0 { emmc0_clk: emmc0-clk { rockchip,pins = ; rockchip,pull = ; }; emmc0_cmd_mux0: emmc0-cmd-mux0 { rockchip,pins = ; rockchip,pull = ; }; emmc0_cmd_mux1: emmc0-cmd-mux1 { rockchip,pins = ; rockchip,pull = ; }; emmc0_bus1: emmc0-bus-width1 { rockchip,pins = ; rockchip,pull = ; }; emmc0_bus4: emmc0-bus-width4 { rockchip,pins = , , , ; rockchip,pull = ; }; }; gpio1_sdmmc0 { sdmmc0_clk: sdmmc0-clk { rockchip,pins = ; rockchip,pull = ; }; sdmmc0_cmd: sdmmc0-cmd { rockchip,pins = ; rockchip,pull = ; }; sdmmc0_dectn: sdmmc0-dectn{ rockchip,pins = ; rockchip,pull = ; }; sdmmc0_pwren: sdmmc0-pwren{ rockchip,pins = ; rockchip,pull = ; }; sdmmc0_bus1: sdmmc0-bus-width1 { rockchip,pins = ; rockchip,pull = ; }; sdmmc0_bus4: sdmmc0-bus-width4 { rockchip,pins = , , , ; rockchip,pull = ; }; sdmmc0_gpio: sdmmc0_gpio{ rockchip,pins = , //CMD , //CLK , //DET , //PWREN , //D0 , //D1 , //D2 ; //D3 rockchip,pull = ; }; }; gpio2_nandc { nandc_ale:nandc-ale { rockchip,pins = ; rockchip,pull = ; }; nandc_cle:nandc-cle { rockchip,pins = ; rockchip,pull = ; }; nandc_wrn:nandc-wrn { rockchip,pins = ; rockchip,pull = ; }; nandc_rdn:nandc-rdn { rockchip,pins = ; rockchip,pull = ; }; nandc_rdy:nandc-rdy { rockchip,pins = ; rockchip,pull = ; }; nandc_cs0:nandc-cs0 { rockchip,pins = ; rockchip,pull = ; }; nandc_data: nandc-data { rockchip,pins = , , , , , , , ; rockchip,pull = ; }; }; gpio0_sdio0 { sdio0_pwren: sdio0_pwren { rockchip,pins = ; rockchip,pull = ; }; sdio0_cmd: sdio0_cmd { rockchip,pins = ; rockchip,pull = ; }; sdio0_clk: sdio0_clk { rockchip,pins = ; rockchip,pull = ; }; sdio0_bus1: sdio0-bus-width1 { rockchip,pins = ; rockchip,pull = ; }; sdio0_bus4: sdio0-bus-width4 { rockchip,pins = , , , ; rockchip,pull = ; }; sdio0_gpio: sdio0_gpio{ rockchip,pins = , //pwren , //cmd , //clk , //data0 , //data1 , //data2 ; //data3 rockchip,pull = ; }; }; gpio0_pwm{ pwm0_pin:pwm0 { rockchip,pins = ; rockchip,pull = ; }; pwm1_pin:pwm1 { rockchip,pins = ; rockchip,pull = ; }; pwm2_pin:pwm2 { rockchip,pins = ; rockchip,pull = ; }; pwm3_pin:pwm3 { rockchip,pins = ; rockchip,pull = ; }; }; gpio2_gmac { gmac_rxdv:gmac-rxdv { rockchip,pins = ; rockchip,pull = ; }; gmac_txclk:gmac-txclk { rockchip,pins = ; rockchip,pull = ; }; gmac_crs:gmac-crs { rockchip,pins = ; rockchip,pull = ; }; gmac_rxclk:gmac-rxclk { rockchip,pins = ; rockchip,pull = ; }; gmac_mdio:gmac-mdio { rockchip,pins = ; rockchip,pull = ; }; gmac_txen:gmac-txen { rockchip,pins = ; rockchip,pull = ; }; gmac_clk:gmac-clk { rockchip,pins = ; rockchip,pull = ; }; gmac_rxer:gmac-rxer { rockchip,pins = ; rockchip,pull = ; }; gmac_rxd1:gmac-rxd1 { rockchip,pins = ; rockchip,pull = ; }; gmac_rxd0:gmac-rxd0 { rockchip,pins = ; rockchip,pull = ; }; gmac_txd1:gmac-txd1 { rockchip,pins = ; rockchip,pull = ; }; gmac_txd0:gmac-txd0 { rockchip,pins = ; rockchip,pull = ; }; gmac_rxd3:gmac-rxd3 { rockchip,pins = ; rockchip,pull = ; }; gmac_rxd2:gmac-rxd2 { rockchip,pins = ; rockchip,pull = ; }; gmac_txd2:gmac-txd2 { rockchip,pins = ; rockchip,pull = ; }; gmac_txd3:gmac-txd3 { rockchip,pins = ; rockchip,pull = ; }; gmac_col:gmac-col { rockchip,pins = ; rockchip,pull = ; }; gmac_col_gpio:gmac-col-gpio { rockchip,pins = ; rockchip,pull = ; }; gmac_mdc:gmac-mdc { rockchip,pins = ; rockchip,pull = ; }; }; gpio2_lcdc0 { lcdc0_lcdc:lcdc0-lcdc { rockchip,pins = , , , ; rockchip,pull = ; }; lcdc0_gpio:lcdc0-gpio { rockchip,pins = , , , ; rockchip,pull = ; }; }; gpio2_lcdc0_d { lcdc0_lcdc_d: lcdc0-lcdc_d { rockchip,pins = , , , , , , , ; /* , , , , , ; */ rockchip,pull = ; }; lcdc0_lcdc_gpio: lcdc0-lcdc_gpio { rockchip,pins = , , , , , , , ; /* , , , , , ; */ rockchip,pull = ; }; }; //to add }; };