mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-01 15:14:52 +00:00

Only one fix: Correct the name of the A523's EMAC0 to GMAC0, as seen in the SoC's datasheets. The matching DT binding change is in the net tree. -----BEGIN PGP SIGNATURE----- iQJCBAABCgAsFiEE2nN1m/hhnkhOWjtHOJpUIZwPJDAFAmh2iT4OHHdlbnNAY3Np ZS5vcmcACgkQOJpUIZwPJDCMJBAAuauzK0XFSSwuzxlkd2b4fb9iY8V8U+h4T6E0 T83snFr3IDZxRU3z9+6EKhIAyh/yHpu8wv27jMNyb6UAbafzhqYaCENXdIrI7lDX CzgDCJJWPTJ9L/Iq5EY+BXSBNaHQz1PLrryjdLJeNSzxXWP4k62oPCE09HioYIvK hMEUIyH9jdTK6h4jfp0J0YHYfDZPr4ix33Ua33ToPnTYeaMeowaWDZ2I/IXyhmG7 q+XRzdNrpcMuKQH5hpSTDYI1TjonWa1jovpYH9uktuzb7CHHz2C9f3wxz9X2xpui nxa44UoqKF0XfP3Luur9cfXHS6zq5HqKRaXkCP9EiXoIpocjo5rCHqvIabyC+6QU ACRrbp/9rCJ/XZm5MRvXD3+JlcF+SFJ3vYhZgk1iLXFFEPGgfUezf0s6hAUv5xGc OnxmF2ztxxXVAKCkRFG7JVbyHzQmKojX9lZUVWQP1dRZCfaQ1dqAN6oCO1NuVvLc mPVgftt3N2XDaM/XCp054RFBu0Dmjm6oIUNJy2Jc59ED5FF+Erit+xTqYfv9iZGu PfyBk43lPhFr+6twsYsaivoh45px7aCRAuKnwY4AizIjr01ZeVjc1snauiUS7pzo jtdIESYuaRnmTE1tiY0keAB5y4OH/jxB61jJ4IwIUIEGzySrmG8HchizVnd0UYoA eJsh/Jw= =j8oj -----END PGP SIGNATURE----- gpgsig -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEo6/YBQwIrVS28WGKmmx57+YAGNkFAmiEp40ACgkQmmx57+YA GNnQ9w//YpHI9/IqYMspsOk+ML2JLsRlbYWzmrZPAnWdQtFQ+sthqkr6bSA5zohn DQp04yGB5YPHD/R6n4Us2K0tb/UFQLQl2s9Owg0xZkoAdqwoRTBKP2nnYh5mtoK8 pf7KgfiMWi29rqNZmEPbk9onrhXIhAaLNJomIbDBaY3rsMxNnuEdDN+KO6mwTcrf RtBJqQKNeVbVniqmVn7o3IJiN5hLPKPrZ9r2FkX+K/0GHh4PPkQNyUJHLhvdsady 1EFPUqTqTp9ykPMj5KZ1TBs05dEBexMYPeGfZdTbLN6sXJQrAy9JN5XrSg6QffX0 NbzeO8r0YnwA2bsFnoF7xIUCdGvuI2jc4bvtVPt2wPrjINmSA83RJstJZcm1r/Uh qIFGYqgUJotqRzEJkOTvce32OG9T/Q7DcbC0uFenXjMdLU9hV6MDEFpPj2t875xr Y6P4dzp4TcR/28OA/nrmYhOV6Y7LOVzW7Y2D23iYltA62/GPR/dzlthw+nzYLecu 6/T4sH/LtACHmZNbbdAtf07rZmMYg1K16HJLcHxm5egp27AxIqujsy+kFVdtASXn Fc43ISthJVmdCVg7LHhVr5NrkKbgk4GZgZ5uL94+mYxZBMyMEdUP9Jqn/BjMaXt6 WPzkP/PZNEAlogAS6LSumMJvCcmrJdbCGplMWkUliMAgjbpL2e0= =xPoN -----END PGP SIGNATURE----- Merge tag 'sunxi-fixes-for-6.16' of https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux into soc/dt Allwinner fixes for 6.16 Only one fix: Correct the name of the A523's EMAC0 to GMAC0, as seen in the SoC's datasheets. The matching DT binding change is in the net tree. Signed-off-by: Arnd Bergmann <arnd@arndb.de>
333 lines
6.9 KiB
Plaintext
333 lines
6.9 KiB
Plaintext
// SPDX-License-Identifier: (GPL-2.0-only OR MIT)
|
|
// Copyright (C) 2024 Arm Ltd.
|
|
|
|
/dts-v1/;
|
|
|
|
#include "sun55i-a523.dtsi"
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
/ {
|
|
model = "Avaota A1";
|
|
compatible = "yuzukihd,avaota-a1", "allwinner,sun55i-t527";
|
|
|
|
aliases {
|
|
ethernet0 = &gmac0;
|
|
serial0 = &uart0;
|
|
};
|
|
|
|
chosen {
|
|
stdout-path = "serial0:115200n8";
|
|
};
|
|
|
|
ext_osc32k: ext-osc32k-clk {
|
|
#clock-cells = <0>;
|
|
compatible = "fixed-clock";
|
|
clock-frequency = <32768>;
|
|
clock-output-names = "ext_osc32k";
|
|
};
|
|
|
|
reg_vcc12v: vcc12v {
|
|
/* DC input jack */
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc-12v";
|
|
regulator-min-microvolt = <12000000>;
|
|
regulator-max-microvolt = <12000000>;
|
|
regulator-always-on;
|
|
};
|
|
|
|
reg_vcc5v: vcc5v {
|
|
/* board wide 5V supply from the 12V->5V regulator */
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc-5v";
|
|
regulator-min-microvolt = <5000000>;
|
|
regulator-max-microvolt = <5000000>;
|
|
vin-supply = <®_vcc12v>;
|
|
regulator-always-on;
|
|
};
|
|
|
|
reg_usb_vbus: vbus {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "usb-vbus";
|
|
regulator-min-microvolt = <5000000>;
|
|
regulator-max-microvolt = <5000000>;
|
|
vin-supply = <®_vcc5v>;
|
|
gpio = <&pio 8 12 GPIO_ACTIVE_HIGH>; /* PI12 */
|
|
enable-active-high;
|
|
};
|
|
};
|
|
|
|
&ehci0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&ehci1 {
|
|
status = "okay";
|
|
};
|
|
|
|
&gmac0 {
|
|
phy-mode = "rgmii-id";
|
|
phy-handle = <&ext_rgmii_phy>;
|
|
phy-supply = <®_dcdc4>;
|
|
|
|
allwinner,tx-delay-ps = <100>;
|
|
allwinner,rx-delay-ps = <300>;
|
|
|
|
status = "okay";
|
|
};
|
|
|
|
&gpu {
|
|
mali-supply = <®_dcdc2>;
|
|
status = "okay";
|
|
};
|
|
|
|
&mdio0 {
|
|
ext_rgmii_phy: ethernet-phy@1 {
|
|
compatible = "ethernet-phy-ieee802.3-c22";
|
|
reg = <1>;
|
|
};
|
|
};
|
|
|
|
&mmc0 {
|
|
vmmc-supply = <®_cldo3>;
|
|
cd-gpios = <&pio 5 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PF6 */
|
|
bus-width = <4>;
|
|
status = "okay";
|
|
};
|
|
|
|
&mmc2 {
|
|
bus-width = <8>;
|
|
cap-mmc-hw-reset;
|
|
mmc-ddr-1_8v;
|
|
mmc-hs200-1_8v;
|
|
non-removable;
|
|
vmmc-supply = <®_cldo3>;
|
|
vqmmc-supply = <®_cldo1>;
|
|
status = "okay";
|
|
};
|
|
|
|
&ohci0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&ohci1 {
|
|
status = "okay";
|
|
};
|
|
|
|
&pio {
|
|
vcc-pb-supply = <®_cldo3>; /* via VCC-IO */
|
|
vcc-pc-supply = <®_cldo1>;
|
|
vcc-pd-supply = <®_dcdc4>;
|
|
vcc-pe-supply = <®_dcdc4>;
|
|
vcc-pf-supply = <®_cldo3>; /* actually switchable */
|
|
vcc-pg-supply = <®_bldo1>;
|
|
vcc-ph-supply = <®_cldo3>; /* via VCC-IO */
|
|
vcc-pi-supply = <®_dcdc4>;
|
|
vcc-pj-supply = <®_dcdc4>;
|
|
vcc-pk-supply = <®_bldo3>;
|
|
};
|
|
|
|
&r_i2c0 {
|
|
status = "okay";
|
|
|
|
axp717: pmic@35 {
|
|
compatible = "x-powers,axp717";
|
|
reg = <0x35>;
|
|
interrupt-controller;
|
|
#interrupt-cells = <1>;
|
|
interrupt-parent = <&nmi_intc>;
|
|
interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
|
|
|
|
vin1-supply = <®_vcc5v>;
|
|
vin2-supply = <®_vcc5v>;
|
|
vin3-supply = <®_vcc5v>;
|
|
vin4-supply = <®_vcc5v>;
|
|
aldoin-supply = <®_vcc5v>;
|
|
bldoin-supply = <®_vcc5v>;
|
|
cldoin-supply = <®_vcc5v>;
|
|
|
|
regulators {
|
|
/* Supplies the "little" cluster (1.4 GHz cores) */
|
|
reg_dcdc1: dcdc1 {
|
|
regulator-always-on;
|
|
regulator-min-microvolt = <900000>;
|
|
regulator-max-microvolt = <1160000>;
|
|
regulator-name = "vdd-cpul";
|
|
};
|
|
|
|
reg_dcdc2: dcdc2 {
|
|
regulator-always-on;
|
|
regulator-min-microvolt = <920000>;
|
|
regulator-max-microvolt = <920000>;
|
|
regulator-name = "vdd-gpu-sys";
|
|
};
|
|
|
|
reg_dcdc3: dcdc3 {
|
|
regulator-always-on;
|
|
regulator-min-microvolt = <1160000>;
|
|
regulator-max-microvolt = <1160000>;
|
|
regulator-name = "vdd-dram";
|
|
};
|
|
|
|
reg_dcdc4: dcdc4 {
|
|
regulator-always-on;
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
regulator-name = "vdd-io";
|
|
};
|
|
|
|
reg_aldo1: aldo1 {
|
|
/* not connected */
|
|
};
|
|
|
|
reg_aldo2: aldo2 {
|
|
/* not connected */
|
|
};
|
|
|
|
reg_aldo3: aldo3 {
|
|
/* supplies the I2C pins for this PMIC */
|
|
regulator-always-on;
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
regulator-name = "vcc-pl-pm";
|
|
};
|
|
|
|
reg_aldo4: aldo4 {
|
|
regulator-always-on;
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
regulator-name = "vcc-pll-dxco-avcc";
|
|
};
|
|
|
|
reg_bldo1: bldo1 {
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
regulator-name = "vcc-pg-wifi-lvds";
|
|
};
|
|
|
|
reg_bldo2: bldo2 {
|
|
regulator-always-on;
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
regulator-name = "vcc-dram-1v8";
|
|
};
|
|
|
|
reg_bldo3: bldo3 {
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
regulator-name = "vcc-cvp-pk-vid1v8";
|
|
};
|
|
|
|
reg_bldo4: bldo4 {
|
|
/* not connected */
|
|
};
|
|
|
|
reg_cldo1: cldo1 {
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
regulator-name = "vcc-pc";
|
|
};
|
|
|
|
reg_cldo2: cldo2 {
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
regulator-name = "vcc-efuse";
|
|
};
|
|
|
|
reg_cldo3: cldo3 {
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
regulator-name = "vcc-io-mmc-spi-ana";
|
|
};
|
|
|
|
reg_cldo4: cldo4 {
|
|
/* not connected */
|
|
};
|
|
|
|
reg_cpusldo: cpusldo {
|
|
/* supplies the management core */
|
|
regulator-always-on;
|
|
regulator-min-microvolt = <900000>;
|
|
regulator-max-microvolt = <900000>;
|
|
regulator-name = "vdd-cpus";
|
|
};
|
|
};
|
|
};
|
|
|
|
axp323: pmic@36 {
|
|
compatible = "x-powers,axp323";
|
|
reg = <0x36>;
|
|
#interrupt-cells = <1>;
|
|
interrupt-controller;
|
|
interrupt-parent = <&nmi_intc>;
|
|
interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
|
|
status = "okay";
|
|
|
|
vin1-supply = <®_vcc5v>;
|
|
vin2-supply = <®_vcc5v>;
|
|
vin3-supply = <®_vcc5v>;
|
|
|
|
regulators {
|
|
aldo1 {
|
|
/* not connected */
|
|
};
|
|
|
|
dldo1 {
|
|
/* not connected */
|
|
};
|
|
|
|
/* Supplies the "big" cluster (1.8 GHz cores) */
|
|
reg_dcdc1_323: dcdc1 {
|
|
regulator-always-on;
|
|
regulator-min-microvolt = <900000>;
|
|
regulator-max-microvolt = <1160000>;
|
|
regulator-name = "vdd-cpub";
|
|
};
|
|
|
|
/* DCDC2 is polyphased with DCDC1 */
|
|
|
|
/* Some RISC-V management core related voltage */
|
|
reg_dcdc3_323: dcdc3 {
|
|
regulator-always-on;
|
|
regulator-min-microvolt = <900000>;
|
|
regulator-max-microvolt = <900000>;
|
|
regulator-name = "vdd-dnr";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&r_pio {
|
|
/*
|
|
* Specifying the supply would create a circular dependency.
|
|
*
|
|
* vcc-pl-supply = <®_aldo3>;
|
|
*/
|
|
vcc-pm-supply = <®_aldo3>;
|
|
};
|
|
|
|
&uart0 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&uart0_pb_pins>;
|
|
status = "okay";
|
|
};
|
|
|
|
&usb_otg {
|
|
/*
|
|
* The CC pins of the USB-C port have two pull-down resistors
|
|
* connected to GND, which fixes this port to a peripheral role.
|
|
* There is a regulator, controlled by a GPIO, to provide VBUS power
|
|
* to the port, and a VBUSDET GPIO, to detect externally provided
|
|
* power, but without the CC pins there is no real way to do a
|
|
* runtime role detection.
|
|
*/
|
|
dr_mode = "peripheral";
|
|
status = "okay";
|
|
};
|
|
|
|
&usbphy {
|
|
usb0_vbus-supply = <®_usb_vbus>;
|
|
usb0_vbus_det-gpios = <&pio 8 13 GPIO_ACTIVE_HIGH>; /* PI13 */
|
|
status = "okay";
|
|
};
|