1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0 2*724ba675SRob Herring/* 3*724ba675SRob Herring * Device Tree Source for the Blanche board 4*724ba675SRob Herring * 5*724ba675SRob Herring * Copyright (C) 2014 Renesas Electronics Corporation 6*724ba675SRob Herring * Copyright (C) 2016 Cogent Embedded, Inc. 7*724ba675SRob Herring */ 8*724ba675SRob Herring 9*724ba675SRob Herring/dts-v1/; 10*724ba675SRob Herring#include "r8a7792.dtsi" 11*724ba675SRob Herring#include <dt-bindings/gpio/gpio.h> 12*724ba675SRob Herring#include <dt-bindings/input/input.h> 13*724ba675SRob Herring 14*724ba675SRob Herring/ { 15*724ba675SRob Herring model = "Blanche"; 16*724ba675SRob Herring compatible = "renesas,blanche", "renesas,r8a7792"; 17*724ba675SRob Herring 18*724ba675SRob Herring aliases { 19*724ba675SRob Herring serial0 = &scif0; 20*724ba675SRob Herring serial1 = &scif3; 21*724ba675SRob Herring }; 22*724ba675SRob Herring 23*724ba675SRob Herring chosen { 24*724ba675SRob Herring bootargs = "ignore_loglevel rw root=/dev/nfs ip=on"; 25*724ba675SRob Herring stdout-path = "serial0:115200n8"; 26*724ba675SRob Herring }; 27*724ba675SRob Herring 28*724ba675SRob Herring memory@40000000 { 29*724ba675SRob Herring device_type = "memory"; 30*724ba675SRob Herring reg = <0 0x40000000 0 0x40000000>; 31*724ba675SRob Herring }; 32*724ba675SRob Herring 33*724ba675SRob Herring d3_3v: regulator-3v3 { 34*724ba675SRob Herring compatible = "regulator-fixed"; 35*724ba675SRob Herring regulator-name = "D3.3V"; 36*724ba675SRob Herring regulator-min-microvolt = <3300000>; 37*724ba675SRob Herring regulator-max-microvolt = <3300000>; 38*724ba675SRob Herring regulator-boot-on; 39*724ba675SRob Herring regulator-always-on; 40*724ba675SRob Herring }; 41*724ba675SRob Herring 42*724ba675SRob Herring ethernet@18000000 { 43*724ba675SRob Herring compatible = "smsc,lan89218", "smsc,lan9115"; 44*724ba675SRob Herring reg = <0 0x18000000 0 0x100>; 45*724ba675SRob Herring phy-mode = "mii"; 46*724ba675SRob Herring interrupt-parent = <&irqc>; 47*724ba675SRob Herring interrupts = <0 IRQ_TYPE_EDGE_FALLING>; 48*724ba675SRob Herring smsc,irq-push-pull; 49*724ba675SRob Herring reg-io-width = <4>; 50*724ba675SRob Herring vddvario-supply = <&d3_3v>; 51*724ba675SRob Herring vdd33a-supply = <&d3_3v>; 52*724ba675SRob Herring 53*724ba675SRob Herring pinctrl-0 = <&lan89218_pins>; 54*724ba675SRob Herring pinctrl-names = "default"; 55*724ba675SRob Herring }; 56*724ba675SRob Herring 57*724ba675SRob Herring vga-encoder { 58*724ba675SRob Herring compatible = "adi,adv7123"; 59*724ba675SRob Herring 60*724ba675SRob Herring ports { 61*724ba675SRob Herring #address-cells = <1>; 62*724ba675SRob Herring #size-cells = <0>; 63*724ba675SRob Herring 64*724ba675SRob Herring port@0 { 65*724ba675SRob Herring reg = <0>; 66*724ba675SRob Herring adv7123_in: endpoint { 67*724ba675SRob Herring remote-endpoint = <&du_out_rgb1>; 68*724ba675SRob Herring }; 69*724ba675SRob Herring }; 70*724ba675SRob Herring port@1 { 71*724ba675SRob Herring reg = <1>; 72*724ba675SRob Herring adv7123_out: endpoint { 73*724ba675SRob Herring remote-endpoint = <&vga_in>; 74*724ba675SRob Herring }; 75*724ba675SRob Herring }; 76*724ba675SRob Herring }; 77*724ba675SRob Herring }; 78*724ba675SRob Herring 79*724ba675SRob Herring hdmi-out { 80*724ba675SRob Herring compatible = "hdmi-connector"; 81*724ba675SRob Herring type = "a"; 82*724ba675SRob Herring 83*724ba675SRob Herring port { 84*724ba675SRob Herring hdmi_con: endpoint { 85*724ba675SRob Herring remote-endpoint = <&adv7511_out>; 86*724ba675SRob Herring }; 87*724ba675SRob Herring }; 88*724ba675SRob Herring }; 89*724ba675SRob Herring 90*724ba675SRob Herring vga { 91*724ba675SRob Herring compatible = "vga-connector"; 92*724ba675SRob Herring 93*724ba675SRob Herring port { 94*724ba675SRob Herring vga_in: endpoint { 95*724ba675SRob Herring remote-endpoint = <&adv7123_out>; 96*724ba675SRob Herring }; 97*724ba675SRob Herring }; 98*724ba675SRob Herring }; 99*724ba675SRob Herring 100*724ba675SRob Herring x1_clk: x1 { 101*724ba675SRob Herring compatible = "fixed-clock"; 102*724ba675SRob Herring #clock-cells = <0>; 103*724ba675SRob Herring clock-frequency = <74250000>; 104*724ba675SRob Herring }; 105*724ba675SRob Herring 106*724ba675SRob Herring x2_clk: x2 { 107*724ba675SRob Herring compatible = "fixed-clock"; 108*724ba675SRob Herring #clock-cells = <0>; 109*724ba675SRob Herring clock-frequency = <65000000>; 110*724ba675SRob Herring }; 111*724ba675SRob Herring 112*724ba675SRob Herring keyboard { 113*724ba675SRob Herring compatible = "gpio-keys"; 114*724ba675SRob Herring 115*724ba675SRob Herring pinctrl-0 = <&keyboard_pins>; 116*724ba675SRob Herring pinctrl-names = "default"; 117*724ba675SRob Herring 118*724ba675SRob Herring key-1 { 119*724ba675SRob Herring linux,code = <KEY_1>; 120*724ba675SRob Herring label = "SW2-1"; 121*724ba675SRob Herring wakeup-source; 122*724ba675SRob Herring debounce-interval = <20>; 123*724ba675SRob Herring gpios = <&gpio3 10 GPIO_ACTIVE_LOW>; 124*724ba675SRob Herring }; 125*724ba675SRob Herring key-2 { 126*724ba675SRob Herring linux,code = <KEY_2>; 127*724ba675SRob Herring label = "SW2-2"; 128*724ba675SRob Herring wakeup-source; 129*724ba675SRob Herring debounce-interval = <20>; 130*724ba675SRob Herring gpios = <&gpio3 11 GPIO_ACTIVE_LOW>; 131*724ba675SRob Herring }; 132*724ba675SRob Herring key-3 { 133*724ba675SRob Herring linux,code = <KEY_3>; 134*724ba675SRob Herring label = "SW2-3"; 135*724ba675SRob Herring wakeup-source; 136*724ba675SRob Herring debounce-interval = <20>; 137*724ba675SRob Herring gpios = <&gpio3 12 GPIO_ACTIVE_LOW>; 138*724ba675SRob Herring }; 139*724ba675SRob Herring key-4 { 140*724ba675SRob Herring linux,code = <KEY_4>; 141*724ba675SRob Herring label = "SW2-4"; 142*724ba675SRob Herring wakeup-source; 143*724ba675SRob Herring debounce-interval = <20>; 144*724ba675SRob Herring gpios = <&gpio3 15 GPIO_ACTIVE_LOW>; 145*724ba675SRob Herring }; 146*724ba675SRob Herring key-a { 147*724ba675SRob Herring linux,code = <KEY_A>; 148*724ba675SRob Herring label = "SW24"; 149*724ba675SRob Herring wakeup-source; 150*724ba675SRob Herring debounce-interval = <20>; 151*724ba675SRob Herring gpios = <&gpio3 20 GPIO_ACTIVE_LOW>; 152*724ba675SRob Herring }; 153*724ba675SRob Herring key-b { 154*724ba675SRob Herring linux,code = <KEY_B>; 155*724ba675SRob Herring label = "SW25"; 156*724ba675SRob Herring wakeup-source; 157*724ba675SRob Herring debounce-interval = <20>; 158*724ba675SRob Herring gpios = <&gpio11 2 GPIO_ACTIVE_LOW>; 159*724ba675SRob Herring }; 160*724ba675SRob Herring }; 161*724ba675SRob Herring 162*724ba675SRob Herring leds { 163*724ba675SRob Herring compatible = "gpio-leds"; 164*724ba675SRob Herring 165*724ba675SRob Herring led17 { 166*724ba675SRob Herring gpios = <&gpio10 10 GPIO_ACTIVE_HIGH>; 167*724ba675SRob Herring }; 168*724ba675SRob Herring led18 { 169*724ba675SRob Herring gpios = <&gpio10 11 GPIO_ACTIVE_HIGH>; 170*724ba675SRob Herring }; 171*724ba675SRob Herring led19 { 172*724ba675SRob Herring gpios = <&gpio10 12 GPIO_ACTIVE_HIGH>; 173*724ba675SRob Herring }; 174*724ba675SRob Herring led20 { 175*724ba675SRob Herring gpios = <&gpio10 23 GPIO_ACTIVE_HIGH>; 176*724ba675SRob Herring }; 177*724ba675SRob Herring }; 178*724ba675SRob Herring 179*724ba675SRob Herring vcc_sdhi0: regulator-vcc-sdhi0 { 180*724ba675SRob Herring compatible = "regulator-fixed"; 181*724ba675SRob Herring 182*724ba675SRob Herring regulator-name = "SDHI0 Vcc"; 183*724ba675SRob Herring regulator-min-microvolt = <3300000>; 184*724ba675SRob Herring regulator-max-microvolt = <3300000>; 185*724ba675SRob Herring 186*724ba675SRob Herring gpio = <&gpio11 12 GPIO_ACTIVE_HIGH>; 187*724ba675SRob Herring enable-active-high; 188*724ba675SRob Herring }; 189*724ba675SRob Herring}; 190*724ba675SRob Herring 191*724ba675SRob Herring&extal_clk { 192*724ba675SRob Herring clock-frequency = <20000000>; 193*724ba675SRob Herring}; 194*724ba675SRob Herring 195*724ba675SRob Herring&can_clk { 196*724ba675SRob Herring clock-frequency = <48000000>; 197*724ba675SRob Herring}; 198*724ba675SRob Herring 199*724ba675SRob Herring&pfc { 200*724ba675SRob Herring scif0_pins: scif0 { 201*724ba675SRob Herring groups = "scif0_data"; 202*724ba675SRob Herring function = "scif0"; 203*724ba675SRob Herring }; 204*724ba675SRob Herring 205*724ba675SRob Herring scif3_pins: scif3 { 206*724ba675SRob Herring groups = "scif3_data"; 207*724ba675SRob Herring function = "scif3"; 208*724ba675SRob Herring }; 209*724ba675SRob Herring 210*724ba675SRob Herring lan89218_pins: lan89218 { 211*724ba675SRob Herring intc { 212*724ba675SRob Herring groups = "intc_irq0"; 213*724ba675SRob Herring function = "intc"; 214*724ba675SRob Herring }; 215*724ba675SRob Herring lbsc { 216*724ba675SRob Herring groups = "lbsc_ex_cs0"; 217*724ba675SRob Herring function = "lbsc"; 218*724ba675SRob Herring }; 219*724ba675SRob Herring }; 220*724ba675SRob Herring 221*724ba675SRob Herring can0_pins: can0 { 222*724ba675SRob Herring groups = "can0_data", "can_clk"; 223*724ba675SRob Herring function = "can0"; 224*724ba675SRob Herring }; 225*724ba675SRob Herring 226*724ba675SRob Herring sdhi0_pins: sdhi0 { 227*724ba675SRob Herring groups = "sdhi0_data4", "sdhi0_ctrl"; 228*724ba675SRob Herring function = "sdhi0"; 229*724ba675SRob Herring }; 230*724ba675SRob Herring 231*724ba675SRob Herring du0_pins: du0 { 232*724ba675SRob Herring groups = "du0_rgb888", "du0_sync", "du0_disp"; 233*724ba675SRob Herring function = "du0"; 234*724ba675SRob Herring }; 235*724ba675SRob Herring 236*724ba675SRob Herring du1_pins: du1 { 237*724ba675SRob Herring groups = "du1_rgb666", "du1_sync", "du1_disp"; 238*724ba675SRob Herring function = "du1"; 239*724ba675SRob Herring }; 240*724ba675SRob Herring 241*724ba675SRob Herring keyboard_pins: keyboard { 242*724ba675SRob Herring pins = "GP_3_10", "GP_3_11", "GP_3_12", "GP_3_15", "GP_11_02"; 243*724ba675SRob Herring bias-pull-up; 244*724ba675SRob Herring }; 245*724ba675SRob Herring 246*724ba675SRob Herring pmic_irq_pins: pmicirq { 247*724ba675SRob Herring groups = "intc_irq2"; 248*724ba675SRob Herring function = "intc"; 249*724ba675SRob Herring }; 250*724ba675SRob Herring}; 251*724ba675SRob Herring 252*724ba675SRob Herring&rwdt { 253*724ba675SRob Herring timeout-sec = <60>; 254*724ba675SRob Herring status = "okay"; 255*724ba675SRob Herring}; 256*724ba675SRob Herring 257*724ba675SRob Herring&scif0 { 258*724ba675SRob Herring pinctrl-0 = <&scif0_pins>; 259*724ba675SRob Herring pinctrl-names = "default"; 260*724ba675SRob Herring 261*724ba675SRob Herring status = "okay"; 262*724ba675SRob Herring}; 263*724ba675SRob Herring 264*724ba675SRob Herring&scif3 { 265*724ba675SRob Herring pinctrl-0 = <&scif3_pins>; 266*724ba675SRob Herring pinctrl-names = "default"; 267*724ba675SRob Herring 268*724ba675SRob Herring status = "okay"; 269*724ba675SRob Herring}; 270*724ba675SRob Herring 271*724ba675SRob Herring&can0 { 272*724ba675SRob Herring pinctrl-0 = <&can0_pins>; 273*724ba675SRob Herring pinctrl-names = "default"; 274*724ba675SRob Herring 275*724ba675SRob Herring status = "okay"; 276*724ba675SRob Herring}; 277*724ba675SRob Herring 278*724ba675SRob Herring&sdhi0 { 279*724ba675SRob Herring pinctrl-0 = <&sdhi0_pins>; 280*724ba675SRob Herring pinctrl-names = "default"; 281*724ba675SRob Herring 282*724ba675SRob Herring vmmc-supply = <&vcc_sdhi0>; 283*724ba675SRob Herring cd-gpios = <&gpio11 11 GPIO_ACTIVE_LOW>; 284*724ba675SRob Herring status = "okay"; 285*724ba675SRob Herring}; 286*724ba675SRob Herring 287*724ba675SRob Herring&i2c1 { 288*724ba675SRob Herring status = "okay"; 289*724ba675SRob Herring clock-frequency = <400000>; 290*724ba675SRob Herring 291*724ba675SRob Herring hdmi@39 { 292*724ba675SRob Herring compatible = "adi,adv7511w"; 293*724ba675SRob Herring reg = <0x39>; 294*724ba675SRob Herring interrupt-parent = <&irqc>; 295*724ba675SRob Herring interrupts = <3 IRQ_TYPE_EDGE_FALLING>; 296*724ba675SRob Herring 297*724ba675SRob Herring adi,input-depth = <8>; 298*724ba675SRob Herring adi,input-colorspace = "rgb"; 299*724ba675SRob Herring adi,input-clock = "1x"; 300*724ba675SRob Herring 301*724ba675SRob Herring ports { 302*724ba675SRob Herring #address-cells = <1>; 303*724ba675SRob Herring #size-cells = <0>; 304*724ba675SRob Herring 305*724ba675SRob Herring port@0 { 306*724ba675SRob Herring reg = <0>; 307*724ba675SRob Herring adv7511_in: endpoint { 308*724ba675SRob Herring remote-endpoint = <&du_out_rgb0>; 309*724ba675SRob Herring }; 310*724ba675SRob Herring }; 311*724ba675SRob Herring 312*724ba675SRob Herring port@1 { 313*724ba675SRob Herring reg = <1>; 314*724ba675SRob Herring adv7511_out: endpoint { 315*724ba675SRob Herring remote-endpoint = <&hdmi_con>; 316*724ba675SRob Herring }; 317*724ba675SRob Herring }; 318*724ba675SRob Herring }; 319*724ba675SRob Herring }; 320*724ba675SRob Herring}; 321*724ba675SRob Herring 322*724ba675SRob Herring&iic3 { 323*724ba675SRob Herring status = "okay"; 324*724ba675SRob Herring 325*724ba675SRob Herring pmic@58 { 326*724ba675SRob Herring compatible = "dlg,da9063"; 327*724ba675SRob Herring reg = <0x58>; 328*724ba675SRob Herring pinctrl-names = "default"; 329*724ba675SRob Herring pinctrl-0 = <&pmic_irq_pins>; 330*724ba675SRob Herring interrupt-parent = <&irqc>; 331*724ba675SRob Herring interrupts = <2 IRQ_TYPE_LEVEL_LOW>; 332*724ba675SRob Herring interrupt-controller; 333*724ba675SRob Herring 334*724ba675SRob Herring rtc { 335*724ba675SRob Herring compatible = "dlg,da9063-rtc"; 336*724ba675SRob Herring }; 337*724ba675SRob Herring 338*724ba675SRob Herring watchdog { 339*724ba675SRob Herring compatible = "dlg,da9063-watchdog"; 340*724ba675SRob Herring }; 341*724ba675SRob Herring }; 342*724ba675SRob Herring}; 343*724ba675SRob Herring 344*724ba675SRob Herring&du { 345*724ba675SRob Herring pinctrl-0 = <&du0_pins>, <&du1_pins>; 346*724ba675SRob Herring pinctrl-names = "default"; 347*724ba675SRob Herring 348*724ba675SRob Herring clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>, <&x1_clk>, <&x2_clk>; 349*724ba675SRob Herring clock-names = "du.0", "du.1", "dclkin.0", "dclkin.1"; 350*724ba675SRob Herring status = "okay"; 351*724ba675SRob Herring 352*724ba675SRob Herring ports { 353*724ba675SRob Herring port@0 { 354*724ba675SRob Herring endpoint { 355*724ba675SRob Herring remote-endpoint = <&adv7511_in>; 356*724ba675SRob Herring }; 357*724ba675SRob Herring }; 358*724ba675SRob Herring port@1 { 359*724ba675SRob Herring endpoint { 360*724ba675SRob Herring remote-endpoint = <&adv7123_in>; 361*724ba675SRob Herring }; 362*724ba675SRob Herring }; 363*724ba675SRob Herring }; 364*724ba675SRob Herring}; 365