Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions arch/arm64/boot/dts/allwinner/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,13 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-wirenboard8-bootlet.dtb
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-wirenboard8xx.dtb
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-wirenboard843.dtb
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-wirenboard851.dtb
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-wirenboard851-38071cb.dtb
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-wirenboard851m.dtb

# Enables support for device-tree overlays
DTC_FLAGS_sun50i-h616-wirenboard8-bootlet := -@
DTC_FLAGS_sun50i-h616-wirenboard8xx := -@
DTC_FLAGS_sun50i-h616-wirenboard843 := -@
DTC_FLAGS_sun50i-h616-wirenboard851 := -@
DTC_FLAGS_sun50i-h616-wirenboard851-38071cb := -@
DTC_FLAGS_sun50i-h616-wirenboard851m := -@
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
/dts-v1/;
#include "sun50i-h616-wirenboard851.dts"
#include "sun50i-h616-wirenboard85x-38071cb.dtsi"

/ {
model = "Wiren Board rev. 8.5.1 (T507) 38071cb";
compatible = "wirenboard,wirenboard-851-38071cb", "wirenboard,wirenboard-85x-38071cb", "wirenboard,wirenboard-85x", "wirenboard,wirenboard-8xx", "allwinner,sun50i-h616";

mod1_pinmux_dummy {
compatible = "regulator-fixed";
regulator-name = "mod1_pinmux_dummy";
pinctrl-names = "default";
pinctrl-0 = <>;
};

mod2_pinmux_dummy {
compatible = "regulator-fixed";
regulator-name = "mod2_pinmux_dummy";
pinctrl-names = "default";
pinctrl-0 = <>;
};

mod3_pinmux_dummy {
compatible = "regulator-fixed";
regulator-name = "mod3_pinmux_dummy";
pinctrl-names = "default";
pinctrl-0 = <>;
};

wirenboard {
gpios {
MOD1_OUT1 { io-gpios = <&wbec_gpio 7 0>; sort-order = <11>; };
MOD2_OUT1 { io-gpios = <&wbec_gpio 10 0>; sort-order = <21>; };
MOD3_OUT1 { io-gpios = <&pio 8 15 0>; sort-order = <31>; gpio-xlate-type = "bank_pin"; gpio-pins-per-bank = <32>; };
};
};

mod4_pps {
compatible = "pps-gpio";
pinctrl-names = "default";
pinctrl-0 = <>;
gpios = <&pio 3 10 0>;
};
};

&wbec_uart_mod1 { /* MOD1 */
status = "okay";
};

&wbec_uart_mod2 { /* MOD2 */
status = "okay";
};

&uart4 { /* MOD3 */
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_mod3_txrx_uart>;
status = "okay";
};

&uart5 { /* MOD4 */
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_mod4_txrx_uart>;
status = "okay";
};

&wbc_modem { /* WBC2-4G */
status = "okay";
model = "a7600x";
type = "4g", "3g", "edge", "gprs";
compatible = "wirenboard,wbc-usb";
};

&led_red {
default-state = "off";
linux,default-trigger = "default-off";
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/* disable eth1 */
&emac1 {
status = "disabled";
};

/* disable 1-Wire on both pins to use these pins as GPIO */
&onewire_w1 {
status = "disabled";
};

&onewire_w2 {
status = "disabled";
};

/* disable forced 1-Wire pull-ups and map them to regulators
* in order to make them unavailable from userspace
* and thus to protect W1 and W2 GPIOs
*/
/ {
regulators {
reg_pu_dummy_w1 {
compatible = "regulator-fixed";
regulator-name = "reg_pu_dummy_w1";
pinctrl-names = "default";
pinctrl-0 = &pinctrl_w1_gpio;
gpio = <&pio 6 8 GPIO_ACTIVE_HIGH>;
enable-active-high;
};

reg_pu_dummy_w2 {
compatible = "regulator-fixed";
regulator-name = "reg_pu_dummy_w2";
pinctrl-names = "default";
pinctrl-0 = &pinctrl_w2_gpio;
gpio = <&pio 4 21 GPIO_ACTIVE_HIGH>;
enable-active-high;
};
};
};

/* enable RS-485-2 which is usually enabled by hwconf */
&uart1 {
status = "okay";
};
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@
linux,default-trigger = "default-off";
};

red {
led_red: red {
label = "red";
color = <LED_COLOR_ID_RED>;
gpios = <&pio PA 12 GPIO_ACTIVE_HIGH>;
Expand Down
Loading