1 // SPDX-License-Identifier: GPL-2.0 1 // SPDX-License-Identifier: GPL-2.0 2 /* 2 /* 3 * Device Tree Source for the iWave RZ/G1H Qse 3 * Device Tree Source for the iWave RZ/G1H Qseven SOM 4 * 4 * 5 * Copyright (C) 2020 Renesas Electronics Corp 5 * Copyright (C) 2020 Renesas Electronics Corp. 6 */ 6 */ 7 7 8 #include "r8a7742.dtsi" 8 #include "r8a7742.dtsi" 9 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/gpio/gpio.h> 10 10 11 / { 11 / { 12 compatible = "iwave,g21m", "renesas,r8 12 compatible = "iwave,g21m", "renesas,r8a7742"; 13 13 14 memory@40000000 { 14 memory@40000000 { 15 device_type = "memory"; 15 device_type = "memory"; 16 reg = <0 0x40000000 0 0x400000 16 reg = <0 0x40000000 0 0x40000000>; 17 }; 17 }; 18 18 19 memory@200000000 { 19 memory@200000000 { 20 device_type = "memory"; 20 device_type = "memory"; 21 reg = <2 0x00000000 0 0x400000 21 reg = <2 0x00000000 0 0x40000000>; 22 }; 22 }; 23 23 24 reg_3p3v: 3p3v { 24 reg_3p3v: 3p3v { 25 compatible = "regulator-fixed" 25 compatible = "regulator-fixed"; 26 regulator-name = "3P3V"; 26 regulator-name = "3P3V"; 27 regulator-min-microvolt = <330 27 regulator-min-microvolt = <3300000>; 28 regulator-max-microvolt = <330 28 regulator-max-microvolt = <3300000>; 29 regulator-always-on; 29 regulator-always-on; 30 regulator-boot-on; 30 regulator-boot-on; 31 }; 31 }; 32 }; 32 }; 33 33 34 &extal_clk { 34 &extal_clk { 35 clock-frequency = <20000000>; 35 clock-frequency = <20000000>; 36 }; 36 }; 37 37 38 &gpio0 { 38 &gpio0 { 39 /* GP0_18 set low to select QSPI. Doin 39 /* GP0_18 set low to select QSPI. Doing so will disable VIN2 */ 40 qspi-en-hog { 40 qspi-en-hog { 41 gpio-hog; 41 gpio-hog; 42 gpios = <18 GPIO_ACTIVE_HIGH>; 42 gpios = <18 GPIO_ACTIVE_HIGH>; 43 output-low; 43 output-low; 44 line-name = "QSPI_EN"; 44 line-name = "QSPI_EN"; 45 }; 45 }; 46 }; 46 }; 47 47 48 &i2c0 { 48 &i2c0 { 49 pinctrl-0 = <&i2c0_pins>; 49 pinctrl-0 = <&i2c0_pins>; 50 pinctrl-names = "default"; 50 pinctrl-names = "default"; 51 51 52 status = "okay"; 52 status = "okay"; 53 clock-frequency = <400000>; 53 clock-frequency = <400000>; 54 54 55 rtc@68 { 55 rtc@68 { 56 compatible = "ti,bq32000"; 56 compatible = "ti,bq32000"; 57 reg = <0x68>; 57 reg = <0x68>; 58 interrupt-parent = <&gpio1>; 58 interrupt-parent = <&gpio1>; 59 interrupts = <1 IRQ_TYPE_EDGE_ 59 interrupts = <1 IRQ_TYPE_EDGE_FALLING>; 60 }; 60 }; 61 }; 61 }; 62 62 63 &mmcif1 { 63 &mmcif1 { 64 pinctrl-0 = <&mmc1_pins>; 64 pinctrl-0 = <&mmc1_pins>; 65 pinctrl-names = "default"; 65 pinctrl-names = "default"; 66 66 67 vmmc-supply = <®_3p3v>; 67 vmmc-supply = <®_3p3v>; 68 bus-width = <4>; 68 bus-width = <4>; 69 non-removable; 69 non-removable; 70 status = "okay"; 70 status = "okay"; 71 }; 71 }; 72 72 73 &pfc { 73 &pfc { 74 i2c0_pins: i2c0 { 74 i2c0_pins: i2c0 { 75 groups = "i2c0"; 75 groups = "i2c0"; 76 function = "i2c0"; 76 function = "i2c0"; 77 }; 77 }; 78 78 79 mmc1_pins: mmc1 { 79 mmc1_pins: mmc1 { 80 groups = "mmc1_data4", "mmc1_c 80 groups = "mmc1_data4", "mmc1_ctrl"; 81 function = "mmc1"; 81 function = "mmc1"; 82 }; 82 }; 83 83 84 qspi_pins: qspi { 84 qspi_pins: qspi { 85 groups = "qspi_ctrl", "qspi_da 85 groups = "qspi_ctrl", "qspi_data2"; 86 function = "qspi"; 86 function = "qspi"; 87 }; 87 }; 88 }; 88 }; 89 89 90 &qspi { 90 &qspi { 91 pinctrl-0 = <&qspi_pins>; 91 pinctrl-0 = <&qspi_pins>; 92 pinctrl-names = "default"; 92 pinctrl-names = "default"; 93 93 94 status = "okay"; 94 status = "okay"; 95 95 96 flash: flash@0 { 96 flash: flash@0 { 97 compatible = "sst,sst25vf016b" 97 compatible = "sst,sst25vf016b", "jedec,spi-nor"; 98 reg = <0>; 98 reg = <0>; 99 spi-max-frequency = <50000000> 99 spi-max-frequency = <50000000>; 100 m25p,fast-read; 100 m25p,fast-read; 101 spi-cpol; 101 spi-cpol; 102 spi-cpha; 102 spi-cpha; 103 103 104 partitions { 104 partitions { 105 compatible = "fixed-pa 105 compatible = "fixed-partitions"; 106 #address-cells = <1>; 106 #address-cells = <1>; 107 #size-cells = <1>; 107 #size-cells = <1>; 108 108 109 partition@0 { 109 partition@0 { 110 label = "bootl 110 label = "bootloader"; 111 reg = <0x00000 111 reg = <0x00000000 0x000c0000>; 112 read-only; 112 read-only; 113 }; 113 }; 114 partition@c0000 { 114 partition@c0000 { 115 label = "env"; 115 label = "env"; 116 reg = <0x000c0 116 reg = <0x000c0000 0x00002000>; 117 }; 117 }; 118 partition@c2000 { 118 partition@c2000 { 119 label = "user" 119 label = "user"; 120 reg = <0x000c2 120 reg = <0x000c2000 0x0013e000>; 121 }; 121 }; 122 }; 122 }; 123 }; 123 }; 124 }; 124 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.