0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003 * Device Tree Source for the iWave-RZ/G1M/G1N Qseven carrier board
0004 *
0005 * Copyright (C) 2017 Renesas Electronics Corp.
0006 */
0007
0008 /*
0009 * SSI-SGTL5000
0010 *
0011 * This command is required when Playback/Capture
0012 *
0013 * amixer set "DVC Out" 100%
0014 * amixer set "DVC In" 100%
0015 *
0016 * You can use Mute
0017 *
0018 * amixer set "DVC Out Mute" on
0019 * amixer set "DVC In Mute" on
0020 *
0021 * You can use Volume Ramp
0022 *
0023 * amixer set "DVC Out Ramp Up Rate" "0.125 dB/64 steps"
0024 * amixer set "DVC Out Ramp Down Rate" "0.125 dB/512 steps"
0025 * amixer set "DVC Out Ramp" on
0026 * aplay xxx.wav &
0027 * amixer set "DVC Out" 80% // Volume Down
0028 * amixer set "DVC Out" 100% // Volume Up
0029 */
0030
0031 / {
0032 aliases {
0033 serial0 = &scif0;
0034 serial3 = &scifb1;
0035 ethernet0 = &avb;
0036 };
0037
0038 chosen {
0039 bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
0040 stdout-path = "serial0:115200n8";
0041 };
0042
0043 audio_clock: audio_clock {
0044 compatible = "fixed-clock";
0045 #clock-cells = <0>;
0046 clock-frequency = <26000000>;
0047 };
0048
0049 lcd_backlight: backlight {
0050 compatible = "pwm-backlight";
0051
0052 pwms = <&pwm3 0 5000000 0>;
0053 brightness-levels = <0 4 8 16 32 64 128 255>;
0054 default-brightness-level = <7>;
0055 enable-gpios = <&gpio5 14 GPIO_ACTIVE_HIGH>;
0056 };
0057
0058 lvds-receiver {
0059 compatible = "ti,ds90cf384a", "lvds-decoder";
0060 power-supply = <&vcc_3v3_tft1>;
0061
0062 ports {
0063 #address-cells = <1>;
0064 #size-cells = <0>;
0065
0066 port@0 {
0067 reg = <0>;
0068 lvds_receiver_in: endpoint {
0069 remote-endpoint = <&lvds0_out>;
0070 };
0071 };
0072 port@1 {
0073 reg = <1>;
0074 lvds_receiver_out: endpoint {
0075 remote-endpoint = <&panel_in>;
0076 };
0077 };
0078 };
0079 };
0080
0081 panel {
0082 compatible = "edt,etm0700g0dh6";
0083 backlight = <&lcd_backlight>;
0084 power-supply = <&vcc_3v3_tft1>;
0085
0086 port {
0087 panel_in: endpoint {
0088 remote-endpoint = <&lvds_receiver_out>;
0089 };
0090 };
0091 };
0092
0093 reg_1p5v: 1p5v {
0094 compatible = "regulator-fixed";
0095 regulator-name = "1P5V";
0096 regulator-min-microvolt = <1500000>;
0097 regulator-max-microvolt = <1500000>;
0098 regulator-always-on;
0099 };
0100
0101 rsnd_sgtl5000: sound {
0102 compatible = "simple-audio-card";
0103
0104 simple-audio-card,format = "i2s";
0105 simple-audio-card,bitclock-master = <&sndcodec>;
0106 simple-audio-card,frame-master = <&sndcodec>;
0107
0108 sndcpu: simple-audio-card,cpu {
0109 sound-dai = <&rcar_sound>;
0110 };
0111
0112 sndcodec: simple-audio-card,codec {
0113 sound-dai = <&sgtl5000>;
0114 };
0115 };
0116
0117 vcc_3v3_tft1: regulator-panel {
0118 compatible = "regulator-fixed";
0119
0120 regulator-name = "vcc-3v3-tft1";
0121 regulator-min-microvolt = <3300000>;
0122 regulator-max-microvolt = <3300000>;
0123 enable-active-high;
0124 startup-delay-us = <500>;
0125 gpio = <&gpio7 25 GPIO_ACTIVE_HIGH>;
0126 };
0127
0128 vcc_sdhi1: regulator-vcc-sdhi1 {
0129 compatible = "regulator-fixed";
0130
0131 regulator-name = "SDHI1 Vcc";
0132 regulator-min-microvolt = <3300000>;
0133 regulator-max-microvolt = <3300000>;
0134
0135 gpio = <&gpio1 16 GPIO_ACTIVE_LOW>;
0136 };
0137
0138 vccq_sdhi1: regulator-vccq-sdhi1 {
0139 compatible = "regulator-gpio";
0140
0141 regulator-name = "SDHI1 VccQ";
0142 regulator-min-microvolt = <1800000>;
0143 regulator-max-microvolt = <3300000>;
0144
0145 gpios = <&gpio2 30 GPIO_ACTIVE_HIGH>;
0146 gpios-states = <1>;
0147 states = <3300000 1>, <1800000 0>;
0148 };
0149 };
0150
0151 &avb {
0152 pinctrl-0 = <&avb_pins>;
0153 pinctrl-names = "default";
0154
0155 phy-handle = <&phy3>;
0156 phy-mode = "gmii";
0157 renesas,no-ether-link;
0158 status = "okay";
0159
0160 phy3: ethernet-phy@3 {
0161 compatible = "ethernet-phy-id0022.1622",
0162 "ethernet-phy-ieee802.3-c22";
0163 reg = <3>;
0164 micrel,led-mode = <1>;
0165 };
0166 };
0167
0168 &can0 {
0169 pinctrl-0 = <&can0_pins>;
0170 pinctrl-names = "default";
0171
0172 status = "okay";
0173 };
0174
0175 &cmt0 {
0176 status = "okay";
0177 };
0178
0179 &du {
0180 status = "okay";
0181 };
0182
0183 &gpio2 {
0184 touch-interrupt-hog {
0185 gpio-hog;
0186 gpios = <12 GPIO_ACTIVE_LOW>;
0187 input;
0188 };
0189 };
0190
0191 &hsusb {
0192 status = "okay";
0193 pinctrl-0 = <&usb0_pins>;
0194 pinctrl-names = "default";
0195 };
0196
0197 &i2c2 {
0198 pinctrl-0 = <&i2c2_pins>;
0199 pinctrl-names = "default";
0200
0201 status = "okay";
0202 clock-frequency = <400000>;
0203
0204 rtc@68 {
0205 compatible = "ti,bq32000";
0206 reg = <0x68>;
0207 };
0208
0209 sgtl5000: codec@a {
0210 compatible = "fsl,sgtl5000";
0211 #sound-dai-cells = <0>;
0212 reg = <0x0a>;
0213 clocks = <&audio_clock>;
0214 VDDA-supply = <®_3p3v>;
0215 VDDIO-supply = <®_3p3v>;
0216 VDDD-supply = <®_1p5v>;
0217 };
0218
0219 touch: touchpanel@38 {
0220 compatible = "edt,edt-ft5406";
0221 reg = <0x38>;
0222 interrupt-parent = <&gpio2>;
0223 interrupts = <12 IRQ_TYPE_EDGE_FALLING>;
0224 vcc-supply = <&vcc_3v3_tft1>;
0225 };
0226 };
0227
0228 &lvds0 {
0229 status = "okay";
0230
0231 ports {
0232 port@1 {
0233 lvds0_out: endpoint {
0234 remote-endpoint = <&lvds_receiver_in>;
0235 };
0236 };
0237 };
0238 };
0239
0240 &pci0 {
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 &pcie_bus_clk {
0252 clock-frequency = <100000000>;
0253 };
0254
0255 &pfc {
0256 can0_pins: can0 {
0257 groups = "can0_data_d";
0258 function = "can0";
0259 };
0260
0261 avb_pins: avb {
0262 groups = "avb_mdio", "avb_gmii";
0263 function = "avb";
0264 };
0265
0266 i2c2_pins: i2c2 {
0267 groups = "i2c2";
0268 function = "i2c2";
0269 };
0270
0271 pwm3_pins: pwm3 {
0272 groups = "pwm3";
0273 function = "pwm3";
0274 };
0275
0276 scif0_pins: scif0 {
0277 groups = "scif0_data_d";
0278 function = "scif0";
0279 };
0280
0281 scifb1_pins: scifb1 {
0282 groups = "scifb1_data_d", "scifb1_ctrl";
0283 function = "scifb1";
0284 };
0285
0286 sdhi1_pins: sd1 {
0287 groups = "sdhi1_data4", "sdhi1_ctrl";
0288 function = "sdhi1";
0289 power-source = <3300>;
0290 };
0291
0292 sdhi1_pins_uhs: sd1_uhs {
0293 groups = "sdhi1_data4", "sdhi1_ctrl";
0294 function = "sdhi1";
0295 power-source = <1800>;
0296 };
0297
0298 sound_pins: sound {
0299 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
0300 function = "ssi";
0301 };
0302
0303 usb0_pins: usb0 {
0304 groups = "usb0";
0305 function = "usb0";
0306 };
0307
0308 usb1_pins: usb1 {
0309 groups = "usb1";
0310 function = "usb1";
0311 };
0312 };
0313
0314 &pwm3 {
0315 pinctrl-0 = <&pwm3_pins>;
0316 pinctrl-names = "default";
0317 status = "okay";
0318 };
0319
0320 &rcar_sound {
0321 pinctrl-0 = <&sound_pins>;
0322 pinctrl-names = "default";
0323 status = "okay";
0324
0325 /* Single DAI */
0326 #sound-dai-cells = <0>;
0327
0328 rcar_sound,dai {
0329 dai0 {
0330 playback = <&ssi1>, <&src3>, <&dvc1>;
0331 capture = <&ssi0>, <&src2>, <&dvc0>;
0332 };
0333 };
0334 };
0335
0336 &rwdt {
0337 timeout-sec = <60>;
0338 status = "okay";
0339 };
0340
0341 &scif0 {
0342 pinctrl-0 = <&scif0_pins>;
0343 pinctrl-names = "default";
0344
0345 status = "okay";
0346 };
0347
0348 &scifb1 {
0349 pinctrl-0 = <&scifb1_pins>;
0350 pinctrl-names = "default";
0351
0352 uart-has-rtscts;
0353 status = "okay";
0354 };
0355
0356 &sdhi1 {
0357 pinctrl-0 = <&sdhi1_pins>;
0358 pinctrl-1 = <&sdhi1_pins_uhs>;
0359 pinctrl-names = "default", "state_uhs";
0360
0361 vmmc-supply = <&vcc_sdhi1>;
0362 vqmmc-supply = <&vccq_sdhi1>;
0363 cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
0364 wp-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>;
0365 sd-uhs-sdr50;
0366 status = "okay";
0367 };
0368
0369 &ssi1 {
0370 shared-pin;
0371 };
0372
0373 &usbphy {
0374 status = "okay";
0375 };