1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 2 /* 2 /* 3 * Copyright (C) 2014 Antoine Ténart <antoine. 3 * Copyright (C) 2014 Antoine Ténart <antoine.tenart@free-electrons.com> 4 */ 4 */ 5 5 6 /dts-v1/; 6 /dts-v1/; 7 7 8 #include <dt-bindings/gpio/gpio.h> 8 #include <dt-bindings/gpio/gpio.h> 9 #include "berlin2q.dtsi" 9 #include "berlin2q.dtsi" 10 10 11 / { 11 / { 12 model = "Marvell BG2-Q DMP"; 12 model = "Marvell BG2-Q DMP"; 13 compatible = "marvell,berlin2q-dmp", " 13 compatible = "marvell,berlin2q-dmp", "marvell,berlin2q", "marvell,berlin"; 14 14 15 memory@0 { 15 memory@0 { 16 device_type = "memory"; 16 device_type = "memory"; 17 reg = <0x00000000 0x80000000>; 17 reg = <0x00000000 0x80000000>; 18 }; 18 }; 19 19 20 chosen { 20 chosen { 21 bootargs = "earlyprintk"; 21 bootargs = "earlyprintk"; 22 stdout-path = "serial0:115200n 22 stdout-path = "serial0:115200n8"; 23 }; 23 }; 24 24 25 regulators { 25 regulators { 26 compatible = "simple-bus"; 26 compatible = "simple-bus"; 27 #address-cells = <1>; 27 #address-cells = <1>; 28 #size-cells = <0>; 28 #size-cells = <0>; 29 29 30 reg_usb0_vbus: regulator_usb0 30 reg_usb0_vbus: regulator_usb0 { 31 compatible = "regulato 31 compatible = "regulator-fixed"; 32 regulator-name = "usb0 32 regulator-name = "usb0_vbus"; 33 regulator-min-microvol 33 regulator-min-microvolt = <5000000>; 34 regulator-max-microvol 34 regulator-max-microvolt = <5000000>; 35 gpio = <&portb 8 GPIO_ 35 gpio = <&portb 8 GPIO_ACTIVE_HIGH>; 36 enable-active-high; 36 enable-active-high; 37 }; 37 }; 38 38 39 reg_usb1_vbus: regulator_usb1 39 reg_usb1_vbus: regulator_usb1 { 40 compatible = "regulato 40 compatible = "regulator-fixed"; 41 regulator-name = "usb1 41 regulator-name = "usb1_vbus"; 42 regulator-min-microvol 42 regulator-min-microvolt = <5000000>; 43 regulator-max-microvol 43 regulator-max-microvolt = <5000000>; 44 gpio = <&portb 10 GPIO 44 gpio = <&portb 10 GPIO_ACTIVE_HIGH>; 45 enable-active-high; 45 enable-active-high; 46 }; 46 }; 47 47 48 reg_usb2_vbus: regulator_usb2 48 reg_usb2_vbus: regulator_usb2 { 49 compatible = "regulato 49 compatible = "regulator-fixed"; 50 regulator-name = "usb2 50 regulator-name = "usb2_vbus"; 51 regulator-min-microvol 51 regulator-min-microvolt = <5000000>; 52 regulator-max-microvol 52 regulator-max-microvolt = <5000000>; 53 gpio = <&portb 12 GPIO 53 gpio = <&portb 12 GPIO_ACTIVE_HIGH>; 54 enable-active-high; 54 enable-active-high; 55 }; 55 }; 56 56 57 reg_sdio1_vmmc: regulator_sdio 57 reg_sdio1_vmmc: regulator_sdio1_vmmc { 58 compatible = "regulato 58 compatible = "regulator-fixed"; 59 regulator-min-microvol 59 regulator-min-microvolt = <3300000>; 60 regulator-max-microvol 60 regulator-max-microvolt = <3300000>; 61 regulator-name = "sdio 61 regulator-name = "sdio1_vmmc"; 62 enable-active-high; 62 enable-active-high; 63 regulator-boot-on; 63 regulator-boot-on; 64 gpio = <&portb 21 GPIO 64 gpio = <&portb 21 GPIO_ACTIVE_HIGH>; 65 }; 65 }; 66 66 67 reg_sdio1_vqmmc: regulator_sid 67 reg_sdio1_vqmmc: regulator_sido1_vqmmc { 68 compatible = "regulato 68 compatible = "regulator-gpio"; 69 regulator-min-microvol 69 regulator-min-microvolt = <1800000>; 70 regulator-max-microvol 70 regulator-max-microvolt = <3300000>; 71 regulator-name = "sdio 71 regulator-name = "sdio1_vqmmc"; 72 regulator-type = "volt 72 regulator-type = "voltage"; 73 enable-active-high; 73 enable-active-high; 74 gpios = <&portb 16 GPI 74 gpios = <&portb 16 GPIO_ACTIVE_HIGH>; 75 states = <3300000 0x1 75 states = <3300000 0x1 76 1800000 0x0> 76 1800000 0x0>; 77 }; 77 }; 78 }; 78 }; 79 }; 79 }; 80 80 81 &soc_pinctrl { 81 &soc_pinctrl { 82 sd1gpio_pmux: sd1pwr-pmux { 82 sd1gpio_pmux: sd1pwr-pmux { 83 groups = "G23", "G32"; 83 groups = "G23", "G32"; 84 function = "gpio"; 84 function = "gpio"; 85 }; 85 }; 86 }; 86 }; 87 87 88 &sdhci1 { 88 &sdhci1 { 89 vmmc-supply = <®_sdio1_vmmc>; 89 vmmc-supply = <®_sdio1_vmmc>; 90 vqmmc-supply = <®_sdio1_vqmmc>; 90 vqmmc-supply = <®_sdio1_vqmmc>; 91 cd-gpios = <&portc 30 GPIO_ACTIVE_LOW> 91 cd-gpios = <&portc 30 GPIO_ACTIVE_LOW>; 92 wp-gpios = <&portd 0 GPIO_ACTIVE_HIGH> 92 wp-gpios = <&portd 0 GPIO_ACTIVE_HIGH>; 93 pinctrl-0 = <&sd1gpio_pmux>, <&sd1_pmu 93 pinctrl-0 = <&sd1gpio_pmux>, <&sd1_pmux>; 94 pinctrl-names = "default"; 94 pinctrl-names = "default"; 95 status = "okay"; 95 status = "okay"; 96 }; 96 }; 97 97 98 &sdhci2 { 98 &sdhci2 { 99 bus-width = <8>; 99 bus-width = <8>; 100 non-removable; 100 non-removable; 101 status = "okay"; 101 status = "okay"; 102 }; 102 }; 103 103 104 &i2c0 { 104 &i2c0 { 105 status = "okay"; 105 status = "okay"; 106 }; 106 }; 107 107 108 &i2c2 { 108 &i2c2 { 109 status = "okay"; 109 status = "okay"; 110 }; 110 }; 111 111 112 &uart0 { 112 &uart0 { 113 status = "okay"; 113 status = "okay"; 114 }; 114 }; 115 115 116 &usb_phy0 { 116 &usb_phy0 { 117 status = "okay"; 117 status = "okay"; 118 }; 118 }; 119 119 120 &usb_phy2 { 120 &usb_phy2 { 121 status = "okay"; 121 status = "okay"; 122 }; 122 }; 123 123 124 &usb0 { 124 &usb0 { 125 vbus-supply = <®_usb0_vbus>; 125 vbus-supply = <®_usb0_vbus>; 126 status = "okay"; 126 status = "okay"; 127 }; 127 }; 128 128 129 &usb2 { 129 &usb2 { 130 vbus-supply = <®_usb2_vbus>; 130 vbus-supply = <®_usb2_vbus>; 131 status = "okay"; 131 status = "okay"; 132 }; 132 }; 133 133 134 ð0 { 134 ð0 { 135 status = "okay"; 135 status = "okay"; 136 }; 136 }; 137 137 138 &sata0 { 138 &sata0 { 139 status = "okay"; 139 status = "okay"; 140 }; 140 }; 141 141 142 &sata_phy { 142 &sata_phy { 143 status = "okay"; 143 status = "okay"; 144 }; 144 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.