Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm64: dts: allwinner: h6: Use RSB for AXP805 PMIC connection

On boards where the only peripheral connected to PL0/PL1 is an X-Powers
PMIC, configure the connection to use the RSB bus rather than the I2C
bus. Compared to the I2C controller that shares the pins, the RSB
controller allows a higher bus frequency, and it is more CPU-efficient.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Acked-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20210103100007.32867-5-samuel@sholland.org

authored by

Samuel Holland and committed by
Maxime Ripard
531fdbee a4bb294c

+37 -37
+7 -7
arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts
··· 175 175 vcc-pg-supply = <&reg_vcc_wifi_io>; 176 176 }; 177 177 178 - &r_i2c { 178 + &r_ir { 179 + status = "okay"; 180 + }; 181 + 182 + &r_rsb { 179 183 status = "okay"; 180 184 181 - axp805: pmic@36 { 185 + axp805: pmic@745 { 182 186 compatible = "x-powers,axp805", "x-powers,axp806"; 183 - reg = <0x36>; 187 + reg = <0x745>; 184 188 interrupt-parent = <&r_intc>; 185 189 interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_LOW>; 186 190 interrupt-controller; ··· 293 289 }; 294 290 }; 295 291 }; 296 - }; 297 - 298 - &r_ir { 299 - status = "okay"; 300 292 }; 301 293 302 294 &rtc {
+11 -11
arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi
··· 112 112 vcc-pg-supply = <&reg_aldo1>; 113 113 }; 114 114 115 - &r_i2c { 115 + &r_ir { 116 + status = "okay"; 117 + }; 118 + 119 + &r_pio { 120 + vcc-pm-supply = <&reg_bldo3>; 121 + }; 122 + 123 + &r_rsb { 116 124 status = "okay"; 117 125 118 - axp805: pmic@36 { 126 + axp805: pmic@745 { 119 127 compatible = "x-powers,axp805", "x-powers,axp806"; 120 - reg = <0x36>; 128 + reg = <0x745>; 121 129 interrupt-parent = <&r_intc>; 122 130 interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_LOW>; 123 131 interrupt-controller; ··· 238 230 }; 239 231 }; 240 232 }; 241 - }; 242 - 243 - &r_ir { 244 - status = "okay"; 245 - }; 246 - 247 - &r_pio { 248 - vcc-pm-supply = <&reg_bldo3>; 249 233 }; 250 234 251 235 &rtc {