~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/arm/boot/dts/allwinner/sun8i-v3-sl631.dtsi

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 // 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 };

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php