Tom Rini | ab06a53 | 2025-04-02 08:31:19 -0600 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause |
| 2 | /* |
| 3 | * IPQ5424 RDP466 board device tree source |
| 4 | * |
| 5 | * Copyright (c) 2024 The Linux Foundation. All rights reserved. |
| 6 | */ |
| 7 | |
| 8 | /dts-v1/; |
| 9 | |
| 10 | #include "ipq5424.dtsi" |
| 11 | |
| 12 | / { |
| 13 | model = "Qualcomm Technologies, Inc. IPQ5424 RDP466"; |
| 14 | compatible = "qcom,ipq5424-rdp466", "qcom,ipq5424"; |
| 15 | |
| 16 | aliases { |
| 17 | serial0 = &uart1; |
| 18 | }; |
| 19 | |
| 20 | vreg_misc_3p3: regulator-usb-3p3 { |
| 21 | compatible = "regulator-fixed"; |
| 22 | regulator-min-microvolt = <3300000>; |
| 23 | regulator-max-microvolt = <3300000>; |
| 24 | regulator-boot-on; |
| 25 | regulator-always-on; |
| 26 | regulator-name = "usb_hs_vdda_3p3"; |
| 27 | }; |
| 28 | |
| 29 | vreg_misc_1p8: regulator-usb-1p8 { |
| 30 | compatible = "regulator-fixed"; |
| 31 | regulator-min-microvolt = <1800000>; |
| 32 | regulator-max-microvolt = <1800000>; |
| 33 | regulator-boot-on; |
| 34 | regulator-always-on; |
| 35 | regulator-name = "vdda_1p8_usb"; |
| 36 | }; |
| 37 | |
| 38 | vreg_misc_0p925: regulator-usb-0p925 { |
| 39 | compatible = "regulator-fixed"; |
| 40 | regulator-min-microvolt = <925000>; |
| 41 | regulator-max-microvolt = <925000>; |
| 42 | regulator-boot-on; |
| 43 | regulator-always-on; |
| 44 | regulator-name = "vdd_core_usb"; |
| 45 | }; |
| 46 | }; |
| 47 | |
| 48 | &dwc_0 { |
| 49 | dr_mode = "host"; |
| 50 | }; |
| 51 | |
| 52 | &dwc_1 { |
| 53 | dr_mode = "host"; |
| 54 | }; |
| 55 | |
| 56 | &qusb_phy_0 { |
| 57 | vdd-supply = <&vreg_misc_0p925>; |
| 58 | vdda-pll-supply = <&vreg_misc_1p8>; |
| 59 | vdda-phy-dpdm-supply = <&vreg_misc_3p3>; |
| 60 | |
| 61 | status = "okay"; |
| 62 | }; |
| 63 | |
| 64 | &qusb_phy_1 { |
| 65 | vdd-supply = <&vreg_misc_0p925>; |
| 66 | vdda-pll-supply = <&vreg_misc_1p8>; |
| 67 | vdda-phy-dpdm-supply = <&vreg_misc_3p3>; |
| 68 | |
| 69 | status = "okay"; |
| 70 | }; |
| 71 | |
| 72 | &sleep_clk { |
| 73 | clock-frequency = <32000>; |
| 74 | }; |
| 75 | |
| 76 | &spi0 { |
| 77 | pinctrl-0 = <&spi0_default_state>; |
| 78 | pinctrl-names = "default"; |
| 79 | status = "okay"; |
| 80 | |
| 81 | flash@0 { |
| 82 | compatible = "micron,n25q128a11", "jedec,spi-nor"; |
| 83 | reg = <0>; |
| 84 | #address-cells = <1>; |
| 85 | #size-cells = <1>; |
| 86 | spi-max-frequency = <50000000>; |
| 87 | }; |
| 88 | }; |
| 89 | |
| 90 | &ssphy_0 { |
| 91 | vdda-pll-supply = <&vreg_misc_1p8>; |
| 92 | vdda-phy-supply = <&vreg_misc_0p925>; |
| 93 | |
| 94 | status = "okay"; |
| 95 | }; |
| 96 | |
| 97 | &tlmm { |
| 98 | spi0_default_state: spi0-default-state { |
| 99 | clk-pins { |
| 100 | pins = "gpio6"; |
| 101 | function = "spi0_clk"; |
| 102 | drive-strength = <8>; |
| 103 | bias-pull-down; |
| 104 | }; |
| 105 | |
| 106 | cs-pins { |
| 107 | pins = "gpio7"; |
| 108 | function = "spi0_cs"; |
| 109 | drive-strength = <8>; |
| 110 | bias-pull-up; |
| 111 | }; |
| 112 | |
| 113 | miso-pins { |
| 114 | pins = "gpio8"; |
| 115 | function = "spi0_miso"; |
| 116 | drive-strength = <8>; |
| 117 | bias-pull-down; |
| 118 | }; |
| 119 | |
| 120 | mosi-pins { |
| 121 | pins = "gpio9"; |
| 122 | function = "spi0_mosi"; |
| 123 | drive-strength = <8>; |
| 124 | bias-pull-down; |
| 125 | }; |
| 126 | }; |
| 127 | |
| 128 | sdc_default_state: sdc-default-state { |
| 129 | clk-pins { |
| 130 | pins = "gpio5"; |
| 131 | function = "sdc_clk"; |
| 132 | drive-strength = <8>; |
| 133 | bias-disable; |
| 134 | }; |
| 135 | |
| 136 | cmd-pins { |
| 137 | pins = "gpio4"; |
| 138 | function = "sdc_cmd"; |
| 139 | drive-strength = <8>; |
| 140 | bias-pull-up; |
| 141 | }; |
| 142 | |
| 143 | data-pins { |
| 144 | pins = "gpio0", "gpio1", "gpio2", "gpio3"; |
| 145 | function = "sdc_data"; |
| 146 | drive-strength = <8>; |
| 147 | bias-pull-up; |
| 148 | }; |
| 149 | }; |
| 150 | }; |
| 151 | |
| 152 | &uart1 { |
| 153 | pinctrl-0 = <&uart1_pins>; |
| 154 | pinctrl-names = "default"; |
| 155 | status = "okay"; |
| 156 | }; |
| 157 | |
| 158 | &usb2 { |
| 159 | status = "okay"; |
| 160 | }; |
| 161 | |
| 162 | &usb3 { |
| 163 | status = "okay"; |
| 164 | }; |
| 165 | |
| 166 | &xo_board { |
| 167 | clock-frequency = <24000000>; |
| 168 | }; |
| 169 | |