1// SPDX-License-Identifier: GPL-2.0 OR MIT 2/* 3 * Copyright (C) 2026 Junhui Liu <junhui.liu@pigmoral.tech> 4 */ 5 6#include "k1.dtsi" 7#include "k1-pinctrl.dtsi" 8 9/ { 10 model = "Banana Pi BPI-CM6 Module"; 11 compatible = "bananapi,bpi-cm6", "spacemit,k1"; 12 13 aliases { 14 i2c2 = &i2c2; 15 i2c8 = &i2c8; 16 }; 17 18 reg_vcc_4v: regulator-vcc-4v { 19 compatible = "regulator-fixed"; 20 regulator-name = "VCC4V0_SYS"; 21 regulator-min-microvolt = <4000000>; 22 regulator-max-microvolt = <4000000>; 23 regulator-boot-on; 24 regulator-always-on; 25 }; 26}; 27 28&emmc { 29 bus-width = <8>; 30 mmc-hs400-1_8v; 31 mmc-hs400-enhanced-strobe; 32 non-removable; 33 no-sd; 34 no-sdio; 35 status = "okay"; 36}; 37 38ð0 { 39 nvmem-cells = <&mac_address 0>; 40 nvmem-cell-names = "mac-address"; 41 phy-handle = <&rgmii0>; 42 phy-mode = "rgmii-id"; 43 pinctrl-names = "default"; 44 pinctrl-0 = <&gmac0_cfg>; 45 rx-internal-delay-ps = <0>; 46 tx-internal-delay-ps = <0>; 47 48 mdio-bus { 49 #address-cells = <0x1>; 50 #size-cells = <0x0>; 51 52 reset-gpios = <&gpio K1_GPIO(45) GPIO_ACTIVE_LOW>; 53 reset-delay-us = <10000>; 54 reset-post-delay-us = <100000>; 55 56 rgmii0: phy@1 { 57 reg = <0x1>; 58 }; 59 }; 60}; 61 62&pdma { 63 status = "okay"; 64}; 65 66&i2c2 { 67 pinctrl-names = "default"; 68 pinctrl-0 = <&i2c2_0_cfg>; 69 status = "okay"; 70 71 eeprom@50 { 72 compatible = "atmel,24c02"; 73 reg = <0x50>; 74 vcc-supply = <&buck3_1v8>; 75 pagesize = <16>; 76 read-only; 77 size = <256>; 78 79 nvmem-layout { 80 compatible = "onie,tlv-layout"; 81 82 mac_address: mac-address { 83 #nvmem-cell-cells = <1>; 84 }; 85 86 num-macs { 87 }; 88 89 serial-number { 90 }; 91 }; 92 }; 93}; 94 95&i2c8 { 96 pinctrl-names = "default"; 97 pinctrl-0 = <&i2c8_cfg>; 98 status = "okay"; 99 100 pmic@41 { 101 compatible = "spacemit,p1"; 102 reg = <0x41>; 103 interrupts = <64>; 104 vin1-supply = <®_vcc_4v>; 105 vin2-supply = <®_vcc_4v>; 106 vin3-supply = <®_vcc_4v>; 107 vin4-supply = <®_vcc_4v>; 108 vin5-supply = <®_vcc_4v>; 109 vin6-supply = <®_vcc_4v>; 110 aldoin-supply = <®_vcc_4v>; 111 dldoin1-supply = <&buck5>; 112 dldoin2-supply = <&buck5>; 113 114 regulators { 115 buck1 { 116 regulator-min-microvolt = <500000>; 117 regulator-max-microvolt = <1050000>; 118 regulator-ramp-delay = <5000>; 119 regulator-always-on; 120 }; 121 122 buck2 { 123 regulator-min-microvolt = <500000>; 124 regulator-max-microvolt = <1050000>; 125 regulator-ramp-delay = <5000>; 126 regulator-always-on; 127 }; 128 129 buck3_1v8: buck3 { 130 regulator-min-microvolt = <500000>; 131 regulator-max-microvolt = <1800000>; 132 regulator-ramp-delay = <5000>; 133 regulator-always-on; 134 }; 135 136 buck4 { 137 regulator-min-microvolt = <500000>; 138 regulator-max-microvolt = <3300000>; 139 regulator-ramp-delay = <5000>; 140 regulator-always-on; 141 }; 142 143 buck5: buck5 { 144 regulator-min-microvolt = <500000>; 145 regulator-max-microvolt = <3450000>; 146 regulator-ramp-delay = <5000>; 147 regulator-always-on; 148 }; 149 150 buck6 { 151 regulator-min-microvolt = <500000>; 152 regulator-max-microvolt = <3450000>; 153 regulator-ramp-delay = <5000>; 154 regulator-always-on; 155 }; 156 157 aldo1: aldo1 { 158 regulator-min-microvolt = <500000>; 159 regulator-max-microvolt = <3400000>; 160 regulator-boot-on; 161 }; 162 163 aldo2 { 164 regulator-min-microvolt = <500000>; 165 regulator-max-microvolt = <3400000>; 166 }; 167 168 aldo3 { 169 regulator-min-microvolt = <500000>; 170 regulator-max-microvolt = <3400000>; 171 }; 172 173 aldo4 { 174 regulator-min-microvolt = <500000>; 175 regulator-max-microvolt = <3400000>; 176 }; 177 178 dldo1 { 179 regulator-min-microvolt = <500000>; 180 regulator-max-microvolt = <3400000>; 181 regulator-boot-on; 182 }; 183 184 dldo2 { 185 regulator-min-microvolt = <500000>; 186 regulator-max-microvolt = <3400000>; 187 }; 188 189 dldo3 { 190 regulator-min-microvolt = <500000>; 191 regulator-max-microvolt = <3400000>; 192 }; 193 194 dldo4 { 195 regulator-min-microvolt = <500000>; 196 regulator-max-microvolt = <3400000>; 197 regulator-always-on; 198 }; 199 200 dldo5 { 201 regulator-min-microvolt = <500000>; 202 regulator-max-microvolt = <3400000>; 203 }; 204 205 dldo6 { 206 regulator-min-microvolt = <500000>; 207 regulator-max-microvolt = <3400000>; 208 regulator-always-on; 209 }; 210 211 dldo7 { 212 regulator-min-microvolt = <500000>; 213 regulator-max-microvolt = <3400000>; 214 }; 215 }; 216 }; 217}; 218