Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0+ OR X11)
0002 /*
0003  * Copyright 2020 Paul Kocialkowski <contact@paulk.fr>
0004  */
0005 
0006 /dts-v1/;
0007 
0008 #include "sun8i-v3.dtsi"
0009 
0010 #include <dt-bindings/gpio/gpio.h>
0011 #include <dt-bindings/input/input.h>
0012 
0013 / {
0014         model = "SL631 Action Camera";
0015         compatible = "allwinner,sl631", "allwinner,sun8i-v3";
0016 
0017         aliases {
0018                 serial0 = &uart1;
0019         };
0020 
0021         chosen {
0022                 stdout-path = "serial0:115200n8";
0023         };
0024 };
0025 
0026 &i2c0 {
0027         status = "okay";
0028 
0029         axp209: pmic@34 {
0030                 reg = <0x34>;
0031                 interrupt-parent = <&nmi_intc>;
0032                 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
0033         };
0034 };
0035 
0036 &i2c1 {
0037         pinctrl-names = "default";
0038         pinctrl-0 = <&i2c1_pb_pins>;
0039         status = "okay";
0040 };
0041 
0042 &lradc {
0043         vref-supply = <&reg_ldo2>;
0044         status = "okay";
0045 
0046         button-174 {
0047                 label = "Down";
0048                 linux,code = <KEY_DOWN>;
0049                 channel = <0>;
0050                 voltage = <174603>;
0051         };
0052 
0053         button-384 {
0054                 label = "Up";
0055                 linux,code = <KEY_UP>;
0056                 channel = <0>;
0057                 voltage = <384126>;
0058         };
0059 
0060         button-593 {
0061                 label = "OK";
0062                 linux,code = <KEY_OK>;
0063                 channel = <0>;
0064                 voltage = <593650>;
0065         };
0066 };
0067 
0068 &mmc0 {
0069         cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
0070         bus-width = <4>;
0071         vmmc-supply = <&reg_dcdc3>;
0072         status = "okay";
0073 };
0074 
0075 &pio {
0076         vcc-pd-supply = <&reg_dcdc3>;
0077         vcc-pe-supply = <&reg_dcdc3>;
0078 };
0079 
0080 #include "axp209.dtsi"
0081 
0082 &ac_power_supply {
0083         status = "okay";
0084 };
0085 
0086 &battery_power_supply {
0087         status = "okay";
0088 };
0089 
0090 &reg_dcdc2 {
0091         regulator-always-on;
0092         regulator-min-microvolt = <1250000>;
0093         regulator-max-microvolt = <1250000>;
0094         regulator-name = "vdd-sys-cpu";
0095 };
0096 
0097 &reg_dcdc3 {
0098         regulator-always-on;
0099         regulator-min-microvolt = <3300000>;
0100         regulator-max-microvolt = <3300000>;
0101         regulator-name = "vdd-3v3";
0102 };
0103 
0104 &reg_ldo1 {
0105         regulator-name = "vdd-rtc";
0106 };
0107 
0108 &reg_ldo2 {
0109         regulator-always-on;
0110         regulator-min-microvolt = <3000000>;
0111         regulator-max-microvolt = <3000000>;
0112         regulator-name = "avcc";
0113 };
0114 
0115 &spi0 {
0116         status = "okay";
0117 
0118         flash@0 {
0119                 reg = <0>;
0120                 compatible = "jedec,spi-nor";
0121                 spi-max-frequency = <50000000>;
0122         };
0123 };
0124 
0125 &uart1 {
0126         pinctrl-0 = <&uart1_pg_pins>;
0127         pinctrl-names = "default";
0128         status = "okay";
0129 };
0130 
0131 &usb_otg {
0132         dr_mode = "peripheral";
0133         status = "okay";
0134 };
0135 
0136 &usbphy {
0137         status = "okay";
0138 };