blob: 6f93f8c49f845eae7a1d700e642fdc8ed3e6a6f4 [file] [log] [blame]
Samuel Holland94539ab2022-04-27 15:31:28 -05001// SPDX-License-Identifier: (GPL-2.0+ OR X11)
2/*
3 * Copyright 2020 Paul Kocialkowski <contact@paulk.fr>
4 */
5
6/dts-v1/;
7
8#include "sun8i-v3.dtsi"
9
10#include <dt-bindings/gpio/gpio.h>
11#include <dt-bindings/input/input.h>
12
13/ {
14 model = "SL631 Action Camera";
15 compatible = "allwinner,sl631", "allwinner,sun8i-v3";
16
17 aliases {
18 serial0 = &uart1;
19 };
20
21 chosen {
22 stdout-path = "serial0:115200n8";
23 };
24};
25
26&i2c0 {
27 status = "okay";
28
29 axp209: pmic@34 {
30 reg = <0x34>;
31 interrupt-parent = <&nmi_intc>;
32 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
33 };
34};
35
36&i2c1 {
37 pinctrl-names = "default";
38 pinctrl-0 = <&i2c1_pb_pins>;
39 status = "okay";
40};
41
42&lradc {
43 vref-supply = <&reg_ldo2>;
44 status = "okay";
45
46 button-174 {
47 label = "Down";
48 linux,code = <KEY_DOWN>;
49 channel = <0>;
50 voltage = <174603>;
51 };
52
53 button-384 {
54 label = "Up";
55 linux,code = <KEY_UP>;
56 channel = <0>;
57 voltage = <384126>;
58 };
59
60 button-593 {
61 label = "OK";
62 linux,code = <KEY_OK>;
63 channel = <0>;
64 voltage = <593650>;
65 };
66};
67
68&mmc0 {
69 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
70 bus-width = <4>;
71 vmmc-supply = <&reg_dcdc3>;
72 status = "okay";
73};
74
75&pio {
76 vcc-pd-supply = <&reg_dcdc3>;
77 vcc-pe-supply = <&reg_dcdc3>;
78};
79
80#include "axp209.dtsi"
81
82&ac_power_supply {
83 status = "okay";
84};
85
86&battery_power_supply {
87 status = "okay";
88};
89
90&reg_dcdc2 {
91 regulator-always-on;
92 regulator-min-microvolt = <1250000>;
93 regulator-max-microvolt = <1250000>;
94 regulator-name = "vdd-sys-cpu";
95};
96
97&reg_dcdc3 {
98 regulator-always-on;
99 regulator-min-microvolt = <3300000>;
100 regulator-max-microvolt = <3300000>;
101 regulator-name = "vdd-3v3";
102};
103
104&reg_ldo1 {
105 regulator-name = "vdd-rtc";
106};
107
108&reg_ldo2 {
109 regulator-always-on;
110 regulator-min-microvolt = <3000000>;
111 regulator-max-microvolt = <3000000>;
112 regulator-name = "avcc";
113};
114
115&spi0 {
116 status = "okay";
117
118 flash@0 {
119 reg = <0>;
120 compatible = "jedec,spi-nor";
121 spi-max-frequency = <50000000>;
122 };
123};
124
125&uart1 {
126 pinctrl-0 = <&uart1_pg_pins>;
127 pinctrl-names = "default";
128 status = "okay";
129};
130
131&usb_otg {
132 dr_mode = "peripheral";
133 status = "okay";
134};
135
136&usbphy {
137 status = "okay";
138};