Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: resolve all compilation warnings #338

Merged
merged 7 commits into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ INT = GPIOAO_3";

&i2c3 {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
pinctrl-0 = <&i2c3_sck_a_pins &i2c3_sda_a_pins>;
pinctrl-names = "default";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ INT=GPIOX_8";
compatible = "spi-gpio";
#address-cells = <1>;
#size-cells = <0>;
ranges;
RadxaYuntian marked this conversation as resolved.
Show resolved Hide resolved
mosi-gpios = <&gpio GPIOH_4 GPIO_ACTIVE_HIGH>;
miso-gpios = <&gpio GPIOH_5 GPIO_ACTIVE_HIGH>;
sck-gpios = <&gpio GPIOH_7 GPIO_ACTIVE_HIGH>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@

&dsi0 {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
dsi0_panel: panel@0 {
status = "okay";
compatible = "simple-panel-dsi";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@

&dsi1 {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;

dsi1_panel: panel@0 {
status = "okay";
Expand Down Expand Up @@ -405,6 +407,8 @@
&i2c2 {
status = "okay";
pinctrl-0 = <&i2c2m1_xfer>;
#address-cells = <1>;
#size-cells = <0>;

focaltech: focaltech@38 {
status = "okay";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ HDMI will be disabled.";
};
};

ports {
port {
panel_in_edp: endpoint {
RadxaYuntian marked this conversation as resolved.
Show resolved Hide resolved
remote-endpoint = <&edp_out_panel>;
};
Expand All @@ -117,6 +117,8 @@ HDMI will be disabled.";
force-hpd;

ports {
#address-cells = <1>;
#size-cells = <0>;
edp_out: port@1 {
reg = <1>;
#address-cells = <1>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
};
};

ports {
port {
panel_in_lvds: endpoint {
remote-endpoint = <&lvds_out_panel>;
};
Expand All @@ -118,6 +118,8 @@
status = "okay";

ports {
#address-cells = <1>;
#size-cells = <0>;
port@1 {
reg = <1>;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
};
};

ports {
port {
panel_in_edp: endpoint {
remote-endpoint = <&edp_out_panel>;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
#address-cells = <1>;
#size-cells = <0>;

port {
port@0 {
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
#address-cells = <1>;
#size-cells = <0>;

port {
port@0 {
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@

&csi2_dphy0 {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
ports {
#address-cells = <1>;
#size-cells = <0>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@

&i2c6 {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;

ov5647: ov5647@36 {
status = "okay";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@

&i2c6 {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;

ov5647: ov5647@36 {
status = "okay";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
&i2c4 {
status = "okay";
pinctrl-0 = <&i2c4m2_xfer>;
#address-cells = <1>;
#size-cells = <0>;

camera0_imx219: camera0-imx219@10 {
compatible = "sony,imx219";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@

&i2c6 {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;

camera1_imx219: camera1-imx219@10 {
compatible = "sony,imx219";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
pinctrl-0 = <&pwm1_pin>;
pinctrl-names = "default";
interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH 0>;
interrupt-parent = <&gic>;

ir_key1 {
rockchip,usercode = <0xff00>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ MOSI=16 MISO=18 SCK=36 CS=38 INT=40";
compatible = "spi-gpio";
#address-cells = <1>;
#size-cells = <0>;
ranges;
gpio-mosi = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>;
gpio-miso = <&gpio4 RK_PD4 GPIO_ACTIVE_HIGH>;
gpio-sck = <&gpio4 RK_PA4 GPIO_ACTIVE_HIGH>;
Expand All @@ -45,6 +44,8 @@ MOSI=16 MISO=18 SCK=36 CS=38 INT=40";
};

&pinctrl {
#address-cells = <2>;
RadxaYuntian marked this conversation as resolved.
Show resolved Hide resolved
#size-cells = <2>;
enc28j60 {
enc28j60_int_pins: enc28j60-int-pins {
rockchip,pins = <4 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ INT=40";

&spi2 {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&spi2_clk &spi2_cs0 &spi2_rx &spi2_tx>;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ This overlay is NOT compatiable with regular ROCK 4C.";

&spi5 {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&spi5_clk &spi5_tx &spi5_rx &spi5_cs0>;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@ INT=15";
#size-cells = <0>;
pinctrl-names = "default";
max-freq = <50000000>;
pinctrl-0 = <&spi0_csn1 &spi0_pins>;
RadxaYuntian marked this conversation as resolved.
Show resolved Hide resolved
num-cs = <2>;
RadxaYuntian marked this conversation as resolved.
Show resolved Hide resolved
cs-gpios = <&gpio4 RK_PC1 GPIO_ACTIVE_LOW>;

ethernet: enc28j60@0 {
ethernet: enc28j60@1 {
compatible = "microchip,enc28j60";
reg = <1>;
spi-max-frequency = <20000000>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,9 @@ INT=15";
max-freq = <10000000>;
#address-cells = <1>;
#size-cells = <0>;
pinctrl-0 = <&spi0_csn1 &spi0_pins>;
num-cs = <2>;
cs-gpios = <&gpio4 RK_PC1 GPIO_ACTIVE_LOW>;

can_mcp2515: can-mcp2515@0 {
can_mcp2515: can-mcp2515@1 {
status = "okay";
compatible = "microchip,mcp2515";
reg = <1>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,9 @@
#address-cells = <1>;
#size-cells = <0>;
max-freq = <50000000>;
pinctrl-0 = <&spi0_csn1 &spi0_pins>;
num-cs = <2>;
cs-gpios = <&gpio4 RK_PC1 GPIO_ACTIVE_LOW>;

spidev@0 {
spidev@1 {
compatible = "rockchip,spidev";
status = "okay";
reg = <1>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

&i2c2 {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&i2c2m0_xfer>;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
&reserved_memory {
#address-cells = <2>;
#size-cells = <2>;
ranges;

rknpu_reserved: rknpu {
compatible = "shared-dma-pool";
Expand Down
2 changes: 2 additions & 0 deletions arch/arm64/boot/dts/rockchip/overlays/rock-2a-eeprom.dts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ This is a onboard device that we disable by default, so GPIO pins can function a

&i2c1 {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&i2c1m0_xfer>;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
};
};

ports {
port {
panel_in_edp: endpoint {
remote-endpoint = <&edp_out_panel>;
};
Expand All @@ -119,6 +119,8 @@
status = "okay";

ports {
#address-cells = <1>;
#size-cells = <0>;
edp_out: port@1 {
reg = <1>;
#address-cells = <1>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ This will disable DP0.";
};
};

ports {
port {
panel_in_edp0: endpoint {
remote-endpoint = <&edp0_out_panel>;
};
Expand All @@ -126,6 +126,8 @@ This will disable DP0.";
status = "okay";

ports {
#address-cells = <1>;
#size-cells = <0>;
port@1 {
reg = <1>;
#address-cells = <1>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ This will disable DP1.";
};
};

ports {
port {
panel_in_edp0: endpoint {
remote-endpoint = <&edp0_out_panel>;
};
Expand All @@ -126,6 +126,8 @@ This will disable DP1.";
status = "okay";

ports {
#address-cells = <1>;
#size-cells = <0>;
port@1 {
reg = <1>;
#address-cells = <1>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@

&i2c3 {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;

ov5647: ov5647@36 {
status = "okay";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@

&i2c3 {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;

camera_imx219: camera-imx219@10 {
compatible = "sony,imx219";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@

&i2c3 {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;

ov5647: ov5647@36 {
status = "okay";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@

&i2c3 {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;

camera_imx219: camera-imx219@10 {
compatible = "sony,imx219";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@

&i2c2 {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
camera0_imx219: camera0-imx219@10 {
compatible = "sony,imx219";
reg = <0x10>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&i2c6m0_xfer>;
#address-cells = <1>;
#size-cells = <0>;

camera0_imx219: camera0-imx219@10 {
compatible = "sony,imx219";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@

&i2c2 {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;

camera0_imx219: camera0-imx219@10 {
compatible = "sony,imx219";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@

&i2c6 {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&i2c6m0_xfer>;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@

&i2c2 {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;

ov5647: ov5647@36 {
status = "okay";
Expand Down
Loading