From: Paul Burton Date: Thu, 8 Aug 2019 22:33:16 +0000 (-0700) Subject: Merge branch 'ingenic-tcu-v5.4' into mips-next X-Git-Tag: v5.4-rc1~80^2~37 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=75b7329a4f08b3d2566afa25cfaddc8ddfb6dfa1;p=thirdparty%2Fkernel%2Flinux.git Merge branch 'ingenic-tcu-v5.4' into mips-next Merge the Ingenic TCU patchset from the ingenic-tcu-v5.4 branch which was created to enable follow-on changes in other subsystems. Signed-off-by: Paul Burton --- 75b7329a4f08b3d2566afa25cfaddc8ddfb6dfa1 diff --cc arch/mips/boot/dts/ingenic/qi_lb60.dts index 51a0443559e34,01b8c917cb33d..7a371d9c5a33f --- a/arch/mips/boot/dts/ingenic/qi_lb60.dts +++ b/arch/mips/boot/dts/ingenic/qi_lb60.dts @@@ -2,17 -2,7 +2,17 @@@ /dts-v1/; #include "jz4740.dtsi" - #include + +#include +#include + #include +#include + +#define KEY_QI_QI KEY_F13 +#define KEY_QI_UPRED KEY_RIGHTALT +#define KEY_QI_VOLUP KEY_VOLUMEUP +#define KEY_QI_VOLDOWN KEY_VOLUMEDOWN +#define KEY_QI_FN KEY_LEFTCTRL / { compatible = "qi,lb60", "ingenic,jz4740"; @@@ -326,27 -31,10 +326,33 @@@ groups = "uart0-data"; bias-disable; }; + + pins_mmc: mmc { + mmc { + function = "mmc"; + groups = "mmc-1bit", "mmc-4bit"; + bias-disable; + }; + + mmc-gpios { + pins = "PD0", "PD2"; + bias-disable; + }; + }; +}; + +&mmc { + bus-width = <4>; + max-frequency = <24000000>; + cd-gpios = <&gpd 0 GPIO_ACTIVE_HIGH>; + vmmc-supply = <&mmc_power>; + + pinctrl-names = "default"; + pinctrl-0 = <&pins_mmc>; }; + + &tcu { + /* 750 kHz for the system timer and clocksource */ + assigned-clocks = <&tcu TCU_CLK_TIMER0>, <&tcu TCU_CLK_TIMER1>; + assigned-clock-rates = <750000>, <750000>; + };