ARM: dts: sun4i: Update A10 dts(i) files from Linux-v4.18-rc3
Update all A10 devicetree dtsi and dtsi files from Linux-v4.18-rc3
with below commit:
commit 590b0c0cfc6162aeebbf43eaafb9753b56df1532
Author: Pascal Roeleven <dev@pascalroeleven.nl>
Date:   Fri Apr 20 12:21:12 2018 +0200
    ARM: dts: sun4i: Fix incorrect clocks for displays
Note: Update pinctrl-0 for sun4i-a10-inet-3f.dts, sun4i-a10-inet-3w.dts
like other dts file since there dts file are U-Boot specific.
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
			
			
This commit is contained in:
		
							parent
							
								
									bbef20d479
								
							
						
					
					
						commit
						3c92cca3cd
					
				|  | @ -53,12 +53,27 @@ | ||||||
| 	interrupt-controller; | 	interrupt-controller; | ||||||
| 	#interrupt-cells = <1>; | 	#interrupt-cells = <1>; | ||||||
| 
 | 
 | ||||||
|  | 	ac_power_supply: ac-power-supply { | ||||||
|  | 		compatible = "x-powers,axp202-ac-power-supply"; | ||||||
|  | 		status = "disabled"; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
|  | 	axp_adc: adc { | ||||||
|  | 		compatible = "x-powers,axp209-adc"; | ||||||
|  | 		#io-channel-cells = <1>; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	axp_gpio: gpio { | 	axp_gpio: gpio { | ||||||
| 		compatible = "x-powers,axp209-gpio"; | 		compatible = "x-powers,axp209-gpio"; | ||||||
| 		gpio-controller; | 		gpio-controller; | ||||||
| 		#gpio-cells = <2>; | 		#gpio-cells = <2>; | ||||||
| 	}; | 	}; | ||||||
| 
 | 
 | ||||||
|  | 	battery_power_supply: battery-power-supply { | ||||||
|  | 		compatible = "x-powers,axp209-battery-power-supply"; | ||||||
|  | 		status = "disabled"; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	regulators { | 	regulators { | ||||||
| 		/* Default work frequency for buck regulators */ | 		/* Default work frequency for buck regulators */ | ||||||
| 		x-powers,dcdc-freq = <1500>; | 		x-powers,dcdc-freq = <1500>; | ||||||
|  | @ -97,7 +112,7 @@ | ||||||
| 		}; | 		}; | ||||||
| 	}; | 	}; | ||||||
| 
 | 
 | ||||||
| 	usb_power_supply: usb_power_supply { | 	usb_power_supply: usb-power-supply { | ||||||
| 		compatible = "x-powers,axp202-usb-power-supply"; | 		compatible = "x-powers,axp202-usb-power-supply"; | ||||||
| 		status = "disabled"; | 		status = "disabled"; | ||||||
| 	}; | 	}; | ||||||
|  |  | ||||||
|  | @ -47,7 +47,6 @@ | ||||||
| #include "sunxi-common-regulators.dtsi" | #include "sunxi-common-regulators.dtsi" | ||||||
| 
 | 
 | ||||||
| #include <dt-bindings/gpio/gpio.h> | #include <dt-bindings/gpio/gpio.h> | ||||||
| #include <dt-bindings/pinctrl/sun4i-a10.h> |  | ||||||
| 
 | 
 | ||||||
| / { | / { | ||||||
| 	model = "Mele A1000"; | 	model = "Mele A1000"; | ||||||
|  | @ -63,8 +62,6 @@ | ||||||
| 
 | 
 | ||||||
| 	leds { | 	leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 		pinctrl-names = "default"; |  | ||||||
| 		pinctrl-0 = <&led_pins_a1000>; |  | ||||||
| 
 | 
 | ||||||
| 		red { | 		red { | ||||||
| 			label = "a1000:red:usr"; | 			label = "a1000:red:usr"; | ||||||
|  | @ -80,8 +77,6 @@ | ||||||
| 
 | 
 | ||||||
| 	reg_emac_3v3: emac-3v3 { | 	reg_emac_3v3: emac-3v3 { | ||||||
| 		compatible = "regulator-fixed"; | 		compatible = "regulator-fixed"; | ||||||
| 		pinctrl-names = "default"; |  | ||||||
| 		pinctrl-0 = <&emac_power_pin_a1000>; |  | ||||||
| 		regulator-name = "emac-3v3"; | 		regulator-name = "emac-3v3"; | ||||||
| 		regulator-min-microvolt = <3300000>; | 		regulator-min-microvolt = <3300000>; | ||||||
| 		regulator-max-microvolt = <3300000>; | 		regulator-max-microvolt = <3300000>; | ||||||
|  | @ -117,6 +112,10 @@ | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | &cpu0 { | ||||||
|  | 	cpu-supply = <®_dcdc2>; | ||||||
|  | }; | ||||||
|  | 
 | ||||||
| &ehci0 { | &ehci0 { | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
|  | @ -126,8 +125,6 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &emac { | &emac { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&emac_pins_a>; |  | ||||||
| 	phy = <&phy1>; | 	phy = <&phy1>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
|  | @ -137,8 +134,6 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &i2c0 { | &i2c0 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&i2c0_pins_a>; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| 
 | 
 | ||||||
| 	axp209: pmic@34 { | 	axp209: pmic@34 { | ||||||
|  | @ -153,7 +148,7 @@ | ||||||
| 
 | 
 | ||||||
| &ir0 { | &ir0 { | ||||||
| 	pinctrl-names = "default"; | 	pinctrl-names = "default"; | ||||||
| 	pinctrl-0 = <&ir0_rx_pins_a>; | 	pinctrl-0 = <&ir0_rx_pins>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | @ -167,12 +162,9 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &mmc0 { | &mmc0 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; |  | ||||||
| 	vmmc-supply = <®_vcc3v3>; | 	vmmc-supply = <®_vcc3v3>; | ||||||
| 	bus-width = <4>; | 	bus-width = <4>; | ||||||
| 	cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */ | 	cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */ | ||||||
| 	cd-inverted; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | @ -184,20 +176,31 @@ | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &pio { | #include "axp209.dtsi" | ||||||
| 	emac_power_pin_a1000: emac_power_pin@0 { |  | ||||||
| 		allwinner,pins = "PH15"; |  | ||||||
| 		allwinner,function = "gpio_out"; |  | ||||||
| 		allwinner,drive = <SUN4I_PINCTRL_10_MA>; |  | ||||||
| 		allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |  | ||||||
| 	}; |  | ||||||
| 
 | 
 | ||||||
| 	led_pins_a1000: led_pins@0 { | ®_dcdc2 { | ||||||
| 		allwinner,pins = "PH10", "PH20"; | 	regulator-always-on; | ||||||
| 		allwinner,function = "gpio_out"; | 	regulator-min-microvolt = <1000000>; | ||||||
| 		allwinner,drive = <SUN4I_PINCTRL_10_MA>; | 	regulator-max-microvolt = <1400000>; | ||||||
| 		allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; | 	regulator-name = "vdd-cpu"; | ||||||
| 	}; | }; | ||||||
|  | 
 | ||||||
|  | ®_dcdc3 { | ||||||
|  | 	regulator-always-on; | ||||||
|  | 	regulator-min-microvolt = <1000000>; | ||||||
|  | 	regulator-max-microvolt = <1250000>; | ||||||
|  | 	regulator-name = "vdd-int-dll"; | ||||||
|  | }; | ||||||
|  | 
 | ||||||
|  | ®_ldo1 { | ||||||
|  | 	regulator-name = "vdd-rtc"; | ||||||
|  | }; | ||||||
|  | 
 | ||||||
|  | ®_ldo2 { | ||||||
|  | 	regulator-always-on; | ||||||
|  | 	regulator-min-microvolt = <3000000>; | ||||||
|  | 	regulator-max-microvolt = <3000000>; | ||||||
|  | 	regulator-name = "avcc"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| ®_usb1_vbus { | ®_usb1_vbus { | ||||||
|  | @ -210,13 +213,13 @@ | ||||||
| 
 | 
 | ||||||
| &spdif { | &spdif { | ||||||
| 	pinctrl-names = "default"; | 	pinctrl-names = "default"; | ||||||
| 	pinctrl-0 = <&spdif_tx_pins_a>; | 	pinctrl-0 = <&spdif_tx_pin>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &uart0 { | &uart0 { | ||||||
| 	pinctrl-names = "default"; | 	pinctrl-names = "default"; | ||||||
| 	pinctrl-0 = <&uart0_pins_a>; | 	pinctrl-0 = <&uart0_pb_pins>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -68,8 +68,6 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &emac { | &emac { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&emac_pins_a>; |  | ||||||
| 	phy = <&phy1>; | 	phy = <&phy1>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
|  | @ -79,8 +77,6 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &i2c0 { | &i2c0 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&i2c0_pins_a>; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| 
 | 
 | ||||||
| 	axp209: pmic@34 { | 	axp209: pmic@34 { | ||||||
|  | @ -95,7 +91,7 @@ | ||||||
| 
 | 
 | ||||||
| &ir0 { | &ir0 { | ||||||
| 	pinctrl-names = "default"; | 	pinctrl-names = "default"; | ||||||
| 	pinctrl-0 = <&ir0_rx_pins_a>; | 	pinctrl-0 = <&ir0_rx_pins>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | @ -108,12 +104,9 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &mmc0 { | &mmc0 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; |  | ||||||
| 	vmmc-supply = <®_vcc3v3>; | 	vmmc-supply = <®_vcc3v3>; | ||||||
| 	bus-width = <4>; | 	bus-width = <4>; | ||||||
| 	cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */ | 	cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */ | ||||||
| 	cd-inverted; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | @ -121,20 +114,10 @@ | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &ohci1 { |  | ||||||
| 	status = "okay"; |  | ||||||
| }; |  | ||||||
| 
 |  | ||||||
| &otg_sram { | &otg_sram { | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &pio { |  | ||||||
| 	usb2_vbus_pin_a: usb2_vbus_pin@0 { |  | ||||||
| 		allwinner,pins = "PH12"; |  | ||||||
| 	}; |  | ||||||
| }; |  | ||||||
| 
 |  | ||||||
| ®_usb0_vbus { | ®_usb0_vbus { | ||||||
| 	regulator-boot-on; | 	regulator-boot-on; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
|  | @ -151,7 +134,7 @@ | ||||||
| 
 | 
 | ||||||
| &uart0 { | &uart0 { | ||||||
| 	pinctrl-names = "default"; | 	pinctrl-names = "default"; | ||||||
| 	pinctrl-0 = <&uart0_pins_a>; | 	pinctrl-0 = <&uart0_pb_pins>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -65,8 +65,6 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &i2c0 { | &i2c0 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&i2c0_pins_a>; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| 
 | 
 | ||||||
| 	axp209: pmic@34 { | 	axp209: pmic@34 { | ||||||
|  | @ -80,14 +78,10 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &i2c1 { | &i2c1 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&i2c1_pins_a>; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &i2c2 { | &i2c2 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&i2c2_pins_a>; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| 
 | 
 | ||||||
| 	ft5306de4: touchscreen@38 { | 	ft5306de4: touchscreen@38 { | ||||||
|  | @ -104,21 +98,21 @@ | ||||||
| 	vref-supply = <®_vcc3v0>; | 	vref-supply = <®_vcc3v0>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| 
 | 
 | ||||||
| 	button@800 { | 	button-800 { | ||||||
| 		label = "Volume Up"; | 		label = "Volume Up"; | ||||||
| 		linux,code = <KEY_VOLUMEUP>; | 		linux,code = <KEY_VOLUMEUP>; | ||||||
| 		channel = <0>; | 		channel = <0>; | ||||||
| 		voltage = <800000>; | 		voltage = <800000>; | ||||||
| 	}; | 	}; | ||||||
| 
 | 
 | ||||||
| 	button@1000 { | 	button-1000 { | ||||||
| 		label = "Volume Down"; | 		label = "Volume Down"; | ||||||
| 		linux,code = <KEY_VOLUMEDOWN>; | 		linux,code = <KEY_VOLUMEDOWN>; | ||||||
| 		channel = <0>; | 		channel = <0>; | ||||||
| 		voltage = <1000000>; | 		voltage = <1000000>; | ||||||
| 	}; | 	}; | ||||||
| 
 | 
 | ||||||
| 	button@1200 { | 	button-1200 { | ||||||
| 		label = "Back"; | 		label = "Back"; | ||||||
| 		linux,code = <KEY_BACK>; | 		linux,code = <KEY_BACK>; | ||||||
| 		channel = <0>; | 		channel = <0>; | ||||||
|  | @ -127,12 +121,9 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &mmc0 { | &mmc0 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; |  | ||||||
| 	vmmc-supply = <®_vcc3v3>; | 	vmmc-supply = <®_vcc3v3>; | ||||||
| 	bus-width = <4>; | 	bus-width = <4>; | ||||||
| 	cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */ | 	cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */ | ||||||
| 	cd-inverted; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | @ -141,18 +132,16 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &pio { | &pio { | ||||||
| 	usb0_id_detect_pin: usb0_id_detect_pin@0 { | 	usb0_id_detect_pin: usb0-id-detect-pin { | ||||||
| 		allwinner,pins = "PH4"; | 		pins = "PH4"; | ||||||
| 		allwinner,function = "gpio_in"; | 		function = "gpio_in"; | ||||||
| 		allwinner,drive = <SUN4I_PINCTRL_10_MA>; | 		bias-pull-up; | ||||||
| 		allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; |  | ||||||
| 	}; | 	}; | ||||||
| 
 | 
 | ||||||
| 	usb0_vbus_detect_pin: usb0_vbus_detect_pin@0 { | 	usb0_vbus_detect_pin: usb0-vbus-detect-pin { | ||||||
| 		allwinner,pins = "PH5"; | 		pins = "PH5"; | ||||||
| 		allwinner,function = "gpio_in"; | 		function = "gpio_in"; | ||||||
| 		allwinner,drive = <SUN4I_PINCTRL_10_MA>; | 		bias-pull-down; | ||||||
| 		allwinner,pull = <SUN4I_PINCTRL_PULL_DOWN>; |  | ||||||
| 	}; | 	}; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | @ -166,7 +155,7 @@ | ||||||
| 
 | 
 | ||||||
| &uart0 { | &uart0 { | ||||||
| 	pinctrl-names = "default"; | 	pinctrl-names = "default"; | ||||||
| 	pinctrl-0 = <&uart0_pins_a>; | 	pinctrl-0 = <&uart0_pb_pins>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -46,7 +46,6 @@ | ||||||
| #include "sunxi-common-regulators.dtsi" | #include "sunxi-common-regulators.dtsi" | ||||||
| 
 | 
 | ||||||
| #include <dt-bindings/gpio/gpio.h> | #include <dt-bindings/gpio/gpio.h> | ||||||
| #include <dt-bindings/pinctrl/sun4i-a10.h> |  | ||||||
| 
 | 
 | ||||||
| / { | / { | ||||||
| 	model = "Cubietech Cubieboard"; | 	model = "Cubietech Cubieboard"; | ||||||
|  | @ -60,6 +59,17 @@ | ||||||
| 		stdout-path = "serial0:115200n8"; | 		stdout-path = "serial0:115200n8"; | ||||||
| 	}; | 	}; | ||||||
| 
 | 
 | ||||||
|  | 	hdmi-connector { | ||||||
|  | 		compatible = "hdmi-connector"; | ||||||
|  | 		type = "a"; | ||||||
|  | 
 | ||||||
|  | 		port { | ||||||
|  | 			hdmi_con_in: endpoint { | ||||||
|  | 				remote-endpoint = <&hdmi_out_con>; | ||||||
|  | 			}; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	leds { | 	leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 		pinctrl-names = "default"; | 		pinctrl-names = "default"; | ||||||
|  | @ -91,6 +101,10 @@ | ||||||
| 	cpu-supply = <®_dcdc2>; | 	cpu-supply = <®_dcdc2>; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | &de { | ||||||
|  | 	status = "okay"; | ||||||
|  | }; | ||||||
|  | 
 | ||||||
| &ehci0 { | &ehci0 { | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
|  | @ -100,8 +114,6 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &emac { | &emac { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&emac_pins_a>; |  | ||||||
| 	phy = <&phy1>; | 	phy = <&phy1>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
|  | @ -110,9 +122,17 @@ | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | &hdmi { | ||||||
|  | 	status = "okay"; | ||||||
|  | }; | ||||||
|  | 
 | ||||||
|  | &hdmi_out { | ||||||
|  | 	hdmi_out_con: endpoint { | ||||||
|  | 		remote-endpoint = <&hdmi_con_in>; | ||||||
|  | 	}; | ||||||
|  | }; | ||||||
|  | 
 | ||||||
| &i2c0 { | &i2c0 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&i2c0_pins_a>; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| 
 | 
 | ||||||
| 	axp209: pmic@34 { | 	axp209: pmic@34 { | ||||||
|  | @ -122,14 +142,12 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &i2c1 { | &i2c1 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&i2c1_pins_a>; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &ir0 { | &ir0 { | ||||||
| 	pinctrl-names = "default"; | 	pinctrl-names = "default"; | ||||||
| 	pinctrl-0 = <&ir0_rx_pins_a>; | 	pinctrl-0 = <&ir0_rx_pins>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | @ -142,12 +160,9 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &mmc0 { | &mmc0 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; |  | ||||||
| 	vmmc-supply = <®_vcc3v3>; | 	vmmc-supply = <®_vcc3v3>; | ||||||
| 	bus-width = <4>; | 	bus-width = <4>; | ||||||
| 	cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */ | 	cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */ | ||||||
| 	cd-inverted; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | @ -164,18 +179,16 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &pio { | &pio { | ||||||
| 	led_pins_cubieboard: led_pins@0 { | 	led_pins_cubieboard: led-pins { | ||||||
| 		allwinner,pins = "PH20", "PH21"; | 		pins = "PH20", "PH21"; | ||||||
| 		allwinner,function = "gpio_out"; | 		function = "gpio_out"; | ||||||
| 		allwinner,drive = <SUN4I_PINCTRL_20_MA>; | 		drive-strength = <20>; | ||||||
| 		allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |  | ||||||
| 	}; | 	}; | ||||||
| 
 | 
 | ||||||
| 	usb0_id_detect_pin: usb0_id_detect_pin@0 { | 	usb0_id_detect_pin: usb0-id-detect-pin { | ||||||
| 		allwinner,pins = "PH4"; | 		pins = "PH4"; | ||||||
| 		allwinner,function = "gpio_in"; | 		function = "gpio_in"; | ||||||
| 		allwinner,drive = <SUN4I_PINCTRL_10_MA>; | 		bias-pull-up; | ||||||
| 		allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; |  | ||||||
| 	}; | 	}; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | @ -185,6 +198,10 @@ | ||||||
| 
 | 
 | ||||||
| #include "axp209.dtsi" | #include "axp209.dtsi" | ||||||
| 
 | 
 | ||||||
|  | &ac_power_supply { | ||||||
|  | 	status = "okay"; | ||||||
|  | }; | ||||||
|  | 
 | ||||||
| ®_dcdc2 { | ®_dcdc2 { | ||||||
| 	regulator-always-on; | 	regulator-always-on; | ||||||
| 	regulator-min-microvolt = <1000000>; | 	regulator-min-microvolt = <1000000>; | ||||||
|  | @ -220,14 +237,14 @@ | ||||||
| 
 | 
 | ||||||
| &spi0 { | &spi0 { | ||||||
| 	pinctrl-names = "default"; | 	pinctrl-names = "default"; | ||||||
| 	pinctrl-0 = <&spi0_pins_a>, | 	pinctrl-0 = <&spi0_pi_pins>, | ||||||
| 		    <&spi0_cs0_pins_a>; | 		    <&spi0_cs0_pi_pin>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &uart0 { | &uart0 { | ||||||
| 	pinctrl-names = "default"; | 	pinctrl-names = "default"; | ||||||
| 	pinctrl-0 = <&uart0_pins_a>; | 	pinctrl-0 = <&uart0_pb_pins>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -46,7 +46,6 @@ | ||||||
| #include <dt-bindings/gpio/gpio.h> | #include <dt-bindings/gpio/gpio.h> | ||||||
| #include <dt-bindings/input/input.h> | #include <dt-bindings/input/input.h> | ||||||
| #include <dt-bindings/interrupt-controller/irq.h> | #include <dt-bindings/interrupt-controller/irq.h> | ||||||
| #include <dt-bindings/pinctrl/sun4i-a10.h> |  | ||||||
| #include <dt-bindings/pwm/pwm.h> | #include <dt-bindings/pwm/pwm.h> | ||||||
| 
 | 
 | ||||||
| / { | / { | ||||||
|  | @ -59,8 +58,6 @@ | ||||||
| 
 | 
 | ||||||
| 	backlight: backlight { | 	backlight: backlight { | ||||||
| 		compatible = "pwm-backlight"; | 		compatible = "pwm-backlight"; | ||||||
| 		pinctrl-names = "default"; |  | ||||||
| 		pinctrl-0 = <&bl_en_pin_dsrv9703c>; |  | ||||||
| 		pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>; | 		pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>; | ||||||
| 		brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>; | 		brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>; | ||||||
| 		default-brightness-level = <8>; | 		default-brightness-level = <8>; | ||||||
|  | @ -78,10 +75,8 @@ | ||||||
| 		max-microvolt = <3000000>; | 		max-microvolt = <3000000>; | ||||||
| 	}; | 	}; | ||||||
| 
 | 
 | ||||||
| 	reg_motor: reg_motor { | 	reg_motor: reg-motor { | ||||||
| 		compatible = "regulator-fixed"; | 		compatible = "regulator-fixed"; | ||||||
| 		pinctrl-names = "default"; |  | ||||||
| 		pinctrl-0 = <&motor_pins>; |  | ||||||
| 		regulator-name = "vcc-motor"; | 		regulator-name = "vcc-motor"; | ||||||
| 		regulator-min-microvolt = <3000000>; | 		regulator-min-microvolt = <3000000>; | ||||||
| 		regulator-max-microvolt = <3000000>; | 		regulator-max-microvolt = <3000000>; | ||||||
|  | @ -91,8 +86,6 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &codec { | &codec { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&codec_pa_pin>; |  | ||||||
| 	allwinner,pa-gpios = <&pio 7 15 GPIO_ACTIVE_HIGH>; /* PH15 */ | 	allwinner,pa-gpios = <&pio 7 15 GPIO_ACTIVE_HIGH>; /* PH15 */ | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
|  | @ -106,8 +99,6 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &i2c0 { | &i2c0 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&i2c0_pins_a>; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| 
 | 
 | ||||||
| 	axp209: pmic@34 { | 	axp209: pmic@34 { | ||||||
|  | @ -119,15 +110,11 @@ | ||||||
| #include "axp209.dtsi" | #include "axp209.dtsi" | ||||||
| 
 | 
 | ||||||
| &i2c1 { | &i2c1 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&i2c1_pins_a>; |  | ||||||
| 	/* pull-ups and devices require AXP209 LDO3 */ | 	/* pull-ups and devices require AXP209 LDO3 */ | ||||||
| 	status = "failed"; | 	status = "failed"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &i2c2 { | &i2c2 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&i2c2_pins_a>; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| 
 | 
 | ||||||
| 	ft5406ee8: touchscreen@38 { | 	ft5406ee8: touchscreen@38 { | ||||||
|  | @ -135,8 +122,6 @@ | ||||||
| 		reg = <0x38>; | 		reg = <0x38>; | ||||||
| 		interrupt-parent = <&pio>; | 		interrupt-parent = <&pio>; | ||||||
| 		interrupts = <7 21 IRQ_TYPE_EDGE_FALLING>; | 		interrupts = <7 21 IRQ_TYPE_EDGE_FALLING>; | ||||||
| 		pinctrl-names = "default"; |  | ||||||
| 		pinctrl-0 = <&touchscreen_pins>; |  | ||||||
| 		reset-gpios = <&pio 1 13 GPIO_ACTIVE_LOW>; | 		reset-gpios = <&pio 1 13 GPIO_ACTIVE_LOW>; | ||||||
| 		touchscreen-size-x = <1024>; | 		touchscreen-size-x = <1024>; | ||||||
| 		touchscreen-size-y = <768>; | 		touchscreen-size-y = <768>; | ||||||
|  | @ -147,14 +132,14 @@ | ||||||
| 	vref-supply = <®_ldo2>; | 	vref-supply = <®_ldo2>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| 
 | 
 | ||||||
| 	button@400 { | 	button-400 { | ||||||
| 		label = "Volume Down"; | 		label = "Volume Down"; | ||||||
| 		linux,code = <KEY_VOLUMEDOWN>; | 		linux,code = <KEY_VOLUMEDOWN>; | ||||||
| 		channel = <0>; | 		channel = <0>; | ||||||
| 		voltage = <400000>; | 		voltage = <400000>; | ||||||
| 	}; | 	}; | ||||||
| 
 | 
 | ||||||
| 	button@800 { | 	button-800 { | ||||||
| 		label = "Volume Up"; | 		label = "Volume Up"; | ||||||
| 		linux,code = <KEY_VOLUMEUP>; | 		linux,code = <KEY_VOLUMEUP>; | ||||||
| 		channel = <0>; | 		channel = <0>; | ||||||
|  | @ -163,12 +148,9 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &mmc0 { | &mmc0 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; |  | ||||||
| 	vmmc-supply = <®_vcc3v3>; | 	vmmc-supply = <®_vcc3v3>; | ||||||
| 	bus-width = <4>; | 	bus-width = <4>; | ||||||
| 	cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */ | 	cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */ | ||||||
| 	cd-inverted; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | @ -177,52 +159,22 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &pio { | &pio { | ||||||
| 	bl_en_pin_dsrv9703c: bl_en_pin@0 { | 	usb0_id_detect_pin: usb0-id-detect-pin { | ||||||
| 		allwinner,pins = "PH7"; | 		pins = "PH4"; | ||||||
| 		allwinner,function = "gpio_out"; | 		function = "gpio_in"; | ||||||
| 		allwinner,drive = <SUN4I_PINCTRL_10_MA>; | 		bias-pull-up; | ||||||
| 		allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |  | ||||||
| 	}; | 	}; | ||||||
| 
 | 
 | ||||||
| 	codec_pa_pin: codec_pa_pin@0 { | 	usb0_vbus_detect_pin: usb0-vbus-detect-pin { | ||||||
| 		allwinner,pins = "PH15"; | 		pins = "PH5"; | ||||||
| 		allwinner,function = "gpio_out"; | 		function = "gpio_in"; | ||||||
| 		allwinner,drive = <SUN4I_PINCTRL_10_MA>; | 		bias-pull-down; | ||||||
| 		allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |  | ||||||
| 	}; |  | ||||||
| 
 |  | ||||||
| 	motor_pins: motor_pins@0 { |  | ||||||
| 		allwinner,pins = "PB3"; |  | ||||||
| 		allwinner,function = "gpio_out"; |  | ||||||
| 		allwinner,drive = <SUN4I_PINCTRL_10_MA>; |  | ||||||
| 		allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |  | ||||||
| 	}; |  | ||||||
| 
 |  | ||||||
| 	touchscreen_pins: touchscreen_pins@0 { |  | ||||||
| 		allwinner,pins = "PB13"; |  | ||||||
| 		allwinner,function = "gpio_out"; |  | ||||||
| 		allwinner,drive = <SUN4I_PINCTRL_10_MA>; |  | ||||||
| 		allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |  | ||||||
| 	}; |  | ||||||
| 
 |  | ||||||
| 	usb0_id_detect_pin: usb0_id_detect_pin@0 { |  | ||||||
| 		allwinner,pins = "PH4"; |  | ||||||
| 		allwinner,function = "gpio_in"; |  | ||||||
| 		allwinner,drive = <SUN4I_PINCTRL_10_MA>; |  | ||||||
| 		allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; |  | ||||||
| 	}; |  | ||||||
| 
 |  | ||||||
| 	usb0_vbus_detect_pin: usb0_vbus_detect_pin@0 { |  | ||||||
| 		allwinner,pins = "PH5"; |  | ||||||
| 		allwinner,function = "gpio_in"; |  | ||||||
| 		allwinner,drive = <SUN4I_PINCTRL_10_MA>; |  | ||||||
| 		allwinner,pull = <SUN4I_PINCTRL_PULL_DOWN>; |  | ||||||
| 	}; | 	}; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &pwm { | &pwm { | ||||||
| 	pinctrl-names = "default"; | 	pinctrl-names = "default"; | ||||||
| 	pinctrl-0 = <&pwm0_pins_a>; | 	pinctrl-0 = <&pwm0_pin>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | @ -261,7 +213,7 @@ | ||||||
| 
 | 
 | ||||||
| &uart0 { | &uart0 { | ||||||
| 	pinctrl-names = "default"; | 	pinctrl-names = "default"; | ||||||
| 	pinctrl-0 = <&uart0_pins_a>; | 	pinctrl-0 = <&uart0_pb_pins>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -72,8 +72,6 @@ | ||||||
|  */ |  */ | ||||||
| &codec { | &codec { | ||||||
| 	/* PH15 controls power to external amplifier (ft2012q) */ | 	/* PH15 controls power to external amplifier (ft2012q) */ | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&codec_pa_pin>; |  | ||||||
| 	allwinner,pa-gpios = <&pio 7 15 GPIO_ACTIVE_HIGH>; | 	allwinner,pa-gpios = <&pio 7 15 GPIO_ACTIVE_HIGH>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
|  | @ -91,8 +89,6 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &i2c0 { | &i2c0 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&i2c0_pins_a>; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| 
 | 
 | ||||||
| 	axp209: pmic@34 { | 	axp209: pmic@34 { | ||||||
|  | @ -104,8 +100,6 @@ | ||||||
| #include "axp209.dtsi" | #include "axp209.dtsi" | ||||||
| 
 | 
 | ||||||
| &i2c1 { | &i2c1 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&i2c1_pins_a>; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| 
 | 
 | ||||||
| 	/* Accelerometer */ | 	/* Accelerometer */ | ||||||
|  | @ -122,21 +116,21 @@ | ||||||
| 
 | 
 | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| 
 | 
 | ||||||
| 	button@158 { | 	button-158 { | ||||||
| 		label = "Volume Down"; | 		label = "Volume Down"; | ||||||
| 		linux,code = <KEY_VOLUMEDOWN>; | 		linux,code = <KEY_VOLUMEDOWN>; | ||||||
| 		channel = <0>; | 		channel = <0>; | ||||||
| 		voltage = <158730>; | 		voltage = <158730>; | ||||||
| 	}; | 	}; | ||||||
| 
 | 
 | ||||||
| 	button@349 { | 	button-349 { | ||||||
| 		label = "Volume Up"; | 		label = "Volume Up"; | ||||||
| 		linux,code = <KEY_VOLUMEUP>; | 		linux,code = <KEY_VOLUMEUP>; | ||||||
| 		channel = <0>; | 		channel = <0>; | ||||||
| 		voltage = <349206>; | 		voltage = <349206>; | ||||||
| 	}; | 	}; | ||||||
| 
 | 
 | ||||||
| 	button@1142 { | 	button-1142 { | ||||||
| 		label = "Esc"; | 		label = "Esc"; | ||||||
| 		linux,code = <KEY_ESC>; | 		linux,code = <KEY_ESC>; | ||||||
| 		channel = <0>; | 		channel = <0>; | ||||||
|  | @ -145,24 +139,12 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &mmc0 { | &mmc0 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; |  | ||||||
| 	vmmc-supply = <®_vcc3v3>; | 	vmmc-supply = <®_vcc3v3>; | ||||||
| 	bus-width = <4>; | 	bus-width = <4>; | ||||||
| 	cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH01 */ | 	cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH01 */ | ||||||
| 	cd-inverted; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &pio { |  | ||||||
| 	codec_pa_pin: codec_pa_pin@0 { |  | ||||||
| 		allwinner,pins = "PH15"; |  | ||||||
| 		allwinner,function = "gpio_out"; |  | ||||||
| 		allwinner,drive = <SUN4I_PINCTRL_10_MA>; |  | ||||||
| 		allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |  | ||||||
| 	}; |  | ||||||
| }; |  | ||||||
| 
 |  | ||||||
| ®_dcdc2 { | ®_dcdc2 { | ||||||
| 	regulator-always-on; | 	regulator-always-on; | ||||||
| 	regulator-min-microvolt = <1000000>; | 	regulator-min-microvolt = <1000000>; | ||||||
|  | @ -199,7 +181,7 @@ | ||||||
| 
 | 
 | ||||||
| &uart0  { | &uart0  { | ||||||
| 	pinctrl-names = "default"; | 	pinctrl-names = "default"; | ||||||
| 	pinctrl-0 = <&uart0_pins_a>; | 	pinctrl-0 = <&uart0_pb_pins>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -47,7 +47,6 @@ | ||||||
| #include "sunxi-common-regulators.dtsi" | #include "sunxi-common-regulators.dtsi" | ||||||
| 
 | 
 | ||||||
| #include <dt-bindings/gpio/gpio.h> | #include <dt-bindings/gpio/gpio.h> | ||||||
| #include <dt-bindings/pinctrl/sun4i-a10.h> |  | ||||||
| 
 | 
 | ||||||
| / { | / { | ||||||
| 	model = "Miniand Hackberry"; | 	model = "Miniand Hackberry"; | ||||||
|  | @ -81,8 +80,6 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &emac { | &emac { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&emac_pins_a>; |  | ||||||
| 	phy = <&phy0>; | 	phy = <&phy0>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
|  | @ -93,7 +90,7 @@ | ||||||
| 
 | 
 | ||||||
| &ir0 { | &ir0 { | ||||||
| 	pinctrl-names = "default"; | 	pinctrl-names = "default"; | ||||||
| 	pinctrl-0 = <&ir0_rx_pins_a>; | 	pinctrl-0 = <&ir0_rx_pins>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | @ -107,12 +104,9 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &mmc0 { | &mmc0 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; |  | ||||||
| 	vmmc-supply = <®_vcc3v3>; | 	vmmc-supply = <®_vcc3v3>; | ||||||
| 	bus-width = <4>; | 	bus-width = <4>; | ||||||
| 	cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */ | 	cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */ | ||||||
| 	cd-inverted; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | @ -124,31 +118,11 @@ | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &pio { |  | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&hackberry_hogs>; |  | ||||||
| 
 |  | ||||||
| 	hackberry_hogs: hogs@0 { |  | ||||||
| 		allwinner,pins = "PH19"; |  | ||||||
| 		allwinner,function = "gpio_out"; |  | ||||||
| 		allwinner,drive = <SUN4I_PINCTRL_10_MA>; |  | ||||||
| 		allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |  | ||||||
| 	}; |  | ||||||
| 
 |  | ||||||
| 	usb2_vbus_pin_hackberry: usb2_vbus_pin@0 { |  | ||||||
| 		allwinner,pins = "PH12"; |  | ||||||
| 		allwinner,function = "gpio_out"; |  | ||||||
| 		allwinner,drive = <SUN4I_PINCTRL_10_MA>; |  | ||||||
| 		allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |  | ||||||
| 	}; |  | ||||||
| }; |  | ||||||
| 
 |  | ||||||
| ®_usb1_vbus { | ®_usb1_vbus { | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| ®_usb2_vbus { | ®_usb2_vbus { | ||||||
| 	pinctrl-0 = <&usb2_vbus_pin_hackberry>; |  | ||||||
| 	gpio = <&pio 7 12 GPIO_ACTIVE_HIGH>; | 	gpio = <&pio 7 12 GPIO_ACTIVE_HIGH>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
|  | @ -161,6 +135,6 @@ | ||||||
| 
 | 
 | ||||||
| &uart0 { | &uart0 { | ||||||
| 	pinctrl-names = "default"; | 	pinctrl-names = "default"; | ||||||
| 	pinctrl-0 = <&uart0_pins_a>; | 	pinctrl-0 = <&uart0_pb_pins>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
|  |  | ||||||
|  | @ -63,8 +63,6 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &i2c0 { | &i2c0 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&i2c0_pins_a>; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| 
 | 
 | ||||||
| 	axp209: pmic@34 { | 	axp209: pmic@34 { | ||||||
|  | @ -78,12 +76,9 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &mmc0 { | &mmc0 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; |  | ||||||
| 	vmmc-supply = <®_vcc3v3>; | 	vmmc-supply = <®_vcc3v3>; | ||||||
| 	bus-width = <4>; | 	bus-width = <4>; | ||||||
| 	cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */ | 	cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */ | ||||||
| 	cd-inverted; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | @ -92,18 +87,16 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &pio { | &pio { | ||||||
| 	usb0_id_detect_pin: usb0_id_detect_pin@0 { | 	usb0_id_detect_pin: usb0-id-detect-pin { | ||||||
| 		allwinner,pins = "PH4"; | 		pins = "PH4"; | ||||||
| 		allwinner,function = "gpio_in"; | 		function = "gpio_in"; | ||||||
| 		allwinner,drive = <SUN4I_PINCTRL_10_MA>; | 		bias-pull-up; | ||||||
| 		allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; |  | ||||||
| 	}; | 	}; | ||||||
| 
 | 
 | ||||||
| 	usb0_vbus_detect_pin: usb0_vbus_detect_pin@0 { | 	usb0_vbus_detect_pin: usb0-vbus-detect-pin { | ||||||
| 		allwinner,pins = "PH5"; | 		pins = "PH5"; | ||||||
| 		allwinner,function = "gpio_in"; | 		function = "gpio_in"; | ||||||
| 		allwinner,drive = <SUN4I_PINCTRL_10_MA>; | 		bias-pull-down; | ||||||
| 		allwinner,pull = <SUN4I_PINCTRL_PULL_DOWN>; |  | ||||||
| 	}; | 	}; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | @ -118,14 +111,10 @@ | ||||||
| 
 | 
 | ||||||
| &uart0 { | &uart0 { | ||||||
| 	pinctrl-names = "default"; | 	pinctrl-names = "default"; | ||||||
| 	pinctrl-0 = <&uart0_pins_a>; | 	pinctrl-0 = <&uart0_pb_pins>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &usb2_vbus_pin_a { |  | ||||||
| 	allwinner,pins = "PH6"; |  | ||||||
| }; |  | ||||||
| 
 |  | ||||||
| &usb_otg { | &usb_otg { | ||||||
| 	dr_mode = "otg"; | 	dr_mode = "otg"; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
|  |  | ||||||
|  | @ -23,6 +23,6 @@ | ||||||
| 
 | 
 | ||||||
| &uart0 { | &uart0 { | ||||||
| 	pinctrl-names = "default"; | 	pinctrl-names = "default"; | ||||||
| 	pinctrl-0 = <&uart0_pins_a>; | 	pinctrl-0 = <&uart0_pb_pins>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
|  |  | ||||||
|  | @ -23,6 +23,6 @@ | ||||||
| 
 | 
 | ||||||
| &uart0 { | &uart0 { | ||||||
| 	pinctrl-names = "default"; | 	pinctrl-names = "default"; | ||||||
| 	pinctrl-0 = <&uart0_pins_a>; | 	pinctrl-0 = <&uart0_pb_pins>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
|  |  | ||||||
|  | @ -46,7 +46,6 @@ | ||||||
| #include <dt-bindings/gpio/gpio.h> | #include <dt-bindings/gpio/gpio.h> | ||||||
| #include <dt-bindings/input/input.h> | #include <dt-bindings/input/input.h> | ||||||
| #include <dt-bindings/interrupt-controller/irq.h> | #include <dt-bindings/interrupt-controller/irq.h> | ||||||
| #include <dt-bindings/pinctrl/sun4i-a10.h> |  | ||||||
| #include <dt-bindings/pwm/pwm.h> | #include <dt-bindings/pwm/pwm.h> | ||||||
| 
 | 
 | ||||||
| / { | / { | ||||||
|  | @ -59,8 +58,6 @@ | ||||||
| 
 | 
 | ||||||
| 	backlight: backlight { | 	backlight: backlight { | ||||||
| 		compatible = "pwm-backlight"; | 		compatible = "pwm-backlight"; | ||||||
| 		pinctrl-names = "default"; |  | ||||||
| 		pinctrl-0 = <&bl_en_pin_inet>; |  | ||||||
| 		pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>; | 		pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>; | ||||||
| 		brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>; | 		brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>; | ||||||
| 		default-brightness-level = <8>; | 		default-brightness-level = <8>; | ||||||
|  | @ -89,8 +86,6 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &i2c0 { | &i2c0 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&i2c0_pins_a>; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| 
 | 
 | ||||||
| 	axp209: pmic@34 { | 	axp209: pmic@34 { | ||||||
|  | @ -102,8 +97,6 @@ | ||||||
| #include "axp209.dtsi" | #include "axp209.dtsi" | ||||||
| 
 | 
 | ||||||
| &i2c1 { | &i2c1 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&i2c1_pins_a>; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| 
 | 
 | ||||||
| 	/* Accelerometer */ | 	/* Accelerometer */ | ||||||
|  | @ -116,8 +109,6 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &i2c2 { | &i2c2 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&i2c2_pins_a>; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| 
 | 
 | ||||||
| 	ft5x: touchscreen@38 { | 	ft5x: touchscreen@38 { | ||||||
|  | @ -125,8 +116,6 @@ | ||||||
| 		reg = <0x38>; | 		reg = <0x38>; | ||||||
| 		interrupt-parent = <&pio>; | 		interrupt-parent = <&pio>; | ||||||
| 		interrupts = <7 21 IRQ_TYPE_EDGE_FALLING>; | 		interrupts = <7 21 IRQ_TYPE_EDGE_FALLING>; | ||||||
| 		pinctrl-names = "default"; |  | ||||||
| 		pinctrl-0 = <&touchscreen_wake_pin>; |  | ||||||
| 		wake-gpios = <&pio 1 13 GPIO_ACTIVE_HIGH>; /* PB13 */ | 		wake-gpios = <&pio 1 13 GPIO_ACTIVE_HIGH>; /* PB13 */ | ||||||
| 		touchscreen-size-x = <600>; | 		touchscreen-size-x = <600>; | ||||||
| 		touchscreen-size-y = <1024>; | 		touchscreen-size-y = <1024>; | ||||||
|  | @ -138,21 +127,21 @@ | ||||||
| 	vref-supply = <®_ldo2>; | 	vref-supply = <®_ldo2>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| 
 | 
 | ||||||
| 	button@200 { | 	button-200 { | ||||||
| 		label = "Volume Up"; | 		label = "Volume Up"; | ||||||
| 		linux,code = <KEY_VOLUMEUP>; | 		linux,code = <KEY_VOLUMEUP>; | ||||||
| 		channel = <0>; | 		channel = <0>; | ||||||
| 		voltage = <200000>; | 		voltage = <200000>; | ||||||
| 	}; | 	}; | ||||||
| 
 | 
 | ||||||
| 	button@1000 { | 	button-1000 { | ||||||
| 		label = "Volume Down"; | 		label = "Volume Down"; | ||||||
| 		linux,code = <KEY_VOLUMEDOWN>; | 		linux,code = <KEY_VOLUMEDOWN>; | ||||||
| 		channel = <0>; | 		channel = <0>; | ||||||
| 		voltage = <1000000>; | 		voltage = <1000000>; | ||||||
| 	}; | 	}; | ||||||
| 
 | 
 | ||||||
| 	button@1200 { | 	button-1200 { | ||||||
| 		label = "Home"; | 		label = "Home"; | ||||||
| 		linux,code = <KEY_HOMEPAGE>; | 		linux,code = <KEY_HOMEPAGE>; | ||||||
| 		channel = <0>; | 		channel = <0>; | ||||||
|  | @ -161,12 +150,9 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &mmc0 { | &mmc0 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; |  | ||||||
| 	vmmc-supply = <®_vcc3v3>; | 	vmmc-supply = <®_vcc3v3>; | ||||||
| 	bus-width = <4>; | 	bus-width = <4>; | ||||||
| 	cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */ | 	cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */ | ||||||
| 	cd-inverted; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | @ -179,38 +165,22 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &pio { | &pio { | ||||||
| 	bl_en_pin_inet: bl_en_pin@0 { | 	usb0_id_detect_pin: usb0-id-detect-pin { | ||||||
| 		allwinner,pins = "PH7"; | 		pins = "PH4"; | ||||||
| 		allwinner,function = "gpio_out"; | 		function = "gpio_in"; | ||||||
| 		allwinner,drive = <SUN4I_PINCTRL_10_MA>; | 		bias-pull-up; | ||||||
| 		allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |  | ||||||
| 	}; | 	}; | ||||||
| 
 | 
 | ||||||
| 	touchscreen_wake_pin: touchscreen_wake_pin@0 { | 	usb0_vbus_detect_pin: usb0-vbus-detect-pin { | ||||||
| 		allwinner,pins = "PB13"; | 		pins = "PH5"; | ||||||
| 		allwinner,function = "gpio_out"; | 		function = "gpio_in"; | ||||||
| 		allwinner,drive = <SUN4I_PINCTRL_10_MA>; | 		bias-pull-down; | ||||||
| 		allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |  | ||||||
| 	}; |  | ||||||
| 
 |  | ||||||
| 	usb0_id_detect_pin: usb0_id_detect_pin@0 { |  | ||||||
| 		allwinner,pins = "PH4"; |  | ||||||
| 		allwinner,function = "gpio_in"; |  | ||||||
| 		allwinner,drive = <SUN4I_PINCTRL_10_MA>; |  | ||||||
| 		allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; |  | ||||||
| 	}; |  | ||||||
| 
 |  | ||||||
| 	usb0_vbus_detect_pin: usb0_vbus_detect_pin@0 { |  | ||||||
| 		allwinner,pins = "PH5"; |  | ||||||
| 		allwinner,function = "gpio_in"; |  | ||||||
| 		allwinner,drive = <SUN4I_PINCTRL_10_MA>; |  | ||||||
| 		allwinner,pull = <SUN4I_PINCTRL_PULL_DOWN>; |  | ||||||
| 	}; | 	}; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &pwm { | &pwm { | ||||||
| 	pinctrl-names = "default"; | 	pinctrl-names = "default"; | ||||||
| 	pinctrl-0 = <&pwm0_pins_a>; | 	pinctrl-0 = <&pwm0_pin>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | @ -253,7 +223,7 @@ | ||||||
| 
 | 
 | ||||||
| &uart0 { | &uart0 { | ||||||
| 	pinctrl-names = "default"; | 	pinctrl-names = "default"; | ||||||
| 	pinctrl-0 = <&uart0_pins_a>; | 	pinctrl-0 = <&uart0_pb_pins>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -72,8 +72,6 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &i2c0 { | &i2c0 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&i2c0_pins_a>; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| 
 | 
 | ||||||
| 	axp209: pmic@34 { | 	axp209: pmic@34 { | ||||||
|  | @ -85,14 +83,10 @@ | ||||||
| #include "axp209.dtsi" | #include "axp209.dtsi" | ||||||
| 
 | 
 | ||||||
| &i2c1 { | &i2c1 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&i2c1_pins_a>; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &i2c2 { | &i2c2 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&i2c2_pins_a>; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| 
 | 
 | ||||||
| 	ft5406ee8: touchscreen@38 { | 	ft5406ee8: touchscreen@38 { | ||||||
|  | @ -109,35 +103,35 @@ | ||||||
| 	vref-supply = <®_ldo2>; | 	vref-supply = <®_ldo2>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| 
 | 
 | ||||||
| 	button@200 { | 	button-200 { | ||||||
| 		label = "Menu"; | 		label = "Menu"; | ||||||
| 		linux,code = <KEY_MENU>; | 		linux,code = <KEY_MENU>; | ||||||
| 		channel = <0>; | 		channel = <0>; | ||||||
| 		voltage = <200000>; | 		voltage = <200000>; | ||||||
| 	}; | 	}; | ||||||
| 
 | 
 | ||||||
| 	button@600 { | 	button-600 { | ||||||
| 		label = "Volume Up"; | 		label = "Volume Up"; | ||||||
| 		linux,code = <KEY_VOLUMEUP>; | 		linux,code = <KEY_VOLUMEUP>; | ||||||
| 		channel = <0>; | 		channel = <0>; | ||||||
| 		voltage = <600000>; | 		voltage = <600000>; | ||||||
| 	}; | 	}; | ||||||
| 
 | 
 | ||||||
| 	button@800 { | 	button-800 { | ||||||
| 		label = "Volume Down"; | 		label = "Volume Down"; | ||||||
| 		linux,code = <KEY_VOLUMEDOWN>; | 		linux,code = <KEY_VOLUMEDOWN>; | ||||||
| 		channel = <0>; | 		channel = <0>; | ||||||
| 		voltage = <800000>; | 		voltage = <800000>; | ||||||
| 	}; | 	}; | ||||||
| 
 | 
 | ||||||
| 	button@1000 { | 	button-1000 { | ||||||
| 		label = "Home"; | 		label = "Home"; | ||||||
| 		linux,code = <KEY_HOMEPAGE>; | 		linux,code = <KEY_HOMEPAGE>; | ||||||
| 		channel = <0>; | 		channel = <0>; | ||||||
| 		voltage = <1000000>; | 		voltage = <1000000>; | ||||||
| 	}; | 	}; | ||||||
| 
 | 
 | ||||||
| 	button@1200 { | 	button-1200 { | ||||||
| 		label = "Esc"; | 		label = "Esc"; | ||||||
| 		linux,code = <KEY_ESC>; | 		linux,code = <KEY_ESC>; | ||||||
| 		channel = <0>; | 		channel = <0>; | ||||||
|  | @ -146,12 +140,9 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &mmc0 { | &mmc0 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; |  | ||||||
| 	vmmc-supply = <®_vcc3v3>; | 	vmmc-supply = <®_vcc3v3>; | ||||||
| 	bus-width = <4>; | 	bus-width = <4>; | ||||||
| 	cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */ | 	cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */ | ||||||
| 	cd-inverted; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | @ -160,18 +151,16 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &pio { | &pio { | ||||||
| 	usb0_id_detect_pin: usb0_id_detect_pin@0 { | 	usb0_id_detect_pin: usb0-id-detect-pin { | ||||||
| 		allwinner,pins = "PH4"; | 		pins = "PH4"; | ||||||
| 		allwinner,function = "gpio_in"; | 		function = "gpio_in"; | ||||||
| 		allwinner,drive = <SUN4I_PINCTRL_10_MA>; | 		bias-pull-up; | ||||||
| 		allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; |  | ||||||
| 	}; | 	}; | ||||||
| 
 | 
 | ||||||
| 	usb0_vbus_detect_pin: usb0_vbus_detect_pin@0 { | 	usb0_vbus_detect_pin: usb0-vbus-detect-pin { | ||||||
| 		allwinner,pins = "PH5"; | 		pins = "PH5"; | ||||||
| 		allwinner,function = "gpio_in"; | 		function = "gpio_in"; | ||||||
| 		allwinner,drive = <SUN4I_PINCTRL_10_MA>; | 		bias-pull-down; | ||||||
| 		allwinner,pull = <SUN4I_PINCTRL_PULL_DOWN>; |  | ||||||
| 	}; | 	}; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | @ -210,7 +199,7 @@ | ||||||
| 
 | 
 | ||||||
| &uart0 { | &uart0 { | ||||||
| 	pinctrl-names = "default"; | 	pinctrl-names = "default"; | ||||||
| 	pinctrl-0 = <&uart0_pins_a>; | 	pinctrl-0 = <&uart0_pb_pins>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -46,7 +46,6 @@ | ||||||
| #include <dt-bindings/gpio/gpio.h> | #include <dt-bindings/gpio/gpio.h> | ||||||
| #include <dt-bindings/input/input.h> | #include <dt-bindings/input/input.h> | ||||||
| #include <dt-bindings/interrupt-controller/irq.h> | #include <dt-bindings/interrupt-controller/irq.h> | ||||||
| #include <dt-bindings/pinctrl/sun4i-a10.h> |  | ||||||
| 
 | 
 | ||||||
| / { | / { | ||||||
| 	model = "iNet-9F Rev 03"; | 	model = "iNet-9F Rev 03"; | ||||||
|  | @ -60,7 +59,7 @@ | ||||||
| 		stdout-path = "serial0:115200n8"; | 		stdout-path = "serial0:115200n8"; | ||||||
| 	}; | 	}; | ||||||
| 
 | 
 | ||||||
| 	gpio_keys { | 	gpio-keys { | ||||||
| 		compatible = "gpio-keys-polled"; | 		compatible = "gpio-keys-polled"; | ||||||
| 		pinctrl-names = "default"; | 		pinctrl-names = "default"; | ||||||
| 		pinctrl-0 = <&key_pins_inet9f>; | 		pinctrl-0 = <&key_pins_inet9f>; | ||||||
|  | @ -68,7 +67,7 @@ | ||||||
| 		#size-cells = <0>; | 		#size-cells = <0>; | ||||||
| 		poll-interval = <20>; | 		poll-interval = <20>; | ||||||
| 
 | 
 | ||||||
| 		button@0 { | 		left-joystick-left { | ||||||
| 			label = "Left Joystick Left"; | 			label = "Left Joystick Left"; | ||||||
| 			linux,code = <ABS_X>; | 			linux,code = <ABS_X>; | ||||||
| 			linux,input-type = <EV_ABS>; | 			linux,input-type = <EV_ABS>; | ||||||
|  | @ -76,7 +75,7 @@ | ||||||
| 			gpios = <&pio 0 6 GPIO_ACTIVE_LOW>; /* PA6 */ | 			gpios = <&pio 0 6 GPIO_ACTIVE_LOW>; /* PA6 */ | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		button@1 { | 		left-joystick-right { | ||||||
| 			label = "Left Joystick Right"; | 			label = "Left Joystick Right"; | ||||||
| 			linux,code = <ABS_X>; | 			linux,code = <ABS_X>; | ||||||
| 			linux,input-type = <EV_ABS>; | 			linux,input-type = <EV_ABS>; | ||||||
|  | @ -84,7 +83,7 @@ | ||||||
| 			gpios = <&pio 0 5 GPIO_ACTIVE_LOW>; /* PA5 */ | 			gpios = <&pio 0 5 GPIO_ACTIVE_LOW>; /* PA5 */ | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		button@2 { | 		left-joystick-up { | ||||||
| 			label = "Left Joystick Up"; | 			label = "Left Joystick Up"; | ||||||
| 			linux,code = <ABS_Y>; | 			linux,code = <ABS_Y>; | ||||||
| 			linux,input-type = <EV_ABS>; | 			linux,input-type = <EV_ABS>; | ||||||
|  | @ -92,7 +91,7 @@ | ||||||
| 			gpios = <&pio 0 8 GPIO_ACTIVE_LOW>; /* PA8 */ | 			gpios = <&pio 0 8 GPIO_ACTIVE_LOW>; /* PA8 */ | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		button@3 { | 		left-joystick-down { | ||||||
| 			label = "Left Joystick Down"; | 			label = "Left Joystick Down"; | ||||||
| 			linux,code = <ABS_Y>; | 			linux,code = <ABS_Y>; | ||||||
| 			linux,input-type = <EV_ABS>; | 			linux,input-type = <EV_ABS>; | ||||||
|  | @ -100,7 +99,7 @@ | ||||||
| 			gpios = <&pio 0 9 GPIO_ACTIVE_LOW>; /* PA9 */ | 			gpios = <&pio 0 9 GPIO_ACTIVE_LOW>; /* PA9 */ | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		button@4 { | 		right-joystick-left { | ||||||
| 			label = "Right Joystick Left"; | 			label = "Right Joystick Left"; | ||||||
| 			linux,code = <ABS_Z>; | 			linux,code = <ABS_Z>; | ||||||
| 			linux,input-type = <EV_ABS>; | 			linux,input-type = <EV_ABS>; | ||||||
|  | @ -108,7 +107,7 @@ | ||||||
| 			gpios = <&pio 0 1 GPIO_ACTIVE_LOW>; /* PA1 */ | 			gpios = <&pio 0 1 GPIO_ACTIVE_LOW>; /* PA1 */ | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		button@5 { | 		right-joystick-right { | ||||||
| 			label = "Right Joystick Right"; | 			label = "Right Joystick Right"; | ||||||
| 			linux,code = <ABS_Z>; | 			linux,code = <ABS_Z>; | ||||||
| 			linux,input-type = <EV_ABS>; | 			linux,input-type = <EV_ABS>; | ||||||
|  | @ -116,7 +115,7 @@ | ||||||
| 			gpios = <&pio 0 0 GPIO_ACTIVE_LOW>; /* PA0 */ | 			gpios = <&pio 0 0 GPIO_ACTIVE_LOW>; /* PA0 */ | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		button@6 { | 		right-joystick-up { | ||||||
| 			label = "Right Joystick Up"; | 			label = "Right Joystick Up"; | ||||||
| 			linux,code = <ABS_RZ>; | 			linux,code = <ABS_RZ>; | ||||||
| 			linux,input-type = <EV_ABS>; | 			linux,input-type = <EV_ABS>; | ||||||
|  | @ -124,7 +123,7 @@ | ||||||
| 			gpios = <&pio 0 3 GPIO_ACTIVE_LOW>; /* PA3 */ | 			gpios = <&pio 0 3 GPIO_ACTIVE_LOW>; /* PA3 */ | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		button@7 { | 		right-joystick-down { | ||||||
| 			label = "Right Joystick Down"; | 			label = "Right Joystick Down"; | ||||||
| 			linux,code = <ABS_RZ>; | 			linux,code = <ABS_RZ>; | ||||||
| 			linux,input-type = <EV_ABS>; | 			linux,input-type = <EV_ABS>; | ||||||
|  | @ -132,7 +131,7 @@ | ||||||
| 			gpios = <&pio 0 4 GPIO_ACTIVE_LOW>; /* PA4 */ | 			gpios = <&pio 0 4 GPIO_ACTIVE_LOW>; /* PA4 */ | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		button@8 { | 		dpad-left { | ||||||
| 			label = "DPad Left"; | 			label = "DPad Left"; | ||||||
| 			linux,code = <ABS_HAT0X>; | 			linux,code = <ABS_HAT0X>; | ||||||
| 			linux,input-type = <EV_ABS>; | 			linux,input-type = <EV_ABS>; | ||||||
|  | @ -140,7 +139,7 @@ | ||||||
| 			gpios = <&pio 7 23 GPIO_ACTIVE_LOW>; /* PH23 */ | 			gpios = <&pio 7 23 GPIO_ACTIVE_LOW>; /* PH23 */ | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		button@9 { | 		dpad-right { | ||||||
| 			label = "DPad Right"; | 			label = "DPad Right"; | ||||||
| 			linux,code = <ABS_HAT0X>; | 			linux,code = <ABS_HAT0X>; | ||||||
| 			linux,input-type = <EV_ABS>; | 			linux,input-type = <EV_ABS>; | ||||||
|  | @ -148,7 +147,7 @@ | ||||||
| 			gpios = <&pio 7 24 GPIO_ACTIVE_LOW>; /* PH24 */ | 			gpios = <&pio 7 24 GPIO_ACTIVE_LOW>; /* PH24 */ | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		button@10 { | 		dpad-up { | ||||||
| 			label = "DPad Up"; | 			label = "DPad Up"; | ||||||
| 			linux,code = <ABS_HAT0Y>; | 			linux,code = <ABS_HAT0Y>; | ||||||
| 			linux,input-type = <EV_ABS>; | 			linux,input-type = <EV_ABS>; | ||||||
|  | @ -156,7 +155,7 @@ | ||||||
| 			gpios = <&pio 7 25 GPIO_ACTIVE_LOW>; /* PH25 */ | 			gpios = <&pio 7 25 GPIO_ACTIVE_LOW>; /* PH25 */ | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		button@11 { | 		dpad-down { | ||||||
| 			label = "DPad Down"; | 			label = "DPad Down"; | ||||||
| 			linux,code = <ABS_HAT0Y>; | 			linux,code = <ABS_HAT0Y>; | ||||||
| 			linux,input-type = <EV_ABS>; | 			linux,input-type = <EV_ABS>; | ||||||
|  | @ -164,49 +163,49 @@ | ||||||
| 			gpios = <&pio 7 26 GPIO_ACTIVE_LOW>; /* PH26 */ | 			gpios = <&pio 7 26 GPIO_ACTIVE_LOW>; /* PH26 */ | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		button@12 { | 		x { | ||||||
| 			label = "Button X"; | 			label = "Button X"; | ||||||
| 			linux,code = <BTN_X>; | 			linux,code = <BTN_X>; | ||||||
| 			gpios = <&pio 0 16 GPIO_ACTIVE_LOW>; /* PA16 */ | 			gpios = <&pio 0 16 GPIO_ACTIVE_LOW>; /* PA16 */ | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		button@13 { | 		y { | ||||||
| 			label = "Button Y"; | 			label = "Button Y"; | ||||||
| 			linux,code = <BTN_Y>; | 			linux,code = <BTN_Y>; | ||||||
| 			gpios = <&pio 0 14 GPIO_ACTIVE_LOW>; /* PA14 */ | 			gpios = <&pio 0 14 GPIO_ACTIVE_LOW>; /* PA14 */ | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		button@14 { | 		a { | ||||||
| 			label = "Button A"; | 			label = "Button A"; | ||||||
| 			linux,code = <BTN_A>; | 			linux,code = <BTN_A>; | ||||||
| 			gpios = <&pio 0 17 GPIO_ACTIVE_LOW>; /* PA17 */ | 			gpios = <&pio 0 17 GPIO_ACTIVE_LOW>; /* PA17 */ | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		button@15 { | 		b { | ||||||
| 			label = "Button B"; | 			label = "Button B"; | ||||||
| 			linux,code = <BTN_B>; | 			linux,code = <BTN_B>; | ||||||
| 			gpios = <&pio 0 15 GPIO_ACTIVE_LOW>; /* PA15 */ | 			gpios = <&pio 0 15 GPIO_ACTIVE_LOW>; /* PA15 */ | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		button@16 { | 		select { | ||||||
| 			label = "Select Button"; | 			label = "Select Button"; | ||||||
| 			linux,code = <BTN_SELECT>; | 			linux,code = <BTN_SELECT>; | ||||||
| 			gpios = <&pio 0 11 GPIO_ACTIVE_LOW>; /* PA11 */ | 			gpios = <&pio 0 11 GPIO_ACTIVE_LOW>; /* PA11 */ | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		button@17 { | 		start { | ||||||
| 			label = "Start Button"; | 			label = "Start Button"; | ||||||
| 			linux,code = <BTN_START>; | 			linux,code = <BTN_START>; | ||||||
| 			gpios = <&pio 0 12 GPIO_ACTIVE_LOW>; /* PA12 */ | 			gpios = <&pio 0 12 GPIO_ACTIVE_LOW>; /* PA12 */ | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		button@18 { | 		top-left { | ||||||
| 			label = "Top Left Button"; | 			label = "Top Left Button"; | ||||||
| 			linux,code = <BTN_TL>; | 			linux,code = <BTN_TL>; | ||||||
| 			gpios = <&pio 7 22 GPIO_ACTIVE_LOW>; /* PH22 */ | 			gpios = <&pio 7 22 GPIO_ACTIVE_LOW>; /* PH22 */ | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		button@19 { | 		top-right { | ||||||
| 			label = "Top Right Button"; | 			label = "Top Right Button"; | ||||||
| 			linux,code = <BTN_TR>; | 			linux,code = <BTN_TR>; | ||||||
| 			gpios = <&pio 0 13 GPIO_ACTIVE_LOW>; /* PA13 */ | 			gpios = <&pio 0 13 GPIO_ACTIVE_LOW>; /* PA13 */ | ||||||
|  | @ -223,8 +222,6 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &i2c0 { | &i2c0 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&i2c0_pins_a>; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| 
 | 
 | ||||||
| 	axp209: pmic@34 { | 	axp209: pmic@34 { | ||||||
|  | @ -236,8 +233,6 @@ | ||||||
| #include "axp209.dtsi" | #include "axp209.dtsi" | ||||||
| 
 | 
 | ||||||
| &i2c1 { | &i2c1 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&i2c1_pins_a>; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| 
 | 
 | ||||||
| 	/* Accelerometer */ | 	/* Accelerometer */ | ||||||
|  | @ -250,8 +245,6 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &i2c2 { | &i2c2 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&i2c2_pins_a>; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| 
 | 
 | ||||||
| 	ft5406ee8: touchscreen@38 { | 	ft5406ee8: touchscreen@38 { | ||||||
|  | @ -268,35 +261,35 @@ | ||||||
| 	vref-supply = <®_ldo2>; | 	vref-supply = <®_ldo2>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| 
 | 
 | ||||||
| 	button@200 { | 	button-200 { | ||||||
| 		label = "Menu"; | 		label = "Menu"; | ||||||
| 		linux,code = <KEY_MENU>; | 		linux,code = <KEY_MENU>; | ||||||
| 		channel = <0>; | 		channel = <0>; | ||||||
| 		voltage = <200000>; | 		voltage = <200000>; | ||||||
| 	}; | 	}; | ||||||
| 
 | 
 | ||||||
| 	button@600 { | 	button-600 { | ||||||
| 		label = "Volume Up"; | 		label = "Volume Up"; | ||||||
| 		linux,code = <KEY_VOLUMEUP>; | 		linux,code = <KEY_VOLUMEUP>; | ||||||
| 		channel = <0>; | 		channel = <0>; | ||||||
| 		voltage = <600000>; | 		voltage = <600000>; | ||||||
| 	}; | 	}; | ||||||
| 
 | 
 | ||||||
| 	button@800 { | 	button-800 { | ||||||
| 		label = "Volume Down"; | 		label = "Volume Down"; | ||||||
| 		linux,code = <KEY_VOLUMEDOWN>; | 		linux,code = <KEY_VOLUMEDOWN>; | ||||||
| 		channel = <0>; | 		channel = <0>; | ||||||
| 		voltage = <800000>; | 		voltage = <800000>; | ||||||
| 	}; | 	}; | ||||||
| 
 | 
 | ||||||
| 	button@1000 { | 	button-1000 { | ||||||
| 		label = "Home"; | 		label = "Home"; | ||||||
| 		linux,code = <KEY_HOMEPAGE>; | 		linux,code = <KEY_HOMEPAGE>; | ||||||
| 		channel = <0>; | 		channel = <0>; | ||||||
| 		voltage = <1000000>; | 		voltage = <1000000>; | ||||||
| 	}; | 	}; | ||||||
| 
 | 
 | ||||||
| 	button@1200 { | 	button-1200 { | ||||||
| 		label = "Esc"; | 		label = "Esc"; | ||||||
| 		linux,code = <KEY_ESC>; | 		linux,code = <KEY_ESC>; | ||||||
| 		channel = <0>; | 		channel = <0>; | ||||||
|  | @ -305,12 +298,9 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &mmc0 { | &mmc0 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; |  | ||||||
| 	vmmc-supply = <®_vcc3v3>; | 	vmmc-supply = <®_vcc3v3>; | ||||||
| 	bus-width = <4>; | 	bus-width = <4>; | ||||||
| 	cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */ | 	cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */ | ||||||
| 	cd-inverted; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | @ -319,29 +309,26 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &pio { | &pio { | ||||||
| 	key_pins_inet9f: key_pins@0 { | 	key_pins_inet9f: key-pins { | ||||||
| 		allwinner,pins = "PA0", "PA1", "PA3", "PA4", | 		pins = "PA0", "PA1", "PA3", "PA4", | ||||||
| 		       "PA5", "PA6", "PA8", "PA9", | 		       "PA5", "PA6", "PA8", "PA9", | ||||||
| 		       "PA11", "PA12", "PA13", | 		       "PA11", "PA12", "PA13", | ||||||
| 		       "PA14", "PA15", "PA16", "PA17", | 		       "PA14", "PA15", "PA16", "PA17", | ||||||
| 		       "PH22", "PH23", "PH24", "PH25", "PH26"; | 		       "PH22", "PH23", "PH24", "PH25", "PH26"; | ||||||
| 		allwinner,function = "gpio_in"; | 		function = "gpio_in"; | ||||||
| 		allwinner,drive = <SUN4I_PINCTRL_10_MA>; | 		bias-pull-up; | ||||||
| 		allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; |  | ||||||
| 	}; | 	}; | ||||||
| 
 | 
 | ||||||
| 	usb0_id_detect_pin: usb0_id_detect_pin@0 { | 	usb0_id_detect_pin: usb0-id-detect-pin { | ||||||
| 		allwinner,pins = "PH4"; | 		pins = "PH4"; | ||||||
| 		allwinner,function = "gpio_in"; | 		function = "gpio_in"; | ||||||
| 		allwinner,drive = <SUN4I_PINCTRL_10_MA>; | 		bias-pull-up; | ||||||
| 		allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; |  | ||||||
| 	}; | 	}; | ||||||
| 
 | 
 | ||||||
| 	usb0_vbus_detect_pin: usb0_vbus_detect_pin@0 { | 	usb0_vbus_detect_pin: usb0-vbus-detect-pin { | ||||||
| 		allwinner,pins = "PH5"; | 		pins = "PH5"; | ||||||
| 		allwinner,function = "gpio_in"; | 		function = "gpio_in"; | ||||||
| 		allwinner,drive = <SUN4I_PINCTRL_10_MA>; | 		bias-pull-down; | ||||||
| 		allwinner,pull = <SUN4I_PINCTRL_PULL_DOWN>; |  | ||||||
| 	}; | 	}; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | @ -380,7 +367,7 @@ | ||||||
| 
 | 
 | ||||||
| &uart0 { | &uart0 { | ||||||
| 	pinctrl-names = "default"; | 	pinctrl-names = "default"; | ||||||
| 	pinctrl-0 = <&uart0_pins_a>; | 	pinctrl-0 = <&uart0_pb_pins>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -57,7 +57,7 @@ | ||||||
| 
 | 
 | ||||||
| &emac { | &emac { | ||||||
| 	pinctrl-names = "default"; | 	pinctrl-names = "default"; | ||||||
| 	pinctrl-0 = <&emac_pins_a>; | 	pinctrl-0 = <&emac_pins>; | ||||||
| 	phy = <&phy1>; | 	phy = <&phy1>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
|  | @ -67,6 +67,9 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &i2c0 { | &i2c0 { | ||||||
|  | 	pinctrl-names = "default"; | ||||||
|  | 	pinctrl-0 = <&i2c0_pins>; | ||||||
|  | 
 | ||||||
| 	axp209: pmic@34 { | 	axp209: pmic@34 { | ||||||
| 		interrupts = <0>; | 		interrupts = <0>; | ||||||
| 	}; | 	}; | ||||||
|  | @ -74,19 +77,19 @@ | ||||||
| 
 | 
 | ||||||
| &i2c1 { | &i2c1 { | ||||||
| 	pinctrl-names = "default"; | 	pinctrl-names = "default"; | ||||||
| 	pinctrl-0 = <&i2c1_pins_a>; | 	pinctrl-0 = <&i2c1_pins>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &i2c2 { | &i2c2 { | ||||||
| 	pinctrl-names = "default"; | 	pinctrl-names = "default"; | ||||||
| 	pinctrl-0 = <&i2c2_pins_a>; | 	pinctrl-0 = <&i2c2_pins>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &ir0 { | &ir0 { | ||||||
| 	pinctrl-names = "default"; | 	pinctrl-names = "default"; | ||||||
| 	pinctrl-0 = <&ir0_rx_pins_a>; | 	pinctrl-0 = <&ir0_rx_pins>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | @ -100,11 +103,10 @@ | ||||||
| 
 | 
 | ||||||
| &mmc0 { | &mmc0 { | ||||||
| 	pinctrl-names = "default"; | 	pinctrl-names = "default"; | ||||||
| 	pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; | 	pinctrl-0 = <&mmc0_pins>; | ||||||
| 	vmmc-supply = <®_vcc3v3>; | 	vmmc-supply = <®_vcc3v3>; | ||||||
| 	bus-width = <4>; | 	bus-width = <4>; | ||||||
| 	cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */ | 	cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */ | ||||||
| 	cd-inverted; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | @ -114,7 +116,11 @@ | ||||||
| 
 | 
 | ||||||
| &spi0 { | &spi0 { | ||||||
| 	pinctrl-names = "default"; | 	pinctrl-names = "default"; | ||||||
| 	pinctrl-0 = <&spi0_pins_a>, | 	pinctrl-0 = <&spi0_pi_pins>, | ||||||
| 		    <&spi0_cs0_pins_a>; | 		    <&spi0_cs0_pi_pin>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
|  | 
 | ||||||
|  | &uart0 { | ||||||
|  | 	pinctrl-0 = <&uart0_pb_pins>; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | @ -47,7 +47,6 @@ | ||||||
| #include "sunxi-common-regulators.dtsi" | #include "sunxi-common-regulators.dtsi" | ||||||
| 
 | 
 | ||||||
| #include <dt-bindings/gpio/gpio.h> | #include <dt-bindings/gpio/gpio.h> | ||||||
| #include <dt-bindings/pinctrl/sun4i-a10.h> |  | ||||||
| 
 | 
 | ||||||
| / { | / { | ||||||
| 	model = "Jesurun Q5"; | 	model = "Jesurun Q5"; | ||||||
|  | @ -63,8 +62,6 @@ | ||||||
| 
 | 
 | ||||||
| 	leds { | 	leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 		pinctrl-names = "default"; |  | ||||||
| 		pinctrl-0 = <&led_pins_q5>; |  | ||||||
| 
 | 
 | ||||||
| 		green { | 		green { | ||||||
| 			label = "q5:green:usr"; | 			label = "q5:green:usr"; | ||||||
|  | @ -75,8 +72,6 @@ | ||||||
| 
 | 
 | ||||||
| 	reg_emac_3v3: emac-3v3 { | 	reg_emac_3v3: emac-3v3 { | ||||||
| 		compatible = "regulator-fixed"; | 		compatible = "regulator-fixed"; | ||||||
| 		pinctrl-names = "default"; |  | ||||||
| 		pinctrl-0 = <&emac_power_pin_q5>; |  | ||||||
| 		regulator-name = "emac-3v3"; | 		regulator-name = "emac-3v3"; | ||||||
| 		regulator-min-microvolt = <3300000>; | 		regulator-min-microvolt = <3300000>; | ||||||
| 		regulator-max-microvolt = <3300000>; | 		regulator-max-microvolt = <3300000>; | ||||||
|  | @ -99,8 +94,6 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &emac { | &emac { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&emac_pins_a>; |  | ||||||
| 	phy = <&phy1>; | 	phy = <&phy1>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
|  | @ -110,8 +103,6 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &i2c0 { | &i2c0 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&i2c0_pins_a>; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| 
 | 
 | ||||||
| 	axp209: pmic@34 { | 	axp209: pmic@34 { | ||||||
|  | @ -126,7 +117,7 @@ | ||||||
| 
 | 
 | ||||||
| &ir0 { | &ir0 { | ||||||
| 	pinctrl-names = "default"; | 	pinctrl-names = "default"; | ||||||
| 	pinctrl-0 = <&ir0_rx_pins_a>; | 	pinctrl-0 = <&ir0_rx_pins>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | @ -140,12 +131,9 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &mmc0 { | &mmc0 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; |  | ||||||
| 	vmmc-supply = <®_vcc3v3>; | 	vmmc-supply = <®_vcc3v3>; | ||||||
| 	bus-width = <4>; | 	bus-width = <4>; | ||||||
| 	cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */ | 	cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */ | ||||||
| 	cd-inverted; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | @ -161,22 +149,6 @@ | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &pio { |  | ||||||
| 	emac_power_pin_q5: emac_power_pin@0 { |  | ||||||
| 		allwinner,pins = "PH19"; |  | ||||||
| 		allwinner,function = "gpio_out"; |  | ||||||
| 		allwinner,drive = <SUN4I_PINCTRL_10_MA>; |  | ||||||
| 		allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |  | ||||||
| 	}; |  | ||||||
| 
 |  | ||||||
| 	led_pins_q5: led_pins@0 { |  | ||||||
| 		allwinner,pins = "PH20"; |  | ||||||
| 		allwinner,function = "gpio_out"; |  | ||||||
| 		allwinner,drive = <SUN4I_PINCTRL_10_MA>; |  | ||||||
| 		allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |  | ||||||
| 	}; |  | ||||||
| }; |  | ||||||
| 
 |  | ||||||
| ®_usb0_vbus { | ®_usb0_vbus { | ||||||
| 	regulator-boot-on; | 	regulator-boot-on; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
|  | @ -192,7 +164,7 @@ | ||||||
| 
 | 
 | ||||||
| &uart0 { | &uart0 { | ||||||
| 	pinctrl-names = "default"; | 	pinctrl-names = "default"; | ||||||
| 	pinctrl-0 = <&uart0_pins_a>; | 	pinctrl-0 = <&uart0_pb_pins>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -46,7 +46,6 @@ | ||||||
| #include "sunxi-common-regulators.dtsi" | #include "sunxi-common-regulators.dtsi" | ||||||
| 
 | 
 | ||||||
| #include <dt-bindings/gpio/gpio.h> | #include <dt-bindings/gpio/gpio.h> | ||||||
| #include <dt-bindings/pinctrl/sun4i-a10.h> |  | ||||||
| 
 | 
 | ||||||
| / { | / { | ||||||
| 	model = "HAOYU Electronics Marsboard A10"; | 	model = "HAOYU Electronics Marsboard A10"; | ||||||
|  | @ -62,8 +61,6 @@ | ||||||
| 
 | 
 | ||||||
| 	leds { | 	leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 		pinctrl-names = "default"; |  | ||||||
| 		pinctrl-0 = <&led_pins_marsboard>; |  | ||||||
| 
 | 
 | ||||||
| 		red1 { | 		red1 { | ||||||
| 			label = "marsboard:red1:usr"; | 			label = "marsboard:red1:usr"; | ||||||
|  | @ -108,27 +105,19 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &emac { | &emac { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&emac_pins_a>; |  | ||||||
| 	phy = <&phy1>; | 	phy = <&phy1>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &i2c0 { | &i2c0 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&i2c0_pins_a>; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &i2c1 { | &i2c1 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&i2c1_pins_a>; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &i2c2 { | &i2c2 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&i2c2_pins_a>; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | @ -141,12 +130,9 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &mmc0 { | &mmc0 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; |  | ||||||
| 	vmmc-supply = <®_vcc3v3>; | 	vmmc-supply = <®_vcc3v3>; | ||||||
| 	bus-width = <4>; | 	bus-width = <4>; | ||||||
| 	cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */ | 	cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */ | ||||||
| 	cd-inverted; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | @ -163,18 +149,10 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &pio { | &pio { | ||||||
| 	led_pins_marsboard: led_pins@0 { | 	usb0_id_detect_pin: usb0-id-detect-pin { | ||||||
| 		allwinner,pins = "PB5", "PB6", "PB7", "PB8"; | 		pins = "PH4"; | ||||||
| 		allwinner,function = "gpio_out"; | 		function = "gpio_in"; | ||||||
| 		allwinner,drive = <SUN4I_PINCTRL_10_MA>; | 		bias-pull-up; | ||||||
| 		allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |  | ||||||
| 	}; |  | ||||||
| 
 |  | ||||||
| 	usb0_id_detect_pin: usb0_id_detect_pin@0 { |  | ||||||
| 		allwinner,pins = "PH4"; |  | ||||||
| 		allwinner,function = "gpio_in"; |  | ||||||
| 		allwinner,drive = <SUN4I_PINCTRL_10_MA>; |  | ||||||
| 		allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; |  | ||||||
| 	}; | 	}; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | @ -188,14 +166,14 @@ | ||||||
| 
 | 
 | ||||||
| &spi0 { | &spi0 { | ||||||
| 	pinctrl-names = "default"; | 	pinctrl-names = "default"; | ||||||
| 	pinctrl-0 = <&spi0_pins_a>, | 	pinctrl-0 = <&spi0_pi_pins>, | ||||||
| 		    <&spi0_cs0_pins_a>; | 		    <&spi0_cs0_pi_pin>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &uart0 { | &uart0 { | ||||||
| 	pinctrl-names = "default"; | 	pinctrl-names = "default"; | ||||||
| 	pinctrl-0 = <&uart0_pins_a>; | 	pinctrl-0 = <&uart0_pb_pins>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -47,7 +47,6 @@ | ||||||
| #include "sunxi-common-regulators.dtsi" | #include "sunxi-common-regulators.dtsi" | ||||||
| 
 | 
 | ||||||
| #include <dt-bindings/gpio/gpio.h> | #include <dt-bindings/gpio/gpio.h> | ||||||
| #include <dt-bindings/pinctrl/sun4i-a10.h> |  | ||||||
| 
 | 
 | ||||||
| / { | / { | ||||||
| 	model = "PineRiver Mini X-Plus"; | 	model = "PineRiver Mini X-Plus"; | ||||||
|  | @ -71,8 +70,6 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &i2c0 { | &i2c0 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&i2c0_pins_a>; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| 
 | 
 | ||||||
| 	axp209: pmic@34 { | 	axp209: pmic@34 { | ||||||
|  | @ -87,22 +84,19 @@ | ||||||
| 
 | 
 | ||||||
| &ir0 { | &ir0 { | ||||||
| 	pinctrl-names = "default"; | 	pinctrl-names = "default"; | ||||||
| 	pinctrl-0 = <&ir0_rx_pins_a>; | 	pinctrl-0 = <&ir0_rx_pins>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &ir0_rx_pins_a { | &ir0_rx_pins { | ||||||
| 	/* The ir receiver is not always populated */ | 	/* The ir receiver is not always populated */ | ||||||
| 	allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; | 	bias-pull-up; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &mmc0 { | &mmc0 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; |  | ||||||
| 	vmmc-supply = <®_vcc3v3>; | 	vmmc-supply = <®_vcc3v3>; | ||||||
| 	bus-width = <4>; | 	bus-width = <4>; | ||||||
| 	cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */ | 	cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */ | ||||||
| 	cd-inverted; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | @ -133,7 +127,7 @@ | ||||||
| 
 | 
 | ||||||
| &uart0 { | &uart0 { | ||||||
| 	pinctrl-names = "default"; | 	pinctrl-names = "default"; | ||||||
| 	pinctrl-0 = <&uart0_pins_a>; | 	pinctrl-0 = <&uart0_pb_pins>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -44,7 +44,6 @@ | ||||||
| #include "sun4i-a10.dtsi" | #include "sun4i-a10.dtsi" | ||||||
| #include "sunxi-common-regulators.dtsi" | #include "sunxi-common-regulators.dtsi" | ||||||
| #include <dt-bindings/gpio/gpio.h> | #include <dt-bindings/gpio/gpio.h> | ||||||
| #include <dt-bindings/pinctrl/sun4i-a10.h> |  | ||||||
| 
 | 
 | ||||||
| / { | / { | ||||||
| 	model = "MK802"; | 	model = "MK802"; | ||||||
|  | @ -57,12 +56,27 @@ | ||||||
| 	chosen { | 	chosen { | ||||||
| 		stdout-path = "serial0:115200n8"; | 		stdout-path = "serial0:115200n8"; | ||||||
| 	}; | 	}; | ||||||
|  | 
 | ||||||
|  | 	hdmi-connector { | ||||||
|  | 		compatible = "hdmi-connector"; | ||||||
|  | 		type = "a"; | ||||||
|  | 
 | ||||||
|  | 		port { | ||||||
|  | 			hdmi_con_in: endpoint { | ||||||
|  | 				remote-endpoint = <&hdmi_out_con>; | ||||||
|  | 			}; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &codec { | &codec { | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | &de { | ||||||
|  | 	status = "okay"; | ||||||
|  | }; | ||||||
|  | 
 | ||||||
| &ehci0 { | &ehci0 { | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
|  | @ -71,13 +85,20 @@ | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | &hdmi { | ||||||
|  | 	status = "okay"; | ||||||
|  | }; | ||||||
|  | 
 | ||||||
|  | &hdmi_out { | ||||||
|  | 	hdmi_out_con: endpoint { | ||||||
|  | 		remote-endpoint = <&hdmi_con_in>; | ||||||
|  | 	}; | ||||||
|  | }; | ||||||
|  | 
 | ||||||
| &mmc0 { | &mmc0 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; |  | ||||||
| 	vmmc-supply = <®_vcc3v3>; | 	vmmc-supply = <®_vcc3v3>; | ||||||
| 	bus-width = <4>; | 	bus-width = <4>; | ||||||
| 	cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */ | 	cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */ | ||||||
| 	cd-inverted; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | @ -89,29 +110,6 @@ | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &pio { |  | ||||||
| 	usb0_id_detect_pin: usb0_id_detect_pin@0 { |  | ||||||
| 		allwinner,pins = "PH4"; |  | ||||||
| 		allwinner,function = "gpio_in"; |  | ||||||
| 		allwinner,drive = <SUN4I_PINCTRL_10_MA>; |  | ||||||
| 		allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |  | ||||||
| 	}; |  | ||||||
| 
 |  | ||||||
| 	usb0_vbus_detect_pin: usb0_vbus_detect_pin@0 { |  | ||||||
| 		allwinner,pins = "PH5"; |  | ||||||
| 		allwinner,function = "gpio_in"; |  | ||||||
| 		allwinner,drive = <SUN4I_PINCTRL_10_MA>; |  | ||||||
| 		allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |  | ||||||
| 	}; |  | ||||||
| 
 |  | ||||||
| 	usb2_vbus_pin_mk802: usb2_vbus_pin@0 { |  | ||||||
| 		allwinner,pins = "PH12"; |  | ||||||
| 		allwinner,function = "gpio_out"; |  | ||||||
| 		allwinner,drive = <SUN4I_PINCTRL_10_MA>; |  | ||||||
| 		allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |  | ||||||
| 	}; |  | ||||||
| }; |  | ||||||
| 
 |  | ||||||
| ®_usb0_vbus { | ®_usb0_vbus { | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
|  | @ -121,14 +119,13 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| ®_usb2_vbus { | ®_usb2_vbus { | ||||||
| 	pinctrl-0 = <&usb2_vbus_pin_mk802>; |  | ||||||
| 	gpio = <&pio 7 12 GPIO_ACTIVE_HIGH>; /* PH12 */ | 	gpio = <&pio 7 12 GPIO_ACTIVE_HIGH>; /* PH12 */ | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &uart0 { | &uart0 { | ||||||
| 	pinctrl-names = "default"; | 	pinctrl-names = "default"; | ||||||
| 	pinctrl-0 = <&uart0_pins_a>; | 	pinctrl-0 = <&uart0_pb_pins>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | @ -138,8 +135,6 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &usbphy { | &usbphy { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&usb0_id_detect_pin>, <&usb0_vbus_detect_pin>; |  | ||||||
| 	usb0_id_det-gpios = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */ | 	usb0_id_det-gpios = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */ | ||||||
| 	usb0_vbus_det-gpios = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */ | 	usb0_vbus_det-gpios = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */ | ||||||
| 	usb0_vbus-supply = <®_usb0_vbus>; | 	usb0_vbus-supply = <®_usb0_vbus>; | ||||||
|  |  | ||||||
|  | @ -67,8 +67,6 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &i2c0 { | &i2c0 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&i2c0_pins_a>; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| 
 | 
 | ||||||
| 	axp209: pmic@34 { | 	axp209: pmic@34 { | ||||||
|  | @ -82,12 +80,9 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &mmc0 { | &mmc0 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; |  | ||||||
| 	vmmc-supply = <®_vcc3v3>; | 	vmmc-supply = <®_vcc3v3>; | ||||||
| 	bus-width = <4>; | 	bus-width = <4>; | ||||||
| 	cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */ | 	cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */ | ||||||
| 	cd-inverted; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | @ -105,7 +100,7 @@ | ||||||
| 
 | 
 | ||||||
| &uart0 { | &uart0 { | ||||||
| 	pinctrl-names = "default"; | 	pinctrl-names = "default"; | ||||||
| 	pinctrl-0 = <&uart0_pins_a>; | 	pinctrl-0 = <&uart0_pb_pins>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -45,7 +45,6 @@ | ||||||
| #include "sunxi-common-regulators.dtsi" | #include "sunxi-common-regulators.dtsi" | ||||||
| 
 | 
 | ||||||
| #include <dt-bindings/gpio/gpio.h> | #include <dt-bindings/gpio/gpio.h> | ||||||
| #include <dt-bindings/pinctrl/sun4i-a10.h> |  | ||||||
| 
 | 
 | ||||||
| / { | / { | ||||||
| 	model = "Olimex A10-OLinuXino-LIME"; | 	model = "Olimex A10-OLinuXino-LIME"; | ||||||
|  | @ -59,6 +58,17 @@ | ||||||
| 		stdout-path = "serial0:115200n8"; | 		stdout-path = "serial0:115200n8"; | ||||||
| 	}; | 	}; | ||||||
| 
 | 
 | ||||||
|  | 	hdmi-connector { | ||||||
|  | 		compatible = "hdmi-connector"; | ||||||
|  | 		type = "a"; | ||||||
|  | 
 | ||||||
|  | 		port { | ||||||
|  | 			hdmi_con_in: endpoint { | ||||||
|  | 				remote-endpoint = <&hdmi_out_con>; | ||||||
|  | 			}; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
| 	leds { | 	leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 		pinctrl-names = "default"; | 		pinctrl-names = "default"; | ||||||
|  | @ -87,7 +97,10 @@ | ||||||
| 		864000  1300000 | 		864000  1300000 | ||||||
| 		624000  1250000 | 		624000  1250000 | ||||||
| 		>; | 		>; | ||||||
| 	cooling-max-level = <2>; | }; | ||||||
|  | 
 | ||||||
|  | &de { | ||||||
|  | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &ehci0 { | &ehci0 { | ||||||
|  | @ -99,8 +112,6 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &emac { | &emac { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&emac_pins_a>; |  | ||||||
| 	phy = <&phy1>; | 	phy = <&phy1>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
|  | @ -109,9 +120,17 @@ | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | &hdmi { | ||||||
|  | 	status = "okay"; | ||||||
|  | }; | ||||||
|  | 
 | ||||||
|  | &hdmi_out { | ||||||
|  | 	hdmi_out_con: endpoint { | ||||||
|  | 		remote-endpoint = <&hdmi_con_in>; | ||||||
|  | 	}; | ||||||
|  | }; | ||||||
|  | 
 | ||||||
| &i2c0 { | &i2c0 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&i2c0_pins_a>; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| 
 | 
 | ||||||
| 	axp209: pmic@34 { | 	axp209: pmic@34 { | ||||||
|  | @ -125,8 +144,6 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &i2c1 { | &i2c1 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&i2c1_pins_a>; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| 
 | 
 | ||||||
| 	eeprom: eeprom@50 { | 	eeprom: eeprom@50 { | ||||||
|  | @ -145,12 +162,9 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &mmc0 { | &mmc0 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; |  | ||||||
| 	vmmc-supply = <®_vcc3v3>; | 	vmmc-supply = <®_vcc3v3>; | ||||||
| 	bus-width = <4>; | 	bus-width = <4>; | ||||||
| 	cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */ | 	cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */ | ||||||
| 	cd-inverted; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | @ -167,37 +181,26 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &pio { | &pio { | ||||||
| 	ahci_pwr_pin_olinuxinolime: ahci_pwr_pin@1 { | 	led_pins_olinuxinolime: led-pin { | ||||||
| 		allwinner,pins = "PC3"; | 		pins = "PH2"; | ||||||
| 		allwinner,function = "gpio_out"; | 		function = "gpio_out"; | ||||||
| 		allwinner,drive = <SUN4I_PINCTRL_10_MA>; | 		drive-strength = <20>; | ||||||
| 		allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |  | ||||||
| 	}; | 	}; | ||||||
| 
 | 
 | ||||||
| 	led_pins_olinuxinolime: led_pins@0 { | 	usb0_id_detect_pin: usb0-id-detect-pin { | ||||||
| 		allwinner,pins = "PH2"; | 		pins = "PH4"; | ||||||
| 		allwinner,function = "gpio_out"; | 		function = "gpio_in"; | ||||||
| 		allwinner,drive = <SUN4I_PINCTRL_20_MA>; | 		bias-pull-up; | ||||||
| 		allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |  | ||||||
| 	}; | 	}; | ||||||
| 
 | 
 | ||||||
| 	usb0_id_detect_pin: usb0_id_detect_pin@0 { | 	usb0_vbus_detect_pin: usb0-vbus-detect-pin { | ||||||
| 		allwinner,pins = "PH4"; | 		pins = "PH5"; | ||||||
| 		allwinner,function = "gpio_in"; | 		function = "gpio_in"; | ||||||
| 		allwinner,drive = <SUN4I_PINCTRL_10_MA>; | 		bias-pull-down; | ||||||
| 		allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; |  | ||||||
| 	}; |  | ||||||
| 
 |  | ||||||
| 	usb0_vbus_detect_pin: usb0_vbus_detect_pin@0 { |  | ||||||
| 		allwinner,pins = "PH5"; |  | ||||||
| 		allwinner,function = "gpio_in"; |  | ||||||
| 		allwinner,drive = <SUN4I_PINCTRL_10_MA>; |  | ||||||
| 		allwinner,pull = <SUN4I_PINCTRL_PULL_DOWN>; |  | ||||||
| 	}; | 	}; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| ®_ahci_5v { | ®_ahci_5v { | ||||||
| 	pinctrl-0 = <&ahci_pwr_pin_olinuxinolime>; |  | ||||||
| 	gpio = <&pio 2 3 GPIO_ACTIVE_HIGH>; | 	gpio = <&pio 2 3 GPIO_ACTIVE_HIGH>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
|  | @ -216,7 +219,7 @@ | ||||||
| 
 | 
 | ||||||
| &uart0 { | &uart0 { | ||||||
| 	pinctrl-names = "default"; | 	pinctrl-names = "default"; | ||||||
| 	pinctrl-0 = <&uart0_pins_a>; | 	pinctrl-0 = <&uart0_pb_pins>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -47,7 +47,6 @@ | ||||||
| 
 | 
 | ||||||
| #include <dt-bindings/gpio/gpio.h> | #include <dt-bindings/gpio/gpio.h> | ||||||
| #include <dt-bindings/input/input.h> | #include <dt-bindings/input/input.h> | ||||||
| #include <dt-bindings/pinctrl/sun4i-a10.h> |  | ||||||
| 
 | 
 | ||||||
| / { | / { | ||||||
| 	model = "LinkSprite pcDuino"; | 	model = "LinkSprite pcDuino"; | ||||||
|  | @ -63,8 +62,6 @@ | ||||||
| 
 | 
 | ||||||
| 	leds { | 	leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 		pinctrl-names = "default"; |  | ||||||
| 		pinctrl-0 = <&led_pins_pcduino>; |  | ||||||
| 
 | 
 | ||||||
| 		tx { | 		tx { | ||||||
| 			label = "pcduino:green:tx"; | 			label = "pcduino:green:tx"; | ||||||
|  | @ -77,26 +74,24 @@ | ||||||
| 		}; | 		}; | ||||||
| 	}; | 	}; | ||||||
| 
 | 
 | ||||||
| 	gpio_keys { | 	gpio-keys { | ||||||
| 		compatible = "gpio-keys"; | 		compatible = "gpio-keys"; | ||||||
| 		pinctrl-names = "default"; |  | ||||||
| 		pinctrl-0 = <&key_pins_pcduino>; |  | ||||||
| 		#address-cells = <1>; | 		#address-cells = <1>; | ||||||
| 		#size-cells = <0>; | 		#size-cells = <0>; | ||||||
| 
 | 
 | ||||||
| 		button@0 { | 		back { | ||||||
| 			label = "Key Back"; | 			label = "Key Back"; | ||||||
| 			linux,code = <KEY_BACK>; | 			linux,code = <KEY_BACK>; | ||||||
| 			gpios = <&pio 7 17 GPIO_ACTIVE_LOW>; | 			gpios = <&pio 7 17 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		button@1 { | 		home { | ||||||
| 			label = "Key Home"; | 			label = "Key Home"; | ||||||
| 			linux,code = <KEY_HOME>; | 			linux,code = <KEY_HOME>; | ||||||
| 			gpios = <&pio 7 18 GPIO_ACTIVE_LOW>; | 			gpios = <&pio 7 18 GPIO_ACTIVE_LOW>; | ||||||
| 		}; | 		}; | ||||||
| 
 | 
 | ||||||
| 		button@2 { | 		menu { | ||||||
| 			label = "Key Menu"; | 			label = "Key Menu"; | ||||||
| 			linux,code = <KEY_MENU>; | 			linux,code = <KEY_MENU>; | ||||||
| 			gpios = <&pio 7 19 GPIO_ACTIVE_LOW>; | 			gpios = <&pio 7 19 GPIO_ACTIVE_LOW>; | ||||||
|  | @ -117,8 +112,6 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &emac { | &emac { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&emac_pins_a>; |  | ||||||
| 	phy = <&phy1>; | 	phy = <&phy1>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
|  | @ -128,8 +121,6 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &i2c0 { | &i2c0 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&i2c0_pins_a>; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| 
 | 
 | ||||||
| 	axp209: pmic@34 { | 	axp209: pmic@34 { | ||||||
|  | @ -147,12 +138,9 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &mmc0 { | &mmc0 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; |  | ||||||
| 	vmmc-supply = <®_vcc3v3>; | 	vmmc-supply = <®_vcc3v3>; | ||||||
| 	bus-width = <4>; | 	bus-width = <4>; | ||||||
| 	cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */ | 	cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */ | ||||||
| 	cd-inverted; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | @ -169,25 +157,10 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &pio { | &pio { | ||||||
| 	led_pins_pcduino: led_pins@0 { | 	usb0_id_detect_pin: usb0-id-detect-pin { | ||||||
| 		allwinner,pins = "PH15", "PH16"; | 		pins = "PH4"; | ||||||
| 		allwinner,function = "gpio_out"; | 		function = "gpio_in"; | ||||||
| 		allwinner,drive = <SUN4I_PINCTRL_10_MA>; | 		bias-pull-up; | ||||||
| 		allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |  | ||||||
| 	}; |  | ||||||
| 
 |  | ||||||
| 	key_pins_pcduino: key_pins@0 { |  | ||||||
| 		allwinner,pins = "PH17", "PH18", "PH19"; |  | ||||||
| 		allwinner,function = "gpio_in"; |  | ||||||
| 		allwinner,drive = <SUN4I_PINCTRL_10_MA>; |  | ||||||
| 		allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |  | ||||||
| 	}; |  | ||||||
| 
 |  | ||||||
| 	usb0_id_detect_pin: usb0_id_detect_pin@0 { |  | ||||||
| 		allwinner,pins = "PH4"; |  | ||||||
| 		allwinner,function = "gpio_in"; |  | ||||||
| 		allwinner,drive = <SUN4I_PINCTRL_10_MA>; |  | ||||||
| 		allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; |  | ||||||
| 	}; | 	}; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | @ -220,7 +193,7 @@ | ||||||
| 
 | 
 | ||||||
| &uart0 { | &uart0 { | ||||||
| 	pinctrl-names = "default"; | 	pinctrl-names = "default"; | ||||||
| 	pinctrl-0 = <&uart0_pins_a>; | 	pinctrl-0 = <&uart0_pb_pins>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -55,18 +55,7 @@ | ||||||
| 	compatible = "linksprite,a10-pcduino2", "allwinner,sun4i-a10"; | 	compatible = "linksprite,a10-pcduino2", "allwinner,sun4i-a10"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &pio { |  | ||||||
| 	usb2_vbus_pin_pcduino2: usb2_vbus_pin@0 { |  | ||||||
| 		allwinner,pins = "PD2"; |  | ||||||
| 		allwinner,function = "gpio_out"; |  | ||||||
| 		allwinner,drive = <SUN4I_PINCTRL_10_MA>; |  | ||||||
| 		allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |  | ||||||
| 	}; |  | ||||||
| }; |  | ||||||
| 
 |  | ||||||
| ®_usb2_vbus { | ®_usb2_vbus { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&usb2_vbus_pin_pcduino2>; |  | ||||||
| 	gpio = <&pio 3 2 GPIO_ACTIVE_HIGH>; | 	gpio = <&pio 3 2 GPIO_ACTIVE_HIGH>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
|  |  | ||||||
|  | @ -46,7 +46,6 @@ | ||||||
| #include <dt-bindings/gpio/gpio.h> | #include <dt-bindings/gpio/gpio.h> | ||||||
| #include <dt-bindings/input/input.h> | #include <dt-bindings/input/input.h> | ||||||
| #include <dt-bindings/interrupt-controller/irq.h> | #include <dt-bindings/interrupt-controller/irq.h> | ||||||
| #include <dt-bindings/pinctrl/sun4i-a10.h> |  | ||||||
| #include <dt-bindings/pwm/pwm.h> | #include <dt-bindings/pwm/pwm.h> | ||||||
| 
 | 
 | ||||||
| / { | / { | ||||||
|  | @ -59,8 +58,6 @@ | ||||||
| 
 | 
 | ||||||
| 	backlight: backlight { | 	backlight: backlight { | ||||||
| 		compatible = "pwm-backlight"; | 		compatible = "pwm-backlight"; | ||||||
| 		pinctrl-names = "default"; |  | ||||||
| 		pinctrl-0 = <&bl_en_pin_protab>; |  | ||||||
| 		pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>; | 		pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>; | ||||||
| 		brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>; | 		brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>; | ||||||
| 		default-brightness-level = <8>; | 		default-brightness-level = <8>; | ||||||
|  | @ -73,8 +70,6 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &codec { | &codec { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&codec_pa_pin>; |  | ||||||
| 	allwinner,pa-gpios = <&pio 7 15 GPIO_ACTIVE_HIGH>; /* PH15 */ | 	allwinner,pa-gpios = <&pio 7 15 GPIO_ACTIVE_HIGH>; /* PH15 */ | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
|  | @ -88,8 +83,6 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &i2c0 { | &i2c0 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&i2c0_pins_a>; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| 
 | 
 | ||||||
| 	axp209: pmic@34 { | 	axp209: pmic@34 { | ||||||
|  | @ -101,27 +94,14 @@ | ||||||
| #include "axp209.dtsi" | #include "axp209.dtsi" | ||||||
| 
 | 
 | ||||||
| &i2c1 { | &i2c1 { | ||||||
| 	pinctrl-names = "default"; | 	/* pull-ups and devices require AXP209 LDO3 */ | ||||||
| 	pinctrl-0 = <&i2c1_pins_a>; | 	status = "failed"; | ||||||
| 	status = "okay"; |  | ||||||
| 
 |  | ||||||
| 	/* Accelerometer */ |  | ||||||
| 	bma250@18 { |  | ||||||
| 		compatible = "bosch,bma250"; |  | ||||||
| 		reg = <0x18>; |  | ||||||
| 		interrupt-parent = <&pio>; |  | ||||||
| 		interrupts = <7 0 IRQ_TYPE_EDGE_RISING>; /* PH0 / EINT0 */ |  | ||||||
| 	}; |  | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &i2c2 { | &i2c2 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&i2c2_pins_a>; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| 
 | 
 | ||||||
| 	pixcir_ts@5c { | 	touchscreen@5c { | ||||||
| 		pinctrl-names = "default"; |  | ||||||
| 		pinctrl-0 = <&touchscreen_pins>; |  | ||||||
| 		compatible = "pixcir,pixcir_tangoc"; | 		compatible = "pixcir,pixcir_tangoc"; | ||||||
| 		reg = <0x5c>; | 		reg = <0x5c>; | ||||||
| 		interrupt-parent = <&pio>; | 		interrupt-parent = <&pio>; | ||||||
|  | @ -140,14 +120,14 @@ | ||||||
| 	vref-supply = <®_ldo2>; | 	vref-supply = <®_ldo2>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| 
 | 
 | ||||||
| 	button@400 { | 	button-400 { | ||||||
| 		label = "Volume Up"; | 		label = "Volume Up"; | ||||||
| 		linux,code = <KEY_VOLUMEUP>; | 		linux,code = <KEY_VOLUMEUP>; | ||||||
| 		channel = <0>; | 		channel = <0>; | ||||||
| 		voltage = <400000>; | 		voltage = <400000>; | ||||||
| 	}; | 	}; | ||||||
| 
 | 
 | ||||||
| 	button@800 { | 	button-800 { | ||||||
| 		label = "Volume Down"; | 		label = "Volume Down"; | ||||||
| 		linux,code = <KEY_VOLUMEDOWN>; | 		linux,code = <KEY_VOLUMEDOWN>; | ||||||
| 		channel = <0>; | 		channel = <0>; | ||||||
|  | @ -156,12 +136,9 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &mmc0 { | &mmc0 { | ||||||
| 	pinctrl-names = "default"; |  | ||||||
| 	pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; |  | ||||||
| 	vmmc-supply = <®_vcc3v3>; | 	vmmc-supply = <®_vcc3v3>; | ||||||
| 	bus-width = <4>; | 	bus-width = <4>; | ||||||
| 	cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */ | 	cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */ | ||||||
| 	cd-inverted; |  | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | @ -170,45 +147,22 @@ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &pio { | &pio { | ||||||
| 	bl_en_pin_protab: bl_en_pin@0 { | 	usb0_id_detect_pin: usb0-id-detect-pin { | ||||||
| 		allwinner,pins = "PH7"; | 		pins = "PH4"; | ||||||
| 		allwinner,function = "gpio_out"; | 		function = "gpio_in"; | ||||||
| 		allwinner,drive = <SUN4I_PINCTRL_10_MA>; | 		bias-pull-up; | ||||||
| 		allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |  | ||||||
| 	}; | 	}; | ||||||
| 
 | 
 | ||||||
| 	codec_pa_pin: codec_pa_pin@0 { | 	usb0_vbus_detect_pin: usb0-vbus-detect-pin { | ||||||
| 		allwinner,pins = "PH15"; | 		pins = "PH5"; | ||||||
| 		allwinner,function = "gpio_out"; | 		function = "gpio_in"; | ||||||
| 		allwinner,drive = <SUN4I_PINCTRL_10_MA>; | 		bias-pull-down; | ||||||
| 		allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |  | ||||||
| 	}; |  | ||||||
| 
 |  | ||||||
| 	touchscreen_pins: touchscreen_pins@0 { |  | ||||||
| 		allwinner,pins = "PA5", "PB13"; |  | ||||||
| 		allwinner,function = "gpio_out"; |  | ||||||
| 		allwinner,drive = <SUN4I_PINCTRL_10_MA>; |  | ||||||
| 		allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |  | ||||||
| 	}; |  | ||||||
| 
 |  | ||||||
| 	usb0_id_detect_pin: usb0_id_detect_pin@0 { |  | ||||||
| 		allwinner,pins = "PH4"; |  | ||||||
| 		allwinner,function = "gpio_in"; |  | ||||||
| 		allwinner,drive = <SUN4I_PINCTRL_10_MA>; |  | ||||||
| 		allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; |  | ||||||
| 	}; |  | ||||||
| 
 |  | ||||||
| 	usb0_vbus_detect_pin: usb0_vbus_detect_pin@0 { |  | ||||||
| 		allwinner,pins = "PH5"; |  | ||||||
| 		allwinner,function = "gpio_in"; |  | ||||||
| 		allwinner,drive = <SUN4I_PINCTRL_10_MA>; |  | ||||||
| 		allwinner,pull = <SUN4I_PINCTRL_PULL_DOWN>; |  | ||||||
| 	}; | 	}; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &pwm { | &pwm { | ||||||
| 	pinctrl-names = "default"; | 	pinctrl-names = "default"; | ||||||
| 	pinctrl-0 = <&pwm0_pins_a>; | 	pinctrl-0 = <&pwm0_pin>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | @ -237,17 +191,6 @@ | ||||||
| 	regulator-name = "avcc"; | 	regulator-name = "avcc"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| ®_ldo3 { |  | ||||||
| 	/* |  | ||||||
| 	 * We need to always power the camera sensor, otherwhise all access |  | ||||||
| 	 * to i2c1 is blocked. |  | ||||||
| 	 */ |  | ||||||
| 	regulator-always-on; |  | ||||||
| 	regulator-min-microvolt = <2800000>; |  | ||||||
| 	regulator-max-microvolt = <2800000>; |  | ||||||
| 	regulator-name = "vdd-csi"; |  | ||||||
| }; |  | ||||||
| 
 |  | ||||||
| ®_usb0_vbus { | ®_usb0_vbus { | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
|  | @ -258,7 +201,7 @@ | ||||||
| 
 | 
 | ||||||
| &uart0 { | &uart0 { | ||||||
| 	pinctrl-names = "default"; | 	pinctrl-names = "default"; | ||||||
| 	pinctrl-0 = <&uart0_pins_a>; | 	pinctrl-0 = <&uart0_pb_pins>; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							|  | @ -0,0 +1,202 @@ | ||||||
|  | /*
 | ||||||
|  |  * Copyright (C) 2017 Priit Laes <plaes@plaes.org> | ||||||
|  |  * | ||||||
|  |  * This file is dual-licensed: you can use it either under the terms | ||||||
|  |  * of the GPL or the X11 license, at your option. Note that this dual | ||||||
|  |  * licensing only applies to this file, and not this project as a | ||||||
|  |  * whole. | ||||||
|  |  * | ||||||
|  |  *  a) This file is free software; you can redistribute it and/or | ||||||
|  |  *     modify it under the terms of the GNU General Public License as | ||||||
|  |  *     published by the Free Software Foundation; either version 2 of the | ||||||
|  |  *     License, or (at your option) any later version. | ||||||
|  |  * | ||||||
|  |  *     This file is distributed in the hope that it will be useful, | ||||||
|  |  *     but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  |  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | ||||||
|  |  *     GNU General Public License for more details. | ||||||
|  |  * | ||||||
|  |  * Or, alternatively, | ||||||
|  |  * | ||||||
|  |  *  b) Permission is hereby granted, free of charge, to any person | ||||||
|  |  *     obtaining a copy of this software and associated documentation | ||||||
|  |  *     files (the "Software"), to deal in the Software without | ||||||
|  |  *     restriction, including without limitation the rights to use, | ||||||
|  |  *     copy, modify, merge, publish, distribute, sublicense, and/or | ||||||
|  |  *     sell copies of the Software, and to permit persons to whom the | ||||||
|  |  *     Software is furnished to do so, subject to the following | ||||||
|  |  *     conditions: | ||||||
|  |  * | ||||||
|  |  *     The above copyright notice and this permission notice shall be | ||||||
|  |  *     included in all copies or substantial portions of the Software. | ||||||
|  |  * | ||||||
|  |  *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||||||
|  |  *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | ||||||
|  |  *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||||||
|  |  *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | ||||||
|  |  *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | ||||||
|  |  *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||||||
|  |  *     OTHER DEALINGS IN THE SOFTWARE. | ||||||
|  |  */ | ||||||
|  | 
 | ||||||
|  | #ifndef _DT_BINDINGS_CLK_SUN4I_A10_H_ | ||||||
|  | #define _DT_BINDINGS_CLK_SUN4I_A10_H_ | ||||||
|  | 
 | ||||||
|  | #define CLK_HOSC		1 | ||||||
|  | #define CLK_PLL_VIDEO0_2X	9 | ||||||
|  | #define CLK_PLL_VIDEO1_2X	18 | ||||||
|  | #define CLK_CPU			20 | ||||||
|  | 
 | ||||||
|  | /* AHB Gates */ | ||||||
|  | #define CLK_AHB_OTG		26 | ||||||
|  | #define CLK_AHB_EHCI0		27 | ||||||
|  | #define CLK_AHB_OHCI0		28 | ||||||
|  | #define CLK_AHB_EHCI1		29 | ||||||
|  | #define CLK_AHB_OHCI1		30 | ||||||
|  | #define CLK_AHB_SS		31 | ||||||
|  | #define CLK_AHB_DMA		32 | ||||||
|  | #define CLK_AHB_BIST		33 | ||||||
|  | #define CLK_AHB_MMC0		34 | ||||||
|  | #define CLK_AHB_MMC1		35 | ||||||
|  | #define CLK_AHB_MMC2		36 | ||||||
|  | #define CLK_AHB_MMC3		37 | ||||||
|  | #define CLK_AHB_MS		38 | ||||||
|  | #define CLK_AHB_NAND		39 | ||||||
|  | #define CLK_AHB_SDRAM		40 | ||||||
|  | #define CLK_AHB_ACE		41 | ||||||
|  | #define CLK_AHB_EMAC		42 | ||||||
|  | #define CLK_AHB_TS		43 | ||||||
|  | #define CLK_AHB_SPI0		44 | ||||||
|  | #define CLK_AHB_SPI1		45 | ||||||
|  | #define CLK_AHB_SPI2		46 | ||||||
|  | #define CLK_AHB_SPI3		47 | ||||||
|  | #define CLK_AHB_PATA		48 | ||||||
|  | #define CLK_AHB_SATA		49 | ||||||
|  | #define CLK_AHB_GPS		50 | ||||||
|  | #define CLK_AHB_HSTIMER		51 | ||||||
|  | #define CLK_AHB_VE		52 | ||||||
|  | #define CLK_AHB_TVD		53 | ||||||
|  | #define CLK_AHB_TVE0		54 | ||||||
|  | #define CLK_AHB_TVE1		55 | ||||||
|  | #define CLK_AHB_LCD0		56 | ||||||
|  | #define CLK_AHB_LCD1		57 | ||||||
|  | #define CLK_AHB_CSI0		58 | ||||||
|  | #define CLK_AHB_CSI1		59 | ||||||
|  | #define CLK_AHB_HDMI0		60 | ||||||
|  | #define CLK_AHB_HDMI1		61 | ||||||
|  | #define CLK_AHB_DE_BE0		62 | ||||||
|  | #define CLK_AHB_DE_BE1		63 | ||||||
|  | #define CLK_AHB_DE_FE0		64 | ||||||
|  | #define CLK_AHB_DE_FE1		65 | ||||||
|  | #define CLK_AHB_GMAC		66 | ||||||
|  | #define CLK_AHB_MP		67 | ||||||
|  | #define CLK_AHB_GPU		68 | ||||||
|  | 
 | ||||||
|  | /* APB0 Gates */ | ||||||
|  | #define CLK_APB0_CODEC		69 | ||||||
|  | #define CLK_APB0_SPDIF		70 | ||||||
|  | #define CLK_APB0_I2S0		71 | ||||||
|  | #define CLK_APB0_AC97		72 | ||||||
|  | #define CLK_APB0_I2S1		73 | ||||||
|  | #define CLK_APB0_PIO		74 | ||||||
|  | #define CLK_APB0_IR0		75 | ||||||
|  | #define CLK_APB0_IR1		76 | ||||||
|  | #define CLK_APB0_I2S2		77 | ||||||
|  | #define CLK_APB0_KEYPAD		78 | ||||||
|  | 
 | ||||||
|  | /* APB1 Gates */ | ||||||
|  | #define CLK_APB1_I2C0		79 | ||||||
|  | #define CLK_APB1_I2C1		80 | ||||||
|  | #define CLK_APB1_I2C2		81 | ||||||
|  | #define CLK_APB1_I2C3		82 | ||||||
|  | #define CLK_APB1_CAN		83 | ||||||
|  | #define CLK_APB1_SCR		84 | ||||||
|  | #define CLK_APB1_PS20		85 | ||||||
|  | #define CLK_APB1_PS21		86 | ||||||
|  | #define CLK_APB1_I2C4		87 | ||||||
|  | #define CLK_APB1_UART0		88 | ||||||
|  | #define CLK_APB1_UART1		89 | ||||||
|  | #define CLK_APB1_UART2		90 | ||||||
|  | #define CLK_APB1_UART3		91 | ||||||
|  | #define CLK_APB1_UART4		92 | ||||||
|  | #define CLK_APB1_UART5		93 | ||||||
|  | #define CLK_APB1_UART6		94 | ||||||
|  | #define CLK_APB1_UART7		95 | ||||||
|  | 
 | ||||||
|  | /* IP clocks */ | ||||||
|  | #define CLK_NAND		96 | ||||||
|  | #define CLK_MS			97 | ||||||
|  | #define CLK_MMC0		98 | ||||||
|  | #define CLK_MMC0_OUTPUT		99 | ||||||
|  | #define CLK_MMC0_SAMPLE		100 | ||||||
|  | #define CLK_MMC1		101 | ||||||
|  | #define CLK_MMC1_OUTPUT		102 | ||||||
|  | #define CLK_MMC1_SAMPLE		103 | ||||||
|  | #define CLK_MMC2		104 | ||||||
|  | #define CLK_MMC2_OUTPUT		105 | ||||||
|  | #define CLK_MMC2_SAMPLE		106 | ||||||
|  | #define CLK_MMC3		107 | ||||||
|  | #define CLK_MMC3_OUTPUT		108 | ||||||
|  | #define CLK_MMC3_SAMPLE		109 | ||||||
|  | #define CLK_TS			110 | ||||||
|  | #define CLK_SS			111 | ||||||
|  | #define CLK_SPI0		112 | ||||||
|  | #define CLK_SPI1		113 | ||||||
|  | #define CLK_SPI2		114 | ||||||
|  | #define CLK_PATA		115 | ||||||
|  | #define CLK_IR0			116 | ||||||
|  | #define CLK_IR1			117 | ||||||
|  | #define CLK_I2S0		118 | ||||||
|  | #define CLK_AC97		119 | ||||||
|  | #define CLK_SPDIF		120 | ||||||
|  | #define CLK_KEYPAD		121 | ||||||
|  | #define CLK_SATA		122 | ||||||
|  | #define CLK_USB_OHCI0		123 | ||||||
|  | #define CLK_USB_OHCI1		124 | ||||||
|  | #define CLK_USB_PHY		125 | ||||||
|  | #define CLK_GPS			126 | ||||||
|  | #define CLK_SPI3		127 | ||||||
|  | #define CLK_I2S1		128 | ||||||
|  | #define CLK_I2S2		129 | ||||||
|  | 
 | ||||||
|  | /* DRAM Gates */ | ||||||
|  | #define CLK_DRAM_VE		130 | ||||||
|  | #define CLK_DRAM_CSI0		131 | ||||||
|  | #define CLK_DRAM_CSI1		132 | ||||||
|  | #define CLK_DRAM_TS		133 | ||||||
|  | #define CLK_DRAM_TVD		134 | ||||||
|  | #define CLK_DRAM_TVE0		135 | ||||||
|  | #define CLK_DRAM_TVE1		136 | ||||||
|  | #define CLK_DRAM_OUT		137 | ||||||
|  | #define CLK_DRAM_DE_FE1		138 | ||||||
|  | #define CLK_DRAM_DE_FE0		139 | ||||||
|  | #define CLK_DRAM_DE_BE0		140 | ||||||
|  | #define CLK_DRAM_DE_BE1		141 | ||||||
|  | #define CLK_DRAM_MP		142 | ||||||
|  | #define CLK_DRAM_ACE		143 | ||||||
|  | 
 | ||||||
|  | /* Display Engine Clocks */ | ||||||
|  | #define CLK_DE_BE0		144 | ||||||
|  | #define CLK_DE_BE1		145 | ||||||
|  | #define CLK_DE_FE0		146 | ||||||
|  | #define CLK_DE_FE1		147 | ||||||
|  | #define CLK_DE_MP		148 | ||||||
|  | #define CLK_TCON0_CH0		149 | ||||||
|  | #define CLK_TCON1_CH0		150 | ||||||
|  | #define CLK_CSI_SCLK		151 | ||||||
|  | #define CLK_TVD_SCLK2		152 | ||||||
|  | #define CLK_TVD			153 | ||||||
|  | #define CLK_TCON0_CH1_SCLK2	154 | ||||||
|  | #define CLK_TCON0_CH1		155 | ||||||
|  | #define CLK_TCON1_CH1_SCLK2	156 | ||||||
|  | #define CLK_TCON1_CH1		157 | ||||||
|  | #define CLK_CSI0		158 | ||||||
|  | #define CLK_CSI1		159 | ||||||
|  | #define CLK_CODEC		160 | ||||||
|  | #define CLK_VE			161 | ||||||
|  | #define CLK_AVS			162 | ||||||
|  | #define CLK_ACE			163 | ||||||
|  | #define CLK_HDMI		164 | ||||||
|  | #define CLK_GPU			165 | ||||||
|  | 
 | ||||||
|  | #endif /* _DT_BINDINGS_CLK_SUN4I_A10_H_ */ | ||||||
|  | @ -0,0 +1,69 @@ | ||||||
|  | /*
 | ||||||
|  |  * Copyright (C) 2017 Priit Laes <plaes@plaes.org> | ||||||
|  |  * | ||||||
|  |  * This file is dual-licensed: you can use it either under the terms | ||||||
|  |  * of the GPL or the X11 license, at your option. Note that this dual | ||||||
|  |  * licensing only applies to this file, and not this project as a | ||||||
|  |  * whole. | ||||||
|  |  * | ||||||
|  |  *  a) This file is free software; you can redistribute it and/or | ||||||
|  |  *     modify it under the terms of the GNU General Public License as | ||||||
|  |  *     published by the Free Software Foundation; either version 2 of the | ||||||
|  |  *     License, or (at your option) any later version. | ||||||
|  |  * | ||||||
|  |  *     This file is distributed in the hope that it will be useful, | ||||||
|  |  *     but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  |  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | ||||||
|  |  *     GNU General Public License for more details. | ||||||
|  |  * | ||||||
|  |  * Or, alternatively, | ||||||
|  |  * | ||||||
|  |  *  b) Permission is hereby granted, free of charge, to any person | ||||||
|  |  *     obtaining a copy of this software and associated documentation | ||||||
|  |  *     files (the "Software"), to deal in the Software without | ||||||
|  |  *     restriction, including without limitation the rights to use, | ||||||
|  |  *     copy, modify, merge, publish, distribute, sublicense, and/or | ||||||
|  |  *     sell copies of the Software, and to permit persons to whom the | ||||||
|  |  *     Software is furnished to do so, subject to the following | ||||||
|  |  *     conditions: | ||||||
|  |  * | ||||||
|  |  *     The above copyright notice and this permission notice shall be | ||||||
|  |  *     included in all copies or substantial portions of the Software. | ||||||
|  |  * | ||||||
|  |  *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||||||
|  |  *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | ||||||
|  |  *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||||||
|  |  *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | ||||||
|  |  *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | ||||||
|  |  *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||||||
|  |  *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||||||
|  |  *     OTHER DEALINGS IN THE SOFTWARE. | ||||||
|  |  */ | ||||||
|  | 
 | ||||||
|  | #ifndef _DT_BINDINGS_RST_SUN4I_A10_H | ||||||
|  | #define _DT_BINDINGS_RST_SUN4I_A10_H | ||||||
|  | 
 | ||||||
|  | #define	RST_USB_PHY0		1 | ||||||
|  | #define	RST_USB_PHY1		2 | ||||||
|  | #define	RST_USB_PHY2		3 | ||||||
|  | #define	RST_GPS			4 | ||||||
|  | #define	RST_DE_BE0		5 | ||||||
|  | #define	RST_DE_BE1		6 | ||||||
|  | #define	RST_DE_FE0		7 | ||||||
|  | #define	RST_DE_FE1		8 | ||||||
|  | #define	RST_DE_MP		9 | ||||||
|  | #define	RST_TVE0		10 | ||||||
|  | #define	RST_TCON0		11 | ||||||
|  | #define	RST_TVE1		12 | ||||||
|  | #define	RST_TCON1		13 | ||||||
|  | #define	RST_CSI0		14 | ||||||
|  | #define	RST_CSI1		15 | ||||||
|  | #define	RST_VE			16 | ||||||
|  | #define	RST_ACE			17 | ||||||
|  | #define	RST_LVDS		18 | ||||||
|  | #define	RST_GPU			19 | ||||||
|  | #define	RST_HDMI_H		20 | ||||||
|  | #define	RST_HDMI_SYS		21 | ||||||
|  | #define	RST_HDMI_AUDIO_DMA	22 | ||||||
|  | 
 | ||||||
|  | #endif /* DT_BINDINGS_RST_SUN4I_A10_H */ | ||||||
		Loading…
	
		Reference in New Issue