xref: /linux/arch/arm/boot/dts/ti/omap/am335x-chilisom.dtsi (revision cdd5b5a9761fd66d17586e4f4ba6588c70e640ea)
1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0-only
2*724ba675SRob Herring/*
3*724ba675SRob Herring * Copyright (C) 2015 Jablotron s.r.o. -- https://www.jablotron.com/
4*724ba675SRob Herring * Author: Rostislav Lisovy <lisovy@jablotron.cz>
5*724ba675SRob Herring */
6*724ba675SRob Herring#include "am33xx.dtsi"
7*724ba675SRob Herring#include <dt-bindings/interrupt-controller/irq.h>
8*724ba675SRob Herring
9*724ba675SRob Herring/ {
10*724ba675SRob Herring	model = "Grinn AM335x ChiliSOM";
11*724ba675SRob Herring	compatible = "grinn,am335x-chilisom", "ti,am33xx";
12*724ba675SRob Herring
13*724ba675SRob Herring	cpus {
14*724ba675SRob Herring		cpu@0 {
15*724ba675SRob Herring			cpu0-supply = <&dcdc2_reg>;
16*724ba675SRob Herring		};
17*724ba675SRob Herring	};
18*724ba675SRob Herring
19*724ba675SRob Herring	memory@80000000 {
20*724ba675SRob Herring		device_type = "memory";
21*724ba675SRob Herring		reg = <0x80000000 0x20000000>; /* 512 MB */
22*724ba675SRob Herring	};
23*724ba675SRob Herring};
24*724ba675SRob Herring
25*724ba675SRob Herring&am33xx_pinmux {
26*724ba675SRob Herring	pinctrl-names = "default";
27*724ba675SRob Herring
28*724ba675SRob Herring	i2c0_pins: i2c0-pins {
29*724ba675SRob Herring		pinctrl-single,pins = <
30*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_I2C0_SDA, PIN_INPUT_PULLUP, MUX_MODE0)
31*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_I2C0_SCL, PIN_INPUT_PULLUP, MUX_MODE0)
32*724ba675SRob Herring		>;
33*724ba675SRob Herring	};
34*724ba675SRob Herring
35*724ba675SRob Herring	nandflash_pins: nandflash-pins {
36*724ba675SRob Herring		pinctrl-single,pins = <
37*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_AD0, PIN_INPUT_PULLDOWN, MUX_MODE0)
38*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_AD1, PIN_INPUT_PULLDOWN, MUX_MODE0)
39*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_AD2, PIN_INPUT_PULLDOWN, MUX_MODE0)
40*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_AD3, PIN_INPUT_PULLDOWN, MUX_MODE0)
41*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_AD4, PIN_INPUT_PULLDOWN, MUX_MODE0)
42*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_AD5, PIN_INPUT_PULLDOWN, MUX_MODE0)
43*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_AD6, PIN_INPUT_PULLDOWN, MUX_MODE0)
44*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_AD7, PIN_INPUT_PULLDOWN, MUX_MODE0)
45*724ba675SRob Herring
46*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_WAIT0, PIN_INPUT_PULLUP, MUX_MODE0)
47*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_CSN0, PIN_OUTPUT_PULLUP, MUX_MODE0)
48*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_ADVN_ALE, PIN_OUTPUT_PULLUP, MUX_MODE0)
49*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_OEN_REN, PIN_OUTPUT_PULLUP, MUX_MODE0)
50*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_WEN, PIN_OUTPUT_PULLUP, MUX_MODE0)
51*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_BEN0_CLE, PIN_OUTPUT_PULLUP, MUX_MODE0)
52*724ba675SRob Herring		>;
53*724ba675SRob Herring	};
54*724ba675SRob Herring};
55*724ba675SRob Herring
56*724ba675SRob Herring&i2c0 {
57*724ba675SRob Herring	pinctrl-names = "default";
58*724ba675SRob Herring	pinctrl-0 = <&i2c0_pins>;
59*724ba675SRob Herring
60*724ba675SRob Herring	status = "okay";
61*724ba675SRob Herring	clock-frequency = <400000>;
62*724ba675SRob Herring
63*724ba675SRob Herring	tps: tps@24 {
64*724ba675SRob Herring		reg = <0x24>;
65*724ba675SRob Herring	};
66*724ba675SRob Herring
67*724ba675SRob Herring};
68*724ba675SRob Herring
69*724ba675SRob Herring/include/ "../../tps65217.dtsi"
70*724ba675SRob Herring
71*724ba675SRob Herring&tps {
72*724ba675SRob Herring	regulators {
73*724ba675SRob Herring		dcdc1_reg: regulator@0 {
74*724ba675SRob Herring			regulator-name = "vdds_dpr";
75*724ba675SRob Herring			regulator-always-on;
76*724ba675SRob Herring		};
77*724ba675SRob Herring
78*724ba675SRob Herring		dcdc2_reg: regulator@1 {
79*724ba675SRob Herring			/* VDD_MPU voltage limits 0.95V - 1.26V with +/-4% tolerance */
80*724ba675SRob Herring			regulator-name = "vdd_mpu";
81*724ba675SRob Herring			regulator-min-microvolt = <925000>;
82*724ba675SRob Herring			regulator-max-microvolt = <1325000>;
83*724ba675SRob Herring			regulator-boot-on;
84*724ba675SRob Herring			regulator-always-on;
85*724ba675SRob Herring		};
86*724ba675SRob Herring
87*724ba675SRob Herring		dcdc3_reg: regulator@2 {
88*724ba675SRob Herring			/* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */
89*724ba675SRob Herring			regulator-name = "vdd_core";
90*724ba675SRob Herring			regulator-min-microvolt = <925000>;
91*724ba675SRob Herring			regulator-max-microvolt = <1150000>;
92*724ba675SRob Herring			regulator-boot-on;
93*724ba675SRob Herring			regulator-always-on;
94*724ba675SRob Herring		};
95*724ba675SRob Herring
96*724ba675SRob Herring		ldo1_reg: regulator@3 {
97*724ba675SRob Herring			regulator-name = "vio,vrtc,vdds";
98*724ba675SRob Herring			regulator-boot-on;
99*724ba675SRob Herring			regulator-always-on;
100*724ba675SRob Herring		};
101*724ba675SRob Herring
102*724ba675SRob Herring		ldo2_reg: regulator@4 {
103*724ba675SRob Herring			regulator-name = "vdd_3v3aux";
104*724ba675SRob Herring			regulator-boot-on;
105*724ba675SRob Herring			regulator-always-on;
106*724ba675SRob Herring		};
107*724ba675SRob Herring
108*724ba675SRob Herring		ldo3_reg: regulator@5 {
109*724ba675SRob Herring			regulator-name = "vdd_1v8";
110*724ba675SRob Herring			regulator-boot-on;
111*724ba675SRob Herring			regulator-always-on;
112*724ba675SRob Herring		};
113*724ba675SRob Herring
114*724ba675SRob Herring		ldo4_reg: regulator@6 {
115*724ba675SRob Herring			regulator-name = "vdd_3v3d";
116*724ba675SRob Herring			regulator-boot-on;
117*724ba675SRob Herring			regulator-always-on;
118*724ba675SRob Herring		};
119*724ba675SRob Herring	};
120*724ba675SRob Herring};
121*724ba675SRob Herring
122*724ba675SRob Herring&rtc {
123*724ba675SRob Herring	system-power-controller;
124*724ba675SRob Herring
125*724ba675SRob Herring	pinctrl-0 = <&ext_wakeup>;
126*724ba675SRob Herring	pinctrl-names = "default";
127*724ba675SRob Herring
128*724ba675SRob Herring	ext_wakeup: ext-wakeup {
129*724ba675SRob Herring		pins = "ext_wakeup0";
130*724ba675SRob Herring		input-enable;
131*724ba675SRob Herring	};
132*724ba675SRob Herring};
133*724ba675SRob Herring
134*724ba675SRob Herring/* NAND Flash */
135*724ba675SRob Herring&elm {
136*724ba675SRob Herring	status = "okay";
137*724ba675SRob Herring};
138*724ba675SRob Herring
139*724ba675SRob Herring&gpmc {
140*724ba675SRob Herring	status = "okay";
141*724ba675SRob Herring	pinctrl-names = "default";
142*724ba675SRob Herring	pinctrl-0 = <&nandflash_pins>;
143*724ba675SRob Herring	ranges = <0 0 0x08000000 0x01000000>; /* CS0 0 @addr 0x08000000, size 0x01000000 */
144*724ba675SRob Herring	nand@0,0 {
145*724ba675SRob Herring		compatible = "ti,omap2-nand";
146*724ba675SRob Herring		reg = <0 0 4>;	/* CS0, offset 0, IO size 4 */
147*724ba675SRob Herring		interrupt-parent = <&gpmc>;
148*724ba675SRob Herring		interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
149*724ba675SRob Herring			     <1 IRQ_TYPE_NONE>;	/* termcount */
150*724ba675SRob Herring		rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */
151*724ba675SRob Herring		ti,nand-ecc-opt = "bch8";
152*724ba675SRob Herring		ti,elm-id = <&elm>;
153*724ba675SRob Herring		nand-bus-width = <8>;
154*724ba675SRob Herring		gpmc,device-width = <1>;
155*724ba675SRob Herring		gpmc,sync-clk-ps = <0>;
156*724ba675SRob Herring		gpmc,cs-on-ns = <0>;
157*724ba675SRob Herring		gpmc,cs-rd-off-ns = <44>;
158*724ba675SRob Herring		gpmc,cs-wr-off-ns = <44>;
159*724ba675SRob Herring		gpmc,adv-on-ns = <6>;
160*724ba675SRob Herring		gpmc,adv-rd-off-ns = <34>;
161*724ba675SRob Herring		gpmc,adv-wr-off-ns = <44>;
162*724ba675SRob Herring		gpmc,we-on-ns = <0>;
163*724ba675SRob Herring		gpmc,we-off-ns = <40>;
164*724ba675SRob Herring		gpmc,oe-on-ns = <0>;
165*724ba675SRob Herring		gpmc,oe-off-ns = <54>;
166*724ba675SRob Herring		gpmc,access-ns = <64>;
167*724ba675SRob Herring		gpmc,rd-cycle-ns = <82>;
168*724ba675SRob Herring		gpmc,wr-cycle-ns = <82>;
169*724ba675SRob Herring		gpmc,bus-turnaround-ns = <0>;
170*724ba675SRob Herring		gpmc,cycle2cycle-delay-ns = <0>;
171*724ba675SRob Herring		gpmc,clk-activation-ns = <0>;
172*724ba675SRob Herring		gpmc,wr-access-ns = <40>;
173*724ba675SRob Herring		gpmc,wr-data-mux-bus-ns = <0>;
174*724ba675SRob Herring	};
175*724ba675SRob Herring};
176