1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0 2724ba675SRob Herring/* 3724ba675SRob Herring * Device Tree Source for the Blanche board 4724ba675SRob Herring * 5724ba675SRob Herring * Copyright (C) 2014 Renesas Electronics Corporation 6724ba675SRob Herring * Copyright (C) 2016 Cogent Embedded, Inc. 7724ba675SRob Herring */ 8724ba675SRob Herring 9724ba675SRob Herring/dts-v1/; 10724ba675SRob Herring#include "r8a7792.dtsi" 11724ba675SRob Herring#include <dt-bindings/gpio/gpio.h> 12724ba675SRob Herring#include <dt-bindings/input/input.h> 13724ba675SRob Herring 14724ba675SRob Herring/ { 15724ba675SRob Herring model = "Blanche"; 16724ba675SRob Herring compatible = "renesas,blanche", "renesas,r8a7792"; 17724ba675SRob Herring 18724ba675SRob Herring aliases { 19724ba675SRob Herring serial0 = &scif0; 20724ba675SRob Herring serial1 = &scif3; 21724ba675SRob Herring }; 22724ba675SRob Herring 23724ba675SRob Herring chosen { 24724ba675SRob Herring bootargs = "ignore_loglevel rw root=/dev/nfs ip=on"; 25724ba675SRob Herring stdout-path = "serial0:115200n8"; 26724ba675SRob Herring }; 27724ba675SRob Herring 28724ba675SRob Herring memory@40000000 { 29724ba675SRob Herring device_type = "memory"; 30724ba675SRob Herring reg = <0 0x40000000 0 0x40000000>; 31724ba675SRob Herring }; 32724ba675SRob Herring 33724ba675SRob Herring d3_3v: regulator-3v3 { 34724ba675SRob Herring compatible = "regulator-fixed"; 35724ba675SRob Herring regulator-name = "D3.3V"; 36724ba675SRob Herring regulator-min-microvolt = <3300000>; 37724ba675SRob Herring regulator-max-microvolt = <3300000>; 38724ba675SRob Herring regulator-boot-on; 39724ba675SRob Herring regulator-always-on; 40724ba675SRob Herring }; 41724ba675SRob Herring 42724ba675SRob Herring ethernet@18000000 { 43724ba675SRob Herring compatible = "smsc,lan89218", "smsc,lan9115"; 44724ba675SRob Herring reg = <0 0x18000000 0 0x100>; 45724ba675SRob Herring phy-mode = "mii"; 46724ba675SRob Herring interrupt-parent = <&irqc>; 47724ba675SRob Herring interrupts = <0 IRQ_TYPE_EDGE_FALLING>; 48724ba675SRob Herring smsc,irq-push-pull; 49724ba675SRob Herring reg-io-width = <4>; 50724ba675SRob Herring vddvario-supply = <&d3_3v>; 51724ba675SRob Herring vdd33a-supply = <&d3_3v>; 52724ba675SRob Herring 53724ba675SRob Herring pinctrl-0 = <&lan89218_pins>; 54724ba675SRob Herring pinctrl-names = "default"; 55724ba675SRob Herring }; 56724ba675SRob Herring 57724ba675SRob Herring vga-encoder { 58724ba675SRob Herring compatible = "adi,adv7123"; 59724ba675SRob Herring 60724ba675SRob Herring ports { 61724ba675SRob Herring #address-cells = <1>; 62724ba675SRob Herring #size-cells = <0>; 63724ba675SRob Herring 64724ba675SRob Herring port@0 { 65724ba675SRob Herring reg = <0>; 66724ba675SRob Herring adv7123_in: endpoint { 67724ba675SRob Herring remote-endpoint = <&du_out_rgb1>; 68724ba675SRob Herring }; 69724ba675SRob Herring }; 70724ba675SRob Herring port@1 { 71724ba675SRob Herring reg = <1>; 72724ba675SRob Herring adv7123_out: endpoint { 73724ba675SRob Herring remote-endpoint = <&vga_in>; 74724ba675SRob Herring }; 75724ba675SRob Herring }; 76724ba675SRob Herring }; 77724ba675SRob Herring }; 78724ba675SRob Herring 79724ba675SRob Herring hdmi-out { 80724ba675SRob Herring compatible = "hdmi-connector"; 81724ba675SRob Herring type = "a"; 82724ba675SRob Herring 83724ba675SRob Herring port { 84724ba675SRob Herring hdmi_con: endpoint { 85724ba675SRob Herring remote-endpoint = <&adv7511_out>; 86724ba675SRob Herring }; 87724ba675SRob Herring }; 88724ba675SRob Herring }; 89724ba675SRob Herring 90724ba675SRob Herring vga { 91724ba675SRob Herring compatible = "vga-connector"; 92724ba675SRob Herring 93724ba675SRob Herring port { 94724ba675SRob Herring vga_in: endpoint { 95724ba675SRob Herring remote-endpoint = <&adv7123_out>; 96724ba675SRob Herring }; 97724ba675SRob Herring }; 98724ba675SRob Herring }; 99724ba675SRob Herring 100724ba675SRob Herring x1_clk: x1 { 101724ba675SRob Herring compatible = "fixed-clock"; 102724ba675SRob Herring #clock-cells = <0>; 103724ba675SRob Herring clock-frequency = <74250000>; 104724ba675SRob Herring }; 105724ba675SRob Herring 106724ba675SRob Herring x2_clk: x2 { 107724ba675SRob Herring compatible = "fixed-clock"; 108724ba675SRob Herring #clock-cells = <0>; 109724ba675SRob Herring clock-frequency = <65000000>; 110724ba675SRob Herring }; 111724ba675SRob Herring 112724ba675SRob Herring keyboard { 113724ba675SRob Herring compatible = "gpio-keys"; 114724ba675SRob Herring 115724ba675SRob Herring pinctrl-0 = <&keyboard_pins>; 116724ba675SRob Herring pinctrl-names = "default"; 117724ba675SRob Herring 118724ba675SRob Herring key-1 { 119724ba675SRob Herring linux,code = <KEY_1>; 120724ba675SRob Herring label = "SW2-1"; 121724ba675SRob Herring wakeup-source; 122724ba675SRob Herring debounce-interval = <20>; 123724ba675SRob Herring gpios = <&gpio3 10 GPIO_ACTIVE_LOW>; 124724ba675SRob Herring }; 125724ba675SRob Herring key-2 { 126724ba675SRob Herring linux,code = <KEY_2>; 127724ba675SRob Herring label = "SW2-2"; 128724ba675SRob Herring wakeup-source; 129724ba675SRob Herring debounce-interval = <20>; 130724ba675SRob Herring gpios = <&gpio3 11 GPIO_ACTIVE_LOW>; 131724ba675SRob Herring }; 132724ba675SRob Herring key-3 { 133724ba675SRob Herring linux,code = <KEY_3>; 134724ba675SRob Herring label = "SW2-3"; 135724ba675SRob Herring wakeup-source; 136724ba675SRob Herring debounce-interval = <20>; 137724ba675SRob Herring gpios = <&gpio3 12 GPIO_ACTIVE_LOW>; 138724ba675SRob Herring }; 139724ba675SRob Herring key-4 { 140724ba675SRob Herring linux,code = <KEY_4>; 141724ba675SRob Herring label = "SW2-4"; 142724ba675SRob Herring wakeup-source; 143724ba675SRob Herring debounce-interval = <20>; 144724ba675SRob Herring gpios = <&gpio3 15 GPIO_ACTIVE_LOW>; 145724ba675SRob Herring }; 146724ba675SRob Herring key-a { 147724ba675SRob Herring linux,code = <KEY_A>; 148724ba675SRob Herring label = "SW24"; 149724ba675SRob Herring wakeup-source; 150724ba675SRob Herring debounce-interval = <20>; 151724ba675SRob Herring gpios = <&gpio3 20 GPIO_ACTIVE_LOW>; 152724ba675SRob Herring }; 153724ba675SRob Herring key-b { 154724ba675SRob Herring linux,code = <KEY_B>; 155724ba675SRob Herring label = "SW25"; 156724ba675SRob Herring wakeup-source; 157724ba675SRob Herring debounce-interval = <20>; 158724ba675SRob Herring gpios = <&gpio11 2 GPIO_ACTIVE_LOW>; 159724ba675SRob Herring }; 160724ba675SRob Herring }; 161724ba675SRob Herring 162724ba675SRob Herring leds { 163724ba675SRob Herring compatible = "gpio-leds"; 164724ba675SRob Herring 165724ba675SRob Herring led17 { 166724ba675SRob Herring gpios = <&gpio10 10 GPIO_ACTIVE_HIGH>; 167724ba675SRob Herring }; 168724ba675SRob Herring led18 { 169724ba675SRob Herring gpios = <&gpio10 11 GPIO_ACTIVE_HIGH>; 170724ba675SRob Herring }; 171724ba675SRob Herring led19 { 172724ba675SRob Herring gpios = <&gpio10 12 GPIO_ACTIVE_HIGH>; 173724ba675SRob Herring }; 174724ba675SRob Herring led20 { 175724ba675SRob Herring gpios = <&gpio10 23 GPIO_ACTIVE_HIGH>; 176724ba675SRob Herring }; 177724ba675SRob Herring }; 178724ba675SRob Herring 179724ba675SRob Herring vcc_sdhi0: regulator-vcc-sdhi0 { 180724ba675SRob Herring compatible = "regulator-fixed"; 181724ba675SRob Herring 182724ba675SRob Herring regulator-name = "SDHI0 Vcc"; 183724ba675SRob Herring regulator-min-microvolt = <3300000>; 184724ba675SRob Herring regulator-max-microvolt = <3300000>; 185724ba675SRob Herring 186724ba675SRob Herring gpio = <&gpio11 12 GPIO_ACTIVE_HIGH>; 187724ba675SRob Herring enable-active-high; 188724ba675SRob Herring }; 189724ba675SRob Herring}; 190724ba675SRob Herring 191724ba675SRob Herring&extal_clk { 192724ba675SRob Herring clock-frequency = <20000000>; 193724ba675SRob Herring}; 194724ba675SRob Herring 195724ba675SRob Herring&can_clk { 196724ba675SRob Herring clock-frequency = <48000000>; 197724ba675SRob Herring}; 198724ba675SRob Herring 199724ba675SRob Herring&pfc { 200724ba675SRob Herring scif0_pins: scif0 { 201724ba675SRob Herring groups = "scif0_data"; 202724ba675SRob Herring function = "scif0"; 203724ba675SRob Herring }; 204724ba675SRob Herring 205724ba675SRob Herring scif3_pins: scif3 { 206724ba675SRob Herring groups = "scif3_data"; 207724ba675SRob Herring function = "scif3"; 208724ba675SRob Herring }; 209724ba675SRob Herring 210724ba675SRob Herring lan89218_pins: lan89218 { 211724ba675SRob Herring intc { 212724ba675SRob Herring groups = "intc_irq0"; 213724ba675SRob Herring function = "intc"; 214724ba675SRob Herring }; 215724ba675SRob Herring lbsc { 216724ba675SRob Herring groups = "lbsc_ex_cs0"; 217724ba675SRob Herring function = "lbsc"; 218724ba675SRob Herring }; 219724ba675SRob Herring }; 220724ba675SRob Herring 221724ba675SRob Herring can0_pins: can0 { 222724ba675SRob Herring groups = "can0_data", "can_clk"; 223724ba675SRob Herring function = "can0"; 224724ba675SRob Herring }; 225724ba675SRob Herring 226724ba675SRob Herring sdhi0_pins: sdhi0 { 227724ba675SRob Herring groups = "sdhi0_data4", "sdhi0_ctrl"; 228724ba675SRob Herring function = "sdhi0"; 229724ba675SRob Herring }; 230724ba675SRob Herring 231724ba675SRob Herring du0_pins: du0 { 232724ba675SRob Herring groups = "du0_rgb888", "du0_sync", "du0_disp"; 233724ba675SRob Herring function = "du0"; 234724ba675SRob Herring }; 235724ba675SRob Herring 236724ba675SRob Herring du1_pins: du1 { 237724ba675SRob Herring groups = "du1_rgb666", "du1_sync", "du1_disp"; 238724ba675SRob Herring function = "du1"; 239724ba675SRob Herring }; 240724ba675SRob Herring 241724ba675SRob Herring keyboard_pins: keyboard { 242a9f514baSGeert Uytterhoeven pins = "GP_3_10", "GP_3_11", "GP_3_12", "GP_3_15", "GP_11_2"; 243724ba675SRob Herring bias-pull-up; 244724ba675SRob Herring }; 245724ba675SRob Herring 246724ba675SRob Herring pmic_irq_pins: pmicirq { 247724ba675SRob Herring groups = "intc_irq2"; 248724ba675SRob Herring function = "intc"; 249724ba675SRob Herring }; 250724ba675SRob Herring}; 251724ba675SRob Herring 252724ba675SRob Herring&rwdt { 253724ba675SRob Herring timeout-sec = <60>; 254724ba675SRob Herring status = "okay"; 255724ba675SRob Herring}; 256724ba675SRob Herring 257724ba675SRob Herring&scif0 { 258724ba675SRob Herring pinctrl-0 = <&scif0_pins>; 259724ba675SRob Herring pinctrl-names = "default"; 260724ba675SRob Herring 261724ba675SRob Herring status = "okay"; 262724ba675SRob Herring}; 263724ba675SRob Herring 264724ba675SRob Herring&scif3 { 265724ba675SRob Herring pinctrl-0 = <&scif3_pins>; 266724ba675SRob Herring pinctrl-names = "default"; 267724ba675SRob Herring 268724ba675SRob Herring status = "okay"; 269724ba675SRob Herring}; 270724ba675SRob Herring 271724ba675SRob Herring&can0 { 272724ba675SRob Herring pinctrl-0 = <&can0_pins>; 273724ba675SRob Herring pinctrl-names = "default"; 274724ba675SRob Herring 275724ba675SRob Herring status = "okay"; 276724ba675SRob Herring}; 277724ba675SRob Herring 278724ba675SRob Herring&sdhi0 { 279724ba675SRob Herring pinctrl-0 = <&sdhi0_pins>; 280724ba675SRob Herring pinctrl-names = "default"; 281724ba675SRob Herring 282724ba675SRob Herring vmmc-supply = <&vcc_sdhi0>; 283724ba675SRob Herring cd-gpios = <&gpio11 11 GPIO_ACTIVE_LOW>; 284724ba675SRob Herring status = "okay"; 285724ba675SRob Herring}; 286724ba675SRob Herring 287724ba675SRob Herring&i2c1 { 288724ba675SRob Herring status = "okay"; 289724ba675SRob Herring clock-frequency = <400000>; 290724ba675SRob Herring 291724ba675SRob Herring hdmi@39 { 292724ba675SRob Herring compatible = "adi,adv7511w"; 293724ba675SRob Herring reg = <0x39>; 294724ba675SRob Herring interrupt-parent = <&irqc>; 295724ba675SRob Herring interrupts = <3 IRQ_TYPE_EDGE_FALLING>; 296724ba675SRob Herring 297724ba675SRob Herring adi,input-depth = <8>; 298724ba675SRob Herring adi,input-colorspace = "rgb"; 299724ba675SRob Herring adi,input-clock = "1x"; 300724ba675SRob Herring 301724ba675SRob Herring ports { 302724ba675SRob Herring #address-cells = <1>; 303724ba675SRob Herring #size-cells = <0>; 304724ba675SRob Herring 305724ba675SRob Herring port@0 { 306724ba675SRob Herring reg = <0>; 307724ba675SRob Herring adv7511_in: endpoint { 308724ba675SRob Herring remote-endpoint = <&du_out_rgb0>; 309724ba675SRob Herring }; 310724ba675SRob Herring }; 311724ba675SRob Herring 312724ba675SRob Herring port@1 { 313724ba675SRob Herring reg = <1>; 314724ba675SRob Herring adv7511_out: endpoint { 315724ba675SRob Herring remote-endpoint = <&hdmi_con>; 316724ba675SRob Herring }; 317724ba675SRob Herring }; 318724ba675SRob Herring }; 319724ba675SRob Herring }; 320724ba675SRob Herring}; 321724ba675SRob Herring 322724ba675SRob Herring&iic3 { 323724ba675SRob Herring status = "okay"; 324724ba675SRob Herring 325724ba675SRob Herring pmic@58 { 326724ba675SRob Herring compatible = "dlg,da9063"; 327724ba675SRob Herring reg = <0x58>; 328724ba675SRob Herring pinctrl-names = "default"; 329724ba675SRob Herring pinctrl-0 = <&pmic_irq_pins>; 330724ba675SRob Herring interrupt-parent = <&irqc>; 331724ba675SRob Herring interrupts = <2 IRQ_TYPE_LEVEL_LOW>; 332724ba675SRob Herring interrupt-controller; 333*0cce072eSGeert Uytterhoeven #interrupt-cells = <2>; 334724ba675SRob Herring 335724ba675SRob Herring rtc { 336724ba675SRob Herring compatible = "dlg,da9063-rtc"; 337724ba675SRob Herring }; 338724ba675SRob Herring 339724ba675SRob Herring watchdog { 340724ba675SRob Herring compatible = "dlg,da9063-watchdog"; 341724ba675SRob Herring }; 342724ba675SRob Herring }; 343724ba675SRob Herring}; 344724ba675SRob Herring 345724ba675SRob Herring&du { 346724ba675SRob Herring pinctrl-0 = <&du0_pins>, <&du1_pins>; 347724ba675SRob Herring pinctrl-names = "default"; 348724ba675SRob Herring 349724ba675SRob Herring clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>, <&x1_clk>, <&x2_clk>; 350724ba675SRob Herring clock-names = "du.0", "du.1", "dclkin.0", "dclkin.1"; 351724ba675SRob Herring status = "okay"; 352724ba675SRob Herring 353724ba675SRob Herring ports { 354724ba675SRob Herring port@0 { 355724ba675SRob Herring endpoint { 356724ba675SRob Herring remote-endpoint = <&adv7511_in>; 357724ba675SRob Herring }; 358724ba675SRob Herring }; 359724ba675SRob Herring port@1 { 360724ba675SRob Herring endpoint { 361724ba675SRob Herring remote-endpoint = <&adv7123_in>; 362724ba675SRob Herring }; 363724ba675SRob Herring }; 364724ba675SRob Herring }; 365724ba675SRob Herring}; 366