0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003 * Copyright (c) 2020 thingy.jp.
0004 * Author: Daniel Palmer <daniel@thingy.jp>
0005 */
0006
0007 #include <dt-bindings/gpio/gpio.h>
0008
0009 / {
0010 vcc_core: fixedregulator@0 {
0011 compatible = "regulator-fixed";
0012 regulator-name = "vcc_core";
0013 regulator-min-microvolt = <1000000>;
0014 regulator-max-microvolt = <1000000>;
0015 regulator-boot-on;
0016 };
0017
0018 vcc_dram: fixedregulator@1 {
0019 compatible = "regulator-fixed";
0020 regulator-name = "vcc_dram";
0021 regulator-min-microvolt = <1800000>;
0022 regulator-max-microvolt = <1800000>;
0023 regulator-boot-on;
0024 };
0025
0026 vcc_io: fixedregulator@2 {
0027 compatible = "regulator-fixed";
0028 regulator-name = "vcc_io";
0029 regulator-min-microvolt = <3300000>;
0030 regulator-max-microvolt = <3300000>;
0031 regulator-boot-on;
0032 };
0033
0034 leds {
0035 compatible = "gpio-leds";
0036 red {
0037 gpios = <&gpio MSC313_GPIO_SR_IO16 GPIO_ACTIVE_HIGH>;
0038 linux,default-trigger = "activity";
0039 };
0040 yellow {
0041 gpios = <&gpio MSC313_GPIO_SR_IO17 GPIO_ACTIVE_HIGH>;
0042 linux,default-trigger = "heartbeat";
0043 };
0044 };
0045 };
0046
0047 &cpu0 {
0048 cpu-supply = <&vcc_core>;
0049 };