Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  * Device Tree Source for the Alt board
0004  *
0005  * Copyright (C) 2014 Renesas Electronics Corporation
0006  */
0007 
0008 /dts-v1/;
0009 #include "r8a7794.dtsi"
0010 #include <dt-bindings/gpio/gpio.h>
0011 #include <dt-bindings/input/input.h>
0012 
0013 / {
0014         model = "Alt";
0015         compatible = "renesas,alt", "renesas,r8a7794";
0016 
0017         aliases {
0018                 serial0 = &scif2;
0019                 i2c9 = &gpioi2c1;
0020                 i2c10 = &gpioi2c4;
0021                 i2c11 = &i2chdmi;
0022                 i2c12 = &i2cexio4;
0023                 mmc0 = &mmcif0;
0024                 mmc1 = &sdhi0;
0025                 mmc2 = &sdhi1;
0026         };
0027 
0028         chosen {
0029                 bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
0030                 stdout-path = "serial0:115200n8";
0031         };
0032 
0033         memory@40000000 {
0034                 device_type = "memory";
0035                 reg = <0 0x40000000 0 0x40000000>;
0036         };
0037 
0038         d3_3v: regulator-d3-3v {
0039                 compatible = "regulator-fixed";
0040                 regulator-name = "D3.3V";
0041                 regulator-min-microvolt = <3300000>;
0042                 regulator-max-microvolt = <3300000>;
0043                 regulator-boot-on;
0044                 regulator-always-on;
0045         };
0046 
0047         vcc_sdhi0: regulator-vcc-sdhi0 {
0048                 compatible = "regulator-fixed";
0049 
0050                 regulator-name = "SDHI0 Vcc";
0051                 regulator-min-microvolt = <3300000>;
0052                 regulator-max-microvolt = <3300000>;
0053 
0054                 gpio = <&gpio2 26 GPIO_ACTIVE_HIGH>;
0055                 enable-active-high;
0056         };
0057 
0058         vccq_sdhi0: regulator-vccq-sdhi0 {
0059                 compatible = "regulator-gpio";
0060 
0061                 regulator-name = "SDHI0 VccQ";
0062                 regulator-min-microvolt = <1800000>;
0063                 regulator-max-microvolt = <3300000>;
0064 
0065                 gpios = <&gpio2 29 GPIO_ACTIVE_HIGH>;
0066                 gpios-states = <1>;
0067                 states = <3300000 1>, <1800000 0>;
0068         };
0069 
0070         vcc_sdhi1: regulator-vcc-sdhi1 {
0071                 compatible = "regulator-fixed";
0072 
0073                 regulator-name = "SDHI1 Vcc";
0074                 regulator-min-microvolt = <3300000>;
0075                 regulator-max-microvolt = <3300000>;
0076 
0077                 gpio = <&gpio4 26 GPIO_ACTIVE_HIGH>;
0078                 enable-active-high;
0079         };
0080 
0081         vccq_sdhi1: regulator-vccq-sdhi1 {
0082                 compatible = "regulator-gpio";
0083 
0084                 regulator-name = "SDHI1 VccQ";
0085                 regulator-min-microvolt = <1800000>;
0086                 regulator-max-microvolt = <3300000>;
0087 
0088                 gpios = <&gpio4 29 GPIO_ACTIVE_HIGH>;
0089                 gpios-states = <1>;
0090                 states = <3300000 1>, <1800000 0>;
0091         };
0092 
0093         lbsc {
0094                 #address-cells = <1>;
0095                 #size-cells = <1>;
0096         };
0097 
0098         keyboard {
0099                 compatible = "gpio-keys";
0100 
0101                 pinctrl-0 = <&keyboard_pins>;
0102                 pinctrl-names = "default";
0103 
0104                 one {
0105                         linux,code = <KEY_1>;
0106                         label = "SW2-1";
0107                         wakeup-source;
0108                         debounce-interval = <20>;
0109                         gpios = <&gpio3 9 GPIO_ACTIVE_LOW>;
0110                 };
0111                 two {
0112                         linux,code = <KEY_2>;
0113                         label = "SW2-2";
0114                         wakeup-source;
0115                         debounce-interval = <20>;
0116                         gpios = <&gpio3 10 GPIO_ACTIVE_LOW>;
0117                 };
0118                 three {
0119                         linux,code = <KEY_3>;
0120                         label = "SW2-3";
0121                         wakeup-source;
0122                         debounce-interval = <20>;
0123                         gpios = <&gpio3 11 GPIO_ACTIVE_LOW>;
0124                 };
0125                 four {
0126                         linux,code = <KEY_4>;
0127                         label = "SW2-4";
0128                         wakeup-source;
0129                         debounce-interval = <20>;
0130                         gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
0131                 };
0132         };
0133 
0134         vga-encoder {
0135                 compatible = "adi,adv7123";
0136 
0137                 ports {
0138                         #address-cells = <1>;
0139                         #size-cells = <0>;
0140 
0141                         port@0 {
0142                                 reg = <0>;
0143                                 adv7123_in: endpoint {
0144                                         remote-endpoint = <&du_out_rgb1>;
0145                                 };
0146                         };
0147                         port@1 {
0148                                 reg = <1>;
0149                                 adv7123_out: endpoint {
0150                                         remote-endpoint = <&vga_in>;
0151                                 };
0152                         };
0153                 };
0154         };
0155 
0156         vga {
0157                 compatible = "vga-connector";
0158 
0159                 port {
0160                         vga_in: endpoint {
0161                                 remote-endpoint = <&adv7123_out>;
0162                         };
0163                 };
0164         };
0165 
0166         x2_clk: x2-clock {
0167                 compatible = "fixed-clock";
0168                 #clock-cells = <0>;
0169                 clock-frequency = <74250000>;
0170         };
0171 
0172         x13_clk: x13-clock {
0173                 compatible = "fixed-clock";
0174                 #clock-cells = <0>;
0175                 clock-frequency = <148500000>;
0176         };
0177 
0178         gpioi2c1: i2c-9 {
0179                 #address-cells = <1>;
0180                 #size-cells = <0>;
0181                 compatible = "i2c-gpio";
0182                 status = "disabled";
0183                 scl-gpios = <&gpio4 0 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
0184                 sda-gpios = <&gpio4 1 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
0185         };
0186 
0187         gpioi2c4: i2c-10 {
0188                 #address-cells = <1>;
0189                 #size-cells = <0>;
0190                 compatible = "i2c-gpio";
0191                 status = "disabled";
0192                 scl-gpios = <&gpio4 8 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
0193                 sda-gpios = <&gpio4 9 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
0194                 i2c-gpio,delay-us = <5>;
0195         };
0196 
0197         /*
0198          * A fallback to GPIO is provided for I2C1.
0199          */
0200         i2chdmi: i2c-11 {
0201                 compatible = "i2c-demux-pinctrl";
0202                 i2c-parent = <&i2c1>, <&gpioi2c1>;
0203                 i2c-bus-name = "i2c-hdmi";
0204                 #address-cells = <1>;
0205                 #size-cells = <0>;
0206 
0207                 composite-in@20 {
0208                         compatible = "adi,adv7180";
0209                         reg = <0x20>;
0210 
0211                         port {
0212                                 adv7180: endpoint {
0213                                         bus-width = <8>;
0214                                         remote-endpoint = <&vin0ep>;
0215                                 };
0216                         };
0217                 };
0218 
0219                 eeprom@50 {
0220                         compatible = "renesas,r1ex24002", "atmel,24c02";
0221                         reg = <0x50>;
0222                         pagesize = <16>;
0223                 };
0224         };
0225 
0226         /*
0227          * I2C4 is routed to EXIO connector B, pins 73 (SCL) + 74 (SDA).
0228          * A fallback to GPIO is provided.
0229          */
0230         i2cexio4: i2c-14 {
0231                 compatible = "i2c-demux-pinctrl";
0232                 i2c-parent = <&i2c4>, <&gpioi2c4>;
0233                 i2c-bus-name = "i2c-exio4";
0234                 #address-cells = <1>;
0235                 #size-cells = <0>;
0236         };
0237 };
0238 
0239 &pci0 {
0240         status = "okay";
0241         pinctrl-0 = <&usb0_pins>;
0242         pinctrl-names = "default";
0243 };
0244 
0245 &pci1 {
0246         status = "okay";
0247         pinctrl-0 = <&usb1_pins>;
0248         pinctrl-names = "default";
0249 };
0250 
0251 &usbphy {
0252         status = "okay";
0253 };
0254 
0255 &du {
0256         pinctrl-0 = <&du_pins>;
0257         pinctrl-names = "default";
0258         status = "okay";
0259 
0260         clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>,
0261                  <&x13_clk>, <&x2_clk>;
0262         clock-names = "du.0", "du.1", "dclkin.0", "dclkin.1";
0263 
0264         ports {
0265                 port@1 {
0266                         endpoint {
0267                                 remote-endpoint = <&adv7123_in>;
0268                         };
0269                 };
0270         };
0271 };
0272 
0273 &extal_clk {
0274         clock-frequency = <20000000>;
0275 };
0276 
0277 &pfc {
0278         pinctrl-0 = <&scif_clk_pins>;
0279         pinctrl-names = "default";
0280 
0281         du_pins: du {
0282                 groups = "du1_rgb666", "du1_sync", "du1_disp", "du1_clk0_out";
0283                 function = "du1";
0284         };
0285 
0286         scif2_pins: scif2 {
0287                 groups = "scif2_data";
0288                 function = "scif2";
0289         };
0290 
0291         scif_clk_pins: scif_clk {
0292                 groups = "scif_clk";
0293                 function = "scif_clk";
0294         };
0295 
0296         ether_pins: ether {
0297                 groups = "eth_link", "eth_mdio", "eth_rmii";
0298                 function = "eth";
0299         };
0300 
0301         phy1_pins: phy1 {
0302                 groups = "intc_irq8";
0303                 function = "intc";
0304         };
0305 
0306         i2c1_pins: i2c1 {
0307                 groups = "i2c1";
0308                 function = "i2c1";
0309         };
0310 
0311         i2c4_pins: i2c4 {
0312                 groups = "i2c4";
0313                 function = "i2c4";
0314         };
0315 
0316         vin0_pins: vin0 {
0317                 groups = "vin0_data8", "vin0_clk";
0318                 function = "vin0";
0319         };
0320 
0321         mmcif0_pins: mmcif0 {
0322                 groups = "mmc_data8", "mmc_ctrl";
0323                 function = "mmc";
0324         };
0325 
0326         sdhi0_pins: sd0 {
0327                 groups = "sdhi0_data4", "sdhi0_ctrl";
0328                 function = "sdhi0";
0329                 power-source = <3300>;
0330         };
0331 
0332         sdhi0_pins_uhs: sd0_uhs {
0333                 groups = "sdhi0_data4", "sdhi0_ctrl";
0334                 function = "sdhi0";
0335                 power-source = <1800>;
0336         };
0337 
0338         sdhi1_pins: sd1 {
0339                 groups = "sdhi1_data4", "sdhi1_ctrl";
0340                 function = "sdhi1";
0341                 power-source = <3300>;
0342         };
0343 
0344         sdhi1_pins_uhs: sd1_uhs {
0345                 groups = "sdhi1_data4", "sdhi1_ctrl";
0346                 function = "sdhi1";
0347                 power-source = <1800>;
0348         };
0349 
0350         usb0_pins: usb0 {
0351                 groups = "usb0";
0352                 function = "usb0";
0353         };
0354 
0355         usb1_pins: usb1 {
0356                 groups = "usb1";
0357                 function = "usb1";
0358         };
0359 
0360         keyboard_pins: keyboard {
0361                 pins = "GP_3_9", "GP_3_10", "GP_3_11", "GP_3_12";
0362                 bias-pull-up;
0363         };
0364 };
0365 
0366 &cmt0 {
0367         status = "okay";
0368 };
0369 
0370 &pfc {
0371         qspi_pins: qspi {
0372                 groups = "qspi_ctrl", "qspi_data4";
0373                 function = "qspi";
0374         };
0375 };
0376 
0377 &ether {
0378         pinctrl-0 = <&ether_pins>, <&phy1_pins>;
0379         pinctrl-names = "default";
0380 
0381         phy-handle = <&phy1>;
0382         renesas,ether-link-active-low;
0383         status = "okay";
0384 
0385         phy1: ethernet-phy@1 {
0386                 compatible = "ethernet-phy-id0022.1537",
0387                              "ethernet-phy-ieee802.3-c22";
0388                 reg = <1>;
0389                 interrupt-parent = <&irqc0>;
0390                 interrupts = <8 IRQ_TYPE_LEVEL_LOW>;
0391                 micrel,led-mode = <1>;
0392                 reset-gpios = <&gpio1 24 GPIO_ACTIVE_LOW>;
0393         };
0394 };
0395 
0396 &mmcif0 {
0397         pinctrl-0 = <&mmcif0_pins>;
0398         pinctrl-names = "default";
0399 
0400         vmmc-supply = <&d3_3v>;
0401         vqmmc-supply = <&d3_3v>;
0402         bus-width = <8>;
0403         non-removable;
0404         status = "okay";
0405 };
0406 
0407 &rwdt {
0408         timeout-sec = <60>;
0409         status = "okay";
0410 };
0411 
0412 &sdhi0 {
0413         pinctrl-0 = <&sdhi0_pins>;
0414         pinctrl-1 = <&sdhi0_pins_uhs>;
0415         pinctrl-names = "default", "state_uhs";
0416 
0417         vmmc-supply = <&vcc_sdhi0>;
0418         vqmmc-supply = <&vccq_sdhi0>;
0419         cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
0420         wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
0421         sd-uhs-sdr50;
0422         sd-uhs-sdr104;
0423         status = "okay";
0424 };
0425 
0426 &sdhi1 {
0427         pinctrl-0 = <&sdhi1_pins>;
0428         pinctrl-1 = <&sdhi1_pins_uhs>;
0429         pinctrl-names = "default", "state_uhs";
0430 
0431         vmmc-supply = <&vcc_sdhi1>;
0432         vqmmc-supply = <&vccq_sdhi1>;
0433         cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
0434         wp-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>;
0435         sd-uhs-sdr50;
0436         status = "okay";
0437 };
0438 
0439 &i2c1 {
0440         pinctrl-0 = <&i2c1_pins>;
0441         pinctrl-names = "i2c-hdmi";
0442 
0443         clock-frequency = <400000>;
0444 };
0445 
0446 &i2c4 {
0447         pinctrl-0 = <&i2c4_pins>;
0448         pinctrl-names = "i2c-exio4";
0449 };
0450 
0451 &i2c7 {
0452         status = "okay";
0453         clock-frequency = <100000>;
0454 
0455         pmic@58 {
0456                 compatible = "dlg,da9063";
0457                 reg = <0x58>;
0458                 interrupt-parent = <&gpio3>;
0459                 interrupts = <31 IRQ_TYPE_LEVEL_LOW>;
0460                 interrupt-controller;
0461 
0462                 rtc {
0463                         compatible = "dlg,da9063-rtc";
0464                 };
0465 
0466                 watchdog {
0467                         compatible = "dlg,da9063-watchdog";
0468                 };
0469         };
0470 };
0471 
0472 &vin0 {
0473         status = "okay";
0474         pinctrl-0 = <&vin0_pins>;
0475         pinctrl-names = "default";
0476 
0477         port {
0478                 vin0ep: endpoint {
0479                         remote-endpoint = <&adv7180>;
0480                         bus-width = <8>;
0481                 };
0482         };
0483 };
0484 
0485 &scif2 {
0486         pinctrl-0 = <&scif2_pins>;
0487         pinctrl-names = "default";
0488 
0489         status = "okay";
0490 };
0491 
0492 &scif_clk {
0493         clock-frequency = <14745600>;
0494 };
0495 
0496 &qspi {
0497         pinctrl-0 = <&qspi_pins>;
0498         pinctrl-names = "default";
0499 
0500         status = "okay";
0501 
0502         flash@0 {
0503                 compatible = "spansion,s25fl512s", "jedec,spi-nor";
0504                 reg = <0>;
0505                 spi-max-frequency = <30000000>;
0506                 spi-tx-bus-width = <4>;
0507                 spi-rx-bus-width = <4>;
0508                 spi-cpol;
0509                 spi-cpha;
0510                 m25p,fast-read;
0511 
0512                 partitions {
0513                         compatible = "fixed-partitions";
0514                         #address-cells = <1>;
0515                         #size-cells = <1>;
0516 
0517                         partition@0 {
0518                                 label = "loader";
0519                                 reg = <0x00000000 0x00040000>;
0520                                 read-only;
0521                         };
0522                         partition@40000 {
0523                                 label = "system";
0524                                 reg = <0x00040000 0x00040000>;
0525                                 read-only;
0526                         };
0527                         partition@80000 {
0528                                 label = "user";
0529                                 reg = <0x00080000 0x03f80000>;
0530                         };
0531                 };
0532         };
0533 };