mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-19 13:50:48 +00:00

Fix warning when use W=1 to build dtb, as following error: arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi:65.7-76.4: Warning (unit_address_vs_reg): /sram: node has a reg or ranges property, but no unit name arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi:168.34-413.6: Warning (unit_address_vs_reg): /soc/bus@fe000000/pinctrl@4000: node has a unit name, but no reg or ranges property arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi:168.34-413.6: Warning (simple_bus_reg): /soc/bus@fe000000/pinctrl@4000: missing or empty reg/ranges property arch/arm64/boot/dts/amlogic/amlogic-c3-c302x-aw409.dts:205.9-245.4: Warning (avoid_unnecessary_addr_size): /soc/bus@fe000000/spi@56000 /nand@0: unnecessary #address-cells/#size-cells without "ranges", "dma-ranges" or child "reg" property Fixes:d4bd8f3023
("arm64: dts: amlogic: add C3 AW419 board") Fixes:520b792e83
("arm64: dts: amlogic: add some device nodes for C3") Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/r/202409010005.A7tSzgEn-lkp@intel.com/ Signed-off-by: Xianwei Zhao <xianwei.zhao@amlogic.com> Link: https://lore.kernel.org/r/20240902-fix_warning-v1-1-037029c584fc@amlogic.com Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
260 lines
5.2 KiB
Text
260 lines
5.2 KiB
Text
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
/*
|
|
* Copyright (c) 2024 Amlogic, Inc. All rights reserved.
|
|
*/
|
|
|
|
/dts-v1/;
|
|
|
|
#include "amlogic-c3.dtsi"
|
|
|
|
/ {
|
|
model = "Amlogic C308l aw419 Development Board";
|
|
compatible = "amlogic,aw419", "amlogic,c3";
|
|
interrupt-parent = <&gic>;
|
|
#address-cells = <2>;
|
|
#size-cells = <2>;
|
|
|
|
aliases {
|
|
serial0 = &uart_b;
|
|
spi0 = &spifc;
|
|
};
|
|
|
|
memory@0 {
|
|
device_type = "memory";
|
|
reg = <0x0 0x0 0x0 0x80000000>;
|
|
};
|
|
|
|
reserved-memory {
|
|
#address-cells = <2>;
|
|
#size-cells = <2>;
|
|
ranges;
|
|
|
|
/* 9 MiB reserved for ARM Trusted Firmware */
|
|
secmon_reserved: secmon@7f00000 {
|
|
compatible = "shared-dma-pool";
|
|
reg = <0x0 0x07f00000 0x0 0x900000>;
|
|
no-map;
|
|
};
|
|
};
|
|
|
|
main_12v: regulator-main-12v {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "12V";
|
|
regulator-min-microvolt = <12000000>;
|
|
regulator-max-microvolt = <12000000>;
|
|
regulator-boot-on;
|
|
regulator-always-on;
|
|
};
|
|
|
|
vcc_5v: regulator-vcc-5v {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "VCC5V";
|
|
regulator-min-microvolt = <5000000>;
|
|
regulator-max-microvolt = <5000000>;
|
|
vin-supply = <&main_12v>;
|
|
regulator-boot-on;
|
|
regulator-always-on;
|
|
};
|
|
|
|
vddq: regulator-vddq {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "VDDQ";
|
|
regulator-min-microvolt = <1200000>;
|
|
regulator-max-microvolt = <1200000>;
|
|
vin-supply = <&main_12v>;
|
|
regulator-boot-on;
|
|
regulator-always-on;
|
|
};
|
|
|
|
vddao_3v3: regulator-vddao-3v3 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "VDDAO3V3";
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
vin-supply = <&main_12v>;
|
|
regulator-boot-on;
|
|
regulator-always-on;
|
|
};
|
|
|
|
vddao_1v8: regulator-vddao-1v8 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "VDDAO1V8";
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
vin-supply = <&vddao_3v3>;
|
|
regulator-boot-on;
|
|
regulator-always-on;
|
|
};
|
|
|
|
ddr4_2v5: regulator-ddr4-2v5 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "DDR4_2V5";
|
|
regulator-min-microvolt = <2500000>;
|
|
regulator-max-microvolt = <2500000>;
|
|
vin-supply = <&vddao_3v3>;
|
|
regulator-boot-on;
|
|
regulator-always-on;
|
|
};
|
|
|
|
vcc_3v3: regulator-vcc-3v3 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "VCC3V3";
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
vin-supply = <&vddao_3v3>;
|
|
regulator-boot-on;
|
|
regulator-always-on;
|
|
};
|
|
|
|
vcc_1v8: regulator-vcc-1v8 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "VCC1V8";
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
vin-supply = <&vcc_3v3>;
|
|
regulator-boot-on;
|
|
regulator-always-on;
|
|
};
|
|
|
|
vdd_1v8: regulator-vdd-1v8 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "VDD1V8_BOOT";
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
vin-supply = <&vcc_3v3>;
|
|
regulator-boot-on;
|
|
regulator-always-on;
|
|
};
|
|
|
|
vddio_b: regulator-vddio-3v3-b {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "VDDIO_B";
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
vin-supply = <&vcc_3v3>;
|
|
regulator-boot-on;
|
|
regulator-always-on;
|
|
};
|
|
|
|
sdcard: regulator-sdcard {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "SDCARD_POWER";
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
vin-supply = <&vddao_3v3>;
|
|
gpio = <&gpio GPIOA_4 GPIO_ACTIVE_LOW>;
|
|
regulator-boot-on;
|
|
regulator-always-on;
|
|
};
|
|
};
|
|
|
|
&uart_b {
|
|
status = "okay";
|
|
};
|
|
|
|
&nand {
|
|
status = "okay";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
pinctrl-0 = <&nand_pins>;
|
|
pinctrl-names = "default";
|
|
|
|
nand@0 {
|
|
reg = <0>;
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
nand-on-flash-bbt;
|
|
|
|
partition@0 {
|
|
label = "boot";
|
|
reg = <0x0 0x00200000>;
|
|
};
|
|
partition@200000 {
|
|
label = "env";
|
|
reg = <0x00200000 0x00400000>;
|
|
};
|
|
partition@600000 {
|
|
label = "system";
|
|
reg = <0x00600000 0x00a00000>;
|
|
};
|
|
partition@1000000 {
|
|
label = "rootfs";
|
|
reg = <0x01000000 0x03000000>;
|
|
};
|
|
partition@4000000 {
|
|
label = "media";
|
|
reg = <0x04000000 0x8000000>;
|
|
};
|
|
};
|
|
};
|
|
|
|
ðmac {
|
|
status = "okay";
|
|
phy-handle = <&internal_ephy>;
|
|
phy-mode = "rmii";
|
|
};
|
|
|
|
&spifc {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
pinctrl-0 = <&spifc_pins>;
|
|
pinctrl-names = "default";
|
|
|
|
nand@0 {
|
|
compatible = "spi-nand";
|
|
reg = <0>;
|
|
spi-max-frequency = <83000000>;
|
|
spi-tx-bus-width = <4>;
|
|
spi-rx-bus-width = <4>;
|
|
status = "disabled";
|
|
|
|
partitions {
|
|
compatible = "fixed-partitions";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
partition@0 {
|
|
label = "boot";
|
|
reg = <0 0x200000>;
|
|
};
|
|
|
|
partition@200000 {
|
|
label = "env";
|
|
reg = <0x200000 0x400000>;
|
|
};
|
|
|
|
partition@600000 {
|
|
label = "system";
|
|
reg = <0x600000 0xa00000>;
|
|
};
|
|
|
|
partition@1000000 {
|
|
label = "rootfs";
|
|
reg = <0x1000000 0x3000000>;
|
|
};
|
|
|
|
partition@4000000 {
|
|
label = "data";
|
|
reg = <0x4000000 0x8000000>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&sd {
|
|
status = "okay";
|
|
pinctrl-0 = <&sdcard_pins>;
|
|
pinctrl-1 = <&sdcard_clk_gate_pins>;
|
|
pinctrl-names = "default","clk-gate";
|
|
|
|
bus-width = <4>;
|
|
cap-sd-highspeed;
|
|
max-frequency = <50000000>;
|
|
disable-wp;
|
|
|
|
cd-gpios = <&gpio GPIOC_6 GPIO_ACTIVE_LOW>;
|
|
vmmc-supply = <&sdcard>;
|
|
vqmmc-supply = <&sdcard>;
|
|
};
|