Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  * Device Tree Source for the Lager board
0004  *
0005  * Copyright (C) 2013-2014 Renesas Solutions Corp.
0006  * Copyright (C) 2014 Cogent Embedded, Inc.
0007  * Copyright (C) 2015-2016 Renesas Electronics Corporation
0008  */
0009 
0010 /*
0011  * SSI-AK4643
0012  *
0013  * SW1: 1: AK4643
0014  *      2: CN22
0015  *      3: ADV7511
0016  *
0017  * This command is required when Playback/Capture
0018  *
0019  *      amixer set "LINEOUT Mixer DACL" on
0020  *      amixer set "DVC Out" 100%
0021  *      amixer set "DVC In" 100%
0022  *
0023  * You can use Mute
0024  *
0025  *      amixer set "DVC Out Mute" on
0026  *      amixer set "DVC In Mute" on
0027  *
0028  * You can use Volume Ramp
0029  *
0030  *      amixer set "DVC Out Ramp Up Rate"   "0.125 dB/64 steps"
0031  *      amixer set "DVC Out Ramp Down Rate" "0.125 dB/512 steps"
0032  *      amixer set "DVC Out Ramp" on
0033  *      aplay xxx.wav &
0034  *      amixer set "DVC Out"  80%  // Volume Down
0035  *      amixer set "DVC Out" 100%  // Volume Up
0036  */
0037 
0038 /dts-v1/;
0039 #include "r8a7790.dtsi"
0040 #include <dt-bindings/gpio/gpio.h>
0041 #include <dt-bindings/input/input.h>
0042 
0043 / {
0044         model = "Lager";
0045         compatible = "renesas,lager", "renesas,r8a7790";
0046 
0047         aliases {
0048                 serial0 = &scif0;
0049                 serial1 = &scifa1;
0050                 i2c8 = &gpioi2c1;
0051                 i2c9 = &gpioi2c2;
0052                 i2c10 = &i2cexio0;
0053                 i2c11 = &i2cexio1;
0054                 i2c12 = &i2chdmi;
0055                 i2c13 = &i2cpwr;
0056                 mmc0 = &mmcif1;
0057                 mmc1 = &sdhi0;
0058                 mmc2 = &sdhi2;
0059         };
0060 
0061         chosen {
0062                 bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
0063                 stdout-path = "serial0:115200n8";
0064         };
0065 
0066         memory@40000000 {
0067                 device_type = "memory";
0068                 reg = <0 0x40000000 0 0x40000000>;
0069         };
0070 
0071         memory@140000000 {
0072                 device_type = "memory";
0073                 reg = <1 0x40000000 0 0xc0000000>;
0074         };
0075 
0076         lbsc {
0077                 #address-cells = <1>;
0078                 #size-cells = <1>;
0079         };
0080 
0081         keyboard {
0082                 compatible = "gpio-keys";
0083 
0084                 pinctrl-0 = <&keyboard_pins>;
0085                 pinctrl-names = "default";
0086 
0087                 one {
0088                         linux,code = <KEY_1>;
0089                         label = "SW2-1";
0090                         wakeup-source;
0091                         debounce-interval = <20>;
0092                         gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
0093                 };
0094                 two {
0095                         linux,code = <KEY_2>;
0096                         label = "SW2-2";
0097                         wakeup-source;
0098                         debounce-interval = <20>;
0099                         gpios = <&gpio1 24 GPIO_ACTIVE_LOW>;
0100                 };
0101                 three {
0102                         linux,code = <KEY_3>;
0103                         label = "SW2-3";
0104                         wakeup-source;
0105                         debounce-interval = <20>;
0106                         gpios = <&gpio1 26 GPIO_ACTIVE_LOW>;
0107                 };
0108                 four {
0109                         linux,code = <KEY_4>;
0110                         label = "SW2-4";
0111                         wakeup-source;
0112                         debounce-interval = <20>;
0113                         gpios = <&gpio1 28 GPIO_ACTIVE_LOW>;
0114                 };
0115         };
0116 
0117         leds {
0118                 compatible = "gpio-leds";
0119                 led6 {
0120                         gpios = <&gpio4 22 GPIO_ACTIVE_HIGH>;
0121                 };
0122                 led7 {
0123                         gpios = <&gpio4 23 GPIO_ACTIVE_HIGH>;
0124                 };
0125                 led8 {
0126                         gpios = <&gpio5 17 GPIO_ACTIVE_HIGH>;
0127                 };
0128         };
0129 
0130         fixedregulator3v3: regulator-3v3 {
0131                 compatible = "regulator-fixed";
0132                 regulator-name = "fixed-3.3V";
0133                 regulator-min-microvolt = <3300000>;
0134                 regulator-max-microvolt = <3300000>;
0135                 regulator-boot-on;
0136                 regulator-always-on;
0137         };
0138 
0139         vcc_sdhi0: regulator-vcc-sdhi0 {
0140                 compatible = "regulator-fixed";
0141 
0142                 regulator-name = "SDHI0 Vcc";
0143                 regulator-min-microvolt = <3300000>;
0144                 regulator-max-microvolt = <3300000>;
0145 
0146                 gpio = <&gpio5 24 GPIO_ACTIVE_HIGH>;
0147                 enable-active-high;
0148         };
0149 
0150         vccq_sdhi0: regulator-vccq-sdhi0 {
0151                 compatible = "regulator-gpio";
0152 
0153                 regulator-name = "SDHI0 VccQ";
0154                 regulator-min-microvolt = <1800000>;
0155                 regulator-max-microvolt = <3300000>;
0156 
0157                 gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>;
0158                 gpios-states = <1>;
0159                 states = <3300000 1>, <1800000 0>;
0160         };
0161 
0162         vcc_sdhi2: regulator-vcc-sdhi2 {
0163                 compatible = "regulator-fixed";
0164 
0165                 regulator-name = "SDHI2 Vcc";
0166                 regulator-min-microvolt = <3300000>;
0167                 regulator-max-microvolt = <3300000>;
0168 
0169                 gpio = <&gpio5 25 GPIO_ACTIVE_HIGH>;
0170                 enable-active-high;
0171         };
0172 
0173         vccq_sdhi2: regulator-vccq-sdhi2 {
0174                 compatible = "regulator-gpio";
0175 
0176                 regulator-name = "SDHI2 VccQ";
0177                 regulator-min-microvolt = <1800000>;
0178                 regulator-max-microvolt = <3300000>;
0179 
0180                 gpios = <&gpio5 30 GPIO_ACTIVE_HIGH>;
0181                 gpios-states = <1>;
0182                 states = <3300000 1>, <1800000 0>;
0183         };
0184 
0185         audio_clock: audio_clock {
0186                 compatible = "fixed-clock";
0187                 #clock-cells = <0>;
0188                 clock-frequency = <11289600>;
0189         };
0190 
0191         rsnd_ak4643: sound {
0192                 compatible = "simple-audio-card";
0193 
0194                 simple-audio-card,format = "left_j";
0195                 simple-audio-card,bitclock-master = <&sndcodec>;
0196                 simple-audio-card,frame-master = <&sndcodec>;
0197 
0198                 sndcpu: simple-audio-card,cpu {
0199                         sound-dai = <&rcar_sound>;
0200                 };
0201 
0202                 sndcodec: simple-audio-card,codec {
0203                         sound-dai = <&ak4643>;
0204                         clocks = <&audio_clock>;
0205                 };
0206         };
0207 
0208         vga-encoder {
0209                 compatible = "adi,adv7123";
0210 
0211                 ports {
0212                         #address-cells = <1>;
0213                         #size-cells = <0>;
0214 
0215                         port@0 {
0216                                 reg = <0>;
0217                                 adv7123_in: endpoint {
0218                                         remote-endpoint = <&du_out_rgb>;
0219                                 };
0220                         };
0221                         port@1 {
0222                                 reg = <1>;
0223                                 adv7123_out: endpoint {
0224                                         remote-endpoint = <&vga_in>;
0225                                 };
0226                         };
0227                 };
0228         };
0229 
0230         vga {
0231                 compatible = "vga-connector";
0232 
0233                 port {
0234                         vga_in: endpoint {
0235                                 remote-endpoint = <&adv7123_out>;
0236                         };
0237                 };
0238         };
0239 
0240         hdmi-in {
0241                 compatible = "hdmi-connector";
0242                 type = "a";
0243 
0244                 port {
0245                         hdmi_con_in: endpoint {
0246                                 remote-endpoint = <&adv7612_in>;
0247                         };
0248                 };
0249         };
0250 
0251         cec_clock: cec-clock {
0252                 compatible = "fixed-clock";
0253                 #clock-cells = <0>;
0254                 clock-frequency = <12000000>;
0255         };
0256 
0257         hdmi-out {
0258                 compatible = "hdmi-connector";
0259                 type = "a";
0260 
0261                 port {
0262                         hdmi_con_out: endpoint {
0263                                 remote-endpoint = <&adv7511_out>;
0264                         };
0265                 };
0266         };
0267 
0268         x2_clk: x2-clock {
0269                 compatible = "fixed-clock";
0270                 #clock-cells = <0>;
0271                 clock-frequency = <148500000>;
0272         };
0273 
0274         x13_clk: x13-clock {
0275                 compatible = "fixed-clock";
0276                 #clock-cells = <0>;
0277                 clock-frequency = <148500000>;
0278         };
0279 
0280         gpioi2c1: i2c-8 {
0281                 #address-cells = <1>;
0282                 #size-cells = <0>;
0283                 compatible = "i2c-gpio";
0284                 status = "disabled";
0285                 scl-gpios = <&gpio1 16 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
0286                 sda-gpios = <&gpio1 17 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
0287                 i2c-gpio,delay-us = <5>;
0288         };
0289 
0290         gpioi2c2: i2c-9 {
0291                 #address-cells = <1>;
0292                 #size-cells = <0>;
0293                 compatible = "i2c-gpio";
0294                 status = "disabled";
0295                 scl-gpios = <&gpio5 5 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
0296                 sda-gpios = <&gpio5 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
0297                 i2c-gpio,delay-us = <5>;
0298         };
0299 
0300         /*
0301          * IIC0/I2C0 is routed to EXIO connector A, pins 114 (SCL) + 116 (SDA) only.
0302          * We use the I2C demuxer, so the desired IP core can be selected at runtime
0303          * depending on the use case (e.g. DMA with IIC0 or slave support with I2C0).
0304          * Note: For testing the I2C slave feature, it is convenient to connect this
0305          * bus with IIC3 on pins 110 (SCL) + 112 (SDA), select I2C0 at runtime, and
0306          * instantiate the slave device at runtime according to the documentation.
0307          * You can then communicate with the slave via IIC3.
0308          *
0309          * IIC0/I2C0 does not appear to support fallback to GPIO.
0310          */
0311         i2cexio0: i2c-10 {
0312                 compatible = "i2c-demux-pinctrl";
0313                 i2c-parent = <&iic0>, <&i2c0>;
0314                 i2c-bus-name = "i2c-exio0";
0315                 #address-cells = <1>;
0316                 #size-cells = <0>;
0317         };
0318 
0319         /*
0320          * IIC1/I2C1 is routed to EXIO connector A, pins 78 (SCL) + 80 (SDA).
0321          * This is similar to the arangement described for i2cexio0 (above)
0322          * with a fallback to GPIO also provided.
0323          */
0324         i2cexio1: i2c-11 {
0325                 compatible = "i2c-demux-pinctrl";
0326                 i2c-parent = <&iic1>, <&i2c1>, <&gpioi2c1>;
0327                 i2c-bus-name = "i2c-exio1";
0328                 #address-cells = <1>;
0329                 #size-cells = <0>;
0330         };
0331 
0332         /*
0333          * IIC2 and I2C2 may be switched using pinmux.
0334          * A fallback to GPIO is also provided.
0335          */
0336         i2chdmi: i2c-12 {
0337                 compatible = "i2c-demux-pinctrl";
0338                 i2c-parent = <&iic2>, <&i2c2>, <&gpioi2c2>;
0339                 i2c-bus-name = "i2c-hdmi";
0340                 #address-cells = <1>;
0341                 #size-cells = <0>;
0342 
0343                 ak4643: codec@12 {
0344                         compatible = "asahi-kasei,ak4643";
0345                         #sound-dai-cells = <0>;
0346                         reg = <0x12>;
0347                 };
0348 
0349                 composite-in@20 {
0350                         compatible = "adi,adv7180";
0351                         reg = <0x20>;
0352 
0353                         port {
0354                                 adv7180: endpoint {
0355                                         bus-width = <8>;
0356                                         remote-endpoint = <&vin1ep0>;
0357                                 };
0358                         };
0359                 };
0360 
0361                 hdmi@39 {
0362                         compatible = "adi,adv7511w";
0363                         reg = <0x39>;
0364                         interrupt-parent = <&gpio1>;
0365                         interrupts = <15 IRQ_TYPE_LEVEL_LOW>;
0366                         clocks = <&cec_clock>;
0367                         clock-names = "cec";
0368 
0369                         adi,input-depth = <8>;
0370                         adi,input-colorspace = "rgb";
0371                         adi,input-clock = "1x";
0372 
0373                         ports {
0374                                 #address-cells = <1>;
0375                                 #size-cells = <0>;
0376 
0377                                 port@0 {
0378                                         reg = <0>;
0379                                         adv7511_in: endpoint {
0380                                                 remote-endpoint = <&lvds0_out>;
0381                                         };
0382                                 };
0383 
0384                                 port@1 {
0385                                         reg = <1>;
0386                                         adv7511_out: endpoint {
0387                                                 remote-endpoint = <&hdmi_con_out>;
0388                                         };
0389                                 };
0390                         };
0391                 };
0392 
0393                 hdmi-in@4c {
0394                         compatible = "adi,adv7612";
0395                         reg = <0x4c>;
0396                         interrupt-parent = <&gpio1>;
0397                         interrupts = <20 IRQ_TYPE_LEVEL_LOW>;
0398                         default-input = <0>;
0399 
0400                         ports {
0401                                 #address-cells = <1>;
0402                                 #size-cells = <0>;
0403 
0404                                 port@0 {
0405                                         reg = <0>;
0406                                         adv7612_in: endpoint {
0407                                                 remote-endpoint = <&hdmi_con_in>;
0408                                         };
0409                                 };
0410 
0411                                 port@2 {
0412                                         reg = <2>;
0413                                         adv7612_out: endpoint {
0414                                                 remote-endpoint = <&vin0ep2>;
0415                                         };
0416                                 };
0417                         };
0418                 };
0419         };
0420 
0421         /*
0422          * IIC3 and I2C3 may be switched using pinmux.
0423          * IIC3/I2C3 does not appear to support fallback to GPIO.
0424          */
0425         i2cpwr: i2c-13 {
0426                 compatible = "i2c-demux-pinctrl";
0427                 pinctrl-names = "default";
0428                 pinctrl-0 = <&pmic_irq_pins>;
0429                 i2c-parent = <&iic3>, <&i2c3>;
0430                 i2c-bus-name = "i2c-pwr";
0431                 #address-cells = <1>;
0432                 #size-cells = <0>;
0433 
0434                 pmic@58 {
0435                         compatible = "dlg,da9063";
0436                         reg = <0x58>;
0437                         interrupt-parent = <&irqc0>;
0438                         interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
0439                         interrupt-controller;
0440 
0441                         rtc {
0442                                 compatible = "dlg,da9063-rtc";
0443                         };
0444 
0445                         watchdog {
0446                                 compatible = "dlg,da9063-watchdog";
0447                         };
0448                 };
0449 
0450                 vdd_dvfs: regulator@68 {
0451                         compatible = "dlg,da9210";
0452                         reg = <0x68>;
0453                         interrupt-parent = <&irqc0>;
0454                         interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
0455 
0456                         regulator-min-microvolt = <1000000>;
0457                         regulator-max-microvolt = <1000000>;
0458                         regulator-boot-on;
0459                         regulator-always-on;
0460                 };
0461         };
0462 };
0463 
0464 &du {
0465         pinctrl-0 = <&du_pins>;
0466         pinctrl-names = "default";
0467         status = "okay";
0468 
0469         clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>, <&cpg CPG_MOD 722>,
0470                  <&x13_clk>, <&x2_clk>;
0471         clock-names = "du.0", "du.1", "du.2", "dclkin.0", "dclkin.1";
0472 
0473         ports {
0474                 port@0 {
0475                         endpoint {
0476                                 remote-endpoint = <&adv7123_in>;
0477                         };
0478                 };
0479         };
0480 };
0481 
0482 &lvds0 {
0483         status = "okay";
0484 
0485         ports {
0486                 port@1 {
0487                         endpoint {
0488                                 remote-endpoint = <&adv7511_in>;
0489                         };
0490                 };
0491         };
0492 };
0493 
0494 &lvds1 {
0495         ports {
0496                 port@1 {
0497                         lvds_connector: endpoint {
0498                         };
0499                 };
0500         };
0501 };
0502 
0503 &extal_clk {
0504         clock-frequency = <20000000>;
0505 };
0506 
0507 &pfc {
0508         pinctrl-0 = <&scif_clk_pins>;
0509         pinctrl-names = "default";
0510 
0511         du_pins: du {
0512                 groups = "du_rgb666", "du_sync_1", "du_clk_out_0";
0513                 function = "du";
0514         };
0515 
0516         scif0_pins: scif0 {
0517                 groups = "scif0_data";
0518                 function = "scif0";
0519         };
0520 
0521         scif_clk_pins: scif_clk {
0522                 groups = "scif_clk";
0523                 function = "scif_clk";
0524         };
0525 
0526         ether_pins: ether {
0527                 groups = "eth_link", "eth_mdio", "eth_rmii";
0528                 function = "eth";
0529         };
0530 
0531         phy1_pins: phy1 {
0532                 groups = "intc_irq0";
0533                 function = "intc";
0534         };
0535 
0536         scifa1_pins: scifa1 {
0537                 groups = "scifa1_data";
0538                 function = "scifa1";
0539         };
0540 
0541         sdhi0_pins: sd0 {
0542                 groups = "sdhi0_data4", "sdhi0_ctrl";
0543                 function = "sdhi0";
0544                 power-source = <3300>;
0545         };
0546 
0547         sdhi0_pins_uhs: sd0_uhs {
0548                 groups = "sdhi0_data4", "sdhi0_ctrl";
0549                 function = "sdhi0";
0550                 power-source = <1800>;
0551         };
0552 
0553         sdhi2_pins: sd2 {
0554                 groups = "sdhi2_data4", "sdhi2_ctrl";
0555                 function = "sdhi2";
0556                 power-source = <3300>;
0557         };
0558 
0559         sdhi2_pins_uhs: sd2_uhs {
0560                 groups = "sdhi2_data4", "sdhi2_ctrl";
0561                 function = "sdhi2";
0562                 power-source = <1800>;
0563         };
0564 
0565         mmc1_pins: mmc1 {
0566                 groups = "mmc1_data8", "mmc1_ctrl";
0567                 function = "mmc1";
0568         };
0569 
0570         qspi_pins: qspi {
0571                 groups = "qspi_ctrl", "qspi_data4";
0572                 function = "qspi";
0573         };
0574 
0575         msiof1_pins: msiof1 {
0576                 groups = "msiof1_clk", "msiof1_sync", "msiof1_rx",
0577                                  "msiof1_tx";
0578                 function = "msiof1";
0579         };
0580 
0581         i2c0_pins: i2c0 {
0582                 groups = "i2c0";
0583                 function = "i2c0";
0584         };
0585 
0586         iic0_pins: iic0 {
0587                 groups = "iic0";
0588                 function = "iic0";
0589         };
0590 
0591         i2c1_pins: i2c1 {
0592                 groups = "i2c1";
0593                 function = "i2c1";
0594         };
0595 
0596         iic1_pins: iic1 {
0597                 groups = "iic1";
0598                 function = "iic1";
0599         };
0600 
0601         i2c2_pins: i2c2 {
0602                 groups = "i2c2";
0603                 function = "i2c2";
0604         };
0605 
0606         iic2_pins: iic2 {
0607                 groups = "iic2";
0608                 function = "iic2";
0609         };
0610 
0611         i2c3_pins: i2c3 {
0612                 groups = "i2c3";
0613                 function = "i2c3";
0614         };
0615 
0616         iic3_pins: iic3 {
0617                 groups = "iic3";
0618                 function = "iic3";
0619         };
0620 
0621         pmic_irq_pins: pmicirq {
0622                 groups = "intc_irq2";
0623                 function = "intc";
0624         };
0625 
0626         hsusb_pins: hsusb {
0627                 groups = "usb0_ovc_vbus";
0628                 function = "usb0";
0629         };
0630 
0631         usb0_pins: usb0 {
0632                 groups = "usb0";
0633                 function = "usb0";
0634         };
0635 
0636         usb1_pins: usb1 {
0637                 groups = "usb1";
0638                 function = "usb1";
0639         };
0640 
0641         usb2_pins: usb2 {
0642                 groups = "usb2";
0643                 function = "usb2";
0644         };
0645 
0646         vin0_pins: vin0 {
0647                 groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk";
0648                 function = "vin0";
0649         };
0650 
0651         vin1_pins: vin1 {
0652                 groups = "vin1_data8", "vin1_clk";
0653                 function = "vin1";
0654         };
0655 
0656         sound_pins: sound {
0657                 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
0658                 function = "ssi";
0659         };
0660 
0661         sound_clk_pins: sound_clk {
0662                 groups = "audio_clk_a";
0663                 function = "audio_clk";
0664         };
0665 
0666         keyboard_pins: keyboard {
0667                 pins = "GP_1_14", "GP_1_24", "GP_1_26", "GP_1_28";
0668                 bias-pull-up;
0669         };
0670 };
0671 
0672 &ether {
0673         pinctrl-0 = <&ether_pins>, <&phy1_pins>;
0674         pinctrl-names = "default";
0675 
0676         phy-handle = <&phy1>;
0677         renesas,ether-link-active-low;
0678         status = "okay";
0679 
0680         phy1: ethernet-phy@1 {
0681                 compatible = "ethernet-phy-id0022.1537",
0682                              "ethernet-phy-ieee802.3-c22";
0683                 reg = <1>;
0684                 interrupt-parent = <&irqc0>;
0685                 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
0686                 micrel,led-mode = <1>;
0687                 reset-gpios = <&gpio5 31 GPIO_ACTIVE_LOW>;
0688         };
0689 };
0690 
0691 &cmt0 {
0692         status = "okay";
0693 };
0694 
0695 &mmcif1 {
0696         pinctrl-0 = <&mmc1_pins>;
0697         pinctrl-names = "default";
0698 
0699         vmmc-supply = <&fixedregulator3v3>;
0700         bus-width = <8>;
0701         non-removable;
0702         status = "okay";
0703 };
0704 
0705 &sata1 {
0706         status = "okay";
0707 };
0708 
0709 &qspi {
0710         pinctrl-0 = <&qspi_pins>;
0711         pinctrl-names = "default";
0712 
0713         status = "okay";
0714 
0715         flash: flash@0 {
0716                 compatible = "spansion,s25fl512s", "jedec,spi-nor";
0717                 reg = <0>;
0718                 spi-max-frequency = <30000000>;
0719                 spi-tx-bus-width = <4>;
0720                 spi-rx-bus-width = <4>;
0721                 spi-cpha;
0722                 spi-cpol;
0723                 m25p,fast-read;
0724 
0725                 partitions {
0726                         compatible = "fixed-partitions";
0727                         #address-cells = <1>;
0728                         #size-cells = <1>;
0729 
0730                         partition@0 {
0731                                 label = "loader";
0732                                 reg = <0x00000000 0x00040000>;
0733                                 read-only;
0734                         };
0735                         partition@40000 {
0736                                 label = "user";
0737                                 reg = <0x00040000 0x00400000>;
0738                                 read-only;
0739                         };
0740                         partition@440000 {
0741                                 label = "flash";
0742                                 reg = <0x00440000 0x03bc0000>;
0743                         };
0744                 };
0745         };
0746 };
0747 
0748 &scif0 {
0749         pinctrl-0 = <&scif0_pins>;
0750         pinctrl-names = "default";
0751 
0752         status = "okay";
0753 };
0754 
0755 &scifa1 {
0756         pinctrl-0 = <&scifa1_pins>;
0757         pinctrl-names = "default";
0758 
0759         status = "okay";
0760 };
0761 
0762 &scif_clk {
0763         clock-frequency = <14745600>;
0764 };
0765 
0766 &msiof1 {
0767         pinctrl-0 = <&msiof1_pins>;
0768         pinctrl-names = "default";
0769 
0770         status = "okay";
0771 
0772         pmic: pmic@0 {
0773                 compatible = "renesas,r2a11302ft";
0774                 reg = <0>;
0775                 spi-max-frequency = <6000000>;
0776                 spi-cpol;
0777                 spi-cpha;
0778         };
0779 };
0780 
0781 &sdhi0 {
0782         pinctrl-0 = <&sdhi0_pins>;
0783         pinctrl-1 = <&sdhi0_pins_uhs>;
0784         pinctrl-names = "default", "state_uhs";
0785 
0786         vmmc-supply = <&vcc_sdhi0>;
0787         vqmmc-supply = <&vccq_sdhi0>;
0788         cd-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>;
0789         sd-uhs-sdr50;
0790         sd-uhs-sdr104;
0791         status = "okay";
0792 };
0793 
0794 &sdhi2 {
0795         pinctrl-0 = <&sdhi2_pins>;
0796         pinctrl-1 = <&sdhi2_pins_uhs>;
0797         pinctrl-names = "default", "state_uhs";
0798 
0799         vmmc-supply = <&vcc_sdhi2>;
0800         vqmmc-supply = <&vccq_sdhi2>;
0801         cd-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>;
0802         sd-uhs-sdr50;
0803         status = "okay";
0804 };
0805 
0806 &cpu0 {
0807         cpu0-supply = <&vdd_dvfs>;
0808 };
0809 
0810 &i2c0   {
0811         pinctrl-0 = <&i2c0_pins>;
0812         pinctrl-names = "i2c-exio0";
0813 };
0814 
0815 &iic0   {
0816         pinctrl-0 = <&iic0_pins>;
0817         pinctrl-names = "i2c-exio0";
0818 };
0819 
0820 &i2c1   {
0821         pinctrl-0 = <&i2c1_pins>;
0822         pinctrl-names = "i2c-exio1";
0823 };
0824 
0825 &iic1   {
0826         pinctrl-0 = <&iic1_pins>;
0827         pinctrl-names = "i2c-exio1";
0828 };
0829 
0830 &i2c2   {
0831         pinctrl-0 = <&i2c2_pins>;
0832         pinctrl-names = "i2c-hdmi";
0833 
0834         clock-frequency = <100000>;
0835 };
0836 
0837 &iic2   {
0838         pinctrl-0 = <&iic2_pins>;
0839         pinctrl-names = "i2c-hdmi";
0840 
0841         clock-frequency = <100000>;
0842 };
0843 
0844 &i2c3   {
0845         pinctrl-0 = <&i2c3_pins>;
0846         pinctrl-names = "i2c-pwr";
0847 };
0848 
0849 &iic3   {
0850         pinctrl-0 = <&iic3_pins>;
0851         pinctrl-names = "i2c-pwr";
0852 };
0853 
0854 &pci0 {
0855         status = "okay";
0856         pinctrl-0 = <&usb0_pins>;
0857         pinctrl-names = "default";
0858 };
0859 
0860 &pci1 {
0861         status = "okay";
0862         pinctrl-0 = <&usb1_pins>;
0863         pinctrl-names = "default";
0864 };
0865 
0866 &xhci {
0867         status = "okay";
0868         pinctrl-0 = <&usb2_pins>;
0869         pinctrl-names = "default";
0870 };
0871 
0872 &pci2 {
0873         status = "okay";
0874         pinctrl-0 = <&usb2_pins>;
0875         pinctrl-names = "default";
0876 };
0877 
0878 &hsusb {
0879         status = "okay";
0880         pinctrl-0 = <&hsusb_pins>;
0881         pinctrl-names = "default";
0882         renesas,enable-gpio = <&gpio5 18 GPIO_ACTIVE_HIGH>;
0883 };
0884 
0885 &usbphy {
0886         status = "okay";
0887 };
0888 
0889 /* HDMI video input */
0890 &vin0 {
0891         pinctrl-0 = <&vin0_pins>;
0892         pinctrl-names = "default";
0893 
0894         status = "okay";
0895 
0896         port {
0897                 vin0ep2: endpoint {
0898                         remote-endpoint = <&adv7612_out>;
0899                         bus-width = <24>;
0900                         hsync-active = <0>;
0901                         vsync-active = <0>;
0902                         pclk-sample = <1>;
0903                         data-active = <1>;
0904                 };
0905         };
0906 };
0907 
0908 /* composite video input */
0909 &vin1 {
0910         pinctrl-0 = <&vin1_pins>;
0911         pinctrl-names = "default";
0912 
0913         status = "okay";
0914 
0915         port {
0916                 vin1ep0: endpoint {
0917                         remote-endpoint = <&adv7180>;
0918                         bus-width = <8>;
0919                 };
0920         };
0921 };
0922 
0923 &rcar_sound {
0924         pinctrl-0 = <&sound_pins>, <&sound_clk_pins>;
0925         pinctrl-names = "default";
0926 
0927         /* Single DAI */
0928         #sound-dai-cells = <0>;
0929 
0930         status = "okay";
0931 
0932         rcar_sound,dai {
0933                 dai0 {
0934                         playback = <&ssi0>, <&src2>, <&dvc0>;
0935                         capture  = <&ssi1>, <&src3>, <&dvc1>;
0936                 };
0937         };
0938 };
0939 
0940 &rwdt {
0941         timeout-sec = <60>;
0942         status = "okay";
0943 };
0944 
0945 &ssi1 {
0946         shared-pin;
0947 };