1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Copyright (c) 2020 thingy.jp.
4*f126890aSEmmanuel Vadot * Author: Daniel Palmer <daniel@thingy.jp>
5*f126890aSEmmanuel Vadot */
6*f126890aSEmmanuel Vadot
7*f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
8*f126890aSEmmanuel Vadot
9*f126890aSEmmanuel Vadot/ {
10*f126890aSEmmanuel Vadot	vcc_core: fixedregulator@0 {
11*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
12*f126890aSEmmanuel Vadot		regulator-name = "vcc_core";
13*f126890aSEmmanuel Vadot		regulator-min-microvolt = <1000000>;
14*f126890aSEmmanuel Vadot		regulator-max-microvolt = <1000000>;
15*f126890aSEmmanuel Vadot		regulator-boot-on;
16*f126890aSEmmanuel Vadot	};
17*f126890aSEmmanuel Vadot
18*f126890aSEmmanuel Vadot	vcc_dram: fixedregulator@1 {
19*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
20*f126890aSEmmanuel Vadot		regulator-name = "vcc_dram";
21*f126890aSEmmanuel Vadot		regulator-min-microvolt = <1800000>;
22*f126890aSEmmanuel Vadot		regulator-max-microvolt = <1800000>;
23*f126890aSEmmanuel Vadot		regulator-boot-on;
24*f126890aSEmmanuel Vadot	};
25*f126890aSEmmanuel Vadot
26*f126890aSEmmanuel Vadot	vcc_io: fixedregulator@2 {
27*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
28*f126890aSEmmanuel Vadot		regulator-name = "vcc_io";
29*f126890aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
30*f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
31*f126890aSEmmanuel Vadot		regulator-boot-on;
32*f126890aSEmmanuel Vadot	};
33*f126890aSEmmanuel Vadot
34*f126890aSEmmanuel Vadot	leds {
35*f126890aSEmmanuel Vadot		compatible = "gpio-leds";
36*f126890aSEmmanuel Vadot		red {
37*f126890aSEmmanuel Vadot			gpios = <&gpio MSC313_GPIO_SR_IO16 GPIO_ACTIVE_HIGH>;
38*f126890aSEmmanuel Vadot			linux,default-trigger = "activity";
39*f126890aSEmmanuel Vadot		};
40*f126890aSEmmanuel Vadot		yellow {
41*f126890aSEmmanuel Vadot			gpios = <&gpio MSC313_GPIO_SR_IO17 GPIO_ACTIVE_HIGH>;
42*f126890aSEmmanuel Vadot			linux,default-trigger = "heartbeat";
43*f126890aSEmmanuel Vadot		};
44*f126890aSEmmanuel Vadot	};
45*f126890aSEmmanuel Vadot};
46*f126890aSEmmanuel Vadot
47*f126890aSEmmanuel Vadot&cpu0 {
48*f126890aSEmmanuel Vadot	cpu-supply = <&vcc_core>;
49*f126890aSEmmanuel Vadot};
50