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