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