From 065c8e20767bd6d45c0b12e61ff5fd4df8d8c01a Mon Sep 17 00:00:00 2001 From: Geert Uytterhoeven Date: Tue, 6 Jul 2021 14:52:19 +0200 Subject: [PATCH 1/2] squash! riscv: dts: Add JH7100 and BeagleV Starlight support make dtbs_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml: arch/riscv/boot/dts/starfive/jh7100-beaglev-starlight.dt.yaml: i2c@118b0000: clock-names:0: 'ref' was expected From schema: Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml arch/riscv/boot/dts/starfive/jh7100-beaglev-starlight.dt.yaml: i2c@118c0000: clock-names:0: 'ref' was expected From schema: Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml arch/riscv/boot/dts/starfive/jh7100-beaglev-starlight.dt.yaml: i2c@12450000: clock-names:0: 'ref' was expected From schema: Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml arch/riscv/boot/dts/starfive/jh7100-beaglev-starlight.dt.yaml: i2c@12460000: clock-names:0: 'ref' was expected From schema: Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml i2c first clock name should be ref not core Signed-off-by: Geert Uytterhoeven --- arch/riscv/boot/dts/starfive/jh7100.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/riscv/boot/dts/starfive/jh7100.dtsi b/arch/riscv/boot/dts/starfive/jh7100.dtsi index 9d660df2214e8c..a0f204be66d846 100644 --- a/arch/riscv/boot/dts/starfive/jh7100.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7100.dtsi @@ -277,7 +277,7 @@ interrupts = <96>; clocks = <&clkgen JH7100_CLK_I2C0_CORE>, <&clkgen JH7100_CLK_I2C0_APB>; - clock-names = "core", "pclk"; + clock-names = "ref", "pclk"; status = "disabled"; }; @@ -289,7 +289,7 @@ interrupts = <97>; clocks = <&clkgen JH7100_CLK_I2C1_CORE>, <&clkgen JH7100_CLK_I2C1_APB>; - clock-names = "core", "pclk"; + clock-names = "ref", "pclk"; status = "disabled"; }; @@ -301,7 +301,7 @@ interrupts = <74>; clocks = <&clkgen JH7100_CLK_I2C2_CORE>, <&clkgen JH7100_CLK_I2C2_APB>; - clock-names = "core", "pclk"; + clock-names = "ref", "pclk"; status = "disabled"; }; @@ -313,7 +313,7 @@ interrupts = <75>; clocks = <&clkgen JH7100_CLK_I2C3_CORE>, <&clkgen JH7100_CLK_I2C3_APB>; - clock-names = "core", "pclk"; + clock-names = "ref", "pclk"; status = "disabled"; }; From 83a4ab28e0f9756f137c07aa7a56941a686a8023 Mon Sep 17 00:00:00 2001 From: Geert Uytterhoeven Date: Thu, 8 Jul 2021 09:58:48 +0200 Subject: [PATCH 2/2] squash! dt-bindings: gpio: add starfive,jh7100-gpio bindings make dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/gpio/starfive,jh7100-gpio.yaml: Error: Documentation/devicetree/bindings/gpio/starfive,jh7100-gpio.example.dts:24.31-32 syntax error FATAL ERROR: Unable to parse input tree Fix clock ID and add missing semicolon. Signed-off-by: Geert Uytterhoeven --- .../devicetree/bindings/gpio/starfive,jh7100-gpio.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/gpio/starfive,jh7100-gpio.yaml b/Documentation/devicetree/bindings/gpio/starfive,jh7100-gpio.yaml index a076bf90328b75..3cc6c869ef2a3a 100644 --- a/Documentation/devicetree/bindings/gpio/starfive,jh7100-gpio.yaml +++ b/Documentation/devicetree/bindings/gpio/starfive,jh7100-gpio.yaml @@ -56,7 +56,7 @@ examples: gpio@11910000 { compatible = "starfive,jh7100-gpio"; reg = <0x11910000 0x10000>; - clocks = <&clkgen CLK_GPIO_APB> + clocks = <&clkgen JH7100_CLK_GPIO_APB>; gpio-controller; #gpio-cells = <2>; interrupt-controller;