1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0-or-later OR MIT 2*724ba675SRob Herring/* 3*724ba675SRob Herring * OLPC XO 1.75 Laptop. 4*724ba675SRob Herring * 5*724ba675SRob Herring * Copyright (C) 2018,2019,2020 Lubomir Rintel <lkundrak@v3.sk> 6*724ba675SRob Herring */ 7*724ba675SRob Herring 8*724ba675SRob Herring/dts-v1/; 9*724ba675SRob Herring#include "mmp2.dtsi" 10*724ba675SRob Herring#include <dt-bindings/gpio/gpio.h> 11*724ba675SRob Herring#include <dt-bindings/input/linux-event-codes.h> 12*724ba675SRob Herring#include <dt-bindings/interrupt-controller/irq.h> 13*724ba675SRob Herring#include <dt-bindings/clock/marvell,mmp2-audio.h> 14*724ba675SRob Herring 15*724ba675SRob Herring/ { 16*724ba675SRob Herring model = "OLPC XO-1.75"; 17*724ba675SRob Herring compatible = "olpc,xo-1.75", "mrvl,mmp2"; 18*724ba675SRob Herring 19*724ba675SRob Herring chosen { 20*724ba675SRob Herring #address-cells = <1>; 21*724ba675SRob Herring #size-cells = <1>; 22*724ba675SRob Herring ranges; 23*724ba675SRob Herring 24*724ba675SRob Herring framebuffer@1fc00000 { 25*724ba675SRob Herring compatible = "simple-framebuffer"; 26*724ba675SRob Herring reg = <0x1fc00000 (1200 * 900 * 2)>; 27*724ba675SRob Herring width = <1200>; 28*724ba675SRob Herring height = <900>; 29*724ba675SRob Herring stride = <(1200 * 2)>; 30*724ba675SRob Herring format = "r5g6b5"; 31*724ba675SRob Herring clocks = <&soc_clocks MMP2_CLK_DISP0_LCDC>, 32*724ba675SRob Herring <&soc_clocks MMP2_CLK_DISP0>; 33*724ba675SRob Herring }; 34*724ba675SRob Herring }; 35*724ba675SRob Herring 36*724ba675SRob Herring memory@0 { 37*724ba675SRob Herring available = <0xcf000 0x1ef31000 0x1000 0xbf000>; 38*724ba675SRob Herring reg = <0x0 0x20000000>; 39*724ba675SRob Herring device_type = "memory"; 40*724ba675SRob Herring }; 41*724ba675SRob Herring 42*724ba675SRob Herring gpio-keys { 43*724ba675SRob Herring compatible = "gpio-keys"; 44*724ba675SRob Herring 45*724ba675SRob Herring lid { 46*724ba675SRob Herring label = "Lid"; 47*724ba675SRob Herring gpios = <&gpio 129 GPIO_ACTIVE_LOW>; 48*724ba675SRob Herring linux,input-type = <EV_SW>; 49*724ba675SRob Herring linux,code = <SW_LID>; 50*724ba675SRob Herring wakeup-source; 51*724ba675SRob Herring }; 52*724ba675SRob Herring 53*724ba675SRob Herring tablet_mode { 54*724ba675SRob Herring label = "E-Book Mode"; 55*724ba675SRob Herring gpios = <&gpio 128 GPIO_ACTIVE_LOW>; 56*724ba675SRob Herring linux,input-type = <EV_SW>; 57*724ba675SRob Herring linux,code = <SW_TABLET_MODE>; 58*724ba675SRob Herring wakeup-source; 59*724ba675SRob Herring }; 60*724ba675SRob Herring }; 61*724ba675SRob Herring 62*724ba675SRob Herring i2c { 63*724ba675SRob Herring compatible = "i2c-gpio"; 64*724ba675SRob Herring sda-gpios = <&gpio 109 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; 65*724ba675SRob Herring scl-gpios = <&gpio 108 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; 66*724ba675SRob Herring #address-cells = <1>; 67*724ba675SRob Herring #size-cells = <0>; 68*724ba675SRob Herring i2c-gpio,timeout-ms = <1000>; 69*724ba675SRob Herring status = "okay"; 70*724ba675SRob Herring 71*724ba675SRob Herring camera@21 { 72*724ba675SRob Herring compatible = "ovti,ov7670"; 73*724ba675SRob Herring reg = <0x21>; 74*724ba675SRob Herring reset-gpios = <&gpio 102 GPIO_ACTIVE_LOW>; 75*724ba675SRob Herring powerdown-gpios = <&gpio 150 GPIO_ACTIVE_LOW>; 76*724ba675SRob Herring clocks = <&camera0>; 77*724ba675SRob Herring clock-names = "xclk"; 78*724ba675SRob Herring 79*724ba675SRob Herring port { 80*724ba675SRob Herring ov7670_0: endpoint { 81*724ba675SRob Herring hsync-active = <1>; 82*724ba675SRob Herring vsync-active = <1>; 83*724ba675SRob Herring remote-endpoint = <&camera0_0>; 84*724ba675SRob Herring }; 85*724ba675SRob Herring }; 86*724ba675SRob Herring }; 87*724ba675SRob Herring }; 88*724ba675SRob Herring 89*724ba675SRob Herring battery { 90*724ba675SRob Herring compatible = "olpc,xo1.5-battery", "olpc,xo1-battery"; 91*724ba675SRob Herring }; 92*724ba675SRob Herring 93*724ba675SRob Herring wlan_reg: fixedregulator0 { 94*724ba675SRob Herring compatible = "regulator-fixed"; 95*724ba675SRob Herring regulator-name = "wlan"; 96*724ba675SRob Herring regulator-min-microvolt = <3300000>; 97*724ba675SRob Herring regulator-max-microvolt = <3300000>; 98*724ba675SRob Herring gpio = <&gpio 34 GPIO_ACTIVE_HIGH>; 99*724ba675SRob Herring enable-active-high; 100*724ba675SRob Herring }; 101*724ba675SRob Herring 102*724ba675SRob Herring wlan_pwrseq: pwrseq0 { 103*724ba675SRob Herring compatible = "mmc-pwrseq-sd8787"; 104*724ba675SRob Herring powerdown-gpios = <&gpio 57 GPIO_ACTIVE_HIGH>; 105*724ba675SRob Herring reset-gpios = <&gpio 58 GPIO_ACTIVE_HIGH>; 106*724ba675SRob Herring }; 107*724ba675SRob Herring 108*724ba675SRob Herring sound-card { 109*724ba675SRob Herring compatible = "audio-graph-card"; 110*724ba675SRob Herring label = "OLPC XO"; 111*724ba675SRob Herring dais = <&sspa0_dai>; 112*724ba675SRob Herring routing = "Headphones", "HPOL", 113*724ba675SRob Herring "Headphones", "HPOR", 114*724ba675SRob Herring "MIC2", "Mic Jack"; 115*724ba675SRob Herring widgets = "Headphone", "Headphones", "Microphone", "Mic Jack"; 116*724ba675SRob Herring hp-det-gpio = <&gpio 97 GPIO_ACTIVE_HIGH>; 117*724ba675SRob Herring mic-det-gpio = <&gpio 96 GPIO_ACTIVE_HIGH>; 118*724ba675SRob Herring }; 119*724ba675SRob Herring 120*724ba675SRob Herring soc { 121*724ba675SRob Herring axi@d4200000 { 122*724ba675SRob Herring ap-sp@d4290000 { 123*724ba675SRob Herring #address-cells = <1>; 124*724ba675SRob Herring #size-cells = <0>; 125*724ba675SRob Herring compatible = "olpc,ap-sp"; 126*724ba675SRob Herring interrupts = <40>; 127*724ba675SRob Herring reg = <0xd4290000 0x1000>; 128*724ba675SRob Herring data-gpios = <&gpio 72 GPIO_ACTIVE_HIGH>; 129*724ba675SRob Herring clk-gpios = <&gpio 71 GPIO_ACTIVE_HIGH>; 130*724ba675SRob Herring status = "okay"; 131*724ba675SRob Herring }; 132*724ba675SRob Herring }; 133*724ba675SRob Herring }; 134*724ba675SRob Herring}; 135*724ba675SRob Herring 136*724ba675SRob Herring&uart3 { 137*724ba675SRob Herring status = "okay"; 138*724ba675SRob Herring}; 139*724ba675SRob Herring 140*724ba675SRob Herring&uart4 { 141*724ba675SRob Herring status = "okay"; 142*724ba675SRob Herring}; 143*724ba675SRob Herring 144*724ba675SRob Herring&rtc { 145*724ba675SRob Herring status = "okay"; 146*724ba675SRob Herring}; 147*724ba675SRob Herring 148*724ba675SRob Herring&usb_phy0 { 149*724ba675SRob Herring status = "okay"; 150*724ba675SRob Herring}; 151*724ba675SRob Herring 152*724ba675SRob Herring&usb_otg0 { 153*724ba675SRob Herring status = "okay"; 154*724ba675SRob Herring}; 155*724ba675SRob Herring 156*724ba675SRob Herring&mmc1 { 157*724ba675SRob Herring clock-frequency = <50000000>; 158*724ba675SRob Herring no-1-8-v; 159*724ba675SRob Herring mrvl,clk-delay-cycles = <31>; 160*724ba675SRob Herring broken-cd; 161*724ba675SRob Herring status = "okay"; 162*724ba675SRob Herring}; 163*724ba675SRob Herring 164*724ba675SRob Herring&mmc2 { 165*724ba675SRob Herring clock-frequency = <50000000>; 166*724ba675SRob Herring no-1-8-v; 167*724ba675SRob Herring bus-width = <4>; 168*724ba675SRob Herring non-removable; 169*724ba675SRob Herring broken-cd; 170*724ba675SRob Herring wakeup-source; 171*724ba675SRob Herring keep-power-in-suspend; 172*724ba675SRob Herring mmc-pwrseq = <&wlan_pwrseq>; 173*724ba675SRob Herring vmmc-supply = <&wlan_reg>; 174*724ba675SRob Herring status = "okay"; 175*724ba675SRob Herring}; 176*724ba675SRob Herring 177*724ba675SRob Herring&mmc3 { 178*724ba675SRob Herring clock-frequency = <50000000>; 179*724ba675SRob Herring no-1-8-v; 180*724ba675SRob Herring bus-width = <8>; 181*724ba675SRob Herring non-removable; 182*724ba675SRob Herring broken-cd; 183*724ba675SRob Herring mrvl,clk-delay-cycles = <31>; 184*724ba675SRob Herring status = "okay"; 185*724ba675SRob Herring}; 186*724ba675SRob Herring 187*724ba675SRob Herring&twsi1 { 188*724ba675SRob Herring status = "okay"; 189*724ba675SRob Herring 190*724ba675SRob Herring audio-codec@1a { 191*724ba675SRob Herring compatible = "realtek,alc5631"; 192*724ba675SRob Herring reg = <0x1a>; 193*724ba675SRob Herring status = "okay"; 194*724ba675SRob Herring 195*724ba675SRob Herring port { 196*724ba675SRob Herring rt5631_0: endpoint { 197*724ba675SRob Herring mclk-fs = <256>; 198*724ba675SRob Herring clocks = <&audio_clk MMP2_CLK_AUDIO_SYSCLK>; 199*724ba675SRob Herring remote-endpoint = <&sspa0_0>; 200*724ba675SRob Herring }; 201*724ba675SRob Herring }; 202*724ba675SRob Herring }; 203*724ba675SRob Herring}; 204*724ba675SRob Herring 205*724ba675SRob Herring&twsi2 { 206*724ba675SRob Herring status = "okay"; 207*724ba675SRob Herring 208*724ba675SRob Herring rtc@68 { 209*724ba675SRob Herring compatible = "dallas,ds1338"; 210*724ba675SRob Herring reg = <0x68>; 211*724ba675SRob Herring status = "okay"; 212*724ba675SRob Herring }; 213*724ba675SRob Herring}; 214*724ba675SRob Herring 215*724ba675SRob Herring&twsi6 { 216*724ba675SRob Herring status = "okay"; 217*724ba675SRob Herring 218*724ba675SRob Herring accelerometer@1d { 219*724ba675SRob Herring compatible = "st,lis331dlh", "st,lis3lv02d"; 220*724ba675SRob Herring reg = <0x1d>; 221*724ba675SRob Herring status = "okay"; 222*724ba675SRob Herring }; 223*724ba675SRob Herring}; 224*724ba675SRob Herring 225*724ba675SRob Herring&ssp3 { 226*724ba675SRob Herring #address-cells = <0>; 227*724ba675SRob Herring spi-slave; 228*724ba675SRob Herring status = "okay"; 229*724ba675SRob Herring ready-gpios = <&gpio 125 GPIO_ACTIVE_HIGH>; 230*724ba675SRob Herring 231*724ba675SRob Herring slave { 232*724ba675SRob Herring compatible = "olpc,xo1.75-ec"; 233*724ba675SRob Herring spi-cpha; 234*724ba675SRob Herring cmd-gpios = <&gpio 155 GPIO_ACTIVE_HIGH>; 235*724ba675SRob Herring }; 236*724ba675SRob Herring}; 237*724ba675SRob Herring 238*724ba675SRob Herring&camera0 { 239*724ba675SRob Herring status = "okay"; 240*724ba675SRob Herring 241*724ba675SRob Herring port { 242*724ba675SRob Herring camera0_0: endpoint { 243*724ba675SRob Herring remote-endpoint = <&ov7670_0>; 244*724ba675SRob Herring }; 245*724ba675SRob Herring }; 246*724ba675SRob Herring}; 247*724ba675SRob Herring 248*724ba675SRob Herring&asram { 249*724ba675SRob Herring status = "okay"; 250*724ba675SRob Herring}; 251*724ba675SRob Herring 252*724ba675SRob Herring&adma0 { 253*724ba675SRob Herring status = "okay"; 254*724ba675SRob Herring}; 255*724ba675SRob Herring 256*724ba675SRob Herring&audio_clk { 257*724ba675SRob Herring status = "okay"; 258*724ba675SRob Herring}; 259*724ba675SRob Herring 260*724ba675SRob Herring&sspa0 { 261*724ba675SRob Herring status = "okay"; 262*724ba675SRob Herring dmas = <&adma0 0>, <&adma0 1>; 263*724ba675SRob Herring dma-names = "tx", "rx"; 264*724ba675SRob Herring 265*724ba675SRob Herring sspa0_dai: port { 266*724ba675SRob Herring sspa0_0: endpoint { 267*724ba675SRob Herring remote-endpoint = <&rt5631_0>; 268*724ba675SRob Herring frame-master; 269*724ba675SRob Herring bitclock-master; 270*724ba675SRob Herring dai-format = "i2s"; 271*724ba675SRob Herring }; 272*724ba675SRob Herring }; 273*724ba675SRob Herring}; 274*724ba675SRob Herring 275*724ba675SRob Herring&gpu { 276*724ba675SRob Herring status = "okay"; 277*724ba675SRob Herring}; 278