/* * Copyright (c) 2023 IoT.bzh * * SPDX-License-Identifier: Apache-2.0 */ #include #include #include / { soc { /* The last four registers of this controller are * located in the control domain * A custom G4MH/RH850 µC firmware has to be flashed to access them */ pfc: pin-controller@e6050000 { compatible = "renesas,rcar-pfc"; reg = <0xe6050000 0x16c>, <0xe6050800 0x16c>, <0xe6051000 0x16c>, <0xe6051800 0x16c>, <0xdfd90000 0x16c>, <0xdfd90800 0x16c>, <0xdfd91000 0x16c>, <0xdfd91800 0x16c>; }; /* Clock controller * Using domain 0 as Linux */ cpg: clock-controller@e6150000 { compatible = "renesas,r8a779f0-cpg-mssr"; reg = <0xe6150000 0x4000>; #clock-cells = <2>; }; gpio0: gpio@e6050180 { compatible = "renesas,rcar-gpio"; reg = <0xe6050180 0x54>; #gpio-cells = <2>; gpio-controller; interrupts = ; clocks = <&cpg CPG_MOD 915>; status = "disabled"; }; /* * Control domain security has to be released to access gpio4 controller * A custom G4MH/RH850 µC firmware has to be flashed to do that */ gpio4: gpio@dfd90180 { compatible = "renesas,rcar-gpio"; reg = <0xdfd90180 0x54>; #gpio-cells = <2>; gpio-controller; interrupts = ; clocks = <&cpg CPG_MOD 915>; status = "disabled"; }; /* Zephyr console */ scif0: serial@e6e60000 { interrupts = ; clocks = <&cpg CPG_MOD 702>, <&cpg CPG_CORE R8A779F0_CLK_S0D12_PER>; }; /* Linux console */ scif3: serial@e6c50000 { interrupts = ; clocks = <&cpg CPG_MOD 704>, <&cpg CPG_CORE R8A779F0_CLK_S0D12_PER>; }; }; };