mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-16 00:03:24 +00:00
70f24fa02b
Copy the devicetree source for the A10s/A13/GR8, A31(s), and A23/A33/R16 SoCs and all existing boards from the Linux v5.18-rc1 tag. These changes are combined into one commit due to interdependencies: - The unit addresses were removed from bitbanged I2C buses, which drives a Kconfig default change. This affects sun5i-a13-utoo-p66.dts and sun6i-a31-colombus.dts. - The pinctrl nodes were renamed, including some used by the shared header sunxi-reference-design-tablet.dtsi. To maintain ABI compatibility with existing LTS kernels, one change moving some IP blocks to the r_intc interrupt controller is excluded. This effectively reverts Linux commits 994e5818392c and 9fdef3c3d8c2. This commit renames the file sun8i-r16-nintendo-nes-classic-edition.dts to sun8i-r16-nintendo-nes-classic.dts to match the Linux tree. This commit also adds the following new board devicetrees: - sun5i-a13-licheepi-one.dts - sun5i-a13-pocketbook-touch-lux-3.dts - sun5i-gr8-evb.dts - sun8i-a23-ippo-q8h-v1.2.dts - sun8i-a23-ippo-q8h-v5.dts - sun8i-a33-et-q8-v1.6.dts - sun8i-a33-ippo-q8h-v1.2.dts - sun8i-r16-nintendo-super-nes-classic.dts As with the other SoCs, updates of note are conversion of GPIO pull-up from pinconf to GPIO flags and renaming the detection GPIO properties in the USB PHY nodes. Signed-off-by: Samuel Holland <samuel@sholland.org>
258 lines
4.6 KiB
Text
258 lines
4.6 KiB
Text
// SPDX-License-Identifier: GPL-2.0 OR MIT
|
|
/*
|
|
* Copyright 2019 Ondrej Jirman <megous@megous.com>
|
|
*/
|
|
|
|
/dts-v1/;
|
|
#include "sun5i-a13.dtsi"
|
|
#include "sunxi-common-regulators.dtsi"
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
#include <dt-bindings/input/input.h>
|
|
#include <dt-bindings/interrupt-controller/irq.h>
|
|
#include <dt-bindings/pwm/pwm.h>
|
|
|
|
/ {
|
|
model = "PocketBook Touch Lux 3";
|
|
compatible = "pocketbook,touch-lux-3", "allwinner,sun5i-a13";
|
|
|
|
aliases {
|
|
serial0 = &uart1;
|
|
i2c0 = &i2c0;
|
|
i2c1 = &i2c1;
|
|
i2c2 = &i2c2;
|
|
};
|
|
|
|
backlight {
|
|
compatible = "pwm-backlight";
|
|
pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>;
|
|
enable-gpios = <&pio 1 4 GPIO_ACTIVE_HIGH>; /* PB4 */
|
|
brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
|
|
default-brightness-level = <8>;
|
|
power-supply = <®_vcc3v3>;
|
|
};
|
|
|
|
chosen {
|
|
stdout-path = "serial0:115200n8";
|
|
};
|
|
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
|
|
led {
|
|
gpios = <&pio 4 8 GPIO_ACTIVE_LOW>; /* PE8 */
|
|
default-state = "on";
|
|
};
|
|
};
|
|
|
|
gpio-keys {
|
|
compatible = "gpio-keys";
|
|
autorepeat;
|
|
label = "GPIO Keys";
|
|
|
|
key-right {
|
|
label = "Right";
|
|
linux,code = <KEY_RIGHT>;
|
|
gpios = <&pio 6 9 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PG9 */
|
|
};
|
|
|
|
key-left {
|
|
label = "Left";
|
|
linux,code = <KEY_LEFT>;
|
|
gpios = <&pio 6 10 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PG10 */
|
|
};
|
|
};
|
|
|
|
reg_1v8: regulator-1v8 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vdd-1v8-nor-ctp";
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
gpio = <&pio 2 15 GPIO_ACTIVE_HIGH>;
|
|
enable-active-high;
|
|
};
|
|
|
|
reg_1v8_nor: regulator-nor {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vdd-nor";
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
gpio = <&pio 2 14 GPIO_ACTIVE_HIGH>;
|
|
enable-active-high;
|
|
vin-supply = <®_1v8>;
|
|
regulator-always-on;
|
|
};
|
|
|
|
reg_1v8_ctp: regulator-ctp {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vdd-ctp";
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
gpio = <&pio 2 13 GPIO_ACTIVE_HIGH>;
|
|
enable-active-high;
|
|
vin-supply = <®_1v8>;
|
|
};
|
|
|
|
reg_3v3_mmc0: regulator-mmc0 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vdd-mmc0";
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
gpio = <&pio 4 4 GPIO_ACTIVE_LOW>; /* PE4 */
|
|
vin-supply = <®_vcc3v3>;
|
|
};
|
|
};
|
|
|
|
&cpu0 {
|
|
cpu-supply = <®_dcdc2>;
|
|
};
|
|
|
|
&ehci0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&i2c0 {
|
|
status = "okay";
|
|
|
|
axp209: pmic@34 {
|
|
reg = <0x34>;
|
|
interrupts = <0>;
|
|
};
|
|
};
|
|
|
|
#include "axp209.dtsi"
|
|
|
|
&i2c1 {
|
|
status = "okay";
|
|
|
|
pcf8563: rtc@51 {
|
|
compatible = "nxp,pcf8563";
|
|
reg = <0x51>;
|
|
};
|
|
};
|
|
|
|
&i2c2 {
|
|
status = "okay";
|
|
|
|
/* Touchpanel is connected here. */
|
|
};
|
|
|
|
&lradc {
|
|
vref-supply = <®_ldo2>;
|
|
status = "okay";
|
|
|
|
button-200 {
|
|
label = "Home";
|
|
linux,code = <KEY_HOME>;
|
|
channel = <0>;
|
|
voltage = <200000>;
|
|
};
|
|
|
|
button-400 {
|
|
label = "Menu";
|
|
linux,code = <KEY_MENU>;
|
|
channel = <0>;
|
|
voltage = <400000>;
|
|
};
|
|
};
|
|
|
|
&mmc0 {
|
|
vmmc-supply = <®_3v3_mmc0>;
|
|
bus-width = <4>;
|
|
cd-gpios = <&pio 6 0 GPIO_ACTIVE_LOW>; /* PG0 */
|
|
status = "okay";
|
|
};
|
|
|
|
&mmc2 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&mmc2_4bit_pc_pins>;
|
|
vmmc-supply = <®_vcc3v3>;
|
|
bus-width = <4>;
|
|
non-removable;
|
|
status = "okay";
|
|
};
|
|
|
|
&ohci0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&otg_sram {
|
|
status = "okay";
|
|
};
|
|
|
|
&pwm {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pwm0_pin>;
|
|
status = "okay";
|
|
};
|
|
|
|
®_dcdc2 {
|
|
regulator-always-on;
|
|
regulator-min-microvolt = <1000000>;
|
|
regulator-max-microvolt = <1400000>;
|
|
regulator-name = "vdd-cpu";
|
|
};
|
|
|
|
®_dcdc3 {
|
|
regulator-always-on;
|
|
regulator-min-microvolt = <1200000>;
|
|
regulator-max-microvolt = <1200000>;
|
|
regulator-name = "vdd-int-pll";
|
|
};
|
|
|
|
®_ldo1 {
|
|
regulator-name = "vdd-rtc";
|
|
};
|
|
|
|
®_ldo2 {
|
|
regulator-always-on;
|
|
regulator-min-microvolt = <3000000>;
|
|
regulator-max-microvolt = <3000000>;
|
|
regulator-name = "avcc";
|
|
};
|
|
|
|
®_ldo3 {
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
regulator-name = "vcc-wifi";
|
|
/* We need this otherwise the LDO3 would overload */
|
|
regulator-soft-start;
|
|
regulator-ramp-delay = <1600>;
|
|
};
|
|
|
|
&spi2 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&spi2_pe_pins>, <&spi2_cs0_pe_pin>;
|
|
status = "okay";
|
|
|
|
epd_flash: flash@0 {
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
compatible = "macronix,mx25u4033", "jedec,spi-nor";
|
|
reg = <0>;
|
|
spi-max-frequency = <4000000>;
|
|
};
|
|
};
|
|
|
|
&uart1 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&uart1_pg_pins>;
|
|
status = "okay";
|
|
};
|
|
|
|
&usb_otg {
|
|
dr_mode = "peripheral";
|
|
status = "okay";
|
|
};
|
|
|
|
&battery_power_supply {
|
|
status = "okay";
|
|
};
|
|
|
|
&usb_power_supply {
|
|
status = "okay";
|
|
};
|
|
|
|
&usbphy {
|
|
usb1_vbus-supply = <®_ldo3>;
|
|
status = "okay";
|
|
};
|