~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/scripts/dtc/include-prefixes/arm64/marvell/cn9130-sr-som.dtsi

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2 /*
  3  * Copyright (C) 2024 Josua Mayer <josua@solid-run.com>
  4  *
  5  */
  6 
  7 #include <dt-bindings/gpio/gpio.h>
  8 
  9 / {
 10         model = "SolidRun CN9130 SoM";
 11         compatible = "solidrun,cn9130-sr-som", "marvell,cn9130";
 12 
 13         aliases {
 14                 ethernet0 = &cp0_eth0;
 15                 ethernet1 = &cp0_eth1;
 16                 ethernet2 = &cp0_eth2;
 17                 i2c0 = &cp0_i2c0;
 18                 mmc0 = &ap_sdhci0;
 19                 rtc0 = &cp0_rtc;
 20         };
 21 
 22         chosen {
 23                 stdout-path = "serial0:115200n8";
 24         };
 25 
 26         v_1_8: regulator-1-8 {
 27                 compatible = "regulator-fixed";
 28                 regulator-name = "1v8";
 29                 regulator-min-microvolt = <1800000>;
 30                 regulator-max-microvolt = <1800000>;
 31         };
 32 
 33         /* requires assembly of R9307 */
 34         vhv: regulator-vhv-1-8 {
 35                 compatible = "regulator-fixed";
 36                 regulator-name = "vhv-1v8";
 37                 regulator-min-microvolt = <1800000>;
 38                 regulator-max-microvolt = <1800000>;
 39                 pinctrl-0 = <&cp0_reg_vhv_pins>;
 40                 pinctrl-names = "default";
 41                 gpios = <&cp0_gpio2 9 GPIO_ACTIVE_HIGH>;
 42                 enable-active-high;
 43         };
 44 };
 45 
 46 &ap_pinctrl {
 47         ap_mmc0_pins: ap-mmc0-pins {
 48                 marvell,pins = "mpp0", "mpp1", "mpp2", "mpp3", "mpp4", "mpp5",
 49                                            "mpp6", "mpp7", "mpp8", "mpp9", "mpp10", "mpp12";
 50                 marvell,function = "sdio";
 51                 /*
 52                  * mpp12 is emmc reset, function should be sdio (hw_rst),
 53                  * but pinctrl-mvebu does not support this.
 54                  *
 55                  * From pinctrl-mvebu.h:
 56                  * "The name will be used to switch to this setting in DT description, e.g.
 57                  * marvell,function = "uart2". subname is only for debugging purposes."
 58                  */
 59         };
 60 };
 61 
 62 &ap_sdhci0 {
 63         bus-width = <8>;
 64         pinctrl-0 = <&ap_mmc0_pins>;
 65         pinctrl-names = "default";
 66         vqmmc-supply = <&v_1_8>;
 67         status = "okay";
 68 };
 69 
 70 &cp0_ethernet {
 71         status = "okay";
 72 };
 73 
 74 /* for assembly with phy */
 75 &cp0_eth2 {
 76         pinctrl-names = "default";
 77         pinctrl-0 = <&cp0_eth2_pins>;
 78         phy-mode = "rgmii-id";
 79         phy = <&cp0_eth2_phy>;
 80         status = "okay";
 81 };
 82 
 83 &cp0_i2c0 {
 84         pinctrl-names = "default";
 85         pinctrl-0 = <&cp0_i2c0_pins>;
 86         clock-frequency = <100000>;
 87         status = "okay";
 88 
 89         som_eeprom: eeprom@53 {
 90                 compatible = "atmel,24c02";
 91                 reg = <0x53>;
 92                 pagesize = <8>;
 93         };
 94 };
 95 
 96 &cp0_mdio {
 97         pinctrl-0 = <&cp0_mdio_pins>;
 98         status = "okay";
 99 
100         /* assembly option */
101         cp0_eth2_phy: ethernet-phy@0 {
102                 reg = <0>;
103         };
104 };
105 
106 &cp0_spi1 {
107         status = "okay";
108         pinctrl-names = "default";
109         pinctrl-0 = <&cp0_spi1_pins>;
110         /* max speed limited by a mux */
111         spi-max-frequency = <1800000000>;
112 
113         flash@0 {
114                 compatible = "jedec,spi-nor";
115                 reg = <0>;
116                 /* read command supports max. 50MHz */
117                 spi-max-frequency = <50000000>;
118         };
119 };
120 
121 &cp0_syscon0 {
122         cp0_pinctrl: pinctrl {
123                 compatible = "marvell,cp115-standalone-pinctrl";
124 
125                 cp0_eth2_pins: cp0-ge2-rgmii-pins {
126                         marvell,pins = "mpp44", "mpp45", "mpp46", "mpp47",
127                                        "mpp48", "mpp49", "mpp50", "mpp51",
128                                        "mpp52", "mpp53", "mpp54", "mpp55";
129                         /* docs call it "ge2", but cp110-pinctrl "ge1" */
130                         marvell,function = "ge1";
131                 };
132 
133                 cp0_i2c0_pins: cp0-i2c0-pins {
134                         marvell,pins = "mpp37", "mpp38";
135                         marvell,function = "i2c0";
136                 };
137 
138                 cp0_mdio_pins: cp0-mdio-pins {
139                         marvell,pins = "mpp0", "mpp1";
140                         marvell,function = "ge";
141                 };
142 
143                 cp0_spi1_pins: cp0-spi1-pins {
144                         marvell,pins = "mpp13", "mpp14", "mpp15", "mpp16";
145                         marvell,function = "spi1";
146                 };
147 
148                 cp0_reg_vhv_pins: cp0-reg-vhv-pins {
149                         marvell,pins = "mpp41";
150                         marvell,function = "gpio";
151                 };
152         };
153 };
154 
155 /* AP default console */
156 &uart0 {
157         pinctrl-0 = <&uart0_pins>;
158         pinctrl-names = "default";
159         status = "okay";
160 };

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php