From 03b211918d94f6c7a0dfc1267cca18e389767acf Mon Sep 17 00:00:00 2001 From: CodeChenL <2540735020@qq.com> Date: Fri, 28 Jun 2024 11:56:56 +0800 Subject: [PATCH 1/7] fix: add missing #address-cells and #size-cells properties --- .../dts/amlogic/overlays/meson-g12-i2c-ee-m3-a-ds3231.dts | 2 ++ .../overlays/radxa-cm3-io-jymx1013833281be-display.dts | 2 ++ .../rockchip/overlays/radxa-cm3-io-radxa-10p1inch-display.dts | 4 ++++ .../overlays/radxa-cm3-io-sharp-lq133t1jw01-without-hdmi.dts | 2 ++ .../dts/rockchip/overlays/radxa-cm3-lvds-boe-mv185whb-n20.dts | 2 ++ .../dts/rockchip/overlays/radxa-cm5-io-radxa-camera-8m.dts | 2 ++ .../rockchip/overlays/radxa-nx5-io-okdo-camera-5mp-cam1.dts | 2 ++ .../rockchip/overlays/radxa-nx5-io-rpi-camera-v1p3-cam1.dts | 2 ++ .../dts/rockchip/overlays/radxa-nx5-io-rpi-camera-v2-cam0.dts | 2 ++ .../dts/rockchip/overlays/radxa-nx5-io-rpi-camera-v2-cam1.dts | 2 ++ .../boot/dts/rockchip/overlays/rk3399-spi-gpio-enc28j60.dts | 2 ++ .../arm64/boot/dts/rockchip/overlays/rk3399-spi2-enc28j60.dts | 2 ++ .../arm64/boot/dts/rockchip/overlays/rk3399-spi5-enc28j60.dts | 2 ++ .../boot/dts/rockchip/overlays/rk3568-i2c2-m0-pca9555.dts | 2 ++ arch/arm64/boot/dts/rockchip/overlays/rock-2a-eeprom.dts | 2 ++ .../overlays/rock-3b-hdmi-and-sharp-lq133t1jw01-edp-lcd.dts | 2 ++ ...ock-5-itx-enable-sharp-lq133t1jw01-edp-lcd-disable-dp0.dts | 2 ++ ...ock-5-itx-enable-sharp-lq133t1jw01-edp-lcd-disable-dp1.dts | 2 ++ .../boot/dts/rockchip/overlays/rock-5a-okdo-5mp-camera.dts | 2 ++ .../dts/rockchip/overlays/rock-5a-radxa-camera-8m-219.dts | 2 ++ .../boot/dts/rockchip/overlays/rock-5a-rpi-camera-v1_3.dts | 2 ++ .../boot/dts/rockchip/overlays/rock-5a-rpi-camera-v2.dts | 2 ++ .../rockchip/overlays/rock-5d-okdo-camera-5mp-mipi-rx0.dts | 2 ++ .../rockchip/overlays/rock-5d-okdo-camera-5mp-mipi-rx1.dts | 2 ++ .../rockchip/overlays/rock-5d-radxa-camera-8mp-mipi-rx0.dts | 2 ++ .../rockchip/overlays/rock-5d-radxa-camera-8mp-mipi-rx1.dts | 2 ++ .../rockchip/overlays/rock-5d-rpi-camera-v1p3-mipi-rx0.dts | 2 ++ .../rockchip/overlays/rock-5d-rpi-camera-v1p3-mipi-rx1.dts | 2 ++ .../dts/rockchip/overlays/rock-5d-rpi-camera-v2-mipi-rx0.dts | 2 ++ .../dts/rockchip/overlays/rock-5d-rpi-camera-v2-mipi-rx1.dts | 2 ++ 30 files changed, 62 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/overlays/meson-g12-i2c-ee-m3-a-ds3231.dts b/arch/arm64/boot/dts/amlogic/overlays/meson-g12-i2c-ee-m3-a-ds3231.dts index c1bfc479..43a277a5 100644 --- a/arch/arm64/boot/dts/amlogic/overlays/meson-g12-i2c-ee-m3-a-ds3231.dts +++ b/arch/arm64/boot/dts/amlogic/overlays/meson-g12-i2c-ee-m3-a-ds3231.dts @@ -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"; diff --git a/arch/arm64/boot/dts/rockchip/overlays/radxa-cm3-io-jymx1013833281be-display.dts b/arch/arm64/boot/dts/rockchip/overlays/radxa-cm3-io-jymx1013833281be-display.dts index 98d06cbb..61bd1274 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/radxa-cm3-io-jymx1013833281be-display.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/radxa-cm3-io-jymx1013833281be-display.dts @@ -87,6 +87,8 @@ &dsi0 { status = "okay"; + #address-cells = <1>; + #size-cells = <0>; dsi0_panel: panel@0 { status = "okay"; compatible = "simple-panel-dsi"; diff --git a/arch/arm64/boot/dts/rockchip/overlays/radxa-cm3-io-radxa-10p1inch-display.dts b/arch/arm64/boot/dts/rockchip/overlays/radxa-cm3-io-radxa-10p1inch-display.dts index e5db7866..63c9753f 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/radxa-cm3-io-radxa-10p1inch-display.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/radxa-cm3-io-radxa-10p1inch-display.dts @@ -96,6 +96,8 @@ &dsi1 { status = "okay"; + #address-cells = <1>; + #size-cells = <0>; dsi1_panel: panel@0 { status = "okay"; @@ -405,6 +407,8 @@ &i2c2 { status = "okay"; pinctrl-0 = <&i2c2m1_xfer>; + #address-cells = <1>; + #size-cells = <0>; focaltech: focaltech@38 { status = "okay"; diff --git a/arch/arm64/boot/dts/rockchip/overlays/radxa-cm3-io-sharp-lq133t1jw01-without-hdmi.dts b/arch/arm64/boot/dts/rockchip/overlays/radxa-cm3-io-sharp-lq133t1jw01-without-hdmi.dts index 49cdec64..c434135c 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/radxa-cm3-io-sharp-lq133t1jw01-without-hdmi.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/radxa-cm3-io-sharp-lq133t1jw01-without-hdmi.dts @@ -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>; diff --git a/arch/arm64/boot/dts/rockchip/overlays/radxa-cm3-lvds-boe-mv185whb-n20.dts b/arch/arm64/boot/dts/rockchip/overlays/radxa-cm3-lvds-boe-mv185whb-n20.dts index fe8a83cc..13146ac7 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/radxa-cm3-lvds-boe-mv185whb-n20.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/radxa-cm3-lvds-boe-mv185whb-n20.dts @@ -118,6 +118,8 @@ status = "okay"; ports { + #address-cells = <1>; + #size-cells = <0>; port@1 { reg = <1>; diff --git a/arch/arm64/boot/dts/rockchip/overlays/radxa-cm5-io-radxa-camera-8m.dts b/arch/arm64/boot/dts/rockchip/overlays/radxa-cm5-io-radxa-camera-8m.dts index f548fcca..7acc0f58 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/radxa-cm5-io-radxa-camera-8m.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/radxa-cm5-io-radxa-camera-8m.dts @@ -67,6 +67,8 @@ &csi2_dphy0 { status = "okay"; + #address-cells = <1>; + #size-cells = <0>; ports { #address-cells = <1>; #size-cells = <0>; diff --git a/arch/arm64/boot/dts/rockchip/overlays/radxa-nx5-io-okdo-camera-5mp-cam1.dts b/arch/arm64/boot/dts/rockchip/overlays/radxa-nx5-io-okdo-camera-5mp-cam1.dts index 6b54aff3..aedfc5e5 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/radxa-nx5-io-okdo-camera-5mp-cam1.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/radxa-nx5-io-okdo-camera-5mp-cam1.dts @@ -26,6 +26,8 @@ &i2c6 { status = "okay"; + #address-cells = <1>; + #size-cells = <0>; ov5647: ov5647@36 { status = "okay"; diff --git a/arch/arm64/boot/dts/rockchip/overlays/radxa-nx5-io-rpi-camera-v1p3-cam1.dts b/arch/arm64/boot/dts/rockchip/overlays/radxa-nx5-io-rpi-camera-v1p3-cam1.dts index 93e621fd..01b2d1c0 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/radxa-nx5-io-rpi-camera-v1p3-cam1.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/radxa-nx5-io-rpi-camera-v1p3-cam1.dts @@ -26,6 +26,8 @@ &i2c6 { status = "okay"; + #address-cells = <1>; + #size-cells = <0>; ov5647: ov5647@36 { status = "okay"; diff --git a/arch/arm64/boot/dts/rockchip/overlays/radxa-nx5-io-rpi-camera-v2-cam0.dts b/arch/arm64/boot/dts/rockchip/overlays/radxa-nx5-io-rpi-camera-v2-cam0.dts index 9c627bfe..445aab11 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/radxa-nx5-io-rpi-camera-v2-cam0.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/radxa-nx5-io-rpi-camera-v2-cam0.dts @@ -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"; diff --git a/arch/arm64/boot/dts/rockchip/overlays/radxa-nx5-io-rpi-camera-v2-cam1.dts b/arch/arm64/boot/dts/rockchip/overlays/radxa-nx5-io-rpi-camera-v2-cam1.dts index ac117e9c..1298e5fe 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/radxa-nx5-io-rpi-camera-v2-cam1.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/radxa-nx5-io-rpi-camera-v2-cam1.dts @@ -36,6 +36,8 @@ &i2c6 { status = "okay"; + #address-cells = <1>; + #size-cells = <0>; camera1_imx219: camera1-imx219@10 { compatible = "sony,imx219"; diff --git a/arch/arm64/boot/dts/rockchip/overlays/rk3399-spi-gpio-enc28j60.dts b/arch/arm64/boot/dts/rockchip/overlays/rk3399-spi-gpio-enc28j60.dts index e7624eee..1f326c5a 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/rk3399-spi-gpio-enc28j60.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/rk3399-spi-gpio-enc28j60.dts @@ -45,6 +45,8 @@ MOSI=16 MISO=18 SCK=36 CS=38 INT=40"; }; &pinctrl { + #address-cells = <2>; + #size-cells = <2>; enc28j60 { enc28j60_int_pins: enc28j60-int-pins { rockchip,pins = <4 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>; diff --git a/arch/arm64/boot/dts/rockchip/overlays/rk3399-spi2-enc28j60.dts b/arch/arm64/boot/dts/rockchip/overlays/rk3399-spi2-enc28j60.dts index f3108026..55ee86ac 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/rk3399-spi2-enc28j60.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/rk3399-spi2-enc28j60.dts @@ -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>; diff --git a/arch/arm64/boot/dts/rockchip/overlays/rk3399-spi5-enc28j60.dts b/arch/arm64/boot/dts/rockchip/overlays/rk3399-spi5-enc28j60.dts index deb1b4b8..fb74dd97 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/rk3399-spi5-enc28j60.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/rk3399-spi5-enc28j60.dts @@ -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>; diff --git a/arch/arm64/boot/dts/rockchip/overlays/rk3568-i2c2-m0-pca9555.dts b/arch/arm64/boot/dts/rockchip/overlays/rk3568-i2c2-m0-pca9555.dts index 105eb4f0..89073868 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/rk3568-i2c2-m0-pca9555.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/rk3568-i2c2-m0-pca9555.dts @@ -17,6 +17,8 @@ &i2c2 { status = "okay"; + #address-cells = <1>; + #size-cells = <0>; pinctrl-names = "default"; pinctrl-0 = <&i2c2m0_xfer>; diff --git a/arch/arm64/boot/dts/rockchip/overlays/rock-2a-eeprom.dts b/arch/arm64/boot/dts/rockchip/overlays/rock-2a-eeprom.dts index 3fc52fac..deb5b211 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/rock-2a-eeprom.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/rock-2a-eeprom.dts @@ -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>; diff --git a/arch/arm64/boot/dts/rockchip/overlays/rock-3b-hdmi-and-sharp-lq133t1jw01-edp-lcd.dts b/arch/arm64/boot/dts/rockchip/overlays/rock-3b-hdmi-and-sharp-lq133t1jw01-edp-lcd.dts index eb4c1540..b3958eff 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/rock-3b-hdmi-and-sharp-lq133t1jw01-edp-lcd.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/rock-3b-hdmi-and-sharp-lq133t1jw01-edp-lcd.dts @@ -119,6 +119,8 @@ status = "okay"; ports { + #address-cells = <1>; + #size-cells = <0>; edp_out: port@1 { reg = <1>; #address-cells = <1>; diff --git a/arch/arm64/boot/dts/rockchip/overlays/rock-5-itx-enable-sharp-lq133t1jw01-edp-lcd-disable-dp0.dts b/arch/arm64/boot/dts/rockchip/overlays/rock-5-itx-enable-sharp-lq133t1jw01-edp-lcd-disable-dp0.dts index 95c33e14..6e5caceb 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/rock-5-itx-enable-sharp-lq133t1jw01-edp-lcd-disable-dp0.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/rock-5-itx-enable-sharp-lq133t1jw01-edp-lcd-disable-dp0.dts @@ -126,6 +126,8 @@ This will disable DP0."; status = "okay"; ports { + #address-cells = <1>; + #size-cells = <0>; port@1 { reg = <1>; #address-cells = <1>; diff --git a/arch/arm64/boot/dts/rockchip/overlays/rock-5-itx-enable-sharp-lq133t1jw01-edp-lcd-disable-dp1.dts b/arch/arm64/boot/dts/rockchip/overlays/rock-5-itx-enable-sharp-lq133t1jw01-edp-lcd-disable-dp1.dts index 014f60da..8716450d 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/rock-5-itx-enable-sharp-lq133t1jw01-edp-lcd-disable-dp1.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/rock-5-itx-enable-sharp-lq133t1jw01-edp-lcd-disable-dp1.dts @@ -126,6 +126,8 @@ This will disable DP1."; status = "okay"; ports { + #address-cells = <1>; + #size-cells = <0>; port@1 { reg = <1>; #address-cells = <1>; diff --git a/arch/arm64/boot/dts/rockchip/overlays/rock-5a-okdo-5mp-camera.dts b/arch/arm64/boot/dts/rockchip/overlays/rock-5a-okdo-5mp-camera.dts index 23c7e242..d252f120 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/rock-5a-okdo-5mp-camera.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/rock-5a-okdo-5mp-camera.dts @@ -26,6 +26,8 @@ &i2c3 { status = "okay"; + #address-cells = <1>; + #size-cells = <0>; ov5647: ov5647@36 { status = "okay"; diff --git a/arch/arm64/boot/dts/rockchip/overlays/rock-5a-radxa-camera-8m-219.dts b/arch/arm64/boot/dts/rockchip/overlays/rock-5a-radxa-camera-8m-219.dts index 919b81b2..24995ab8 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/rock-5a-radxa-camera-8m-219.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/rock-5a-radxa-camera-8m-219.dts @@ -36,6 +36,8 @@ &i2c3 { status = "okay"; + #address-cells = <1>; + #size-cells = <0>; camera_imx219: camera-imx219@10 { compatible = "sony,imx219"; diff --git a/arch/arm64/boot/dts/rockchip/overlays/rock-5a-rpi-camera-v1_3.dts b/arch/arm64/boot/dts/rockchip/overlays/rock-5a-rpi-camera-v1_3.dts index 61b96b02..b7937d10 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/rock-5a-rpi-camera-v1_3.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/rock-5a-rpi-camera-v1_3.dts @@ -26,6 +26,8 @@ &i2c3 { status = "okay"; + #address-cells = <1>; + #size-cells = <0>; ov5647: ov5647@36 { status = "okay"; diff --git a/arch/arm64/boot/dts/rockchip/overlays/rock-5a-rpi-camera-v2.dts b/arch/arm64/boot/dts/rockchip/overlays/rock-5a-rpi-camera-v2.dts index b6a5fc03..ebb8efee 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/rock-5a-rpi-camera-v2.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/rock-5a-rpi-camera-v2.dts @@ -36,6 +36,8 @@ &i2c3 { status = "okay"; + #address-cells = <1>; + #size-cells = <0>; camera_imx219: camera-imx219@10 { compatible = "sony,imx219"; diff --git a/arch/arm64/boot/dts/rockchip/overlays/rock-5d-okdo-camera-5mp-mipi-rx0.dts b/arch/arm64/boot/dts/rockchip/overlays/rock-5d-okdo-camera-5mp-mipi-rx0.dts index 206e8626..03bb9fbf 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/rock-5d-okdo-camera-5mp-mipi-rx0.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/rock-5d-okdo-camera-5mp-mipi-rx0.dts @@ -37,6 +37,8 @@ &i2c2 { status = "okay"; + #address-cells = <1>; + #size-cells = <0>; camera0_imx219: camera0-imx219@10 { compatible = "sony,imx219"; reg = <0x10>; diff --git a/arch/arm64/boot/dts/rockchip/overlays/rock-5d-okdo-camera-5mp-mipi-rx1.dts b/arch/arm64/boot/dts/rockchip/overlays/rock-5d-okdo-camera-5mp-mipi-rx1.dts index b0e5dede..218c83fa 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/rock-5d-okdo-camera-5mp-mipi-rx1.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/rock-5d-okdo-camera-5mp-mipi-rx1.dts @@ -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"; diff --git a/arch/arm64/boot/dts/rockchip/overlays/rock-5d-radxa-camera-8mp-mipi-rx0.dts b/arch/arm64/boot/dts/rockchip/overlays/rock-5d-radxa-camera-8mp-mipi-rx0.dts index ed39d53e..37cc7cb3 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/rock-5d-radxa-camera-8mp-mipi-rx0.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/rock-5d-radxa-camera-8mp-mipi-rx0.dts @@ -36,6 +36,8 @@ &i2c2 { status = "okay"; + #address-cells = <1>; + #size-cells = <0>; camera0_imx219: camera0-imx219@10 { compatible = "sony,imx219"; diff --git a/arch/arm64/boot/dts/rockchip/overlays/rock-5d-radxa-camera-8mp-mipi-rx1.dts b/arch/arm64/boot/dts/rockchip/overlays/rock-5d-radxa-camera-8mp-mipi-rx1.dts index 765cb075..8768fe82 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/rock-5d-radxa-camera-8mp-mipi-rx1.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/rock-5d-radxa-camera-8mp-mipi-rx1.dts @@ -36,6 +36,8 @@ &i2c6 { status = "okay"; + #address-cells = <1>; + #size-cells = <0>; pinctrl-names = "default"; pinctrl-0 = <&i2c6m0_xfer>; diff --git a/arch/arm64/boot/dts/rockchip/overlays/rock-5d-rpi-camera-v1p3-mipi-rx0.dts b/arch/arm64/boot/dts/rockchip/overlays/rock-5d-rpi-camera-v1p3-mipi-rx0.dts index 08dba06e..b4bc9aed 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/rock-5d-rpi-camera-v1p3-mipi-rx0.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/rock-5d-rpi-camera-v1p3-mipi-rx0.dts @@ -25,6 +25,8 @@ &i2c2 { status = "okay"; + #address-cells = <1>; + #size-cells = <0>; ov5647: ov5647@36 { status = "okay"; diff --git a/arch/arm64/boot/dts/rockchip/overlays/rock-5d-rpi-camera-v1p3-mipi-rx1.dts b/arch/arm64/boot/dts/rockchip/overlays/rock-5d-rpi-camera-v1p3-mipi-rx1.dts index 649e8773..e97962bf 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/rock-5d-rpi-camera-v1p3-mipi-rx1.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/rock-5d-rpi-camera-v1p3-mipi-rx1.dts @@ -25,6 +25,8 @@ &i2c6 { status = "okay"; + #address-cells = <1>; + #size-cells = <0>; pinctrl-names = "default"; pinctrl-0 = <&i2c6m0_xfer>; diff --git a/arch/arm64/boot/dts/rockchip/overlays/rock-5d-rpi-camera-v2-mipi-rx0.dts b/arch/arm64/boot/dts/rockchip/overlays/rock-5d-rpi-camera-v2-mipi-rx0.dts index 0b72cc68..77c2db43 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/rock-5d-rpi-camera-v2-mipi-rx0.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/rock-5d-rpi-camera-v2-mipi-rx0.dts @@ -36,6 +36,8 @@ &i2c2 { status = "okay"; + #address-cells = <1>; + #size-cells = <0>; camera0_imx219: camera0-imx219@10 { compatible = "sony,imx219"; diff --git a/arch/arm64/boot/dts/rockchip/overlays/rock-5d-rpi-camera-v2-mipi-rx1.dts b/arch/arm64/boot/dts/rockchip/overlays/rock-5d-rpi-camera-v2-mipi-rx1.dts index 6fecf7a6..bebb3182 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/rock-5d-rpi-camera-v2-mipi-rx1.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/rock-5d-rpi-camera-v2-mipi-rx1.dts @@ -36,6 +36,8 @@ &i2c6 { status = "okay"; + #address-cells = <1>; + #size-cells = <0>; pinctrl-names = "default"; pinctrl-0 = <&i2c6m0_xfer>; From d82598b7f01c9cc7cc4cbffd6c87fba11d85b0a9 Mon Sep 17 00:00:00 2001 From: CodeChenL <2540735020@qq.com> Date: Fri, 28 Jun 2024 14:22:33 +0800 Subject: [PATCH 2/7] fix: remove the null ranges property --- .../boot/dts/amlogic/overlays/meson-g12-spi-gpio-enc28j60.dts | 1 - .../boot/dts/rockchip/overlays/rk3399-spi-gpio-enc28j60.dts | 1 - arch/arm64/boot/dts/rockchip/overlays/rk3568-npu-enable.dts | 1 - 3 files changed, 3 deletions(-) diff --git a/arch/arm64/boot/dts/amlogic/overlays/meson-g12-spi-gpio-enc28j60.dts b/arch/arm64/boot/dts/amlogic/overlays/meson-g12-spi-gpio-enc28j60.dts index d99044ae..9ca73c80 100644 --- a/arch/arm64/boot/dts/amlogic/overlays/meson-g12-spi-gpio-enc28j60.dts +++ b/arch/arm64/boot/dts/amlogic/overlays/meson-g12-spi-gpio-enc28j60.dts @@ -22,7 +22,6 @@ INT=GPIOX_8"; compatible = "spi-gpio"; #address-cells = <1>; #size-cells = <0>; - ranges; mosi-gpios = <&gpio GPIOH_4 GPIO_ACTIVE_HIGH>; miso-gpios = <&gpio GPIOH_5 GPIO_ACTIVE_HIGH>; sck-gpios = <&gpio GPIOH_7 GPIO_ACTIVE_HIGH>; diff --git a/arch/arm64/boot/dts/rockchip/overlays/rk3399-spi-gpio-enc28j60.dts b/arch/arm64/boot/dts/rockchip/overlays/rk3399-spi-gpio-enc28j60.dts index 1f326c5a..41b298dc 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/rk3399-spi-gpio-enc28j60.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/rk3399-spi-gpio-enc28j60.dts @@ -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>; diff --git a/arch/arm64/boot/dts/rockchip/overlays/rk3568-npu-enable.dts b/arch/arm64/boot/dts/rockchip/overlays/rk3568-npu-enable.dts index fd9ae672..75e1f7f7 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/rk3568-npu-enable.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/rk3568-npu-enable.dts @@ -29,7 +29,6 @@ &reserved_memory { #address-cells = <2>; #size-cells = <2>; - ranges; rknpu_reserved: rknpu { compatible = "shared-dma-pool"; From 55ce7a6494a72224d51c95eb3073fc34161983f5 Mon Sep 17 00:00:00 2001 From: CodeChenL <2540735020@qq.com> Date: Fri, 28 Jun 2024 14:23:53 +0800 Subject: [PATCH 3/7] fix: correct wrong device tree node name --- .../overlays/radxa-cm3-io-sharp-lq133t1jw01-without-hdmi.dts | 2 +- .../dts/rockchip/overlays/radxa-cm3-lvds-boe-mv185whb-n20.dts | 2 +- .../overlays/radxa-cm3i-io-edp-sharp-lq133t1jw01-lcd.dts | 2 +- .../overlays/rock-3b-hdmi-and-sharp-lq133t1jw01-edp-lcd.dts | 2 +- .../rock-5-itx-enable-sharp-lq133t1jw01-edp-lcd-disable-dp0.dts | 2 +- .../rock-5-itx-enable-sharp-lq133t1jw01-edp-lcd-disable-dp1.dts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/overlays/radxa-cm3-io-sharp-lq133t1jw01-without-hdmi.dts b/arch/arm64/boot/dts/rockchip/overlays/radxa-cm3-io-sharp-lq133t1jw01-without-hdmi.dts index c434135c..d7af11a9 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/radxa-cm3-io-sharp-lq133t1jw01-without-hdmi.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/radxa-cm3-io-sharp-lq133t1jw01-without-hdmi.dts @@ -100,7 +100,7 @@ HDMI will be disabled."; }; }; - ports { + port { panel_in_edp: endpoint { remote-endpoint = <&edp_out_panel>; }; diff --git a/arch/arm64/boot/dts/rockchip/overlays/radxa-cm3-lvds-boe-mv185whb-n20.dts b/arch/arm64/boot/dts/rockchip/overlays/radxa-cm3-lvds-boe-mv185whb-n20.dts index 13146ac7..ae9be702 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/radxa-cm3-lvds-boe-mv185whb-n20.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/radxa-cm3-lvds-boe-mv185whb-n20.dts @@ -98,7 +98,7 @@ }; }; - ports { + port { panel_in_lvds: endpoint { remote-endpoint = <&lvds_out_panel>; }; diff --git a/arch/arm64/boot/dts/rockchip/overlays/radxa-cm3i-io-edp-sharp-lq133t1jw01-lcd.dts b/arch/arm64/boot/dts/rockchip/overlays/radxa-cm3i-io-edp-sharp-lq133t1jw01-lcd.dts index 63ef8db9..90e621a0 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/radxa-cm3i-io-edp-sharp-lq133t1jw01-lcd.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/radxa-cm3i-io-edp-sharp-lq133t1jw01-lcd.dts @@ -105,7 +105,7 @@ }; }; - ports { + port { panel_in_edp: endpoint { remote-endpoint = <&edp_out_panel>; }; diff --git a/arch/arm64/boot/dts/rockchip/overlays/rock-3b-hdmi-and-sharp-lq133t1jw01-edp-lcd.dts b/arch/arm64/boot/dts/rockchip/overlays/rock-3b-hdmi-and-sharp-lq133t1jw01-edp-lcd.dts index b3958eff..b39ea1f9 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/rock-3b-hdmi-and-sharp-lq133t1jw01-edp-lcd.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/rock-3b-hdmi-and-sharp-lq133t1jw01-edp-lcd.dts @@ -102,7 +102,7 @@ }; }; - ports { + port { panel_in_edp: endpoint { remote-endpoint = <&edp_out_panel>; }; diff --git a/arch/arm64/boot/dts/rockchip/overlays/rock-5-itx-enable-sharp-lq133t1jw01-edp-lcd-disable-dp0.dts b/arch/arm64/boot/dts/rockchip/overlays/rock-5-itx-enable-sharp-lq133t1jw01-edp-lcd-disable-dp0.dts index 6e5caceb..ba09b2fd 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/rock-5-itx-enable-sharp-lq133t1jw01-edp-lcd-disable-dp0.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/rock-5-itx-enable-sharp-lq133t1jw01-edp-lcd-disable-dp0.dts @@ -105,7 +105,7 @@ This will disable DP0."; }; }; - ports { + port { panel_in_edp0: endpoint { remote-endpoint = <&edp0_out_panel>; }; diff --git a/arch/arm64/boot/dts/rockchip/overlays/rock-5-itx-enable-sharp-lq133t1jw01-edp-lcd-disable-dp1.dts b/arch/arm64/boot/dts/rockchip/overlays/rock-5-itx-enable-sharp-lq133t1jw01-edp-lcd-disable-dp1.dts index 8716450d..ca1c73d0 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/rock-5-itx-enable-sharp-lq133t1jw01-edp-lcd-disable-dp1.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/rock-5-itx-enable-sharp-lq133t1jw01-edp-lcd-disable-dp1.dts @@ -105,7 +105,7 @@ This will disable DP1."; }; }; - ports { + port { panel_in_edp0: endpoint { remote-endpoint = <&edp0_out_panel>; }; From d3bf7b4d16d5c8c64576fec93bcb13cb9fd9bc93 Mon Sep 17 00:00:00 2001 From: CodeChenL <2540735020@qq.com> Date: Fri, 28 Jun 2024 14:24:20 +0800 Subject: [PATCH 4/7] fix: add missing node numbers --- .../rockchip/overlays/radxa-cm3s-io-csi1-okdo-5mp-camera.dts | 2 +- .../dts/rockchip/overlays/radxa-cm3s-io-csi1-rpi-camera-v2.dts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/overlays/radxa-cm3s-io-csi1-okdo-5mp-camera.dts b/arch/arm64/boot/dts/rockchip/overlays/radxa-cm3s-io-csi1-okdo-5mp-camera.dts index 6e60c568..7919f9ce 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/radxa-cm3s-io-csi1-okdo-5mp-camera.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/radxa-cm3s-io-csi1-okdo-5mp-camera.dts @@ -93,7 +93,7 @@ #address-cells = <1>; #size-cells = <0>; - port { + port@0 { reg = <0>; #address-cells = <1>; #size-cells = <0>; diff --git a/arch/arm64/boot/dts/rockchip/overlays/radxa-cm3s-io-csi1-rpi-camera-v2.dts b/arch/arm64/boot/dts/rockchip/overlays/radxa-cm3s-io-csi1-rpi-camera-v2.dts index 83b26588..08abd01b 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/radxa-cm3s-io-csi1-rpi-camera-v2.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/radxa-cm3s-io-csi1-rpi-camera-v2.dts @@ -100,7 +100,7 @@ #address-cells = <1>; #size-cells = <0>; - port { + port@0 { reg = <0>; #address-cells = <1>; #size-cells = <0>; From 710df0adb62251e871bfc878de3a3ab723b60af8 Mon Sep 17 00:00:00 2001 From: CodeChenL <2540735020@qq.com> Date: Mon, 1 Jul 2024 15:04:46 +0800 Subject: [PATCH 5/7] fix: add missing interrupt-parent property --- arch/arm64/boot/dts/rockchip/overlays/rk3399-pwm1-ir-rx.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/rockchip/overlays/rk3399-pwm1-ir-rx.dts b/arch/arm64/boot/dts/rockchip/overlays/rk3399-pwm1-ir-rx.dts index 695da439..33ea9d9f 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/rk3399-pwm1-ir-rx.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/rk3399-pwm1-ir-rx.dts @@ -23,6 +23,7 @@ pinctrl-0 = <&pwm1_pin>; pinctrl-names = "default"; interrupts = ; + interrupt-parent = <&gic>; ir_key1 { rockchip,usercode = <0xff00>; From c6f83b818933b2332ca5b48176b37206bc65564e Mon Sep 17 00:00:00 2001 From: CodeChenL <2540735020@qq.com> Date: Mon, 1 Jul 2024 15:06:43 +0800 Subject: [PATCH 6/7] fix: remove redundant pinctrl and cs-gpios definitions --- .../boot/dts/rockchip/overlays/rk3528-spi0-cs1-enc28j60.dts | 2 -- .../boot/dts/rockchip/overlays/rk3528-spi0-cs1-mcp2515.dts | 2 -- .../arm64/boot/dts/rockchip/overlays/rk3528-spi0-cs1-spidev.dts | 2 -- 3 files changed, 6 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/overlays/rk3528-spi0-cs1-enc28j60.dts b/arch/arm64/boot/dts/rockchip/overlays/rk3528-spi0-cs1-enc28j60.dts index 02b87d66..900a0683 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/rk3528-spi0-cs1-enc28j60.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/rk3528-spi0-cs1-enc28j60.dts @@ -22,9 +22,7 @@ INT=15"; #size-cells = <0>; pinctrl-names = "default"; max-freq = <50000000>; - pinctrl-0 = <&spi0_csn1 &spi0_pins>; num-cs = <2>; - cs-gpios = <&gpio4 RK_PC1 GPIO_ACTIVE_LOW>; ethernet: enc28j60@0 { compatible = "microchip,enc28j60"; diff --git a/arch/arm64/boot/dts/rockchip/overlays/rk3528-spi0-cs1-mcp2515.dts b/arch/arm64/boot/dts/rockchip/overlays/rk3528-spi0-cs1-mcp2515.dts index 5ba543fd..09933b00 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/rk3528-spi0-cs1-mcp2515.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/rk3528-spi0-cs1-mcp2515.dts @@ -38,9 +38,7 @@ 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 { status = "okay"; diff --git a/arch/arm64/boot/dts/rockchip/overlays/rk3528-spi0-cs1-spidev.dts b/arch/arm64/boot/dts/rockchip/overlays/rk3528-spi0-cs1-spidev.dts index 6d52022a..69b0532d 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/rk3528-spi0-cs1-spidev.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/rk3528-spi0-cs1-spidev.dts @@ -18,9 +18,7 @@ #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 { compatible = "rockchip,spidev"; From 33d7d7f2515c8096bd0d83cf8241fa335b6598aa Mon Sep 17 00:00:00 2001 From: CodeChenL <2540735020@qq.com> Date: Mon, 1 Jul 2024 15:07:50 +0800 Subject: [PATCH 7/7] fix: modify correct node index --- .../boot/dts/rockchip/overlays/rk3528-spi0-cs1-enc28j60.dts | 2 +- .../boot/dts/rockchip/overlays/rk3528-spi0-cs1-mcp2515.dts | 2 +- .../arm64/boot/dts/rockchip/overlays/rk3528-spi0-cs1-spidev.dts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/overlays/rk3528-spi0-cs1-enc28j60.dts b/arch/arm64/boot/dts/rockchip/overlays/rk3528-spi0-cs1-enc28j60.dts index 900a0683..905e049e 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/rk3528-spi0-cs1-enc28j60.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/rk3528-spi0-cs1-enc28j60.dts @@ -24,7 +24,7 @@ INT=15"; max-freq = <50000000>; num-cs = <2>; - ethernet: enc28j60@0 { + ethernet: enc28j60@1 { compatible = "microchip,enc28j60"; reg = <1>; spi-max-frequency = <20000000>; diff --git a/arch/arm64/boot/dts/rockchip/overlays/rk3528-spi0-cs1-mcp2515.dts b/arch/arm64/boot/dts/rockchip/overlays/rk3528-spi0-cs1-mcp2515.dts index 09933b00..2e43caa0 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/rk3528-spi0-cs1-mcp2515.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/rk3528-spi0-cs1-mcp2515.dts @@ -40,7 +40,7 @@ INT=15"; #size-cells = <0>; num-cs = <2>; - can_mcp2515: can-mcp2515@0 { + can_mcp2515: can-mcp2515@1 { status = "okay"; compatible = "microchip,mcp2515"; reg = <1>; diff --git a/arch/arm64/boot/dts/rockchip/overlays/rk3528-spi0-cs1-spidev.dts b/arch/arm64/boot/dts/rockchip/overlays/rk3528-spi0-cs1-spidev.dts index 69b0532d..3eb022a9 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/rk3528-spi0-cs1-spidev.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/rk3528-spi0-cs1-spidev.dts @@ -20,7 +20,7 @@ max-freq = <50000000>; num-cs = <2>; - spidev@0 { + spidev@1 { compatible = "rockchip,spidev"; status = "okay"; reg = <1>;