Merge tag 'armsoc-dt' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / r8a7742-iwg21m.dtsi
index 85aff429d4089714ff12048f870404f5b9a718f3..5621c9ed698f0e4aa969ae85e29f6252c882d590 100644 (file)
        clock-frequency = <20000000>;
 };
 
-&pfc {
-       mmc1_pins: mmc1 {
-               groups = "mmc1_data4", "mmc1_ctrl";
-               function = "mmc1";
+&gpio0 {
+       /* GP0_18 set low to select QSPI. Doing so will disable VIN2 */
+       qspi_en {
+               gpio-hog;
+               gpios = <18 GPIO_ACTIVE_HIGH>;
+               output-low;
+               line-name = "QSPI_EN";
+       };
+};
+
+&i2c0 {
+       pinctrl-0 = <&i2c0_pins>;
+       pinctrl-names = "default";
+
+       status = "okay";
+       clock-frequency = <400000>;
+
+       rtc@68 {
+               compatible = "ti,bq32000";
+               reg = <0x68>;
+               interrupt-parent = <&gpio1>;
+               interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
        };
 };
 
        non-removable;
        status = "okay";
 };
+
+&pfc {
+       i2c0_pins: i2c0 {
+               groups = "i2c0";
+               function = "i2c0";
+       };
+
+       mmc1_pins: mmc1 {
+               groups = "mmc1_data4", "mmc1_ctrl";
+               function = "mmc1";
+       };
+
+       qspi_pins: qspi {
+               groups = "qspi_ctrl", "qspi_data2";
+               function = "qspi";
+       };
+};
+
+&qspi {
+       pinctrl-0 = <&qspi_pins>;
+       pinctrl-names = "default";
+
+       status = "okay";
+
+       flash: flash@0 {
+               compatible = "sst,sst25vf016b", "jedec,spi-nor";
+               reg = <0>;
+               spi-max-frequency = <50000000>;
+               m25p,fast-read;
+               spi-cpol;
+               spi-cpha;
+
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       partition@0 {
+                               label = "bootloader";
+                               reg = <0x00000000 0x000c0000>;
+                               read-only;
+                       };
+                       partition@c0000 {
+                               label = "env";
+                               reg = <0x000c0000 0x00002000>;
+                       };
+                       partition@c2000 {
+                               label = "user";
+                               reg = <0x000c2000 0x0013e000>;
+                       };
+               };
+       };
+};